Skip to content

Commit

Permalink
Enforcing sorting on the final aggregated times in the final data index
Browse files Browse the repository at this point in the history
  • Loading branch information
jtilson committed Mar 16, 2022
1 parent 0c3084d commit c91b4f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion get_adcirc/GetADCIRC.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ def main(args):
if args.ignore_pkl or not os.path.exists(ADCfile):
utilities.log.info("Building model matrix from fort.63.nc files...")
df = get_water_levels63(adc.urls, node_idx, station_ids)
df = df.sort_index()
utilities.write_json_file(adc_coords, ADCfilecords)
else:
utilities.log.info(ADCfile+" exists. Using that...")
Expand Down Expand Up @@ -515,6 +514,7 @@ def get_water_levels63(urls, nodes, stationids):
df = df.loc[~df.index.duplicated(keep='first')]
if len(idx) != len(df.index):
utilities.log.warning('ADCIRC: had duplicate times {} {}'.format(len(idx),len(df.index)))
df = df.sort_index()
return df

def get_water_levels61(urls, stationids):
Expand Down

0 comments on commit c91b4f5

Please sign in to comment.