nt25 0.1.2__py3-none-any.whl → 0.1.3__py3-none-any.whl

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/__init__.py CHANGED
@@ -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
- __samples_path__ = __file__.replace('__init__.py', 'samples')
7
+ __data_path__ = __file__.replace('__init__.py', 'data')
8
8
 
9
- __all__ = ('__version__', '__samples_path__', 'fio', 'calc', 'draw', 'DType')
9
+ __all__ = ('__version__', '__data_path__', 'fio', 'calc', 'draw', 'DType')
nt25/data/test.xlsx ADDED
Binary file
nt25/lib/calc.py CHANGED
@@ -92,7 +92,7 @@ def solveEq(eq, output=False, foo='solve'):
92
92
  s4e = re.sub(r'([-]?\d*\.\d+)', lambda m: str2e(m.group(0)), sol)
93
93
 
94
94
  if output:
95
- print(f'{foo}: {eq}\n x0 = {s4e}\n')
95
+ print(f'{foo}: {eq}\n\n x0 = {s4e}\n')
96
96
 
97
97
  real.append({
98
98
  'org': eq,
nt25/main.py CHANGED
@@ -1,4 +1,5 @@
1
- from nt25 import fio, calc, draw, DType, __version__, __samples_path__
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", colsInline=False)
18
+ }, "output/out.csv")
16
19
 
17
- data = fio.getXlsx(__samples_path__ + '/test.xlsx')
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('s> 750, 1.5 ~', bar[0]['func'](y=[750], x1=1.5))
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__":
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nt25
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: Neo's Tools of Python
5
5
  Requires-Python: >=3.10
6
6
  Requires-Dist: matplotlib>=3.10.6
@@ -0,0 +1,10 @@
1
+ nt25/__init__.py,sha256=oIVhU2wegSHArUmypHr3nXQa8RRtH5TBZgRdRNN-OEw,274
2
+ nt25/main.py,sha256=nVzuGx8PaxDU-QbLmVtAvDkfEFX5Z5g0xE0CWf9EwBA,2098
3
+ nt25/data/test.xlsx,sha256=7C0JDS-TLm_KmjnKtfeajkpwGKSUhcLdr2W2UFUxAgM,10542
4
+ nt25/lib/calc.py,sha256=3X3k9jisSjRP7OokSdKvoVo4IIOzk2efexW8z1gMo-w,2265
5
+ nt25/lib/draw.py,sha256=OKTlkkNVUz_LGBA9Gk7fjcnbbbl7e_hT8nWKkcfeg2k,5642
6
+ nt25/lib/fio.py,sha256=WvHpG6QYR1NE19Ss3Sy2FdajTxibX5SVW3PyC5Y5Krk,2525
7
+ nt25-0.1.3.dist-info/METADATA,sha256=4UAR18xVAWpD1hw-6FsB9F5dEl7IYD29eowXtaLo_X8,528
8
+ nt25-0.1.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
9
+ nt25-0.1.3.dist-info/entry_points.txt,sha256=mApCFA2DAwrQrcWa5JqcKq7lPzogm_Yi4EejBUo-Of8,40
10
+ nt25-0.1.3.dist-info/RECORD,,
nt25/scripts/test3d.py DELETED
@@ -1,11 +0,0 @@
1
- from nt25 import fio, draw, DType
2
-
3
- csv = fio.getCSV('ds/92.csv', width=11, startLine=1)
4
- if isinstance(csv, list):
5
- P = csv[0]
6
- Pa = csv[1]
7
- R = csv[9]
8
-
9
- ref = draw.draw(DType.dot3d, P, Pa, R)
10
- draw.draw(DType.wireframe, P, Pa, R, ref=ref, color='orange')
11
- draw.show()
@@ -1,10 +0,0 @@
1
- nt25/__init__.py,sha256=1KKnRfR3-cwA0HPzYYIr4Y3MfHGIcV33gHGlK5j1qOo,283
2
- nt25/main.py,sha256=H7rpN_DHcd6vbKWjO0mxxETMC7t_u_4Qp-XBP_hSH7A,2046
3
- nt25/lib/calc.py,sha256=GKDuC8k1v4lwxFThyZx7CGNjPHeyVH3FTgNU2zCWJ44,2263
4
- nt25/lib/draw.py,sha256=OKTlkkNVUz_LGBA9Gk7fjcnbbbl7e_hT8nWKkcfeg2k,5642
5
- nt25/lib/fio.py,sha256=WvHpG6QYR1NE19Ss3Sy2FdajTxibX5SVW3PyC5Y5Krk,2525
6
- nt25/scripts/test3d.py,sha256=DIvCaUc2NoALTxu4E9h4oO9dvb_C2XI0R3QzR_PXR3c,274
7
- nt25-0.1.2.dist-info/METADATA,sha256=m2_4PF9bcl7BkQz6ICj8B1RjpGc6uHG3KxGwbzuQPDI,528
8
- nt25-0.1.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
9
- nt25-0.1.2.dist-info/entry_points.txt,sha256=mApCFA2DAwrQrcWa5JqcKq7lPzogm_Yi4EejBUo-Of8,40
10
- nt25-0.1.2.dist-info/RECORD,,
File without changes