You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When writing out a file, MontePy adds 2 unnecessary blank line delimiters.
Describe the solution you'd like
Do not add newlines that are not present in the original file.
Describe alternatives you've considered
Always rstrip("\n"), but that would get rid of any that the user included and may want to keep.
Additional context
This is trivial, and mildly annoying at worst. If MontePy supports writing sections of the Cell, Surface, and Data blocks to other files for use with read file=..., however, it could introduce bugs.
The only other use case I can imagine where this would be relevant is if a user writes to a stream and then manually writes additional data cards after MontePy is done.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
When writing out a file, MontePy adds 2 unnecessary blank line delimiters.
Describe the solution you'd like
Do not add newlines that are not present in the original file.
Describe alternatives you've considered
Always
rstrip("\n")
, but that would get rid of any that the user included and may want to keep.Additional context
This is trivial, and mildly annoying at worst. If MontePy supports writing sections of the Cell, Surface, and Data blocks to other files for use with
read file=...
, however, it could introduce bugs.The only other use case I can imagine where this would be relevant is if a user writes to a stream and then manually writes additional data cards after MontePy is done.
The text was updated successfully, but these errors were encountered: