Skip to main content

Marvin is the ultimate tool to visualise and analyse MaNGA data. It is developed and maintained by the MaNGA team.

Build Package Run Test Suite CodeCov Coverage Status PyPI DOI astropy readthedocs

Installation

To install Marvin:

pip install sdss-marvin

If you would like to contribute to Marvin’s development, you can clone this git repo, and run pip install in editable mode which will install all the dev dependencies:

git clone https://github.com/sdss/marvin
cd marvin
pip install -e ".[dev,web,db]"

This will install all dependencies needed for development and testing, including for the Marvin web/api server and the Marvin use of the MaNGA database.

Testing

To run the test suite on Marvin, use pytest tests/. By default this will run all tests against Marvin’s core file access mode, as well as its database and remote access modes. The test suite uses the following two galaxies: 8485-1901 and 7443-12701 for testing. To successfully run all tests you will need:

  • The file data for the two test galaxies

  • A local MaNGA database with the galaxy loaded into it

  • A local Marvin web server running

You can download the necessary test data with the command.

python bin/get_test_data.py

You can run a local Marvin web server with the following command. This will start a local web server running in debug mode on port 5000.

cd bin/
run_marvin -d -p 5000

You can disable database and web server tests by using Pytest markers. The availble markers and options are:

  • slow: Run only slow tests.

  • uses_db: Run only tests that use the database.

  • uses_web: Run only tests that use the web/api server.

  • –local-only: Run only tests that use local data.

To run the test suite minimally against the core marvin package with local file access, use the following command:

pytest --local-only -m "not uses_db and not uses_web and not slow" tests/

What is Marvin?

Marvin is a complete ecosystem designed for overcoming the challenge of searching, accessing, and visualizing the MaNGA data. It consists of a three-pronged approach of a web app, a python package, and an API. The web app, Marvin-web, provides an easily accessible interface for searching the MaNGA data and visual exploration of individual MaNGA galaxies or of the entire sample. The python package, in particular Marvin-tools, allows users to easily and efficiently interact with the MaNGA data via local files, files retrieved from the Science Archive Server, or data directly grabbed from the database. The tools come mainly in the form of convenience functions and classes for interacting with the data. An additional tool is a powerful query functionality that uses the API to query the MaNGA databases and return the search results to your python session. Marvin-API is the critical link that allows Marvin-tools and Marvin-web to interact with the databases, which enables users to harness the statistical power of the MaNGA data set.

Documentation

You can find the latest Marvin documentation here.

Citation and Acknowledgements

If you use Marvin for work/research presented in a publication (whether directly, or as a dependency to another package), we ask that you cite the Marvin Software (BibTeX). We provide the following as a standard acknowledgment you can use if there is not a specific place to cite the DOI:

*This research made use of Marvin, a core Python package and web framework for MaNGA data, developed by Brian Cherinka, José Sánchez-Gallego, Brett Andrews, and Joel Brownstein. (MaNGA Collaboration, 2018).*

Marvin’s Bibtex entry to use:

@ARTICLE{2019AJ....158...74C,
       author = {{Cherinka}, Brian and {Andrews}, Brett H. and
         {S{\'a}nchez-Gallego}, Jos{\'e} and {Brownstein}, Joel and
         {Argudo-Fern{\'a}ndez}, Mar{\'\i}a and {Blanton}, Michael and
         {Bundy}, Kevin and {Jones}, Amy and {Masters}, Karen and
         {Law}, David R. and {Rowlands}, Kate and {Weijmans}, Anne-Marie and
         {Westfall}, Kyle and {Yan}, Renbin},
        title = "{Marvin: A Tool Kit for Streamlined Access and Visualization of the SDSS-IV MaNGA Data Set}",
      journal = {\aj},
     keywords = {astronomical databases: miscellaneous, methods: data analysis, surveys, Astrophysics - Instrumentation and Methods for Astrophysics, Astrophysics - Astrophysics of Galaxies},
         year = 2019,
        month = aug,
       volume = {158},
       number = {2},
          eid = {74},
        pages = {74},
          doi = {10.3847/1538-3881/ab2634},
archivePrefix = {arXiv},
       eprint = {1812.03833},
 primaryClass = {astro-ph.IM},
       adsurl = {https://ui.adsabs.harvard.edu/abs/2019AJ....158...74C},
      adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}

License

Marvin is licensed under a 3-clause BSD style license - see the LICENSE.md file.

Release files for sdss-marvin 2.8.2

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

Source distribution (sdist)

Source distribution for sdss-marvin 2.8.2
File Size Uploaded
sdss_marvin-2.8.2.tar.gz 351.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sdss-marvin 2.8.2
File Interpreter ABI Platform
sdss_marvin-2.8.2-py3-none-any.whl Python 3 none any Details

Total release size: 766.4 kB

Release files / sdss_marvin-2.8.2.tar.gz

Download URL sdss_marvin-2.8.2.tar.gz
Size 351.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f09835ae3f2ad2bb19f671553b7c7602a5a6b8292a126dad2da6ca37e58adaa8
BLAKE2b-256 checksum
How to use checksums
4d7d1dc285fba5e081dd303e9da9d3bc3d828d372895eaee4dfb09a481091365
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 5, 2025.

Transparency log

Release files / sdss_marvin-2.8.2-py3-none-any.whl

Download URL sdss_marvin-2.8.2-py3-none-any.whl
Size 415.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
70a34362359d845f18480b1296a7e6aca46508ecb2872ec3479e74ecde667724
BLAKE2b-256 checksum
How to use checksums
5cb0d8b5a529aeb0e8434e095cbd137793864f90b0f6fcb5766690d180673fa1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 5, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

2.8.2 This release

2 release files

2.8.1

2 release files

2.8.0

2 release files

2.7.4

2 release files

2.7.3

2 release files

2.7.2

2 release files

2.7.1

2 release files

2.7.0

2 release files

2.6.1

2 release files

2.6.0

2 release files

2.5.4

2 release files

2.5.2

2 release files

2.5.0

2 release files

2.4.1

2 release files

2.4.0

2 release files

2.3.6

2 release files

2.3.5

2 release files

2.3.4

2 release files

2.3.2

2 release files

2.3.0

2 release files

2.2.6

2 release files

2.2.5

2 release files

2.2.4

2 release files

2.2.3

2 release files

2.2.2

2 release files

2.2.1

2 release files

2.2.0

2 release files

2.1.4

2 release files

2.1.3

3 release files

2.1.2

3 release files

2.1.0

3 release files

2.0.9

1 release file

2.0.8

2 release files

2.0.7

2 release files

2.0.6

2 release files

2.0.5

2 release files

2.0.4

2 release files

2.0.3

2 release files

2.0.2

2 release files

2.0.0

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