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

Added netcdf #273

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Added netcdf #273

wants to merge 8 commits into from

Conversation

montythind
Copy link
Contributor

CMD argument is available to define type of file.
Units have been added to csv file header
units added to header in netcdf

close #238

src/acom_music_box/music_box.py Outdated Show resolved Hide resolved
src/acom_music_box/music_box.py Show resolved Hide resolved
Copy link
Collaborator

@K20shores K20shores left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor changes in the code. Would you also please add some tests?

src/acom_music_box/data_output.py Outdated Show resolved Hide resolved
src/acom_music_box/data_output.py Outdated Show resolved Hide resolved
src/acom_music_box/data_output.py Outdated Show resolved Hide resolved
src/acom_music_box/music_box.py Outdated Show resolved Hide resolved
src/acom_music_box/music_box.py Outdated Show resolved Hide resolved
src/acom_music_box/data_output.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@K20shores K20shores left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add instructions to the readme that list how to output either csv, netcdf, or printing the csv to the screen

Copy link
Collaborator

@K20shores K20shores left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you run this

music_box -e Analytical --output-format netcdf

output is printed to the screen as csv data. There is not a printable netcdf format since it's a binary format. So, when the output is netcdf and no output path is given, I think we need to output anyway. Choose a default filename (maybe results, this would also close #237) and set the suffix to .nc or .csv based on the output format. What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow netcdf output
2 participants