Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

A Quasar Spectra Scanning Tool

License MIT PyPI version DOI

Description

This program allows you to scan in velocity any quasar spectrum and with any transitions, marking fit regions and preparing a preliminary fort.13 to start fitting with VPFIT. As of 4.0.0, QSCAN is a React frontend talking to a Flask backend (previously a Dash app) -- see docs/architecture.md and CLAUDE.md for the full picture.

Installation

git clone https://gitlab.com/astroquasar/programs/qscan.git
cd qscan
uv venv
uv pip install -e ".[dev]" --python .venv/bin/python
cd frontend && npm install && npm run build

Cloning over SSH

The GitLab project is public, so git clone https://gitlab.com/astroquasar/programs/qscan.git (as above) needs no authentication at all. If you'd rather clone over SSH (git@gitlab.com:astroquasar/programs/qscan.git) -- e.g. because you also plan to push -- that always requires a working SSH key on your GitLab account, regardless of the project's visibility:

ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519_gitlab
cat ~/.ssh/id_ed25519_gitlab.pub

Paste the printed public key at gitlab.com/-/user_settings/ssh_keys. If that key isn't your default (~/.ssh/id_ed25519/id_rsa), add it to ~/.ssh/config so plain ssh/git commands pick it up automatically:

Host gitlab.com
    HostName gitlab.com
    User git
    IdentityFile ~/.ssh/id_ed25519_gitlab

Verify with ssh -T git@gitlab.com -- it should greet you by username. Pushing (rather than just cloning) additionally requires a project role of at least Developer, set under Project -> Manage -> Members.

Built on Python (NumPy, SciPy, Astropy, Flask) and a Vite/React/TypeScript frontend (Plotly.js, TanStack Query).

Usage

qscan <spectrum> [--zabs Z] [--dv KM_S] [--no-browser]

This loads the spectrum, opens a browser tab, and starts scanning. See Getting Started for the full walkthrough, or qscan --help for all options.

License

(The MIT License)

Copyright (c) 2016-2020, Vincent Dumont. All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Download files

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

Source Distribution

qscan-4.0.0b4.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

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

qscan-4.0.0b4-py3-none-any.whl (1.6 MB view details)

Uploaded Python 3

File details

Details for the file qscan-4.0.0b4.tar.gz.

File metadata

  • Download URL: qscan-4.0.0b4.tar.gz
  • Upload date:
  • Size: 1.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for qscan-4.0.0b4.tar.gz
Algorithm Hash digest
SHA256 46d8065d6c134567eee8f18932da96edb843d1c11017b70e15fa7bc6d7231fd1
MD5 9d5045e3c771c12db668660308b03c7e
BLAKE2b-256 acb01c3aa36615d1bdb15a2e3a00467c05469b22cda3a63dff7d2a91f5415961

See more details on using hashes here.

File details

Details for the file qscan-4.0.0b4-py3-none-any.whl.

File metadata

  • Download URL: qscan-4.0.0b4-py3-none-any.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for qscan-4.0.0b4-py3-none-any.whl
Algorithm Hash digest
SHA256 9fa24e7629d48cea9619d613c66b072fb7a313df3a53fb5b740329303853bade
MD5 f8d705e85c0466d8e6e7e55e4850017d
BLAKE2b-256 fe14a0c9c832b9ee2bfe0061209c686a1b5b7e9f3bef3c3511ef7189b82fb9f9

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

4.0.0b4 This release

2 files

2.5.3

1 file

2.5.2

1 file

2.5.1

1 file

2.5.0

1 file

2.4.0

1 file

2.3.1

1 file

2.2.3

1 file

2.2.2

1 file

2.2.1

1 file

2.2.0

1 file

2.1.0

1 file

2.0.0

1 file

1.3.0

1 file

1.2.0

1 file

1.1.0

1 file

1.0.0

1 file

0.0.1

1 file

Supported by

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