SPyC_Writer
A writer for the Thermo Galactic SPC file format, widely used in Thermo Scientific GRAMS and other applications, written in Python.
The only outside library used is numpy. The remainder of libraries used all come from the python standard library. Other outside libraries are used for testing, but the core module does not use them. Use Python 3.10+.
The module has been cross-validated using https://github.com/rohanisaac/spc and spectragryph by parsing the output file and verifying it matches what is expected.
Validation has been done on Y, XY, XYYY, and XYXYXY file types. All instances were successfully parsed.
Wiley's Know It All was also used for validating. It successfully parsed all formats except XYXYXY, which it states is invalid.
Tests
Tests are written using pytest and verified using https://github.com/rohanisaac/spc. This package appears to not have been updated in a while and contains a few errors, but it provides a straight forward interface in python for verifying parsing.
To-Do
- Widen support for other SPC aspects that are currently listed as unsupported
- Allow old file format
- Provide option for not writing as IEEE float
- etc.
- Troubleshoot why KIA considers XYXYXY formats invalid
- Expand tests
- Expand input validation and provide informative error messages for wrong input
References
The Thermo Galactic spc-sdk code:
The newer format specification document:
The older format specification document (has greater detail in parts than newer doc):
Changelog
- 2024-12-16 1.0.1
- adjusted data validation to shape instead of size
- 2023-10-02 1.0.0
- fixed for Python 3.11
- 2022-12-05 0.2.0
- published to PyPi
- 2022-06-06 0.1.0
- initial version
Metadata
Release files for SPyC_Writer 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| spyc_writer-1.0.1.tar.gz | 15.9 kB | Without provenance | Details for spyc_writer-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| spyc_writer-1.0.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for spyc_writer-1.0.1-py2.py3-none-any.whl |
Total release size: 31.1 kB
Release files / spyc_writer-1.0.1.tar.gz
| Download URL | spyc_writer-1.0.1.tar.gz |
|---|---|
| Size | 15.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1669b371cbb205f755eaf2feed8039393656ad136721b4ab67c9952e1c97dc82
|
|
BLAKE2b-256 checksum How to use checksums |
acd6ecd44f4689729b000957d7723bc7fe7dbcccb54282cace210958f4a1c193
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.31.0
|
Release files / spyc_writer-1.0.1-py2.py3-none-any.whl
| Download URL | spyc_writer-1.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 15.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
13534e90d6ee60d2055bde21d12f7dc0549d5f5b4775356d46a9f483bf120775
|
|
BLAKE2b-256 checksum How to use checksums |
d47345c2ce14de2255c33b6c09839777aea09eff84a53333348b235c447b151d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.31.0
|
Security for SPyC_Writer 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.