Nanoscipy

Latest version: v3.0.13

Safety actively analyzes 622331 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 9

3.0.13

New features
mathpar.parser()
Now supports using input expressions with spaces.

unitpar.unit_abbreviator()
Now abbreviates SI unit derivatives in more situations than before.

Changes
modules.NumAn
.supported_physical_constants
Changed the way constants with units are displayed to be more in line with expectations.

Bug fixes
unitpar.unit_handler()
Fixed an issue where if multiple valid unit multiplication operations were performed in a row, the script would fail to remove the last multiplication symbol if there was a unitless quantity at the end, from the initial input equation, causing an IndexError, when solving the expression completely.

3.0.12

Bug fixes
mathpar.parser()
Fixed an issue where input expressions having the first element be `'-'` would sometimes be read and computed incorrectly.

3.0.11

Bug fixes
modules.NumAn
.calc()
Fixed an issue where unitless results were saved with the extension `' a.u.'` with `add_res=`, which caused issues when these new constants were used in later calculations.

3.0.10

New features
modules.NumAn
Added kwarg `supp_prompt` that allows for suppressing console prompts during script runtime. Currently there is only the options `'cns_change'`, which suppresses the constant change prompts, and `'all'`, which suppresses all prompts that may occur.

.calc()
Newly computed result may be added directly from the expression itself as if defining a constant:
python
import nanoscipy.modules as nsm
test1 = nsm.NumAn('lambda=500 nm, na=1.4, n=1.518')
test1.add_cns('dxy=0.61lambda/(sqrt(2)na), dz=2lambdan/(sqrt(2)(na)^2)')
test1.add_cns('rxy=dxy/2, rz=dz/2')
test1.calc('V=4/3pi*(rxy)^2*(rz)')
test1.constants()


>>> Result: V = 4/3·π·(rxy)^2·(rz) = 6.805e-21 m^3
>>> | rxy = 7.702e-8 m
>>> | rz = 2.738e-7 m
>>> Currently defined constants:
>>> | lambda = 500 nm

3.0.9

Bug fixes
modules.NumAn
.calc()
Fixed an issue where computations could not be done, if they had no units.

3.0.8

Changes
Updated the README file.

modules.NumAn
The prompt message for overwriting constants has been changed slightly.

Bug fixes
modules.NumAn
Fixed an issue, where constants were sometimes saved incorrectly, if the unit identifier was something else than `' '`.

.calc()
Fixed a potential issue, where constants might not be displayed correctly after changing significant figures.

Fixed issue where constants where not displaying correctly for computed result.

Fixed an issue where constants were displayed unintendedly if they were contained in units.

Page 1 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.