nt25 0.1.2__tar.gz → 0.1.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {nt25-0.1.2 → nt25-0.1.3}/.gitignore +2 -3
- {nt25-0.1.2 → nt25-0.1.3}/PKG-INFO +1 -1
- {nt25-0.1.2 → nt25-0.1.3}/pyproject.toml +1 -1
- {nt25-0.1.2 → nt25-0.1.3}/src/nt25/__init__.py +2 -2
- nt25-0.1.3/src/nt25/data/test.xlsx +0 -0
- {nt25-0.1.2 → nt25-0.1.3}/src/nt25/lib/calc.py +1 -1
- {nt25-0.1.2 → nt25-0.1.3}/src/nt25/main.py +8 -5
- {nt25-0.1.2 → nt25-0.1.3}/.editorconfig +0 -0
- {nt25-0.1.2 → nt25-0.1.3}/.flake8 +0 -0
- {nt25-0.1.2 → nt25-0.1.3}/.github/workflows/publish.yml +0 -0
- {nt25-0.1.2 → nt25-0.1.3}/.python-version +0 -0
- {nt25-0.1.2 → nt25-0.1.3}/.vscode/settings.json +0 -0
- {nt25-0.1.2 → nt25-0.1.3}/README.md +0 -0
- {nt25-0.1.2 → nt25-0.1.3}/src/nt25/lib/draw.py +0 -0
- {nt25-0.1.2 → nt25-0.1.3}/src/nt25/lib/fio.py +0 -0
- {nt25-0.1.2/src/nt25/scripts → nt25-0.1.3/tests}/test3d.py +0 -0
@@ -4,6 +4,6 @@ from .lib import fio, calc, draw
|
|
4
4
|
from .lib.draw import DType
|
5
5
|
|
6
6
|
__version__ = meta.version(str(__package__))
|
7
|
-
|
7
|
+
__data_path__ = __file__.replace('__init__.py', 'data')
|
8
8
|
|
9
|
-
__all__ = ('__version__', '
|
9
|
+
__all__ = ('__version__', '__data_path__', 'fio', 'calc', 'draw', 'DType')
|
Binary file
|
@@ -1,4 +1,5 @@
|
|
1
|
-
|
1
|
+
import os
|
2
|
+
from nt25 import fio, calc, draw, DType, __version__, __data_path__
|
2
3
|
|
3
4
|
# import timeit
|
4
5
|
# timeit.timeit('', number=100, globals=globals())
|
@@ -8,14 +9,16 @@ def main():
|
|
8
9
|
print(f"Hello from {__package__}({__version__})! ")
|
9
10
|
|
10
11
|
# [Neo] some file I/O: csv, xlsx
|
12
|
+
os.makedirs('output', exist_ok=True)
|
13
|
+
|
11
14
|
fio.saveCSV({
|
12
15
|
'Name': ['Alice', 'Bob', 'Charlie'],
|
13
16
|
'Age': [25.2, 30, 35],
|
14
17
|
'City': ['New York', 'Los Angeles', 'Chicago']
|
15
|
-
}, "out.csv"
|
18
|
+
}, "output/out.csv")
|
16
19
|
|
17
|
-
data = fio.getXlsx(
|
18
|
-
fio.saveCSV(data, "out2.csv")
|
20
|
+
data = fio.getXlsx(__data_path__ + '/test.xlsx')
|
21
|
+
fio.saveCSV(data, "output/out2.csv")
|
19
22
|
|
20
23
|
h = data[0]
|
21
24
|
s = data[1]
|
@@ -67,7 +70,7 @@ def main():
|
|
67
70
|
bar = calc.solveEq(foo['eq'], output=True)
|
68
71
|
|
69
72
|
if len(bar) > 0:
|
70
|
-
print('
|
73
|
+
print(f'solveEq(750, 1.5) ~ {bar[0]['func'](y=[750], x1=1.5):.4f}')
|
71
74
|
|
72
75
|
|
73
76
|
if __name__ == "__main__":
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|