Skip to main content

No project description provided

Project description

Documentation Status pre-commit.ci Status CI Workflow Build Status

dysh

dysh is a Python spectral line data reduction and analysis program for singledish data with specific emphasis on data from the Green Bank Telescope. It is currently under development in collaboration between the Green Bank Observatory and the Laboratory for Millimeter-Wave Astronomy (LMA) at University of Maryland (UMD). It is intended to be an alternative to the GBO's current reduction package GBTIDL.

Getting Started

Installation

dysh requires Python 3.9+ and recent versions of astropy, numpy, scipy, pandas, specutils, and matplotlib.

With pip from PyPi

dysh is most easily installed with pip, which will take care of any dependencies. The packaged code is hosted at the Python Packaging Index.

    $ pip install dysh

From GitHub

To install from github without creating a separate virtual environment:

    $ git clone git@github.com:GreenBankObservatory/dysh.git
    $ cd dysh
    $ pip install -e .

If you wish to install using a virtual environment, which we strongly recommend if you plan to contribute to the code, see Development.

Reporting Issues

If you find a bug or something you think is in error, please report it on the github issue tracker. (You must have a Github account to submit an issue)


Development

Here are the steps if you want to develop code for dysh. We use hatch to manage the build environment. The usual caveats apply how you set up your python development environment.

  1. Clone the repo and install hatch.
    $ git clone git@github.com:GreenBankObservatory/dysh.git
    $ cd dysh
    $ pip install hatch
  1. Hatch will default to using the system Python if there's no HATCH_PYTHON environment variable set. To use a specific version of Python, add the following line to your ~/.bash_profile:
export HATCH_PYTHON=/path/to/bin/python

Then source the new profile to apply the changes.

$ source ~/.bash_profile
  1. Create and activate a virtual environment with hatch and install the packages required for development. The virtual environment will be created the first time; subsequent invoking hatch shell will simply load the created environment.cdi
    $ hatch shell
    (dysh) $ pip install -r requirements.txt
  1. Build and install the package
    (dysh) $ hatch build
    (dysh) $ pip install -e .
  1. You can exit this environment (which effectively had started a new shell) just exit:
    (dysh) $ exit
  1. Each time when you come back in this directory without being in this virtual environment, you'll need to load the virtual environment
    $ hatch shell

Notice you can ONLY do that from this directory

Testing

We use pytest for unit and integration testing. From the top-level dysh directory, run:

    $ pytest

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

dysh-0.3.0.tar.gz (78.1 kB view details)

Uploaded Source

Built Distribution

dysh-0.3.0-py3-none-any.whl (90.5 kB view details)

Uploaded Python 3

File details

Details for the file dysh-0.3.0.tar.gz.

File metadata

  • Download URL: dysh-0.3.0.tar.gz
  • Upload date:
  • Size: 78.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for dysh-0.3.0.tar.gz
Algorithm Hash digest
SHA256 24f0dec15a9625ae3349c09619c1a80022bb85da884b4ba678e3b15a4ffd3d85
MD5 01a5f069cca54aaf0ee7404094f295d3
BLAKE2b-256 03b3b426967a1f051f75ec32c09aa8c70172bf58d9676feabb53eaef2621bc38

See more details on using hashes here.

File details

Details for the file dysh-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: dysh-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 90.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for dysh-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fe969436679a6520ce6b68c89567b2c67a7e0f2cbd6c4e6c77aed147a300b633
MD5 2f44c5f8684ab8197a51d6ef7c1b63e1
BLAKE2b-256 203ebacec99b32d46dbaa5b93d00dd886ba834abfb2ee20976190b679d8413f4

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