Skip to content

Commit

Permalink
added extra zfill for M200s>1e15
Browse files Browse the repository at this point in the history
  • Loading branch information
samueldmcdermott committed Aug 25, 2024
1 parent 943bb01 commit 98698e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepszsim/simclusters.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def __init__(self, M200 = None, redshift_z = None, num_halos = None, halo_params
for i in range(self._size)]).T

self.id_list = [
str(int(self.M200[i]//1e9)).zfill(6) + "_" + str(int(self.redshift_z[i]*100)).zfill(3) + "_" + str(
str(int(self.M200[i]//1e9)).zfill(7) + "_" + str(int(self.redshift_z[i]*100)).zfill(3) + "_" + str(
self._rng.integers(
10**6)).zfill(6)
for i in range(self._size)]
Expand Down

0 comments on commit 98698e5

Please sign in to comment.