-
Notifications
You must be signed in to change notification settings - Fork 52
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
keep track of position label #575
Comments
Yes, it should be the case that any axis can take integer or string values, just not both within a single axis. So you should be able to switch and index them by label.
for value in dataset.axes['position']:
Yes, this should possible. {'row': [-2, -1, 0, 1],
'column': [-2, -1, 0, 1, 2],
'channel': ['Brightfield', 'FITC', 'TRITC'],
'z': [0]} So there is an order in there. Right now these are sorted alphabetically/numerically. The You'd also need to I think change this from a dict to an OrderedDict for datasets read from disk: (it might work as is because in my experience regular dicts behave as ordered, but the language doesnt guarantee it as far as i understand) and similarly here for datasets that are currently being acquired: Then remove the sorting that occurs at and |
Thanks! Do I understand correctly that nothing needs to change on the Java side? This shouldn't be hard for me to do then |
Yeah thats right. Cool |
One useful thing that is currently lost with a pycromanager acquisition is the position label. In my workflow, I use the HSC Site Generator to generate a position list with multiple FOVs per well, which I then import in python and pass the XYZ coordinates to pycromanager. However, I don't have a way to pass the position label. It's important to know which position index comes from which well, so currently I write a csv file to keep track of this information.
Could the
position
axis in the events dictionary become a string axis, just likechannel
, such that the position label can be used as the axis index? Could it be either an integer or string (is that how thechannel
axis works currently)? Is there a way to quickly iterate through the positions even if we don't know the labels ahead of time? Can we still keep track of the order in which the positions are acquires? I would think all of this should be possible on the python side.The text was updated successfully, but these errors were encountered: