Skip to content

Commit

Permalink
replaced delim_whitespace with sep (#922)
Browse files Browse the repository at this point in the history
  • Loading branch information
veenstrajelmer authored Aug 5, 2024
1 parent a27d7af commit da35528
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dfm_tools/get_nc_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def rename_fouvars(ds:(xr.Dataset,xu.UgridDataset), drop_tidal_times:bool = True
"""

file_freqs = 'https://raw.githubusercontent.com/Deltares/hatyan/main/hatyan/data/data_foreman_frequencies.txt' #TODO: fix hatyan dependency (MSQM and M1 were also added, but file is not used by hatyan, so might disappear one day)
freqs_pd = pd.read_csv(file_freqs,names=['freq','dependents'],delim_whitespace=True,comment='#')
freqs_pd = pd.read_csv(file_freqs, names=['freq','dependents'], sep="\\s+", comment='#')
freqs_pd['angfreq'] = freqs_pd['freq'] * 360 #deg/hr

gridname = ds.grid.name
Expand Down
2 changes: 1 addition & 1 deletion dfm_tools/observations.py
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ def gesla3_ssh_retrieve_data(row, dir_output, time_min=None, time_max=None,

file_gesla = row.name
with gesla3_zip.open(file_gesla, "r") as f:
data = pd.read_csv(f, comment='#', delim_whitespace = True,
data = pd.read_csv(f, comment='#', sep="\\s+",
names=["date", "time", "sea_level", "qc_flag", "use_flag"],
parse_dates=[[0, 1]], index_col=0)

Expand Down

0 comments on commit da35528

Please sign in to comment.