Skip to content

Commit 6038be4

Browse files
committed
Update readkuruczdata.py
1 parent c69607a commit 6038be4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

artisatomic/readkuruczdata.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ def parse_gfall(fname: str):
7676
type_dict = {"F": np.float64, "I": np.int64, "X": str, "A": str}
7777
field_types = tuple(type_dict[item] for item in number_match.sub("", gfall_fortran_format).split(","))
7878

79-
field_widths = type_match.sub("", gfall_fortran_format)
80-
field_widths = list(map(int, re.sub(r"\.\d+", "", field_widths).split(",")))
79+
field_widths = list(map(int, re.sub(r"\.\d+", "", type_match.sub("", gfall_fortran_format)).split(",")))
8180

8281
field_type_dict = dict(zip(gfall_columns, field_types, strict=False))
8382

0 commit comments

Comments
 (0)