@@ -28,15 +28,19 @@ def get_aperture_unit(unit_name: str, unit_system: VelociraptorUnits):
28
28
"""
29
29
30
30
# Correct any typos
31
- corrected_name = typo_correct (unit_name )
31
+ corrected_name = typo_correct (unit_name ). lower ()
32
32
33
33
key = {
34
- "SFR " : unit_system .star_formation_rate ,
35
- "Zmet " : unit_system .metallicity ,
34
+ "sfr " : unit_system .star_formation_rate ,
35
+ "zmet " : unit_system .metallicity ,
36
36
"mass" : unit_system .mass ,
37
37
"npart" : unyt .dimensionless ,
38
38
"rhalfmass" : unit_system .length ,
39
39
"veldisp" : unit_system .velocity ,
40
+ "r" : unit_system .length ,
41
+ "lx" : unit_system .length * unit_system .velocity ,
42
+ "ly" : unit_system .length * unit_system .velocity ,
43
+ "lz" : unit_system .length * unit_system .velocity ,
40
44
}
41
45
42
46
return key .get (corrected_name , None )
@@ -51,15 +55,15 @@ def get_particle_property_name_conversion(name: str, ptype: str):
51
55
52
56
corrected_name = typo_correct (name )
53
57
54
- combined_name = f"{ corrected_name } _{ ptype } "
58
+ combined_name = f"{ corrected_name } _{ ptype } " . lower ()
55
59
56
60
key = {
57
- "SFR_ " : "SFR $\dot{\\ rho}_*$" ,
58
- "SFR_gas " : "Gas SFR $\dot{\\ rho}_*$" ,
59
- "Zmet_ " : "Metallicity $Z$" ,
60
- "Zmet_gas " : "Gas Metallicity $Z_{\\ rm g}$" ,
61
- "Zmet_star " : "Star Metallicity $Z_*$" ,
62
- "Zmet_bh " : "Black Hole Metallicity $Z_{\\ rm BH}$" ,
61
+ "sfr_ " : "SFR $\dot{\\ rho}_*$" ,
62
+ "sfr_gas " : "Gas SFR $\dot{\\ rho}_*$" ,
63
+ "zmet_ " : "Metallicity $Z$" ,
64
+ "zmet_gas " : "Gas Metallicity $Z_{\\ rm g}$" ,
65
+ "zmet_star " : "Star Metallicity $Z_*$" ,
66
+ "zmet_bh " : "Black Hole Metallicity $Z_{\\ rm BH}$" ,
63
67
"mass_" : "Mass $M$" ,
64
68
"mass_gas" : "Gas Mass $M_{\\ rm g}$" ,
65
69
"mass_star" : "Stellar Mass $M_*$" ,
@@ -74,11 +78,12 @@ def get_particle_property_name_conversion(name: str, ptype: str):
74
78
"rhalfmass_gas" : "Gas Half-mass Radius $R_{50, {\\ rm g}}$" ,
75
79
"rhalfmass_star" : "Stellar Half-mass Radius $R_{50, *}$" ,
76
80
"rhalfmass_bh" : "Black Hole Half-mass Radius $R_{50, {\\ rm BH}}$" ,
81
+ "r_" : "Radius $R_{\\ rm SO}$" ,
77
82
"veldisp_" : "Velocity Dispersion $\sigma$" ,
78
83
"veldisp_gas" : "Gas Velocity Dispersion $\sigma_{\\ rm g}}$" ,
79
84
"veldisp_star" : "Stellar Velocity Dispersion $\sigma_{*}$" ,
80
85
"veldisp_bh" : "Black Hole Velocity Dispersion $\sigma_{\\ rm BH}$" ,
81
- "SubgridMasses_aperture_total_solar_mass_bh " : "Subgrid Black Hole Mass $M_{\\ rm BH}$" ,
86
+ "subgridmasses_aperture_total_solar_mass_bh " : "Subgrid Black Hole Mass $M_{\\ rm BH}$" ,
82
87
}
83
88
84
89
return key .get (combined_name , corrected_name )
0 commit comments