-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
143d65f
commit 3d0187a
Showing
9 changed files
with
140 additions
and
69 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
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,2 +1 @@ | ||
from .fof_fields import * | ||
from .fof_types import * |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
from .soap_types import * |
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,47 @@ | ||
""" | ||
Includes the fancy names. | ||
""" | ||
|
||
# Describes the conversion of hdf5 groups to names | ||
def get_soap_name_underscore(group: str) -> str: | ||
soap_name_underscores = { | ||
"BoundSubhalo": "bound_subhalo", | ||
"InputHalos": "input_halos", | ||
"InclusiveSphere": "inclusive_sphere", | ||
"ExclusiveSphere": "exclusive_sphere", | ||
"SO": "spherical_overdensity", | ||
"SOAP": "soap", | ||
"ProjectedAperture": "projected_aperture", | ||
} | ||
split_name = group.split("/") | ||
split_name[0] = soap_name_underscores[split_name[0]] | ||
return "_".join(name.lower() for name in split_name) | ||
|
||
|
||
def get_soap_name_nice(group: str) -> str: | ||
soap_name_nice = { | ||
"BoundSubhalo": "BoundSubhalo", | ||
"InputHalos": "InputHalos", | ||
"InclusiveSphere": "InclusiveSphere", | ||
"ExclusiveSphere": "ExclusiveSphere", | ||
"SO": "SphericalOverdensity", | ||
"SOAP": "SOAP", | ||
"ProjectedAperture": "ProjectedAperture", | ||
} | ||
return "TODO" | ||
# TODO: | ||
# split_name = group.split('/') | ||
# split_name[0] = soap_name_underscores[split_name[0]] | ||
# return '_'.join(name.lower() for name in split_name) | ||
|
||
|
||
# TODO: | ||
soap_name_text = { | ||
"BoundSubhalo": "Bound Subhalo", | ||
"InputHalos": "Input Halos", | ||
"InclusiveSphere": "Inclusive Sphere", | ||
"ExclusiveSphere": "Exclusive Sphere", | ||
"SO": "Spherical Overdensities", | ||
"SOAP": "SOAP", | ||
"ProjectedAperture": "Projected Aperture", | ||
} |
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
Oops, something went wrong.