Skip to content

Commit

Permalink
implementing more efficient inialization of tm dset
Browse files Browse the repository at this point in the history
  • Loading branch information
mjgleason committed Jan 23, 2025
1 parent 3bd1976 commit 44e2225
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reV/supply_curve/tech_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,8 @@ def initialize_dataset(self, tm_dset, chunks=(128, 128)):
shape=self._excl_shape,
dtype=np.int32,
chunks=chunks,
fillvalue=-1
)
f[tm_dset][:] = -1

if self._dist_thresh:
f[tm_dset].attrs["distance_threshold"] = self._dist_thresh
Expand Down

0 comments on commit 44e2225

Please sign in to comment.