Skip to content

Commit

Permalink
Fix regular expression formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Pechnikov committed Feb 8, 2025
1 parent da01ef1 commit 20e3b62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygmtsar/pygmtsar/PRM.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def _from_io(prm):
"""
import pandas as pd

df = pd.read_csv(prm, sep='\s+=\s+', header=None, names=['name', 'value'], engine='python').set_index('name')
df = pd.read_csv(prm, sep=r'\s+=\s+', header=None, names=['name', 'value'], engine='python').set_index('name')
df['value'] = df['value'].map(PRM.to_numeric_or_original)

return PRM(df)
Expand Down

0 comments on commit 20e3b62

Please sign in to comment.