0
votes
0answers
6 views

Combine unnormalized spectra using scipy.optimize and chi-squared fitting

I have three spectra stored in three separate FITS files, i.e., the data points can be stored in NumPy arrays. These spectra are of the same object, but just taken with different diffraction angles so ...
0
votes
1answer
11 views

How can scipy.weave.inline be used in a MPI-enabled application on a cluster?

If scipy.weave.inline is called inside a massive parallel MPI-enabled application that is run on a cluster with a home-directory that is common to all nodes, every instance accesses the same catalog ...
1
vote
0answers
31 views

Follow up on how to extract unique rows from a matrix in numpy

A follow up question on: How can i use the unique(a, 'rows') from MATLab at python? The answer there explains how to get the unique rows. Yet matlab also returns the frequency of each row ...
0
votes
1answer
35 views

scipy with enthought canopy

I am evaluating enthought package. i installed the 32bit canopy (downloaded from https://www.enthought.com/downloads/) in Ubuntu. $ sudo bash canopy-1.0.1-rh5-32.sh Upon testing I dont see scipy ...
5
votes
0answers
59 views

Periodogram in Octave/Matlab vs Scipy

I am porting some matlab code to python using scipy and got stuck with the following line: Matlab/Octave code [Pxx, f] = periodogram(x, [], 512, 5) Python code f, Pxx = signal.periodogram(x, 5, ...
0
votes
0answers
20 views

SciPy installation fails: quadpack error

I tried to install scipy on my user account ~/local using both easy_install and the 'python setup.py install' method with source files. I get this error: error: Setup script exited with error: ...
-1
votes
0answers
25 views

Single Pixel BMP/TIF Image Not Recognized [closed]

I have a few images with black background and one single pixel (made with MS Paint) of various size (40x40, 80x80, 160x160, 320x320). Their purpose is for testing direct correlation algorithm. ...
-2
votes
0answers
19 views

Are there any examples of Geometric Multigrid using petsc4py? [closed]

I'm trying to implement a Geometric Multigrid using petsc4py and I can't find any example on the web... I create my own Interpolation and Restriction operators, and want to set them into petsc (using ...
1
vote
0answers
23 views

scipy.optimize.brute converges outside of range?

I am doing a simple optimization using scipy.optimize.brute, but the values I am getting lie outside the range. I am not using a finisher. Documentation is here: ...
3
votes
0answers
25 views

Scipy.optimization finding unknown parameters between two sets of data describing the same rotation

I have two sets, R1 and R2, of data which both represent the same rotations in different coordinate systems. They are not equally sampled, so I have alot more samples in R1 than R2 for the same time ...
1
vote
1answer
29 views

Implementing a PCA (Eigenvector based) in Python

I try to implement a PCA in Python. My goal is to create a version which behaves similarly to Matlab's PCA implementation. However, I think I miss a crucial point as my tests partly produce a results ...
2
votes
2answers
44 views

No image functions in Scipy

Tried to use scipy.misc.imreadbut got an error AttributeError: 'module' object has no attribute 'imread'. I know that I have to install PIL to use image functions as other SO question suggests. ...
1
vote
0answers
45 views

eulerian-magnification tuple index out of range python

I'm making an attempt to build and work with this video project in Python. https://github.com/brycedrennan/eulerian-magnification The command that I'm trying to run is: ...
1
vote
2answers
64 views

Is there a python module that convert a value and an error to a scientific notation?

Suppose I have two numbers, v = 0.01342 and err = 0.0004. Under scientific notation, this would be written as (13.4 ± 0.4)e-3. Is there a function that does that conversion (probably on scipy)? ...
1
vote
0answers
20 views

Python Sklearn: Vectorize Edgelist

I have an edgelist in the format: Product_B Consumer_Id_1 Product_B Consumer_Id_2 Product_A Consumer_Id_3 I want to use this for item based filtering in scikit learn, for which I need to ...

1 2 3 4 5 122
15 30 50 per page