oslocyclotronlab / ompy_Archive_Sept2019

Archived version om ompy as of 27. Sept 2019 -- Please use this instead:
https://github.com/oslocyclotronlab/ompy/
GNU General Public License v3.0
0 stars 1 forks source link

mid bin vs lower bin #40

Open fzeiser opened 5 years ago

fzeiser commented 5 years ago

Issue by fzeiser Friday Sep 13, 2019 at 09:48 GMT Originally opened as https://github.com/oslocyclotronlab/ompy/issues/40


We ought to go through the code and check where mid bin are used vs where lower bins are used. I still don't see where the lower bin edges are useful.

Some places, like in the multiplicity estimations, we currently do it wrong. Not that it was a huge effect for small enough bins, but it has an effect. See eg:

https://github.com/oslocyclotronlab/ompy/blob/b1011b397b10b7609111a4c9a4bb48e22f36692b/ompy/firstgeneration.py#L226-L241

Where it the calculations proceed as if mid_bin energies were used. I guess it could be best to decide with version to use soon ;P. Anyhow, one could have a convenience function converting lower to bin bins.

This should be fixed before further comparison in #32