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

Warn when excess blank lines show up in an input model #525

Open
MicahGale opened this issue Aug 29, 2024 · 0 comments
Open

Warn when excess blank lines show up in an input model #525

MicahGale opened this issue Aug 29, 2024 · 0 comments
Labels
feature request An issue that improves the user interface. good first issue Good for newcomers

Comments

@MicahGale
Copy link
Collaborator

Is your feature request related to a problem? Please describe.

Sometimes when editing a model you accidently add an extra blank line in the middle of a block or maybe two blank lines at the end of a block that leads to MCNP (and MontePy) throwing out a lot of information.

MontePy can sometimes detect this (when this leads to material definitions missing, for instance). It would be nice if every time MontePy raised a warning.

Describe the solution you'd like
If MontePy finds more lines of information after it has decided it should be done reading it should raise a Warning.

Describe alternatives you've considered
Users could do a regex search for the number of blank lines in a model and where they are.

@MicahGale MicahGale added the feature request An issue that improves the user interface. label Aug 29, 2024
@MicahGale MicahGale added the good first issue Good for newcomers label Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request An issue that improves the user interface. good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant