Skip to content

Commit

Permalink
fix CIF reader to handle dots
Browse files Browse the repository at this point in the history
  • Loading branch information
stefdoerr committed Aug 31, 2023
1 parent e64c94e commit 2f1b5c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moleculekit/readers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1933,7 +1933,7 @@ def CIFread(filename, frame=None, topoloc=None, zerowarning=True):
dataObj = myDataList[0]

def fixDefault(val, dtype):
if val == "?":
if val in ("?", "."):
if dtype == float or dtype == int:
val = 0
if dtype == str:
Expand Down

0 comments on commit 2f1b5c7

Please sign in to comment.