Skip to content

Commit

Permalink
Merge pull request #131 from nasaharvest/inference-fix
Browse files Browse the repository at this point in the history
Fix off by one error in inference.py
  • Loading branch information
ivanzvonkov authored Aug 31, 2023
2 parents 773ef84 + 522b831 commit 144723e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openmapflow/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def run(

batches = [
x_np[i : i + self.batch_size] # noqa: E203
for i in range(0, (x_np.shape[0] - 1), self.batch_size)
for i in range(0, x_np.shape[0], self.batch_size)
]
batch_predictions = [self._on_single_batch(b) for b in batches]
combined_pred = self._combine_predictions(flat_lat, flat_lon, batch_predictions)
Expand Down

0 comments on commit 144723e

Please sign in to comment.