Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PythonAPI: create workspace method to get multi-dim Numpy array with all spectra #2625

Closed
mdoucet opened this issue Oct 26, 2010 · 1 comment
Assignees
Milestone

Comments

@mdoucet
Copy link
Member

mdoucet commented Oct 26, 2010

Although all data manipulation for analysis should be done by algorithms, there is a need for UI widgets to be able to access the data. Right now, it is only possible to use the readX/Y/E methods to get a single spectrum. In cases like SANS, where the each pixel of the 2D detector is a spectra, one would have to loop over N*N pixels to get the whole detector array. This can be very slow for a widget coded in python. We should add three methods along the lines of read_all_spectraX/Y/E, which would return a Numpy array N_x * N_y, where N_x is the number of X bins (TOF) and N_y is the number of spectra.

@mdoucet
Copy link
Member Author

mdoucet commented Jun 3, 2015

This issue was originally trac ticket 1778

@mdoucet mdoucet added the Python label Jun 3, 2015
@mdoucet mdoucet added this to the Iteration 25 milestone Jun 3, 2015
@mdoucet mdoucet closed this as completed Jun 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants