Science Score: 67.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 3 DOI reference(s) in README
  • Academic publication links
    Links to: arxiv.org, zenodo.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (17.6%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

Basic Info
  • Host: GitHub
  • Owner: bmcguir2
  • License: gpl-3.0
  • Language: Python
  • Default Branch: master
  • Size: 1.54 MB
Statistics
  • Stars: 5
  • Watchers: 3
  • Forks: 10
  • Open Issues: 33
  • Releases: 8
Created almost 6 years ago · Last pushed 11 months ago
Metadata Files
Readme License Citation

README.md

molsim

Simulation tools for radio molecular spectra

molsim is a Python 3 package that provides an object-oriented interface for analyzing molecular spectra in high resolution astronomical observations and laboratory data. Key features of molsim include:

  1. Line profile simulation
  2. Velocity stacking
  3. Interface to emcee for MCMC analysis
  4. Matched filter analysis

For details about the methodology, particularly with respect to MCMC simulations, please refer to Loomis et al. 2020

If you use molsim for your analysis, please cite the Zenodo entry: DOI

Setup instructions

For science-ready code, we recommend downloading one of the releases—these are verified to the best of our ability to be accurate. If there are any indications otherwise, please submit an issue!

For the latest build, either for testing or for contributing, please clone the development branch of this repository.

We recommend using conda for maintaining Python environments. Once you have acquired the code either from downloading a release or cloning the repository, you can create a new conda environment (called molsim) by running the following in the molsim directory:

conda env create -n molsim -f conda.yml

followed by:

conda activate molsim

to change the Anaconda environment, and then

pip install .

which will then install molsim into your Anaconda/Python installation.

For developers/testers, you should make a fork of this repository, and make changes to the development branch. To separate science/production and development environments, make a new conda environment with the following command:

conda env create -n molsim-dev -f conda.yml

followed by:

pip install -e .\[dev\]

The backslashes are required to escape the [] characters for zsh, although you may not have that issue on other shells/OS'. This will install molsim as a softlink so that changes are updated on the fly, while the [dev] option installs additional packages such as pytest, and black for formatting.

Use with notebook environments

A common way to interact with notebook environments is to have a base environment installation of jupyter. To use the Python kernel installed as part of the molsim environment with the base environment, using these steps:

  1. conda activate molsim
  2. python -m ipykernel install --user --name molsim --display-name "molsim-jupyter"

This links the IPython kernel with the jupyter installation. You'll then be able to start a notebook with the environment called "molsim-jupyter".

Contributions

The large majority of molsim was written by @bmcguir2, building on top of earlier code (simulate_lte).

The mcmc module was written by @laserkelvin, based heavily on earlier code by @ryanaloomis (see his repo here), which was used for the DR1 GOTHAM data analysis. The radex module was written by @cixue, implemented based on the RADEX non-LTE radiative transfer code, and accelerated with Numba to provide the high performance required for MCMC analysis.

Any issues, please submit an issue, reporting what you think should happen and what actually happens.

Owner

  • Name: Brett A. McGuire
  • Login: bmcguir2
  • Kind: user
  • Company: Massachusetts Institute of Technology

Citation (CITATION.cff)

cff-version: 1.0.0
message: "If you use `molsim` for your spectral simulations, velocity stacking, and/or MCMC functionality please cite this entry."
authors:
  - family-names: Lee
    given-names: Kin Long Kelvin
    orcid: https://orcid.org/0000-0002-1903-9242
  - family-names: Loomis
    given-names: Ryan A.
    orcid: https://orcid.org/0000-0002-8932-1219
  - family-names: Xue
    given-names: Ci
    orcid: https://orcid.org/0000-0003-2760-2119
  - family-names: El-Abd
    given-names: Samer
  - family-names: McGuire
    given-names: Brett A.
    orcid: https://orcid.org/0000-0003-1254-4817
title: "molsim"
version: 0.3.0
doi: 10.5281/zenodo.5092150
date-released: 2021-07-12

GitHub Events

Total
  • Issues event: 2
  • Watch event: 2
  • Push event: 3
Last Year
  • Issues event: 2
  • Watch event: 2
  • Push event: 3

Dependencies

.github/workflows/change_release.yml actions
  • ScottBrenner/generate-changelog-action v1.3.3 composite
  • actions/checkout v2 composite
  • actions/create-release latest composite
.github/workflows/main.yml actions
  • actions/checkout v2 composite
  • actions/setup-python v2.2.1 composite
package.json npm
setup.py pypi