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

Plate well labels #543

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft

Conversation

will-moore
Copy link
Member

@will-moore will-moore commented Feb 11, 2024

Fixes #540.

  • Fix [wellsample.index] label to be [field.index] and to be 1-based instead of 0-based.
  • Handle edit of label -> plate.name etc as well as add label.
  • Add 'Screen' option everywhere

Excluding to avoid conflicts with #563

--exclude

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<li><a href="#" data-label="[well.label] Field#[field.index]">Well & Fieild</a></li>
Mispell of Field

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also [field.index] is not functional.
Either needs to be changed to [wellsample.index] or could be given an alias in the JS (similar to the comment on run/acquisition)

@@ -219,11 +219,12 @@
format = prop_nf[1] ? prop_nf[1] : "index";
precision = param_dict["precision"] !== undefined ? param_dict["precision"] : 0; // decimal places default to 0
label_value = self.model.get_time_label_text(format, param_dict["offset"], precision);
} else if (['image', 'dataset'].includes(prop_nf[0])){
} else if (['image', 'dataset', 'screen', 'plate', 'well', 'wellsample'].includes(prop_nf[0])){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add acquisition to the list of accepted objects? It's already part of the parent in the JSON response.

And/or the alias run with a ternary condition inside the if:
prop_nf[0] = prop_nf[0] == "run" ? "acquisition" : prop_nf[0]

@will-moore
Copy link
Member Author

Thanks for the feedback and suggestions @Tom-TBT.
But I probably won't get back to finishing this off until after the vite work is a bit more complete.

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

Successfully merging this pull request may close these issues.

Additional labels for plate images
2 participants