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

Refactor cat_dset_3D.py to provide an interface #303

Merged
merged 1 commit into from Jun 21, 2023

Conversation

bcaddy
Copy link
Collaborator

@bcaddy bcaddy commented Jun 20, 2023

The cat_dset_3D.py script required manual changes to use it. This made it impossible to use in an automated way and tricky to use manually. To address this it needed both a CLI interface and a python interface for calling from within another python script. Both have been added by moving all the concatenation code into the concat_3d function which handles the python interface and the new main function handles the CLI interface then calls concat_3d.

Also adds pycache to the .gitignore along with some formatting to remove unnecessary newlines.

The cat_dset_3D.py script required manual changes to use it. This made
it impossible to use in an automated way and tricky to use manually. To
address this it needed both a CLI interface and a python interface for
calling from within another python script. Both have been added by
moving all the concatenation code into the `concat_3d` function which
handles the python interface and the new `main` function handles the CLI
interface then calls `concat_3d`.

Also adds __pycache__ to gitignore.
@evaneschneider evaneschneider merged commit f14f921 into cholla-hydro:dev Jun 21, 2023
9 checks passed
@bcaddy bcaddy deleted the dev-refactorCat3D branch June 29, 2023 14:01
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.

None yet

2 participants