-
Notifications
You must be signed in to change notification settings - Fork 322
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(mfsfr2.py): isfropt and icalc read/write logic (#723)
* added unit tests covering all combinations of isfropt and icalc to t010_test.py
- Loading branch information
1 parent
c7856a5
commit 9f06345
Showing
66 changed files
with
996 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
FREE | ||
CONSTANT 1 | ||
-999 | ||
CONSTANT 1000. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
1 10 10 3 4 2 | ||
0 | ||
CONSTANT 100 | ||
CONSTANT 100 | ||
CONSTANT 1000. | ||
CONSTANT 0. | ||
365 365 1. TR | ||
365 365 1. TR | ||
365 365 1. TR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1 10 2000 1E-007 2 1 1 COMPLEX CONTINUE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
-1 -999.0 0 1 | ||
1 | ||
0 | ||
1 | ||
1 | ||
0 | ||
CONSTANT 2.0 | ||
CONSTANT 0.2 | ||
CONSTANT 1E-06 | ||
CONSTANT 0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
LIST 2 sfrtest.lst | ||
BAS6 8 sfrtest.bas | ||
DIS 9 sfrtest.dis | ||
UPW 7 sfrtest.upw | ||
NWT 10 sfrtest.nwt | ||
SFR 11 sfrtest00.sfr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
10 1 0 0 86400.0 0.0001 -1 0 0 15 1 30 | ||
1 5 1 1 1 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 2 1 2 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 3 1 3 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 4 1 4 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 5 1 5 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 6 1 6 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 7 1 7 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 8 1 8 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 9 1 9 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 10 1 10 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 1 1 | ||
1 0 0 0 100 50 0 0 | ||
45 5 1000 20 1 | ||
45 5 999 20 1 | ||
1 1 1 | ||
1 0 0 0 100 50 0 0 | ||
45 5 1000 20 1 | ||
45 5 999 20 1 | ||
1 1 1 | ||
1 0 0 0 100 50 0 0 | ||
45 5 1000 20 1 | ||
45 5 999 20 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
LIST 2 sfrtest.lst | ||
BAS6 8 sfrtest.bas | ||
DIS 9 sfrtest.dis | ||
UPW 10 sfrtest.upw | ||
SFR 11 sfrtest01.sfr | ||
NWT 12 sfrtest.nwt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
10 1 0 0 86400.0 0.0001 -1 0 0 15 1 30 | ||
1 5 1 1 1 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 2 1 2 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 3 1 3 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 4 1 4 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 5 1 5 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 6 1 6 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 7 1 7 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 8 1 8 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 9 1 9 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 10 1 10 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 1 1 | ||
1 1 0 0 100 50 0 0 0.25 | ||
45 5 1000 20 | ||
45 5 999 20 | ||
1 1 1 | ||
1 1 0 0 100 50 0 0 0.25 | ||
45 5 1000 20 | ||
45 5 999 20 | ||
1 1 1 | ||
1 1 0 0 100 50 0 0 0.25 | ||
45 5 1000 20 | ||
45 5 999 20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
LIST 2 sfrtest.lst | ||
BAS6 8 sfrtest.bas | ||
DIS 9 sfrtest.dis | ||
UPW 10 sfrtest.upw | ||
SFR 11 sfrtest02.sfr | ||
NWT 12 sfrtest.nwt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
10 1 0 0 86400.0 0.0001 -1 0 0 15 1 30 | ||
1 5 1 1 1 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 2 1 2 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 3 1 3 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 4 1 4 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 5 1 5 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 6 1 6 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 7 1 7 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 8 1 8 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 9 1 9 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 10 1 10 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 1 1 | ||
1 2 0 0 100 50 0 0 0.25 0.50 | ||
45 5 1000 | ||
45 5 999 | ||
0.0 0.2 0.3 0.4 0.6 0.7 0.8 1.0 | ||
10 9 7 3 3 7 9 10 | ||
1 1 1 | ||
1 2 0 0 100 50 0 0 0.25 0.50 | ||
45 5 1000 | ||
45 5 999 | ||
0.0 0.2 0.3 0.4 0.6 0.7 0.8 1.0 | ||
10 9 7 3 3 7 9 10 | ||
1 1 1 | ||
1 2 0 0 100 50 0 0 0.25 0.50 | ||
45 5 1000 | ||
45 5 999 | ||
0.0 0.2 0.3 0.4 0.6 0.7 0.8 1.0 | ||
10 9 7 3 3 7 9 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
LIST 2 sfrtest.lst | ||
BAS6 8 sfrtest.bas | ||
DIS 9 sfrtest.dis | ||
UPW 10 sfrtest.upw | ||
SFR 11 sfrtest03.sfr | ||
NWT 12 sfrtest.nwt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
10 1 0 0 86400.0 0.0001 -1 0 0 15 1 30 | ||
1 5 1 1 1 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 2 1 2 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 3 1 3 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 4 1 4 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 5 1 5 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 6 1 6 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 7 1 7 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 8 1 8 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 9 1 9 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 10 1 10 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 1 1 | ||
1 3 0 0 100 50 0 0 1 0.1 1 0.1 | ||
45 5 1000 | ||
45 5 999 | ||
1 1 1 | ||
1 3 0 0 100 50 0 0 1 0.1 1 0.1 | ||
45 5 1000 | ||
45 5 999 | ||
1 1 1 | ||
1 3 0 0 100 50 0 0 1 0.1 1 0.1 | ||
45 5 1000 | ||
45 5 999 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
LIST 2 sfrtest.lst | ||
BAS6 8 sfrtest.bas | ||
DIS 9 sfrtest.dis | ||
UPW 10 sfrtest.upw | ||
SFR 11 sfrtest04.sfr | ||
NWT 12 sfrtest.nwt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
10 1 0 0 86400.0 0.0001 -1 0 0 15 1 30 | ||
1 5 1 1 1 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 2 1 2 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 3 1 3 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 4 1 4 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 5 1 5 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 6 1 6 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 7 1 7 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 8 1 8 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 9 1 9 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 10 1 10 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 1 1 | ||
1 4 0 0 2 100 50 0 0 | ||
45 5 1000 | ||
45 5 999 | ||
10 100 | ||
1 2 | ||
4 8 | ||
1 1 1 | ||
1 4 0 0 2 100 50 0 0 | ||
45 5 1000 | ||
45 5 999 | ||
10 100 | ||
1 2 | ||
4 8 | ||
1 1 1 | ||
1 4 0 0 2 100 50 0 0 | ||
45 5 1000 | ||
45 5 999 | ||
10 100 | ||
1 2 | ||
4 8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
LIST 2 sfrtest.lst | ||
BAS6 8 sfrtest.bas | ||
DIS 9 sfrtest.dis | ||
UPW 10 sfrtest.upw | ||
SFR 11 sfrtest10.sfr | ||
NWT 12 sfrtest.nwt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
REACHINPUT | ||
10 1 0 0 86400.0 0.0001 -1 0 1 15 1 30 | ||
1 5 1 1 1 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 2 1 2 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 3 1 3 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 4 1 4 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 5 1 5 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 6 1 6 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 7 1 7 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 8 1 8 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 9 1 9 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 10 1 10 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 1 1 | ||
1 0 0 0 100 50 0 0 | ||
20 1 | ||
20 1 | ||
1 1 1 | ||
1 0 0 0 100 50 0 0 | ||
20 1 | ||
20 1 | ||
1 1 1 | ||
1 0 0 0 100 50 0 0 | ||
20 1 | ||
20 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
LIST 2 sfrtest.lst | ||
BAS6 8 sfrtest.bas | ||
DIS 9 sfrtest.dis | ||
UPW 10 sfrtest.upw | ||
SFR 11 sfrtest11.sfr | ||
NWT 12 sfrtest.nwt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
REACHINPUT | ||
10 1 0 0 86400.0 0.0001 -1 0 1 15 1 30 | ||
1 5 1 1 1 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 2 1 2 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 3 1 3 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 4 1 4 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 5 1 5 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 6 1 6 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 7 1 7 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 8 1 8 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 9 1 9 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 10 1 10 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 1 1 | ||
1 1 0 0 100 50 0 0 0.25 | ||
20 | ||
20 | ||
1 1 1 | ||
1 1 0 0 100 50 0 0 0.25 | ||
20 | ||
20 | ||
1 1 1 | ||
1 1 0 0 100 50 0 0 0.25 | ||
20 | ||
20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
LIST 2 sfrtest.lst | ||
BAS6 8 sfrtest.bas | ||
DIS 9 sfrtest.dis | ||
UPW 10 sfrtest.upw | ||
SFR 11 sfrtest12.sfr | ||
NWT 12 sfrtest.nwt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
REACHINPUT | ||
10 1 0 0 86400.0 0.0001 -1 0 1 15 1 30 | ||
1 5 1 1 1 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 2 1 2 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 3 1 3 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 4 1 4 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 5 1 5 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 6 1 6 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 7 1 7 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 8 1 8 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 9 1 9 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 5 10 1 10 150 1000 0.1 2 45 0.3 0.25 5 10 | ||
1 1 1 | ||
1 2 0 0 100 50 0 0 0.25 0.50 | ||
0.0 0.2 0.3 0.4 0.6 0.7 0.8 1.0 | ||
10 9 7 3 3 7 9 10 | ||
1 1 1 | ||
1 2 0 0 100 50 0 0 0.25 0.50 | ||
0.0 0.2 0.3 0.4 0.6 0.7 0.8 1.0 | ||
10 9 7 3 3 7 9 10 | ||
1 1 1 | ||
1 2 0 0 100 50 0 0 0.25 0.50 | ||
0.0 0.2 0.3 0.4 0.6 0.7 0.8 1.0 | ||
10 9 7 3 3 7 9 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
LIST 2 sfrtest.lst | ||
BAS6 8 sfrtest.bas | ||
DIS 9 sfrtest.dis | ||
UPW 10 sfrtest.upw | ||
SFR 11 sfrtest13.sfr | ||
NWT 12 sfrtest.nwt |
Oops, something went wrong.