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.

Contributing

Found a bug? See CONTRIBUTING.md for how to report it or fix it yourself.

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.0b5.tar.gz (1.6 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.0b5-py3-none-any.whl (1.6 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: qscan-4.0.0b5.tar.gz
  • Upload date:
  • Size: 1.6 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.0b5.tar.gz
Algorithm Hash digest
SHA256 eabef3c5b6d293633018f7cc78f5fa70a62f9c0a5d0094ea01af8385de32aab3
MD5 33c288dfb78d2d0198a8f5f1018d78e6
BLAKE2b-256 bbbcbf42017e5438a8df959cf104063eaf1b5cbc53563be26314e8dc5e2ea8f2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qscan-4.0.0b5-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.0b5-py3-none-any.whl
Algorithm Hash digest
SHA256 afc7f8a7478c8ad9f01c91a3e7a2f77261c0433a07c469e10f4ab2604d5a87fb
MD5 d2434d79996e81c4bf2a5a8ad89e51c3
BLAKE2b-256 5a636f2c00e6979550e13b1845de0fa68a0d9bccc1a09e2190eef0da81693354

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

4.0.0b5 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