Skip to content

Commit

Permalink
fix timestamp string from nex-* file
Browse files Browse the repository at this point in the history
  • Loading branch information
shorvath-noaa committed Mar 1, 2024
1 parent ca2a633 commit 7d849b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/troute-network/troute/AbstractNetwork.py
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ def build_forcing_sets(self,):
if forcing_glob_filter=="nex-*":
all_files = sorted(qlat_input_folder.glob(forcing_glob_filter))
final_timestamp = pd.read_csv(all_files[0], header=None, index_col=[0]).tail(1).iloc[0,0]
final_timestamp = datetime.strptime(final_timestamp, "%Y-%m-%d %H:%M:%S")
final_timestamp = datetime.strptime(final_timestamp.strip(), "%Y-%m-%d %H:%M:%S")

all_files = [os.path.basename(f) for f in all_files]

Expand Down

0 comments on commit 7d849b4

Please sign in to comment.