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

Numpy accumulate #376

Merged
merged 2 commits into from
Nov 17, 2015
Merged

Numpy accumulate #376

merged 2 commits into from
Nov 17, 2015

Conversation

tfarago
Copy link
Contributor

@tfarago tfarago commented Nov 16, 2015

It will be very convenient to have the data accumulated already as a numpy ND stack when implementing general backprojectors or data processing routines in general. With this we can do for example backproject.insert(accumulate.items[:, height, :]) which wouldn't be so simple AFAIK with a list of 2D numpy arrays.

@tfarago
Copy link
Contributor Author

tfarago commented Nov 16, 2015

@matze if there isn't a more elegant way this is finished.

@matze
Copy link
Contributor

matze commented Nov 16, 2015

No, looks like a good idea. However, you should also check the values in the test not only the type. Better safe than sorry.

@tfarago tfarago mentioned this pull request Nov 16, 2015
2 tasks
@matze
Copy link
Contributor

matze commented Nov 16, 2015

From my point of view, we can merge this 👍

tfarago added a commit that referenced this pull request Nov 17, 2015
@tfarago tfarago merged commit 7adce35 into master Nov 17, 2015
@matze matze removed the ready label Nov 17, 2015
@tfarago tfarago deleted the numpy-accumulate branch November 17, 2015 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants