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

Merged
merged 12 commits into from
Nov 12, 2024
Merged

Added netcdf #273

merged 12 commits into from
Nov 12, 2024

Conversation

montythind
Copy link
Contributor

@montythind montythind commented Nov 1, 2024

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 and #237

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?

K20shores
K20shores previously approved these changes Nov 8, 2024
boulderdaze
boulderdaze previously approved these changes Nov 8, 2024
Copy link
Collaborator

@boulderdaze boulderdaze left a comment

Choose a reason for hiding this comment

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

Looks good! I just have a minor request but it shouldn't prevent your PR from being merged.

src/acom_music_box/music_box.py Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
mattldawson
mattldawson previously approved these changes Nov 11, 2024
Copy link
Collaborator

@mattldawson mattldawson left a comment

Choose a reason for hiding this comment

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

nice!

Copy link
Collaborator

@mattldawson mattldawson left a comment

Choose a reason for hiding this comment

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

looks good!

@montythind montythind merged commit 825c560 into main Nov 12, 2024
4 checks passed
@montythind montythind deleted the Allow_netcdf_output_238 branch November 12, 2024 17:05
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
4 participants