Skip to content

fix wrongly reporting multiple obsolete vars when only one is present in input file#3024

Merged
timothy-nunn merged 2 commits intomainfrom
3020-bug-multiple-obsolete-variables-reported-when-only-one-is-present-in-input-file
Feb 8, 2024
Merged

fix wrongly reporting multiple obsolete vars when only one is present in input file#3024
timothy-nunn merged 2 commits intomainfrom
3020-bug-multiple-obsolete-variables-reported-when-only-one-is-present-in-input-file

Conversation

@clmould
Copy link
Copy Markdown
Collaborator

@clmould clmould commented Jan 18, 2024

Description

Closes #3020

  • added missing obsolete variables to obsolete_vars.py
  • added ValueError to report obsolete variables to replace STOP 1

Checklist

I confirm that I have completed the following checks:

  • I have justified any large differences in the regression tests caused by this pull request in the comments.
  • I have added new tests where appropriate for the changes I have made.
  • If I have had to change any existing unit or integration tests, I have justified this change in the pull request comments.
  • If I have made documentation changes, I have checked they render correctly.
  • I have added documentation for my change, if appropriate.

… in input file

    - add missing obsolete variables to obsolete_vars.py
    - add ValueError to report obsolete variables to replace STOP 1
@clmould clmould requested a review from timothy-nunn January 18, 2024 10:39
@clmould clmould marked this pull request as ready for review January 18, 2024 10:39
Copy link
Copy Markdown
Collaborator

@timothy-nunn timothy-nunn left a comment

Choose a reason for hiding this comment

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

I like the idea of consolidating the help message and hints into obsolete_vars.py however I think the logic that generates the error messages could be improved to provide more flexibility when defining a obsolete variable that has no replacement but has a help message.

In fact, I'm not so sure stellarator_message would be printed out if you added one of the obsolete variables (from the Kallenbach model) to it.

Comment thread process/io/obsolete_vars.py Outdated
Comment thread process/main.py Outdated
Comment thread process/main.py Outdated
Comment thread process/main.py Outdated
Comment thread process/main.py Outdated
Comment thread source/fortran/input.f90
@clmould clmould requested a review from timothy-nunn January 31, 2024 14:37
@timothy-nunn timothy-nunn merged commit a291f81 into main Feb 8, 2024
@timothy-nunn timothy-nunn deleted the 3020-bug-multiple-obsolete-variables-reported-when-only-one-is-present-in-input-file branch February 8, 2024 09:35
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.

[BUG] Multiple obsolete variables reported when only one is present in input file

2 participants