radboy 0.0.547__py3-none-any.whl → 0.0.548__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.
Potentially problematic release.
This version of radboy might be problematic. Click here for more details.
- radboy/__init__.py +1 -1
- radboy/__pycache__/__init__.cpython-313.pyc +0 -0
- radboy/preloader/preloader.py +52 -1
- {radboy-0.0.547.dist-info → radboy-0.0.548.dist-info}/METADATA +1 -1
- {radboy-0.0.547.dist-info → radboy-0.0.548.dist-info}/RECORD +7 -7
- {radboy-0.0.547.dist-info → radboy-0.0.548.dist-info}/WHEEL +0 -0
- {radboy-0.0.547.dist-info → radboy-0.0.548.dist-info}/top_level.txt +0 -0
radboy/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
VERSION='0.0.
|
|
1
|
+
VERSION='0.0.548'
|
|
Binary file
|
radboy/preloader/preloader.py
CHANGED
|
@@ -46,6 +46,51 @@ def volume_pint():
|
|
|
46
46
|
length='1'
|
|
47
47
|
|
|
48
48
|
return unit_registry.Quantity(length)*unit_registry.Quantity(width)*unit_registry.Quantity(height)
|
|
49
|
+
|
|
50
|
+
def inductance_pint():
|
|
51
|
+
relative_permeability=Prompt.__init2__(None,func=FormBuilderMkText,ptext="relative_permeability?: ",helpText="relative_permeability(air)=1",data="string")
|
|
52
|
+
if relative_permeability is None:
|
|
53
|
+
return
|
|
54
|
+
elif relative_permeability in ['d',]:
|
|
55
|
+
relative_permeability='1'
|
|
56
|
+
relative_permeability=float(relative_permeability)
|
|
57
|
+
|
|
58
|
+
turns_of_wire_on_coil=Prompt.__init2__(None,func=FormBuilderMkText,ptext="turns_of_wire_on_coil?: ",helpText="turns_of_wire_on_coil=1",data="string")
|
|
59
|
+
if turns_of_wire_on_coil is None:
|
|
60
|
+
return
|
|
61
|
+
elif turns_of_wire_on_coil in ['d',]:
|
|
62
|
+
turns_of_wire_on_coil='1'
|
|
63
|
+
turns_of_wire_on_coil=int(turns_of_wire_on_coil)
|
|
64
|
+
|
|
65
|
+
#convert to meters
|
|
66
|
+
core_cross_sectional_area_meters=Prompt.__init2__(None,func=FormBuilderMkText,ptext="core_cross_sectional_area_meters?: ",helpText="core_cross_sectional_area_meters=1",data="string")
|
|
67
|
+
if core_cross_sectional_area_meters is None:
|
|
68
|
+
return
|
|
69
|
+
elif core_cross_sectional_area_meters in ['d',]:
|
|
70
|
+
core_cross_sectional_area_meters='1m'
|
|
71
|
+
try:
|
|
72
|
+
core_cross_sectional_area_meters=unit_registry.Quantity(core_cross_sectional_area_meters).to("meters")
|
|
73
|
+
except Exception as e:
|
|
74
|
+
print(e,"defaulting to meters")
|
|
75
|
+
core_cross_sectional_area_meters=unit_registry.Quantity(f"{core_cross_sectional_area_meters} meters")
|
|
76
|
+
|
|
77
|
+
length_of_coil_meters=Prompt.__init2__(None,func=FormBuilderMkText,ptext="length_of_coil_meters?: ",helpText="length_of_coil_meters=1",data="string")
|
|
78
|
+
if length_of_coil_meters is None:
|
|
79
|
+
return
|
|
80
|
+
elif length_of_coil_meters in ['d',]:
|
|
81
|
+
length_of_coil_meters='1m'
|
|
82
|
+
try:
|
|
83
|
+
length_of_coil_meters=unit_registry.Quantity(length_of_coil_meters).to('meters')
|
|
84
|
+
except Exception as e:
|
|
85
|
+
print(e,"defaulting to meters")
|
|
86
|
+
length_of_coil_meters=unit_registry.Quantity(f"{length_of_coil_meters} meters")
|
|
87
|
+
|
|
88
|
+
numerator=((turns_of_wire_on_coil**2)*core_cross_sectional_area_meters)
|
|
89
|
+
f=relative_permeability*(numerator/length_of_coil_meters)*1.26e-6
|
|
90
|
+
f=unit_registry.Quantity(f"{f.magnitude} H")
|
|
91
|
+
return f
|
|
92
|
+
|
|
93
|
+
|
|
49
94
|
|
|
50
95
|
preloader={
|
|
51
96
|
f'{uuid1()}':{
|
|
@@ -58,4 +103,10 @@ preloader={
|
|
|
58
103
|
'desc':f'find the volume of height*width*length using pint to normalize the values',
|
|
59
104
|
'exec':volume_pint
|
|
60
105
|
},
|
|
61
|
-
}
|
|
106
|
+
f'{uuid1()}':{
|
|
107
|
+
'cmds':['inductance pint',],
|
|
108
|
+
'desc':f'find the inductance using pint to normalize the values for inductance=relative_permeability*(((turns**2)*area)/length)*1.26e-6',
|
|
109
|
+
'exec':inductance_pint
|
|
110
|
+
},
|
|
111
|
+
}
|
|
112
|
+
|
|
@@ -5,7 +5,7 @@ radboy/Holidays.txt,sha256=y-JZPihh5iaWKxMIHNXD39yVuVmf1vMs4FdNDcg0f1Y,3114
|
|
|
5
5
|
radboy/InventoryGlossary.txt,sha256=018-Yqca6DFb10jPdkUY-5qhkRlQN1k3rxoTaERQ-LA,91008
|
|
6
6
|
radboy/RecordMyCodes.py,sha256=Lt2reA6xchq3U7Y08DvkrHboZ25i1ts7X2E9gSIwcVg,41101
|
|
7
7
|
radboy/Run.py,sha256=JUoCTHnzQBv7n8PB2_i93ANdAC_iW__RkAge8esCnk4,76
|
|
8
|
-
radboy/__init__.py,sha256=
|
|
8
|
+
radboy/__init__.py,sha256=8jLXIl3s2jzZtRPRSTQUrWq3V3oh8n97Q2-j6TsuGw8,17
|
|
9
9
|
radboy/api_key,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10
10
|
radboy/case-export-2024-05-14-13-10-00.672971.xlsx,sha256=Wd592d_VLFmfUI9KKKSVjNwjV91euc1T7ATyvwvUhlg,5431
|
|
11
11
|
radboy/case-export-2024-05-14-13-13-22.540614.xlsx,sha256=OnGrhmScHfGp_mVaWW-LNMsqrQgyZDpiU3wV-2s3U5Q,5556
|
|
@@ -397,7 +397,7 @@ radboy/__pycache__/Run.cpython-311.pyc,sha256=G_UEfMtkLRjR6ZpGA_BJzGenuaCcP469Y9
|
|
|
397
397
|
radboy/__pycache__/Run.cpython-312.pyc,sha256=v4xolc3mHyla991XhpYBUbBHYT0bnJ1gE-lkFoQ4GFA,241
|
|
398
398
|
radboy/__pycache__/__init__.cpython-311.pyc,sha256=R-DVbUioMOW-Fnaq7FpT5F1a5p0q3b_RW-HpLRArCAY,242
|
|
399
399
|
radboy/__pycache__/__init__.cpython-312.pyc,sha256=FsFzLXOlTK8_7ixoPZzakkR8Wibt-DvXLFh-oG2QlPw,164
|
|
400
|
-
radboy/__pycache__/__init__.cpython-313.pyc,sha256=
|
|
400
|
+
radboy/__pycache__/__init__.cpython-313.pyc,sha256=dJFADgfGgiqxQDfWTiDkz7W7NP1BUKnj8VSlD6wj5rE,165
|
|
401
401
|
radboy/__pycache__/__init__.cpython-39.pyc,sha256=D48T6x6FUeKPfubo0sdS_ZUut3FmBvPMP7qT6rYBZzU,275
|
|
402
402
|
radboy/__pycache__/possibleCode.cpython-311.pyc,sha256=zFiHyzqD8gUnIWu4vtyMYIBposiRQqaRXfcT_fOl4rU,20882
|
|
403
403
|
radboy/__pycache__/possibleCode.cpython-312.pyc,sha256=tk_CO-AcsO3YZj5j6vEsw3g37UmEzWc5YgeWEoJEUg4,27922
|
|
@@ -407,7 +407,7 @@ radboy/__pycache__/t.cpython-311.pyc,sha256=bVszNkmfiyoNLd0WUc8aBJc2geGseW4O28cq
|
|
|
407
407
|
radboy/__pycache__/te.cpython-311.pyc,sha256=vI8eNUE5VVrfCQvnrJ7WuWpoKcLz-vVK3ifdUZ4UNhk,592
|
|
408
408
|
radboy/__pycache__/x.cpython-311.pyc,sha256=3jIvWoO5y5WqrL_hRmXNK8O0vO7DwJ4gufjm2b0V7VI,1963
|
|
409
409
|
radboy/preloader/__init__.py,sha256=m7oQ0G4gRuB1c2FvrDJ51-euecvuSz5t6uAWkMOXAAg,895
|
|
410
|
-
radboy/preloader/preloader.py,sha256=
|
|
410
|
+
radboy/preloader/preloader.py,sha256=hDBCTDfEcpnm14AK7VAHU6jTntoyk9ODMX69ERRPMnM,3816
|
|
411
411
|
radboy/setCode/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
412
412
|
radboy/setCode/setCode.py,sha256=8UOf4okbx-Zane99odeoLAS_lfIt8pIaFomN7EtnnVA,5202
|
|
413
413
|
radboy/setCode/__pycache__/__init__.cpython-311.pyc,sha256=cJuP5rve6Wn7ZO789tixyOlyrHZQWsBxDn9oZGoG5WE,232
|
|
@@ -424,7 +424,7 @@ radboy/tkGui/Images/__pycache__/__init__.cpython-311.pyc,sha256=tXBYpqbOlZ24B1BI
|
|
|
424
424
|
radboy/tkGui/__pycache__/BeginnersLuck.cpython-311.pyc,sha256=xLQOnV1wuqHGaub16mPX0dDMGU9ryCeLtNz5e517_GE,3004
|
|
425
425
|
radboy/tkGui/__pycache__/Review.cpython-311.pyc,sha256=wKq24iM6Xe2OampgZ7-8U6Nvmgs2y-qWOrGwtWhc75k,4047
|
|
426
426
|
radboy/tkGui/__pycache__/__init__.cpython-311.pyc,sha256=BX7DBn5qbvKTvlrKOP5gzTBPBTeTgSMjBW6EMl7N8e0,230
|
|
427
|
-
radboy-0.0.
|
|
428
|
-
radboy-0.0.
|
|
429
|
-
radboy-0.0.
|
|
430
|
-
radboy-0.0.
|
|
427
|
+
radboy-0.0.548.dist-info/METADATA,sha256=O2Ee5v32wcxMNFowIqvJhks_RzabluFBvftwq-Prku0,1615
|
|
428
|
+
radboy-0.0.548.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
429
|
+
radboy-0.0.548.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
|
|
430
|
+
radboy-0.0.548.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|