Skip to content

Add UV-Vis insitu block #45

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

Merged
merged 58 commits into from
Jul 10, 2025
Merged

Add UV-Vis insitu block #45

merged 58 commits into from
Jul 10, 2025

Conversation

be-smith
Copy link
Contributor

@be-smith be-smith commented Jun 18, 2025

Vue block is added to main datalab in PR datalab-org/datalab#1246

Adds an insitu UV-Vis block, and adds to the functionality of the in-situ nmr block. Adding data and sample granularity options to improve loading times, and changing how the legend is labelled to give more useful info about the highlighted spectra

be-smith and others added 30 commits May 14, 2025 16:19
Copy link
Member

@ml-evs ml-evs left a comment

Choose a reason for hiding this comment

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

  • Add a title to this PR and a brief description
  • Fix the tests
  • Mark ready for review

@be-smith be-smith changed the title Bes/uv vis insitu merge Adding UV-Vis insitu block Jun 30, 2025
@be-smith be-smith marked this pull request as ready for review June 30, 2025 12:57
Copy link
Collaborator

@BenjaminCharmes BenjaminCharmes left a comment

Choose a reason for hiding this comment

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

I'm not sure I've understood how everything works yet, but locally the block doesn't seem to work.


def _create_top_line_figure(plot_data: Dict[str, Any], ranges: Dict[str, Range1d]) -> figure:
"""
Create the NMR line plot figure component.
Copy link
Collaborator

Choose a reason for hiding this comment

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

There are a few NMR in the Uv-Vis plotting, it's not a big deal but it would be cleaner to modify them, at least the docstrings for the doc.

@BenjaminCharmes
Copy link
Collaborator

I can't edit my review any more, but now that the block is working in the UI, a few more comments:

  • A few print() could (should?) be removed.
  • CustomJS remove_line_callback doesn't work

ml-evs
ml-evs previously approved these changes Jul 10, 2025
Copy link
Member

@ml-evs ml-evs left a comment

Choose a reason for hiding this comment

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

Few minor comments, I'll do a bit of clean up myself too, otherwise great job @be-smith! I also don't like uvvis.uvvis_utils as a name, so will just name it uvvis.utils

@ml-evs ml-evs force-pushed the bes/uv-vis-insitu-merge branch from 05f7dcf to a1200d8 Compare July 10, 2025 14:59
be-smith added 4 commits July 10, 2025 17:29
…er is raised after available folders has been found
…' of github.com:datalab-org/datalab-app-plugin-insitu into bes/uv-vis-insitu-merge
…' of github.com:datalab-org/datalab-app-plugin-insitu into bes/uv-vis-insitu-merge

Also changed calls to renamed uvvis_utils.py to utils.py
@ml-evs ml-evs changed the title Adding UV-Vis insitu block Add UV-Vis insitu block Jul 10, 2025
@ml-evs ml-evs added the enhancement New feature or request label Jul 10, 2025
Copy link
Member

@ml-evs ml-evs left a comment

Choose a reason for hiding this comment

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

Thanks @be-smith, great work! Let's use this as the new base to work off with XRD and others.

@ml-evs ml-evs merged commit df8b5d6 into main Jul 10, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants