praxes / hexrd

Legacy hexrd repository (python2.7)
http://hexrd.readthedocs.org
14 stars 42 forks source link

support disconnected omega ranges #88

Open ddale opened 9 years ago

ddale commented 9 years ago

extend the config.imageseries.ImageSeriesConfig class to allow either ints or list of ints for omega:start, omega:stop, and omega:step. Lists should be all the same length, and will be zipped together to provide a list of ranges:

ranges = [range(start, stop, step) for start, stop, step in zip(ome.start, ome.stop, ome.step)]

Also, add a property that returns a list (or np array?) of omega values.

@joelvbernier, in what form are the disconnected omega ranges consumed by the library? Does it need a list of ranges, or a list of discrete omega values?

joelvbernier commented 9 years ago

My thought was a list of suspects just as for a single range. That is, a start and a Delta, and (optionally?) a stop. One obvious use case is for something like a diamond anvil cell where you cannot do 360, but you can do symmetric wedges on each side of the cell

ddale commented 9 years ago

From the Zen of Python: "explicit is better than implicit". I have a very strong aversion to inferring the stop angle from the start angle, the step angle, and the number image frames. I think the stop angle should be specified.

See pull request #91.