Skip to content

Commit

Permalink
removed exteaneous if else when converting scan pixel dimensions to int
Browse files Browse the repository at this point in the history
  • Loading branch information
underchemist committed Dec 26, 2015
1 parent a0d04ec commit 1b7701d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions nanonispy/read.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,10 +533,7 @@ def _parse_sxm_header(header_raw):
else:
header_dict[key] = np.float(header_dict[key])
for key in entries_to_be_inted:
if isinstance(header_dict[key], list):
header_dict[key] = np.asarray(header_dict[key], dtype=np.int)
else:
header_dict[key] = np.int(header_dict[key])
header_dict[key] = np.asarray(header_dict[key], dtype=np.int)

return header_dict

Expand Down

0 comments on commit 1b7701d

Please sign in to comment.