Skip to main content

This is the music_box package.

Project description

MusicBox

MusicBox: A MUSICA model for boxes and columns.

License CI Status PyPI version

Copyright (C) 2020 National Center for Atmospheric Research

Installation

The project is configured to be installed using pip by the pyproject.toml file.

To install the music-box package into a Python environment, run the following command from the root directory:

pip install .

The package is also available on PyPi and can be installed in any Python environment through:

pip install acom_music_box

Tests

After installing music box for local development pip install -e .

cd tests
pytest

Command line tool

MusicBox provides a command line tool that can run configurations as well as some pre-configured examples. Basic plotting can be done if gnuplot is installed.

music_box -h                                        
usage: music_box [-h] [-c CONFIG] [-e {CB5,Chapman,FlowTube,Analytical}] [-o OUTPUT] [-v] [--color-output] [--plot PLOT]

MusicBox simulation runner.

optional arguments:
  -h, --help            show this help message and exit
  -c CONFIG, --config CONFIG
                        Path to the configuration file. If --example is provided, this argument is ignored.
  -e {CB5,Chapman,FlowTube,Analytical}, --example {CB5,Chapman,FlowTube,Analytical}
                        Name of the example to use. Overrides --config.
                        Available examples:
                        CB5: Carbon bond 5
                        Chapman: The Chapman cycle with conditions over Boulder, Colorado
                        FlowTube: A fictitious flow tube experiment
                        Analytical: An example of an analytical solution to a simple chemical system
  -o OUTPUT, --output OUTPUT
                        Path to save the output file, including the file name. If not provided, result will be printed to the console.
  -v, --verbose         Increase logging verbosity. Use -v for info, -vv for debug.
  --color-output        Enable color output for logs.
  --plot PLOT           Plot a comma-separated list of species if gnuplot is available (e.g., CONC.A,CONC.B).

To run one of the examples and plot something you would run

music_box -e Chapman -o output.csv -vv --color-output --plot CONC.O1D

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

acom_music_box-2.3.0.tar.gz (68.8 kB view details)

Uploaded Source

Built Distribution

acom_music_box-2.3.0-py2.py3-none-any.whl (80.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file acom_music_box-2.3.0.tar.gz.

File metadata

  • Download URL: acom_music_box-2.3.0.tar.gz
  • Upload date:
  • Size: 68.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for acom_music_box-2.3.0.tar.gz
Algorithm Hash digest
SHA256 d6770f6a70b73c7ec94fdbff1085fa20267d8500194866c850ad60a5e4189c3a
MD5 d491e9b67be19aea7e21b9f793df3616
BLAKE2b-256 770d59b11247bcd2c3bab5294447e279bb0e4ed07dc41f0edc2249b760d1dbbf

See more details on using hashes here.

File details

Details for the file acom_music_box-2.3.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for acom_music_box-2.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0b52499a9ec5d87b14d72d0d7041ba5c4ed1a9bd31766ed03083d9880337bcbf
MD5 60e153aeb4d55d7b1b8e108a8919cdd9
BLAKE2b-256 2f584a680b4d58f19347fbc059a5950b6dbdf8476e68e7c13702d6899986e53c

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