Skip to main content

No project description provided

Project description

pySpextool

Python code to reduce data obtained with the SpeX spectrograph.

Recommended Installation Instructions

  1. Setup your computer and install miniforge, if you haven't already.

    Follow Steps 0-2 of the Astropy Workshop Setup instructions to install WSL (for Windows) and install conda with miniforge.

  2. Make a pyspextool_3.13 conda environment with Python 3.13.

    conda create -n pyspextool_3.13 python=3.13
    
  3. Activate the new environment

    conda activate pyspextool_3.13
    
  4. Install the pyspextool package from PyPI using pip. This also installs the other Python packages that pyspextool depends upon.

    pip install pyspextool
    
  5. Install other Python packages

    If you want to use Jupyter notebooks or other Python tools with pyspextool, you need to install them in the new environment. For example:

    pip install jupyterlab
    

Instructions for using the example notebooks

  1. The Jupyter notebook tutorials are under notebooks/ for preupgraded and upgraded SpeX Prism, SXD, and LXD data.

  2. Follow the instructions above to download the test data which will be saved under tests/test_data/. To get the data used by the Jupyter notebooks, clone the test_data repository.

    git clone git@github.com:pyspextool/test_data.git
    

    The raw and processed example data products are available under tests/test_data/raw/ and tests/test_data/processed/ respectively. The data products include the cal (calibration data), proc (processed data), and qa (quality assurance plots).

  3. While users should be able to run the Jupyter notebook tutorials without changing the output paths, users are encouraged to move the data folder and rename the output paths. The default saving directory is /test_pyspextool/test_data/processed/.

Developer Instructions

If you plan to contribute code to pyspextool, you should clone a fork of this repo. You will also need pytest and the test data in order to run the tests.

  1. Make your own fork of this repository.

  2. Clone the fork to your computer.

  3. Make and activate a dedicated virtual environment, ideally with Python 3.13.

  4. Install and editable version of pyspextool and install the extra packages needed for testing and developing. In the pyspextool/ direcotry:

    pip install -e ".[test]"
    
    
  5. Setup and download the test_data/ submodule

    git submodule update --init --recursive 
    

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

pyspextool-1.5b7.tar.gz (67.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyspextool-1.5b7-py3-none-any.whl (22.3 MB view details)

Uploaded Python 3

File details

Details for the file pyspextool-1.5b7.tar.gz.

File metadata

  • Download URL: pyspextool-1.5b7.tar.gz
  • Upload date:
  • Size: 67.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pyspextool-1.5b7.tar.gz
Algorithm Hash digest
SHA256 a9ea64cb26ac32ff9033be02122778e0e3cdc2583a92d7e3c92b201e0aacaa60
MD5 7c1b2f0adae4e6b82975508ec26bfb0c
BLAKE2b-256 c1ea9b94cd16c996d30fffe5ada963210a1081cb9142b789fb038baacac18ada

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyspextool-1.5b7.tar.gz:

Publisher: pypi-publish.yml on pyspextool/pyspextool

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyspextool-1.5b7-py3-none-any.whl.

File metadata

  • Download URL: pyspextool-1.5b7-py3-none-any.whl
  • Upload date:
  • Size: 22.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pyspextool-1.5b7-py3-none-any.whl
Algorithm Hash digest
SHA256 5be52d071a76a7335184c6986ee15b2f4fd0a9c8544422b767e29a442951b825
MD5 eef7765fc0fdc7e60822768c92dab8d4
BLAKE2b-256 5bed45e3c93741866c6ec3dfcea5bc47ca71f30f473671d05f12c0d46102989e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyspextool-1.5b7-py3-none-any.whl:

Publisher: pypi-publish.yml on pyspextool/pyspextool

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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