Skip to content

Commit

Permalink
Update 3.0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholas12392 committed Dec 11, 2022
1 parent 8eda41c commit 2b6e0ee
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
20 changes: 11 additions & 9 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions nanoscipy/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -1033,10 +1033,9 @@ def calc(self, math_string, add_res=False, **kwargs):
computation, unit_result = nup.unit_parser(replaced_string, unit_identifier=unit_id, cprint=None,
result='math, unit', supp_units=supported_units)
self.ans = computation
if unit_result == 'a.u.':
self.__ans_unit__ = ''
else:
self.__ans_unit__ = unit_result
if unit_result in ('a.u.', ' a.u.'):
unit_result = ''
self.__ans_unit__ = unit_result

# if add result as constant is called, check if name is indeed a string and not a float or int
if add_res:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name='nanoscipy',
version='3.0.10',
version='3.0.11',
author='Nicholas Hansen',
author_email='nicholas.2000@live.dk',
description='A package containing compiled functions, to make data-handling and -analysis easier.',
Expand Down

0 comments on commit 2b6e0ee

Please sign in to comment.