Skip to content

Commit

Permalink
numpy version issue with regridder indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
bnb32 committed Aug 31, 2023
1 parent e49879b commit 5868508
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@ netCDF4==1.5.8
dask
sphinx
pandas
numpy==1.22
6 changes: 2 additions & 4 deletions sup3r/utilities/regridder.py
Original file line number Diff line number Diff line change
Expand Up @@ -691,8 +691,7 @@ def run(self, node_index):
else:
self._run_parallel(source_files=self.source_files,
node_index=node_index,
max_workers=self.regrid_workers,
)
max_workers=self.regrid_workers)

def _run_serial(self, source_files, node_index):
"""Regrid data and write to output file, in serial.
Expand All @@ -714,8 +713,7 @@ def _run_serial(self, source_files, node_index):
msg = ('Coordinate chunks regridded: {} out of {}. '
'Current memory usage is {:.3f} GB out of {:.3f} '
'GB total.'.format(i + 1, len(self.node_chunks[node_index]),
mem.used / 1e9, mem.total / 1e9,
))
mem.used / 1e9, mem.total / 1e9))
logger.info(msg)

def _run_parallel(self, source_files, node_index, max_workers=None):
Expand Down

0 comments on commit 5868508

Please sign in to comment.