Skip to content

Commit

Permalink
flatten fields
Browse files Browse the repository at this point in the history
  • Loading branch information
b8raoult committed Sep 15, 2024
1 parent ba5b567 commit 6cea6b5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/anemoi/inference/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,7 @@ def run(
f"Expected datetime: {date.isoformat()} (for lag {lag})"
)

input_fields_numpy = input_fields.to_numpy(dtype=np.float32)

print(input_fields_numpy.shape)
input_fields_numpy = input_fields.to_numpy(dtype=np.float32, flatten=True)

input_fields_numpy = input_fields_numpy.reshape(
len(self.lagged),
Expand Down

0 comments on commit 6cea6b5

Please sign in to comment.