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

Uploaded Source

Built Distribution

acom_music_box-2.3.1-py2.py3-none-any.whl (81.0 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: acom_music_box-2.3.1.tar.gz
  • Upload date:
  • Size: 68.9 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.1.tar.gz
Algorithm Hash digest
SHA256 9e9eea66c70f1d209b5adda96c94191f6d9a44c8cc6bc30a5a54d382522c1857
MD5 c6d4ae35846248e98997716f7261b303
BLAKE2b-256 4ef010adcfd4b9d2a9ef1cb21f2643e3c5616bf682055bdac1aa633cd61fc142

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for acom_music_box-2.3.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5a3f93c5df2f91f99bd327162bec880b6d44dc8227c98dae7582d44f44f0c5e0
MD5 2d32f9595e510cbaed2d162d33a25109
BLAKE2b-256 5ae5efd057035a526d4e6fbfbee9e27dd87b7d2ce2694029d32bce2b8b4d922a

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