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

Comments associated with read inputs are lost #524

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

Comments associated with read inputs are lost #524

MicahGale opened this issue Aug 29, 2024 · 0 comments
Labels
bugs A deviation from expected behavior that does not reach the level of being reportable as an "Error". low priority

Comments

@MicahGale
Copy link
Collaborator

Describe the bug

When a comment comes before (and probably after) a read input it cannot be parroted out again and disappears from the model. This was found during #520 testing with tests/inputs/testRead.imcnp.

To Reproduce

A short code snippet of what you have ran. Please change or remove any specific values or anything that can't be public. For example:

montepy.read_input("foo.imcnp").write_problem("bar.imcnp")

MCNP input file snippet

If applicable, please include a small section of the input file you were working on. If it includes any specific values please change or remove them. For example:

Testing read card
C this is a comment
read file=testReadTarget.imcnp

1 so 0.5

mode n   

which points to:

1 0 -1
c

This then prints out as:

Testing read card
1 0 -1
c

1 SO 0.5

mode n

IMP:n 0.0

Version

  • Version <=0.4.0

Additional context

This is similar scope to #143, and I think should be treated at the same time as that.

@MicahGale MicahGale added bugs A deviation from expected behavior that does not reach the level of being reportable as an "Error". low priority labels Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugs A deviation from expected behavior that does not reach the level of being reportable as an "Error". low priority
Projects
None yet
Development

No branches or pull requests

1 participant