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

[BUGS]: Some quick i/o bugfixes #162

Open
wants to merge 5 commits into
base: ion_vertical_advection
Choose a base branch
from

Conversation

abukowski21
Copy link
Collaborator

@abukowski21 abukowski21 commented Jan 7, 2025

Make sure dt is specified for each output type, and change default inputs

Some super minor bug fixes. And a little new feature:

  • If there were more output types than dt's, there would be an out-of-range json error and no more info. this catches those errors.
  • Cent_acc was not included in the default input file
    • Centripetal and Cent_acc are both checked? IDK if this is right.
    • See here. Centripetal is not used, only calc_cent_acc - in main
  • If Ions output type is specified, output the magnetic coordinates
    • MLT is not right, but the magnetic coordinates are output

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)

How Has This Been Tested?

Tested with correct, and incorrect input files. Errors were caught correctly.

Test configuration

-WSL Ubuntu gcc/g++ 13

Checklist:

  • [N/A] Make sure you are merging into the develop (not master) branch
  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • [N/A] I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • [N/A] I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • [N/A] Add a note to CHANGELOG.md, summarizing the changes

…iles.

This seems redundant, since  "Centripetal" is also checked, but this prevents the error...

Mayber instead we should check just one or the other.
… each type has a dt

> Otherwise, there are out-of-range json errors with mo more info.
> I really wanted to get these out. That's why I did all those previous commits.
@abukowski21
Copy link
Collaborator Author

SUPER minor changes here. Wanted to get them into the most recently active branch rather than develop to prevent merge conflicts later.

@abukowski21 abukowski21 marked this pull request as ready for review January 7, 2025 21:22
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.

1 participant