Skip to content

Commit af40183

Browse files
The9CatCopilot
andauthored
Update EXP-units/expunits.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent f71b901 commit af40183

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

EXP-units/expunits.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@
4444
Examples:
4545
4646
# Using gadget preset and target new units (L_new = 300 kpc, M_new = 1e12 Msun, want G_new=1)
47-
python convert_units_general.py --preset gadget --new-length 300 --new-mass 1e12 --G_new 1 --print-scales
47+
python expunits.py --preset gadget --new-length 300 --new-mass 1e12 --G_new 1 --print-scales
4848
4949
# Provide explicit old/new units (length in kpc, mass in Msun, velocity in km/s):
50-
python convert_units_general.py --old-length 1 --new-length 300 --old-mass 1 --new-mass 1e12 --G_old 4.5e-06 --G_new 1 --print-scales
50+
python expunits.py --old-length 1 --new-length 300 --old-mass 1 --new-mass 1e12 --G_old 4.5e-06 --G_new 1 --print-scales
5151
5252
# Convert a particle file (7 cols) using the scales computed above:
53-
python convert_units_general.py --preset bonsai --new-length 300 --new-mass 1e12 --G_new 1 --infile particles.txt --outfile particles_g1.txt
53+
python expunits.py --preset bonsai --new-length 300 --new-mass 1e12 --G_new 1 --infile particles.txt --outfile particles_g1.txt
5454
5555
5656
Notes and guidance:

0 commit comments

Comments
 (0)