Skip to main content

SupSpec

Hello! Thank you for using SupSpec!
SupSpec (Supernova Spectra Fitter) is a quick tool which aids in finding the velocity structure of spectral features throughout the supernova ejecta. This code is designed to require minimal user interaction and can ingest an arbitrarily large number of spectra. With it, one can infer both the velocity of supernova ejecta expansion, and the relative depths of various elements in the ejecta. The user can input spectral data in a range of formats (.txt, .data, .out, etc.), choose a spectral line and window, and receive an output of graphs.

Installation

SupSpec is available on pip and can be installed using:

pip install supspec

Using SupSpec

Before using SupSpec, store all your data in a folder called "data". Then, open terminal at the location and run run.py.

python run.py 

You can also pass in 3 arguments at the terminal: mode, directory, and extension.

  • Mode: -v at the end of the command activates verbose mode. The default is quiet mode.
  • Directory: -d <directory> at the end of the command sets that directory as the directory which holds spectroscopy data. The default directory is a folder called "data" inside the current directory.
  • Extension: -e <extension> extends the type of file for spectroscopy data in addition to .txt, .data, or .out files.

In verbose mode, the user can check the window of each spectrum, change the number of walkers and iterations, and view the results of every walker. In quiet mode, figures will not pop up but simply stored inside the Result folder.

For example, if I wish to use verbose mode, and my data is stored in a folder called spectra/. I would type in the command:

python run.py -v -d spectra

Release files for supspec 1.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for supspec 1.0.9
File Size Uploaded
supspec-1.0.9.tar.gz 10.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for supspec 1.0.9
File Interpreter ABI Platform
supspec-1.0.9-py3-none-any.whl Python 3 none any Details

Total release size: 21.5 kB

Release files / supspec-1.0.9.tar.gz

Download URL supspec-1.0.9.tar.gz
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
796893b250b3118962e895b75e711069f8a137a152a6aac48f61e1b00f313e7b
BLAKE2b-256 checksum
How to use checksums
2bae2b1363d3d3f43e09a385ccf04f00009d49422a66860ffdde779e28fdef87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.11.4

Release files / supspec-1.0.9-py3-none-any.whl

Download URL supspec-1.0.9-py3-none-any.whl
Size 11.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
265cec28e01c07f3e2fa3a59df53dd6219be15ecb2cebc95233282bc81de9311
BLAKE2b-256 checksum
How to use checksums
54140390ec9614718f24da89fdc0d45d2ed4197799b4cc737020a78da362a4f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.11.4

Release history Release notifications | RSS feed

This release

1.0.9 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page