Skip to content

🐛 Rewriting an IN.DAT changes the results #3899

@timothy-nunn

Description

@timothy-nunn

Describe the bug

Looking at, #3892 I have noticed that reading in an IN.DAT and writing it out to NEW.IN.DAT changes the resulting MFiles.

Steps to reproduce

from pathlib import Path

from process.io.in_dat import InDat

DIR = Path(__file__).parent

st_regress = DIR / "st_regression.IN.DAT"
out = InDat(filename=str(st_regress))

out.write_in_dat(
    output_filename=str(DIR / "new.IN.DAT")
)  

Next, run both files and compare the results (I tested this using the st_regression.IN.DAT in the regression test suite and got 362 differences)

Expected behaviour

The IN.DATs are the same, as are the resulting MFiles.

Metadata

Metadata

Assignees

Labels

Input/Output FilesIssues related to the input and output data files

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions