radboy 0.0.547__py3-none-any.whl → 0.0.549__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/TasksMode/Tasks.py +4 -2
- radboy/TasksMode/__pycache__/Tasks.cpython-313.pyc +0 -0
- 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.549.dist-info}/METADATA +1 -1
- {radboy-0.0.547.dist-info → radboy-0.0.549.dist-info}/RECORD +9 -9
- {radboy-0.0.547.dist-info → radboy-0.0.549.dist-info}/WHEEL +0 -0
- {radboy-0.0.547.dist-info → radboy-0.0.549.dist-info}/top_level.txt +0 -0
radboy/TasksMode/Tasks.py
CHANGED
|
@@ -425,7 +425,8 @@ class Formulae:
|
|
|
425
425
|
'exec':self.findAndUse2
|
|
426
426
|
}
|
|
427
427
|
for num,i in enumerate(self.options):
|
|
428
|
-
self.options[i]['cmds']
|
|
428
|
+
if str(i) not in self.options[i]['cmds']:
|
|
429
|
+
self.options[i]['cmds'].append(str(num))
|
|
429
430
|
options=copy(self.options)
|
|
430
431
|
|
|
431
432
|
while True:
|
|
@@ -806,7 +807,8 @@ class Formulae:
|
|
|
806
807
|
'exec':self.findAndUse2
|
|
807
808
|
}
|
|
808
809
|
for num,i in enumerate(self.options):
|
|
809
|
-
self.options[i]['cmds']
|
|
810
|
+
if str(i) not in self.options[i]['cmds']:
|
|
811
|
+
self.options[i]['cmds'].append(str(num))
|
|
810
812
|
options=copy(self.options)
|
|
811
813
|
while True:
|
|
812
814
|
helpText=[]
|
|
Binary file
|
radboy/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
VERSION='0.0.
|
|
1
|
+
VERSION='0.0.549'
|
|
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':['self-inductance pint',],
|
|
108
|
+
'desc':f'find self-inductance using pint to normalize the values for self-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=JmxpOisPNAavBV56vBBrnmlAbykiT-1kqUyWuWcMZCA,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
|
|
@@ -341,7 +341,7 @@ radboy/SystemSettings/__pycache__/__init__.cpython-312.pyc,sha256=aIzp4Po0t8EhSA
|
|
|
341
341
|
radboy/SystemSettings/__pycache__/__init__.cpython-313.pyc,sha256=QFDuoidxMWsGVLsy5lN-rDs6TP8nKJ4yyCyiamNOhwo,156
|
|
342
342
|
radboy/TasksMode/ReFormula.py,sha256=REDRJYub-OEOE6g14oRQOLOQwv8pHqVJy4NQk3CCM90,2255
|
|
343
343
|
radboy/TasksMode/SetEntryNEU.py,sha256=Gu0Z677tjpc7-9AQtLbIr7yzPx6ZJXGK33lOIgU0IRM,17432
|
|
344
|
-
radboy/TasksMode/Tasks.py,sha256=
|
|
344
|
+
radboy/TasksMode/Tasks.py,sha256=me0qkVVgzjdhUbGQ0CAU_fR1MhzHaHGh6Ll4s5slgMU,340600
|
|
345
345
|
radboy/TasksMode/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
346
346
|
radboy/TasksMode/__pycache__/ReFormula.cpython-311.pyc,sha256=QEG3PwVw-8HTd_Mf9XbVcxU56F1fC9yBqWXYPLC39DU,4865
|
|
347
347
|
radboy/TasksMode/__pycache__/ReFormula.cpython-312.pyc,sha256=aX7BWm2PPjCTnxsbGUitR-2h9hq4AjaBiHMrUXvIl0Y,3967
|
|
@@ -350,7 +350,7 @@ radboy/TasksMode/__pycache__/SetEntryNEU.cpython-312.pyc,sha256=pCdFj61aPKkHL6Sv
|
|
|
350
350
|
radboy/TasksMode/__pycache__/SetEntryNEU.cpython-313.pyc,sha256=UExwr8dN2STFEDE5t_YnQFMUX-wGv7JH10I1OyBDRtM,20212
|
|
351
351
|
radboy/TasksMode/__pycache__/Tasks.cpython-311.pyc,sha256=6QOTJnLiXSKdF81hkhy3vyrz49PPhS20s5_0X52g3Hw,131120
|
|
352
352
|
radboy/TasksMode/__pycache__/Tasks.cpython-312.pyc,sha256=hyJwdaYaaRLdcrNxgg36diJ5iijX5_3I0UAORsj-6LU,310295
|
|
353
|
-
radboy/TasksMode/__pycache__/Tasks.cpython-313.pyc,sha256=
|
|
353
|
+
radboy/TasksMode/__pycache__/Tasks.cpython-313.pyc,sha256=zgkkNv2h0YE7l3Sgb3039ESkwrZ_hAG5Lr7Klbm8D_g,412809
|
|
354
354
|
radboy/TasksMode/__pycache__/__init__.cpython-311.pyc,sha256=PKV1JbihEacm639b53bZozRQvcllSkjGP3q8STVMxF4,234
|
|
355
355
|
radboy/TasksMode/__pycache__/__init__.cpython-312.pyc,sha256=ERgnEvRMiGSecWp1BpNzLdSq_SdKw7GvFWUvUM7bLVw,272
|
|
356
356
|
radboy/TasksMode/__pycache__/__init__.cpython-313.pyc,sha256=lvsTxukyvGKB3C0rdF9dQi_bvVh6ceDVINfwcuIsd0s,151
|
|
@@ -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=fKaq-K4aTbo_K8fXF0mVwhxJVahofMBoX9-0KgK9w0c,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=CioNJg9jiUI4kJtmq9pZAlSscj2tMBe1e8n35PzfiBs,3827
|
|
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.549.dist-info/METADATA,sha256=_6d-QUdclW717AlBV3g4ajr_O1bt2yNV3YiopkpDY14,1615
|
|
428
|
+
radboy-0.0.549.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
429
|
+
radboy-0.0.549.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
|
|
430
|
+
radboy-0.0.549.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|