Skip to content

Commit

Permalink
Merge pull request #195 from gutierrad/remove_delim_whitespace
Browse files Browse the repository at this point in the history
Changed read_csv call syntax from delim_whitespace to sep
  • Loading branch information
SorooshMani-NOAA authored Aug 12, 2024
2 parents a6504b2 + 3462ae1 commit 0eb84de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adcircpy/mesh/parsers/grd.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def read_fort14(filename: os.PathLike):
with StringIO('\n'.join(file.readline() for _ in range(num_nodes))) as nodes_stream:
output['nodes'] = pandas.read_csv(
nodes_stream,
delim_whitespace=True,
sep='\s+',
index_col=0,
names=[
'id',
Expand All @@ -36,7 +36,7 @@ def read_fort14(filename: os.PathLike):
) as elements_stream:
output['elements'] = pandas.read_csv(
elements_stream,
delim_whitespace=True,
sep='\s+',
index_col=0,
names=['id', 'n', *(f'node_{node_index}' for node_index in range(1, 10))],
)
Expand Down

0 comments on commit 0eb84de

Please sign in to comment.