At this point the external file still has the header. But after sim.write_simulation() the header disappears. This happens with external files in the DRN, GHB, and WEL packages, but does not appear to happen with reach or connection data in the SFR package.
Expected behavior
I expect the original external file to remain unchanged by flopy to preserve any pre or post processing that may rely on the headers, as is the case with the SFR reach data and SFR connection data.
Desktop (please complete the following information):
Describe the bug
Headers on external files are being dropped after calling
sim.write_simulation()
withsim.set_all_data_external()
.To Reproduce Create external files with a # header:
Add the package to model:
At this point the external file still has the header. But after
sim.write_simulation()
the header disappears. This happens with external files in the DRN, GHB, and WEL packages, but does not appear to happen with reach or connection data in the SFR package.Expected behavior I expect the original external file to remain unchanged by flopy to preserve any pre or post processing that may rely on the headers, as is the case with the SFR reach data and SFR connection data.
Desktop (please complete the following information):