Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated README.md and tests expected results #155

Merged
merged 1 commit into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 41 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,35 +9,58 @@ MusicBox: A MUSICA model for boxes and columns.

Copyright (C) 2020 National Center for Atmospheric Research

# CMake build
# Installation

The cmake creates an executable called `music_box`, as well as a set of tests.
The project is configured to be installed using `pip` by the `pyproject.toml` file.

## Windows
This package requires [`musica`](https://pypi.org/project/musica/) to be installed in order to run. `musica` can be installed by running:

```
mkdir build
cd build
cmake ..
cmake --build . --config Release
ctest -C Release --output-on-failure
pip install musica==0.6.1.dev0
```

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

```
mkdir build
cd build
cmake ..
make
make test
pip install .
```

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

To build the docker image
```
pip install acom_music_box
```

# Tests

The tests directory contains 4 different tests that can be ran with [PyTest](https://docs.pytest.org/en/8.2.x/). PyTest can be installed by running:

```
pip install pytest
```

After PyTest is intalled, the tests can be ran through the following commands from the root directory:

```
docker build -t music_box .
docker run --rm -it music_box
cd tests
pytest
```

# Documentation

MusicBox documentation can be built using [Sphinx](https://www.sphinx-doc.org/en/master/). Sphinx can be installed by running:

```
pip install sphinx
```

After installing Sphinx, the documentation can be generated by running the following commands in the root directory:

```
cd doc/sphinx_files
make html
```

Then, open `music-box/doc/sphinx_files/build/html/index.html` in a browser.

The documentation includes more detailed instructions for configuring the model, along with developer resources.
Loading
Loading