Do not print file headers when restarting#106
Conversation
Codecov Report
@@ Coverage Diff @@
## master #106 +/- ##
==========================================
+ Coverage 87.10% 87.13% +0.02%
==========================================
Files 41 41
Lines 5793 5805 +12
==========================================
+ Hits 5046 5058 +12
Misses 747 747
|
|
Well I did not mind having the headers there to remind me restart was needed. However with properly functioning code they should not be needed so feel free to go ahead. |
|
@suchanj good point, that was also a reason why I didn't mind them. This commit makes it easier to process the files, since one can just skip the first line, and don't worry about anything extra. But my main motivation here was for tests. Specifically, I wanted to be able to easily test whether restarted simulation gives the same result as the continuous simulation. Now I can do something like this: and see whether the test passes. Previously the extra header lines would mess that up. Nevertheless, with the refactor done here we can easily go back if we want. |
Aside from being nicer, this will also enable to more easily test that we get the same results when restarting.