Skip to content

Commit

Permalink
update units of contact point
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Jun 29, 2021
1 parent c96eb64 commit def979c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
1.7.5
- ref: migrate `QMap` and `Group` code to afmformats 0.14.0
- ref: `Indentation` is now a subclass for `afmformats.AFMForceDistance`
- ref: `QMap` is now a subclass for `afmformats.AFMQMap`
- ref: `Group` is now a subclass for `afmformats.AFMGroup`
1.7.4
- enh: allow passing metadata to the IndentationGroup initializer
- setup: bump afmformats from 0.10.2 to 0.13.2
Expand Down
5 changes: 3 additions & 2 deletions nanite/qmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,11 @@ def __init__(self, path_or_group, meta_override=None, callback=None):

@staticmethod
def feat_fit_contact_point(idnt):
"""fit: contact point [m]"""
"""fit: contact point [nm]"""
if idnt.fit_properties and idnt.fit_properties["success"]:
# use cached rating
value = idnt.fit_properties["params_fitted"]["contact_point"].value
params = idnt.fit_properties["params_fitted"]
value = params["contact_point"].value * 1e9
else:
msg = "The experimental data has not been fitted. Please call " \
+ "`idnt.fit_model` manually for {}!".format(idnt)
Expand Down

0 comments on commit def979c

Please sign in to comment.