https://github.com/datalab-org/datalab-app-plugin-insitu
datalab block plugin for in situ measurements (NMR, UV-Vis, XRD)
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (14.7%) to scientific vocabulary
Keywords
Repository
datalab block plugin for in situ measurements (NMR, UV-Vis, XRD)
Basic Info
- Host: GitHub
- Owner: datalab-org
- License: mit
- Language: Python
- Default Branch: main
- Homepage: https://datalab-app-plugin-insitu.readthedocs.io
- Size: 145 MB
Statistics
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 15
- Releases: 9
Topics
Metadata Files
README.md
datalab in situ plugin
A Python plugin for processing and visualizing in situ (NMR, UV-Vis, XRD) data within datalab instances.
The project was originally developed in the Grey Group in the Department of Chemistry at the University of Cambridge, with support and ongoing maintenance from datalab industries ltd..
Features
- Support for NMR, XRD and UV-Vis data, recorded alongside electrochemical experiments, temperature ramps or other time series data (support varies across data types)
- Integration with electrochemical data formats for combined analysis using navani
- Interactive visualization using Bokeh, with heatmaps and spectra selection
- Support for both local files, as well as running as a plugin directly on a datalab instance
Roadmap
There are still several planned features and improvements for this plugin, including:
- Supporting all formats for electrochemistry, NMR, XRD and UV-Vis that are supported by the corresponding non-in situ blocks available in datalab.
- More flexible specification of other time series data across all data types, e.g., temperature or pressure ramps.
- Improved performance and caching of data, especially for large datasets.
Installation
The datalab-app-plugin-insitu package is currently a "core plugin" of datalab (since datalab v0.5.3), i.e., it will be installed on datalab instances by default.
Development installation
We recommend you use uv for managing virtual environments and Python versions.
Once you have uv installed, you can clone this repository and install the package in a fresh virtual environment with:
shell
git clone git@github.com:datalab-org/datalab-app-plugin-insitu
cd datalab-app-plugin-insitu
uv sync --all-extras --dev
You can activate pre-commit in your cloned repository with uv run pre-commit install.
You can run the tests using pytest, optionaly with the marker show_plots to display the plots generated by the tests:
shell
uv run pytest -m show_plots
Usage
Full reference API documentation can be found on ReadTheDocs.
Data Structure Requirements
NMR
Your in situ NMR data should be organized as follows:
data_folder.zip/
├── <nmr_folder>/
│ ├── 1/
│ │ ├── acqus
│ │ └── pdata/
│ │ └── 1/
│ │ └── ascii-spec.txt
│ ├── 2/
│ │ └── ...
│ └── ...
└── <echem_folder>/
└── *.MPR
with the <nmr_folder> and <echem_folder> names specified at runtime (or via the datalab UI).
UV-Vis
data_folder.zip/
├── <uv-vis folder>/
│ ├── scan_0000.txt
│ ├── scan_0001.txt
│ ├── scan_0002.txt
│ ├── scan_0003.txt
│ ├── scan_0004.txt
│ ├── scan_0005.txt
│ ├── ...
│ └── scan_<N>.txt
├── <uv-vis reference folder>/
│ └── reference.txt
└── <echem_folder>/
└── <echem_file>
where the <uv-vis folder> contains the UV-Vis scans (named as *_<n>.txt, which will be used for sorting), the <uv-vis reference folder> contains the reference spectrum, and the <echem_folder> contains a electrochemical data file that is loadable by navani.
XRD
data_folder.zip/
├── <xrd folder>/
│ ├── 0000-scan.dat
│ ├── 0001-scan.dat
│ ├── 0002-scan.dat
│ ├── 0003-scan.dat
│ ├── 0004-scan.dat
│ ├── 0005-scan.dat
│ ├── ...
│ └── <N>-scan.dat
└── <log folder>/
└── time_series_log.csv
where the <xrd folder> contains the XRD scans (named as 0000-scan.dat, 0001-scan.dat, etc.), and the <log folder> contains a time series log file in CSV format, mapping scan number to the time series data, e.g.,
csv
scan_number,temperature
0000, 25.0
0001, 30.0
0002, 35.0
0003, 40.0
License
This project is released under the conditions of the MIT license. Please see LICENSE for the full text of the license.
Contact
For questions and support, please open an issue on the GitHub repository or join the public datalab Slack workspace.
Owner
- Name: datalab-org
- Login: datalab-org
- Kind: organization
- Repositories: 1
- Profile: https://github.com/datalab-org
GitHub Events
Total
- Fork event: 1
- Create event: 37
- Release event: 7
- Issues event: 32
- Watch event: 1
- Delete event: 4
- Member event: 1
- Issue comment event: 20
- Public event: 1
- Push event: 142
- Pull request review event: 63
- Pull request review comment event: 42
- Pull request event: 48
Last Year
- Fork event: 1
- Create event: 37
- Release event: 7
- Issues event: 32
- Watch event: 1
- Delete event: 4
- Member event: 1
- Issue comment event: 20
- Public event: 1
- Push event: 142
- Pull request review event: 63
- Pull request review comment event: 42
- Pull request event: 48
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 24
- Total pull requests: 29
- Average time to close issues: 26 days
- Average time to close pull requests: 8 days
- Total issue authors: 1
- Total pull request authors: 4
- Average comments per issue: 0.42
- Average comments per pull request: 0.24
- Merged pull requests: 16
- Bot issues: 0
- Bot pull requests: 2
Past Year
- Issues: 24
- Pull requests: 29
- Average time to close issues: 26 days
- Average time to close pull requests: 8 days
- Issue authors: 1
- Pull request authors: 4
- Average comments per issue: 0.42
- Average comments per pull request: 0.24
- Merged pull requests: 16
- Bot issues: 0
- Bot pull requests: 2
Top Authors
Issue Authors
- ml-evs (24)
Pull Request Authors
- ml-evs (15)
- BenjaminCharmes (8)
- be-smith (3)
- pre-commit-ci[bot] (2)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- actions/checkout v4 composite
- actions/setup-python v5 composite
- astral-sh/setup-uv v3 composite
- datalab-server >= 0.5.3
- lmfit >=1.3.2
- matplotlib >=3.9.2
- navani >=0.1.11
- nmrglue >=0.11
- numpy >=1.26.4,<2
- pandas >=2.2.3
- scipy >=1.14.1
- 102 dependencies