Skip to content

Commit

Permalink
sort the transect id columns in tidally_corrected_transect_time_serie…
Browse files Browse the repository at this point in the history
…s.csv
  • Loading branch information
2320sharon committed Nov 8, 2024
1 parent 2af3eea commit e268173
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/coastseg/tide_correction.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,8 @@ def correct_tides(
'tidally_corrected')

# Save the Tidally corrected time series
sorted_columns = [timeseries_df.columns[0]] + sorted(timeseries_df.columns[1:], key=lambda x: int(''.join(filter(str.isdigit, x))))
timeseries_df = timeseries_df[sorted_columns]
timeseries_df.to_csv(os.path.join(session_path, 'tidally_corrected_transect_time_series.csv'),index=False)


Expand Down

0 comments on commit e268173

Please sign in to comment.