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.2.tar.gz (72.4 kB view details)

Uploaded Source

Built Distribution

acom_music_box-2.3.2-py2.py3-none-any.whl (85.0 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: acom_music_box-2.3.2.tar.gz
  • Upload date:
  • Size: 72.4 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.2.tar.gz
Algorithm Hash digest
SHA256 fda63e6d93d30077019666e5b917d3cda814a5d269be4c0d63d65f1439717a85
MD5 a8f89df7cd56e4c5903bab0ae10db624
BLAKE2b-256 c03b88d8efcf6240c909695d6b034df838abb6944f0c717cef832cd524cad9ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for acom_music_box-2.3.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 da08987b67a6cfea27049d6befbf43d8abc98b99bcc6383409ae5df37c7cc86e
MD5 95992c99dec3fc0f5ba2dfbfa1ca396f
BLAKE2b-256 f65961fe0e57b6dd9fd1134c49357c29e0bcf3e9da4cba297cb3a5c066c5bd95

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