Skip to content

Commit

Permalink
Merge pull request #709 from Andrew-Robertson/master
Browse files Browse the repository at this point in the history
fix(perf): only load the necessary parts of each dataset
  • Loading branch information
abensonca authored Sep 25, 2024
2 parents 062da28 + 0d78c7d commit e5bbec1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/aux/extractSingleTree.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ def restricted_integer(x):
if name == "particleIndexStart" or name == "particleIndexCount":
continue
print(" "+name)
dataset = fromFile[halosName][name][:]
toFile["forestHalos"].create_dataset(name,data=dataset[start[0]:end[0],...])
dataset = fromFile[halosName][name][start[0]:end[0],...]
toFile["forestHalos"].create_dataset(name,data=dataset)
print("...done")

# Create the forestIndex group.
Expand Down

0 comments on commit e5bbec1

Please sign in to comment.