Skip to content

Commit

Permalink
Changed datatype to numerical arrays from data frames
Browse files Browse the repository at this point in the history
  • Loading branch information
JurgenZach-NOAA committed Feb 5, 2024
1 parent 58db81a commit 1b0e7bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/troute_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ def preprocess_static_vars(self, values: dict):
values['diffusive_tw_latitude'] = self._network._nexus_latlon.lat.values
values['diffusive_tw_longitude'] = self._network._nexus_latlon.lon.values
else:
values['diffusive_tw_ids'] = pd.DataFrame()
values['diffusive_tw_latitude'] = pd.DataFrame()
values['diffusive_tw_longitude'] = pd.DataFrame()
values['diffusive_tw_ids'] = np.epmty(dtype=np.int32)
values['diffusive_tw_latitude'] = np.epmty(dtype=np.float64)
values['diffusive_tw_longitude'] = np.epmty(dtype=np.float64)

# Create data assimilation object with IDs but no dynamic variables yet.
# Dynamic variables will be assigned during 'run' function.
Expand Down

0 comments on commit 1b0e7bc

Please sign in to comment.