Skip to main content

A program to output data in the Thermo Galactic SPC file format.

Project description

SPyC_Writer

A writer for the Thermo Galactic SPC file format, written in Python. 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.

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 used also for validating and it successfully parsed all formats except XYXYXY, which it states is invalid.

Use Python 3.10+.

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

  • 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spyc_writer-1.0.0.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

spyc_writer-1.0.0-py2.py3-none-any.whl (15.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file spyc_writer-1.0.0.tar.gz.

File metadata

  • Download URL: spyc_writer-1.0.0.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for spyc_writer-1.0.0.tar.gz
Algorithm Hash digest
SHA256 3d8b454656e5dae5169d75d75fd197c28d8dd9ee0fe3e17c9f5adb0b48d4929b
MD5 f50573c2a710ef8afd811de86d93ddc8
BLAKE2b-256 d4591b1bb6ec482b2febbbdd6f8c0578af41b323cbb018756ddac0b2582415ab

See more details on using hashes here.

File details

Details for the file spyc_writer-1.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for spyc_writer-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0e7842c340b42d547e8ddccb0ddd943c3a2078b356051528925b4450233ed260
MD5 51b75b79b07c30ce626132227aa3c7b3
BLAKE2b-256 d5a40061afcbc3a5ef5305e4dc8b0c3b8112e919200b37a132b49c832cafa7c1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page