Skip to content

Commit a71a795

Browse files
authored
Merge pull request #111 from SWIFTSIM/support_new_soap_output
Support new soap output format
2 parents c382416 + 4207dfc commit a71a795

3 files changed

Lines changed: 115 additions & 151 deletions

File tree

velociraptor/catalogue/soap_catalogue.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,9 @@ def _register_metadata(self, handle: h5py.File):
141141
"""
142142
metadata = handle[self.name].attrs
143143
factor = (
144-
metadata["Conversion factor to CGS (including cosmological corrections)"][0]
144+
metadata[
145+
"Conversion factor to physical CGS (including cosmological corrections)"
146+
][0]
145147
* unyt.A ** metadata["U_I exponent"][0]
146148
* unyt.cm ** metadata["U_L exponent"][0]
147149
* unyt.g ** metadata["U_M exponent"][0]
@@ -374,6 +376,8 @@ def _register_elements(self, handle: h5py.File):
374376
"""
375377
h5group = handle[self.name] if self.name != "" else handle["/"]
376378
for (key, h5obj) in h5group.items():
379+
if key == "Cells":
380+
continue
377381
if isinstance(h5obj, h5py.Group):
378382
el = CatalogueGroup(self.file_name, f"{self.name}/{key}", handle)
379383
dynamically_register_properties(el)
@@ -526,22 +530,21 @@ def _register_quantities(self):
526530
"""
527531
with h5py.File(self.file_name, "r") as handle:
528532
self.root = CatalogueGroup(self.file_name, "", handle)
529-
cosmology = handle["SWIFT/Cosmology"].attrs
533+
cosmology = handle["Cosmology"].attrs
530534
# set up a dummy units object for compatibility with the old VR API
531535
self.units = SimpleNamespace()
532536
self.a = cosmology["Scale-factor"][0]
533537
self.units.scale_factor = cosmology["Scale-factor"][0]
534538
self.z = cosmology["Redshift"][0]
535539
self.units.redshift = cosmology["Redshift"][0]
536540

537-
swift_units = SWIFTUnitsMockup(dict(handle["SWIFT/Units"].attrs))
541+
swift_units = SWIFTUnitsMockup(dict(handle["Units"].attrs))
538542
self.cosmology = swift_cosmology_to_astropy(dict(cosmology), swift_units)
539543

540544
# get the box size and length unit from the SWIFT header and unit metadata
541545
boxsize = handle["SWIFT/Header"].attrs["BoxSize"][0]
542546
boxsize_unit = (
543-
handle["SWIFT/InternalCodeUnits"].attrs["Unit length in cgs (U_L)"][0]
544-
* unyt.cm
547+
handle["Units"].attrs["Unit length in cgs (U_L)"][0] * unyt.cm
545548
).in_base("galactic")
546549
boxsize *= boxsize_unit
547550
physical_boxsize = self.a * boxsize

velociraptor/catalogue/translator.py

Lines changed: 105 additions & 144 deletions
Original file line numberDiff line numberDiff line change
@@ -369,24 +369,24 @@ def VR_to_SOAP(particle_property_name: str) -> str:
369369
"angular_momentum.lx_200m_star": ("so.200_mean.angularmomentumstars", 0),
370370
"angular_momentum.lx_bn98_gas": ("so.bn98.angularmomentumgas", 0),
371371
"angular_momentum.lx_bn98_star": ("so.bn98.angularmomentumstars", 0),
372-
"angular_momentum.lx_gas": ("boundsubhaloproperties.angularmomentumgas", 0),
373-
"angular_momentum.lx_star": ("boundsubhaloproperties.angularmomentumstars", 0),
372+
"angular_momentum.lx_gas": ("boundsubhalo.angularmomentumgas", 0),
373+
"angular_momentum.lx_star": ("boundsubhalo.angularmomentumstars", 0),
374374
"angular_momentum.ly_200c_gas": ("so.200_crit.angularmomentumgas", 1),
375375
"angular_momentum.ly_200c_star": ("so.200_crit.angularmomentumstars", 1),
376376
"angular_momentum.ly_200m_gas": ("so.200_mean.angularmomentumgas", 1),
377377
"angular_momentum.ly_200m_star": ("so.200_mean.angularmomentumstars", 1),
378378
"angular_momentum.ly_bn98_gas": ("so.bn98.angularmomentumgas", 1),
379379
"angular_momentum.ly_bn98_star": ("so.bn98.angularmomentumstars", 1),
380-
"angular_momentum.ly_gas": ("boundsubhaloproperties.angularmomentumgas", 1),
381-
"angular_momentum.ly_star": ("boundsubhaloproperties.angularmomentumstars", 1),
380+
"angular_momentum.ly_gas": ("boundsubhalo.angularmomentumgas", 1),
381+
"angular_momentum.ly_star": ("boundsubhalo.angularmomentumstars", 1),
382382
"angular_momentum.lz_200c_gas": ("so.200_crit.angularmomentumgas", 2),
383383
"angular_momentum.lz_200c_star": ("so.200_crit.angularmomentumstars", 2),
384384
"angular_momentum.lz_200m_gas": ("so.200_mean.angularmomentumgas", 2),
385385
"angular_momentum.lz_200m_star": ("so.200_mean.angularmomentumstars", 2),
386386
"angular_momentum.lz_bn98_gas": ("so.bn98.angularmomentumgas", 2),
387387
"angular_momentum.lz_bn98_star": ("so.bn98.angularmomentumstars", 2),
388-
"angular_momentum.lz_gas": ("boundsubhaloproperties.angularmomentumgas", 2),
389-
"angular_momentum.lz_star": ("boundsubhaloproperties.angularmomentumstars", 2),
388+
"angular_momentum.lz_gas": ("boundsubhalo.angularmomentumgas", 2),
389+
"angular_momentum.lz_star": ("boundsubhalo.angularmomentumstars", 2),
390390
"masses.mass_200crit": ("so.200_crit.totalmass", -1),
391391
"masses.mass_200crit_gas": ("so.200_crit.gasmass", -1),
392392
"masses.mass_200crit_star": ("so.200_crit.stellarmass", -1),
@@ -396,11 +396,11 @@ def VR_to_SOAP(particle_property_name: str) -> str:
396396
"masses.mass_bn98": ("so.bn98.totalmass", -1),
397397
"masses.mass_bn98_gas": ("so.bn98.gasmass", -1),
398398
"masses.mass_bn98_star": ("so.bn98.stellarmass", -1),
399-
"masses.mass_fof": ("fofsubhaloproperties.totalmass", -1),
400-
"masses.mass_bh": ("boundsubhaloproperties.blackholesdynamicalmass", -1),
401-
"masses.mass_gas": ("boundsubhaloproperties.gasmass", -1),
402-
"masses.mass_star": ("boundsubhaloproperties.stellarmass", -1),
403-
"masses.mass_tot": ("boundsubhaloproperties.totalmass", -1),
399+
"masses.mass_fof": ("boundsubhalo.totalmass", -1),
400+
"masses.mass_bh": ("boundsubhalo.blackholesdynamicalmass", -1),
401+
"masses.mass_gas": ("boundsubhalo.gasmass", -1),
402+
"masses.mass_star": ("boundsubhalo.stellarmass", -1),
403+
"masses.mass_tot": ("boundsubhalo.totalmass", -1),
404404
"projected_apertures.projected_1_sfr_gas_100_kpc": (
405405
"projectedaperture.100kpc.projx.starformationrate",
406406
-1,
@@ -692,10 +692,10 @@ def VR_to_SOAP(particle_property_name: str) -> str:
692692
"radii.r_200crit": ("so.200_crit.soradius", -1),
693693
"radii.r_200mean": ("so.200_mean.soradius", -1),
694694
"radii.r_bn98": ("so.bn98.soradius", -1),
695-
"radii.r_halfmass": ("boundsubhaloproperties.halfmassradiustotal", -1),
696-
"radii.r_halfmass_gas": ("boundsubhaloproperties.halfmassradiusgas", -1),
697-
"radii.r_halfmass_star": ("boundsubhaloproperties.halfmassradiusstars", -1),
698-
"star_formation_rate.sfr_gas": ("boundsubhaloproperties.starformationrate", -1),
695+
"radii.r_halfmass": ("boundsubhalo.halfmassradiustotal", -1),
696+
"radii.r_halfmass_gas": ("boundsubhalo.halfmassradiusgas", -1),
697+
"radii.r_halfmass_star": ("boundsubhalo.halfmassradiusstars", -1),
698+
"star_formation_rate.sfr_gas": ("boundsubhalo.starformationrate", -1),
699699
"spherical_overdensities.lx_gas_1000_rhocrit": (
700700
"so.1000_crit.angularmomentumgas",
701701
0,
@@ -851,114 +851,50 @@ def VR_to_SOAP(particle_property_name: str) -> str:
851851
"spherical_overdensities.r_200_rhocrit": ("so.200_crit.soradius", -1),
852852
"spherical_overdensities.r_2500_rhocrit": ("so.2500_crit.soradius", -1),
853853
"spherical_overdensities.r_500_rhocrit": ("so.500_crit.soradius", -1),
854-
"structure_type.structuretype": ("vr.structuretype", -1),
855-
"black_hole_masses.max": (
856-
"boundsubhaloproperties.mostmassiveblackholemass",
857-
-1,
858-
),
859-
"temperature.t_gas": ("boundsubhaloproperties.gastemperature", -1),
854+
"structure_type.structuretype": ("inputhalos.iscentral", -1),
855+
"black_hole_masses.max": ("boundsubhalo.mostmassiveblackholemass", -1),
856+
"temperature.t_gas": ("boundsubhalo.gastemperature", -1),
860857
"temperature.t_gas_hight_incl": (
861-
"boundsubhaloproperties.gastemperaturewithoutcoolgas",
862-
-1,
863-
),
864-
"velocities.vxc": ("boundsubhaloproperties.centreofmassvelocity", 0),
865-
"velocities.vyc": ("boundsubhaloproperties.centreofmassvelocity", 1),
866-
"velocities.vzc": ("boundsubhaloproperties.centreofmassvelocity", 2),
867-
"velocities.vmax": ("boundsubhaloproperties.maximumcircularvelocity", -1),
868-
"positions.xc": ("boundsubhaloproperties.centreofmass", 0),
869-
"positions.xcmbp": ("vr.centreofpotential", 0),
870-
"positions.xcminpot": ("vr.centreofpotential", 0),
871-
"positions.yc": ("boundsubhaloproperties.centreofmass", 1),
872-
"positions.ycmbp": ("vr.centreofpotential", 1),
873-
"positions.ycminpot": ("vr.centreofpotential", 1),
874-
"positions.zc": ("boundsubhaloproperties.centreofmass", 2),
875-
"positions.zcmbp": ("vr.centreofpotential", 2),
876-
"positions.zcminpot": ("vr.centreofpotential", 2),
877-
"metallicity.zmet_gas": ("boundsubhaloproperties.gasmassfractioninmetals", -1),
878-
"metallicity.zmet_star": (
879-
"boundsubhaloproperties.stellarmassfractioninmetals",
880-
-1,
881-
),
882-
"ids.hosthaloid": ("vr.hosthaloid", -1),
883-
"number.bh": ("boundsubhaloproperties.numberofblackholeparticles", -1),
884-
"number.gas": ("boundsubhaloproperties.numberofgasparticles", -1),
885-
"number.star": ("boundsubhaloproperties.numberofstarparticles", -1),
886-
"veldisp.veldisp_xx_gas": (
887-
"boundsubhaloproperties.gasvelocitydispersionmatrix",
888-
0,
889-
),
890-
"veldisp.veldisp_xx_star": (
891-
"boundsubhaloproperties.stellarvelocitydispersionmatrix",
892-
0,
893-
),
894-
"veldisp.veldisp_xy_gas": (
895-
"boundsubhaloproperties.gasvelocitydispersionmatrix",
896-
3,
897-
),
898-
"veldisp.veldisp_xy_star": (
899-
"boundsubhaloproperties.stellarvelocitydispersionmatrix",
900-
3,
901-
),
902-
"veldisp.veldisp_xz_gas": (
903-
"boundsubhaloproperties.gasvelocitydispersionmatrix",
904-
4,
905-
),
906-
"veldisp.veldisp_xz_star": (
907-
"boundsubhaloproperties.stellarvelocitydispersionmatrix",
908-
4,
909-
),
910-
"veldisp.veldisp_yx_gas": (
911-
"boundsubhaloproperties.gasvelocitydispersionmatrix",
912-
3,
913-
),
914-
"veldisp.veldisp_yx_star": (
915-
"boundsubhaloproperties.stellarvelocitydispersionmatrix",
916-
3,
917-
),
918-
"veldisp.veldisp_yy_gas": (
919-
"boundsubhaloproperties.gasvelocitydispersionmatrix",
920-
1,
921-
),
922-
"veldisp.veldisp_yy_star": (
923-
"boundsubhaloproperties.stellarvelocitydispersionmatrix",
924-
1,
925-
),
926-
"veldisp.veldisp_yz_gas": (
927-
"boundsubhaloproperties.gasvelocitydispersionmatrix",
928-
5,
929-
),
930-
"veldisp.veldisp_yz_star": (
931-
"boundsubhaloproperties.stellarvelocitydispersionmatrix",
932-
5,
933-
),
934-
"veldisp.veldisp_zx_gas": (
935-
"boundsubhaloproperties.gasvelocitydispersionmatrix",
936-
4,
937-
),
938-
"veldisp.veldisp_zx_star": (
939-
"boundsubhaloproperties.stellarvelocitydispersionmatrix",
940-
4,
941-
),
942-
"veldisp.veldisp_zy_gas": (
943-
"boundsubhaloproperties.gasvelocitydispersionmatrix",
944-
5,
945-
),
946-
"veldisp.veldisp_zy_star": (
947-
"boundsubhaloproperties.stellarvelocitydispersionmatrix",
948-
5,
949-
),
950-
"veldisp.veldisp_zz_gas": (
951-
"boundsubhaloproperties.gasvelocitydispersionmatrix",
952-
2,
953-
),
954-
"veldisp.veldisp_zz_star": (
955-
"boundsubhaloproperties.stellarvelocitydispersionmatrix",
956-
2,
957-
),
958-
"stellar_age.tage_star": (
959-
"boundsubhaloproperties.massweightedmeanstellarage",
960-
-1,
961-
),
858+
"boundsubhalo.gastemperaturewithoutcoolgas",
859+
-1,
860+
),
861+
"velocities.vxc": ("boundsubhalo.centreofmassvelocity", 0),
862+
"velocities.vyc": ("boundsubhalo.centreofmassvelocity", 1),
863+
"velocities.vzc": ("boundsubhalo.centreofmassvelocity", 2),
864+
"velocities.vmax": ("boundsubhalo.maximumcircularvelocity", -1),
865+
"positions.xc": ("boundsubhalo.centreofmass", 0),
866+
"positions.xcmbp": ("inputhalos.halocentre", 0),
867+
"positions.xcminpot": ("inputhalos.halocentre", 0),
868+
"positions.yc": ("boundsubhalo.centreofmass", 1),
869+
"positions.ycmbp": ("inputhalos.halocentre", 1),
870+
"positions.ycminpot": ("inputhalos.halocentre", 1),
871+
"positions.zc": ("boundsubhalo.centreofmass", 2),
872+
"positions.zcmbp": ("inputhalos.halocentre", 2),
873+
"positions.zcminpot": ("inputhalos.halocentre", 2),
874+
"metallicity.zmet_gas": ("boundsubhalo.gasmassfractioninmetals", -1),
875+
"metallicity.zmet_star": ("boundsubhalo.stellarmassfractioninmetals", -1),
876+
"number.bh": ("boundsubhalo.numberofblackholeparticles", -1),
877+
"number.gas": ("boundsubhalo.numberofgasparticles", -1),
878+
"number.star": ("boundsubhalo.numberofstarparticles", -1),
879+
"veldisp.veldisp_xx_gas": ("boundsubhalo.gasvelocitydispersionmatrix", 0),
880+
"veldisp.veldisp_xx_star": ("boundsubhalo.stellarvelocitydispersionmatrix", 0),
881+
"veldisp.veldisp_xy_gas": ("boundsubhalo.gasvelocitydispersionmatrix", 3),
882+
"veldisp.veldisp_xy_star": ("boundsubhalo.stellarvelocitydispersionmatrix", 3),
883+
"veldisp.veldisp_xz_gas": ("boundsubhalo.gasvelocitydispersionmatrix", 4),
884+
"veldisp.veldisp_xz_star": ("boundsubhalo.stellarvelocitydispersionmatrix", 4),
885+
"veldisp.veldisp_yx_gas": ("boundsubhalo.gasvelocitydispersionmatrix", 3),
886+
"veldisp.veldisp_yx_star": ("boundsubhalo.stellarvelocitydispersionmatrix", 3),
887+
"veldisp.veldisp_yy_gas": ("boundsubhalo.gasvelocitydispersionmatrix", 1),
888+
"veldisp.veldisp_yy_star": ("boundsubhalo.stellarvelocitydispersionmatrix", 1),
889+
"veldisp.veldisp_yz_gas": ("boundsubhalo.gasvelocitydispersionmatrix", 5),
890+
"veldisp.veldisp_yz_star": ("boundsubhalo.stellarvelocitydispersionmatrix", 5),
891+
"veldisp.veldisp_zx_gas": ("boundsubhalo.gasvelocitydispersionmatrix", 4),
892+
"veldisp.veldisp_zx_star": ("boundsubhalo.stellarvelocitydispersionmatrix", 4),
893+
"veldisp.veldisp_zy_gas": ("boundsubhalo.gasvelocitydispersionmatrix", 5),
894+
"veldisp.veldisp_zy_star": ("boundsubhalo.stellarvelocitydispersionmatrix", 5),
895+
"veldisp.veldisp_zz_gas": ("boundsubhalo.gasvelocitydispersionmatrix", 2),
896+
"veldisp.veldisp_zz_star": ("boundsubhalo.stellarvelocitydispersionmatrix", 2),
897+
"stellar_age.tage_star": ("boundsubhalo.massweightedmeanstellarage", -1),
962898
"snia_rates.snia_rates_30_kpc": ("exclusivesphere.30kpc.totalsniarate", -1),
963899
"snia_rates.snia_rates_50_kpc": ("exclusivesphere.50kpc.totalsniarate", -1),
964900
"snia_rates.snia_rates_100_kpc": ("exclusivesphere.100kpc.totalsniarate", -1),
@@ -1223,43 +1159,31 @@ def VR_to_SOAP(particle_property_name: str) -> str:
12231159
-1,
12241160
),
12251161
"stellar_birth_densities.median": (
1226-
"fofsubhaloproperties.medianstellarbirthdensity",
1227-
-1,
1228-
),
1229-
"stellar_birth_densities.min": (
1230-
"fofsubhaloproperties.minimumstellarbirthdensity",
1231-
-1,
1232-
),
1233-
"stellar_birth_densities.max": (
1234-
"fofsubhaloproperties.maximumstellarbirthdensity",
1162+
"boundsubhalo.medianstellarbirthdensity",
12351163
-1,
12361164
),
1165+
"stellar_birth_densities.min": ("boundsubhalo.minimumstellarbirthdensity", -1),
1166+
"stellar_birth_densities.max": ("boundsubhalo.maximumstellarbirthdensity", -1),
12371167
"stellar_birth_pressures.median": (
1238-
"fofsubhaloproperties.medianstellarbirthpressure",
1239-
-1,
1240-
),
1241-
"stellar_birth_pressures.min": (
1242-
"fofsubhaloproperties.minimumstellarbirthpressure",
1243-
-1,
1244-
),
1245-
"stellar_birth_pressures.max": (
1246-
"fofsubhaloproperties.maximumstellarbirthpressure",
1168+
"boundsubhalo.medianstellarbirthpressure",
12471169
-1,
12481170
),
1171+
"stellar_birth_pressures.min": ("boundsubhalo.minimumstellarbirthpressure", -1),
1172+
"stellar_birth_pressures.max": ("boundsubhalo.maximumstellarbirthpressure", -1),
12491173
"stellar_birth_temperatures.median": (
1250-
"fofsubhaloproperties.medianstellarbirthtemperature",
1174+
"boundsubhalo.medianstellarbirthtemperature",
12511175
-1,
12521176
),
12531177
"stellar_birth_temperatures.min": (
1254-
"fofsubhaloproperties.minimumstellarbirthtemperature",
1178+
"boundsubhalo.minimumstellarbirthtemperature",
12551179
-1,
12561180
),
12571181
"stellar_birth_temperatures.max": (
1258-
"fofsubhaloproperties.maximumstellarbirthtemperature",
1182+
"boundsubhalo.maximumstellarbirthtemperature",
12591183
-1,
12601184
),
12611185
"snii_thermal_feedback_densities.max": (
1262-
"fofsubhaloproperties.lastsupernovaeventmaximumgasdensity",
1186+
"boundsubhalo.lastsupernovaeventmaximumgasdensity",
12631187
-1,
12641188
),
12651189
"lin_element_ratios_times_masses.lin_O_over_H_total_times_gas_mass_30_kpc": (
@@ -1490,6 +1414,42 @@ def VR_to_SOAP(particle_property_name: str) -> str:
14901414
"exclusivesphere.100kpc.logarithmicmassweightedironoverhydrogenofstarshighlimit",
14911415
-1,
14921416
),
1417+
"lin_element_ratios_times_masses.lin_Mg_over_H_times_star_mass_30_kpc": (
1418+
"exclusivesphere.30kpc.linearmassweightedmagnesiumoverhydrogenofstars",
1419+
-1,
1420+
),
1421+
"lin_element_ratios_times_masses.lin_Mg_over_H_times_star_mass_50_kpc": (
1422+
"exclusivesphere.50kpc.linearmassweightedmagnesiumoverhydrogenofstars",
1423+
-1,
1424+
),
1425+
"lin_element_ratios_times_masses.lin_Mg_over_H_times_star_mass_100_kpc": (
1426+
"exclusivesphere.100kpc.linearmassweightedmagnesiumoverhydrogenofstars",
1427+
-1,
1428+
),
1429+
"log_element_ratios_times_masses.log_Mg_over_H_times_star_mass_lowfloor_30_kpc": (
1430+
"exclusivesphere.30kpc.logarithmicmassweightedmagnesiumoverhydrogenofstarslowlimit",
1431+
-1,
1432+
),
1433+
"log_element_ratios_times_masses.log_Mg_over_H_times_star_mass_lowfloor_50_kpc": (
1434+
"exclusivesphere.50kpc.logarithmicmassweightedmagnesiumoverhydrogenofstarslowlimit",
1435+
-1,
1436+
),
1437+
"log_element_ratios_times_masses.log_Mg_over_H_times_star_mass_lowfloor_100_kpc": (
1438+
"exclusivesphere.100kpc.logarithmicmassweightedmagnesiumoverhydrogenofstarslowlimit",
1439+
-1,
1440+
),
1441+
"log_element_ratios_times_masses.log_Mg_over_H_times_star_mass_highfloor_30_kpc": (
1442+
"exclusivesphere.30kpc.logarithmicmassweightedmagnesiumoverhydrogenofstarshighlimit",
1443+
-1,
1444+
),
1445+
"log_element_ratios_times_masses.log_Mg_over_H_times_star_mass_highfloor_50_kpc": (
1446+
"exclusivesphere.50kpc.logarithmicmassweightedmagnesiumoverhydrogenofstarshighlimit",
1447+
-1,
1448+
),
1449+
"log_element_ratios_times_masses.log_Mg_over_H_times_star_mass_highfloor_100_kpc": (
1450+
"exclusivesphere.100kpc.logarithmicmassweightedmagnesiumoverhydrogenofstarshighlimit",
1451+
-1,
1452+
),
14931453
"cold_dense_gas_properties.cold_dense_diffuse_metal_mass_30_kpc": (
14941454
"exclusivesphere.30kpc.gasmassincolddensediffusemetals",
14951455
-1,
@@ -1526,6 +1486,7 @@ def VR_to_SOAP(particle_property_name: str) -> str:
15261486
"exclusivesphere.100kpc.linearmassweightedironfromsniaoverhydrogenofstars",
15271487
-1,
15281488
),
1489+
"searchradius.search_radius": ("boundsubhalo.encloseradius", -1),
15291490
}
15301491

15311492
try:

velociraptor/tools/labels.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def get_mass_function_label_no_units(mass_function_sub_label: str):
2424
"""
2525
Gets a fancy mass-function label such as:
2626
27-
d$n(M_*)$/d$\log_{10}M_*$ [Mpc$^{-3}$]
27+
d$n(M_*)$/d$\\log_{10}M_*$ [Mpc$^{-3}$]
2828
2929
(this would be for an input of "*" and unyt.Mpc**3).
3030
"""
@@ -42,7 +42,7 @@ def get_mass_function_label(
4242
"""
4343
Gets a fancy mass-function label such as:
4444
45-
d$n(M_*)$/d$\log_{10}M_*$ [Mpc$^{-3}$]
45+
d$n(M_*)$/d$\\log_{10}M_*$ [Mpc$^{-3}$]
4646
4747
(this would be for an input of "*" and unyt.Mpc**3).
4848
"""

0 commit comments

Comments
 (0)