-
-
Notifications
You must be signed in to change notification settings - Fork 403
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
Fix issue with custom_composition reader #843
Merged
wkerzendorf
merged 10 commits into
tardis-sn:master
from
unoebauer:fix_custom_abundance_reader
Jul 23, 2018
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
07a8b9e
Update read_csv call in read_csv_isotope_abundances
unoebauer 8db1982
Update docstring
unoebauer 348b3b9
Update documentation
unoebauer 678c525
Add testing data files
unoebauer 3c8b6fd
Update cmfgen_density reader
unoebauer 27c376c
Fix remaining shape mismatches in model_reader.py
unoebauer 99a9051
Extend tests
unoebauer 506fe33
Fix reference values in tests
unoebauer fbe5ae7
Fix cmfgen composition reader
unoebauer 91be33c
Fix cmfgen reader tests
unoebauer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
C O Mg Si Ni56 Ni58 | ||
0 0 0 0.6 0.4 0 | ||
0 0 0 0.1 0.5 0.4 | ||
0 0 0 0.3 0 0.7 | ||
0 0.2 0.8 0 0 0 | ||
0 0.3 0.7 0 0 0 | ||
0 0.2 0.8 0 0 0 | ||
0 0.2 0.8 0 0 0 | ||
0 0.2 0.8 0 0 0 | ||
0.5 0.5 0 0 0 0 | ||
0.5 0.5 0 0 0 0 | ||
Index C O Mg Si Ni56 Ni58 | ||
0 0 0 0 0.6 0.4 0 | ||
1 0 0 0 0.1 0.5 0.4 | ||
2 0 0 0 0.3 0 0.7 | ||
3 0 0.2 0.8 0 0 0 | ||
4 0 0.3 0.7 0 0 0 | ||
5 0 0.2 0.8 0 0 0 | ||
6 0 0.2 0.8 0 0 0 | ||
7 0 0.2 0.8 0 0 0 | ||
8 0.5 0.5 0 0 0 0 | ||
9 0.5 0.5 0 0 0 0 |
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
t0: 0.976 day | ||
velocity temperature densities electron_densities C O Mg Si Ni56 Ni58 | ||
km/s K g/cm^3 /cm^3 1 1 1 1 1 1 | ||
871.66905 76395.577 4.2537191E-09 2.60E+14 0 0 0 0.6 0.4 0 | ||
877.44269 76395.577 4.2537191E-09 2.60E+14 0 0 0 0.1 0.5 0.4 | ||
894.99407 76395.631 4.2537191E-09 2.60E+14 0 0 0 0.3 0 0.7 | ||
931.1571 76396.057 4.2537191E-09 2.60E+14 0 0.2 0.8 0 0 0 | ||
990.30752 76399.042 4.2537271E-09 2.60E+14 0 0.3 0.7 0 0 0 | ||
1050.8676 76411.983 4.2539537E-09 2.60E+14 0 0.2 0.8 0 0 0 | ||
1115.1545 76459.592 4.2563604E-09 2.60E+14 0 0.2 0.8 0 0 0 | ||
1183.3741 76633.367 4.2683079E-09 2.61E+14 0 0.2 0.8 0 0 0 | ||
1255.767 77312.12 4.290997E-09 2.64E+14 0.5 0.5 0 0 0 0 | ||
1332.5886 79602.375 4.3396835E-09 2.72E+14 0.5 0.5 0 0 0 0 | ||
Index velocity temperature densities electron_densities C O Mg Si Ni56 Ni58 | ||
- km/s K g/cm^3 /cm^3 1 1 1 1 1 1 | ||
0 871.66905 76395.577 4.2537191E-09 2.60E+14 0 0 0 0.6 0.4 0 | ||
1 877.44269 76395.577 4.2537191E-09 2.60E+14 0 0 0 0.1 0.5 0.4 | ||
2 894.99407 76395.631 4.2537191E-09 2.60E+14 0 0 0 0.3 0 0.7 | ||
3 931.1571 76396.057 4.2537191E-09 2.60E+14 0 0.2 0.8 0 0 0 | ||
4 990.30752 76399.042 4.2537271E-09 2.60E+14 0 0.3 0.7 0 0 0 | ||
5 1050.8676 76411.983 4.2539537E-09 2.60E+14 0 0.2 0.8 0 0 0 | ||
6 1115.1545 76459.592 4.2563604E-09 2.60E+14 0 0.2 0.8 0 0 0 | ||
7 1183.3741 76633.367 4.2683079E-09 2.61E+14 0 0.2 0.8 0 0 0 | ||
8 1255.767 77312.12 4.290997E-09 2.64E+14 0.5 0.5 0 0 0 0 | ||
9 1332.5886 79602.375 4.3396835E-09 2.72E+14 0.5 0.5 0 0 0 0 |
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
C O Mg Si Ni56 Ni58 | ||
1 1 1 1 1 1 | ||
0 0 0 0.6 0.4 0 | ||
0 0 0 0.1 0.5 0.4 | ||
0 0 0 0.3 0 0.7 | ||
0 0.2 0.8 0 0 0 | ||
0 0.3 0.7 0 0 0 | ||
0 0.2 0.8 0 0 0 | ||
0 0.2 0.8 0 0 0 | ||
0 0.2 0.8 0 0 0 | ||
0.5 0.5 0 0 0 0 | ||
0.5 0.5 0 0 0 0 | ||
Index C O Mg Si Ni56 Ni58 | ||
0 1 1 1 1 1 1 | ||
1 0 0 0 0.6 0.4 0 | ||
2 0 0 0 0.1 0.5 0.4 | ||
3 0 0 0 0.3 0 0.7 | ||
4 0 0.2 0.8 0 0 0 | ||
5 0 0.3 0.7 0 0 0 | ||
6 0 0.2 0.8 0 0 0 | ||
7 0 0.2 0.8 0 0 0 | ||
8 0 0.2 0.8 0 0 0 | ||
9 0.5 0.5 0 0 0 0 | ||
10 0.5 0.5 0 0 0 0 |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's rename it into
skiprows
to be in line with pandas