-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* more units
- Loading branch information
Showing
13 changed files
with
129 additions
and
19 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,37 @@ | ||
metadata_unitsystem: cgs # this means we have a cgs conversion factor available | ||
units: | ||
fields: | ||
_all: | ||
Coordinates: Mpc | ||
Masses: 10^10 Msun | ||
Velocities: km / s | ||
ParticleIDs: none | ||
Softenings: Mpc # guess | ||
PartType0: | ||
GFM_Metallicity: none | ||
GFM_Metals: none | ||
DivergenceOfMagneticField: unknown | ||
HighResGasMass: 10^10 Msun # guess | ||
PartType4: | ||
AccretedFlag: none | ||
BirthPos: Mpc | ||
BirthVel: km / s | ||
GFM_StellarFormationTime: Gyr | ||
GFM_Metallicity: none | ||
GFM_Metals: none | ||
GFM_StellarPhotometrics: # TODO: mag | ||
GravForce: km / s^2 / Mpc | ||
GravPotential: (km / s)^2 | ||
PartType5: | ||
BH_HaloVvir: km / s # guess | ||
BH_HsmlDM: Mpc # guess | ||
BH_Mdot_Quasar: Msun / yr # guess | ||
BH_Mdot_Radio: Msun / yr # guess | ||
BH_RadioLuminosity: unknown | ||
BH_RhoDM: unknown | ||
BH_TimeStep: unknown | ||
BH_VelDM: km / s # guess | ||
BH_XrayLuminosity: unknown | ||
Group: | ||
GroupRadioLuminosity: unknown | ||
GroupXrayLuminosity: unknown |
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
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
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
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,13 @@ | ||
import logging | ||
|
||
from scida import load | ||
from tests.testdata_properties import require_testdata_path | ||
|
||
|
||
@require_testdata_path("interface") | ||
def test_allunitsdiscovered(testdatapath, caplog): | ||
load(testdatapath) | ||
caplog.set_level(logging.DEBUG) | ||
assert ( | ||
"Cannot determine units from neither unit file nor metadata" not in caplog.text | ||
) |
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 @@ | ||
from scida import ArepoSnapshot | ||
from scida.convenience import load | ||
from tests.testdata_properties import require_testdata_path | ||
|
||
|
||
@require_testdata_path("interface", only=["AURIGA66_snapshot"]) | ||
def test_series(testdatapath): | ||
obj = load(testdatapath) | ||
assert isinstance(obj, ArepoSnapshot) |
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