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

Change bin dimension #202

Open
elifoo opened this issue Feb 5, 2021 · 4 comments
Open

Change bin dimension #202

elifoo opened this issue Feb 5, 2021 · 4 comments

Comments

@elifoo
Copy link

elifoo commented Feb 5, 2021

The script calculate the dose in cGy and thus the bin dimension is of 0.01. I would like to change bin dimension in 0.1 or 0.5 ... How I can obtain this? Thank you very well!

@bastula
Copy link
Member

bastula commented Feb 8, 2021

Are you referring to the dvhcalc module or the DVH class? Both are designed for 1 cGy bins. There hasn't been a request for alternate bin sizes as of yet. It may be possible to make changes to the code in both of those modules to accommodate this request.

@elifoo
Copy link
Author

elifoo commented Feb 12, 2021

Ok! I think that It can useful to reduce the time processing. I use DVH with 0.5Gy step (so every 50cGy)

@bastula
Copy link
Member

bastula commented Feb 15, 2021

I'll leave this issue open for a future contribution, but if you need bins resampled you can manually re-bin your histograms using numpy.

@sama2689
Copy link

I am trying to implement this, @bastula could you elaborate on how re-binning can be done by numpy? Is it as simple as changing the relevant arguments in the return line of[ get_dvh](https://dicompyler-core.readthedocs.io/en/latest/_modules/dicompylercore/dvhcalc.html#get_dvh) or is there something more complex that needs to be done? I am also looking to have the binning controlled and this would be an excellent feature for a future contribution.

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

3 participants