radboy 0.0.466__py3-none-any.whl → 0.0.468__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/HealthLog/HealthLog.py +34 -0
- radboy/HealthLog/__pycache__/HealthLog.cpython-313.pyc +0 -0
- radboy/TasksMode/Tasks.py +22 -13
- radboy/TasksMode/__pycache__/Tasks.cpython-313.pyc +0 -0
- radboy/__init__.py +1 -1
- radboy/__pycache__/__init__.cpython-313.pyc +0 -0
- {radboy-0.0.466.dist-info → radboy-0.0.468.dist-info}/METADATA +1 -1
- {radboy-0.0.466.dist-info → radboy-0.0.468.dist-info}/RECORD +10 -10
- {radboy-0.0.466.dist-info → radboy-0.0.468.dist-info}/WHEEL +0 -0
- {radboy-0.0.466.dist-info → radboy-0.0.468.dist-info}/top_level.txt +0 -0
radboy/HealthLog/HealthLog.py
CHANGED
|
@@ -276,6 +276,8 @@ class HealthLogUi:
|
|
|
276
276
|
dfTmp['DTOES']=dfTmp['DTOE'].dt.strftime("%d/%m/%Y")
|
|
277
277
|
z=[[v,u] for v,u in zip(dfTmp[field],dfTmp['DrugQtyConsumedUnitName'])]
|
|
278
278
|
units=[i for i in dfTmp['DrugQtyConsumedUnitName'].unique()]
|
|
279
|
+
|
|
280
|
+
|
|
279
281
|
for i in z:
|
|
280
282
|
print(pint.Quantity(i[0],i[1]).magnitude,i[-1])
|
|
281
283
|
unit=''
|
|
@@ -323,6 +325,22 @@ class HealthLogUi:
|
|
|
323
325
|
except Exception as e:
|
|
324
326
|
if errors:
|
|
325
327
|
print(e)
|
|
328
|
+
|
|
329
|
+
try:
|
|
330
|
+
df_from_records['tsa']=pd.to_datetime(df_from_records['DTOE'])
|
|
331
|
+
times_recorded=[int(f"{i.hour}") for i in df_from_records['tsa']]
|
|
332
|
+
bins=Prompt.__init2__(None,func=FormBuilderMkText,ptext=f"Histogram Bins[bins for 24H]",helpText=f"bins for 24H",data="integer")
|
|
333
|
+
if bins is None:
|
|
334
|
+
return
|
|
335
|
+
elif bins in ['d',]:
|
|
336
|
+
bins=24
|
|
337
|
+
plt.hist(times_recorded,bins=bins,label=histoLabel)
|
|
338
|
+
plt.show()
|
|
339
|
+
plt.clf()
|
|
340
|
+
print(f"{Fore.orange_red_1}Hours of the Day Recorded{Fore.magenta}{histoLabel}total Entry Data Points = {len(dfTmp[field])}{Style.reset}")
|
|
341
|
+
except Exception as e:
|
|
342
|
+
if errors:
|
|
343
|
+
print(e,'#ec2')
|
|
326
344
|
|
|
327
345
|
barLabel=f'Maxes {field} TotalView:Bar'
|
|
328
346
|
|
|
@@ -368,6 +386,22 @@ class HealthLogUi:
|
|
|
368
386
|
except Exception as e:
|
|
369
387
|
if errors:
|
|
370
388
|
print(e)
|
|
389
|
+
|
|
390
|
+
try:
|
|
391
|
+
df_from_records['tsa']=pd.to_datetime(df_from_records['DTOE'])
|
|
392
|
+
times_recorded=[int(f"{i.hour}") for i in df_from_records['tsa']]
|
|
393
|
+
bins=Prompt.__init2__(None,func=FormBuilderMkText,ptext=f"Histogram Bins[bins for 24H]",helpText=f"bins for 24H",data="integer")
|
|
394
|
+
if bins is None:
|
|
395
|
+
return
|
|
396
|
+
elif bins in ['d',]:
|
|
397
|
+
bins=24
|
|
398
|
+
plt.hist(times_recorded,bins=bins,label=histoLabel)
|
|
399
|
+
plt.show()
|
|
400
|
+
plt.clf()
|
|
401
|
+
print(f"{Fore.orange_red_1}Hours of the Day Recorded{Fore.magenta}{histoLabel}total Entry Data Points = {len(df_from_records[field])}{Style.reset}")
|
|
402
|
+
except Exception as e:
|
|
403
|
+
if errors:
|
|
404
|
+
print(e,'ec3')
|
|
371
405
|
except Exception as ee:
|
|
372
406
|
if errors:
|
|
373
407
|
print(ee,repr(ee))
|
|
Binary file
|
radboy/TasksMode/Tasks.py
CHANGED
|
@@ -2153,11 +2153,11 @@ so use {Fore.orange_red_1}ls-lq/ls Shelf {Fore.light_yellow}from {Fore.light_mag
|
|
|
2153
2153
|
result=session.query(Entry).filter(Entry.EntryId==resultx.EntryId).first()
|
|
2154
2154
|
|
|
2155
2155
|
if result.Price is None:
|
|
2156
|
-
result.Price=0
|
|
2156
|
+
result.Price=Decimal('0.00')
|
|
2157
2157
|
if result.Tax is None:
|
|
2158
|
-
result.Tax=0
|
|
2158
|
+
result.Tax=Decimal('0.00')
|
|
2159
2159
|
if result.CRV is None:
|
|
2160
|
-
result.CRV=0
|
|
2160
|
+
result.CRV=Decimal('0.00')
|
|
2161
2161
|
for k in ['PalletCount','ShelfCount','LoadCount','CaseCount','Facings']:
|
|
2162
2162
|
if getattr(result,k) < 1 or getattr(result,k) == None:
|
|
2163
2163
|
setattr(result,k,1)
|
|
@@ -2183,7 +2183,10 @@ so use {Fore.orange_red_1}ls-lq/ls Shelf {Fore.light_yellow}from {Fore.light_mag
|
|
|
2183
2183
|
total_price=round(round(result.Price+result.Tax,3)+round(result.CRV,3),3)
|
|
2184
2184
|
|
|
2185
2185
|
try:
|
|
2186
|
-
|
|
2186
|
+
if result.Tax > 0:
|
|
2187
|
+
taxRate=Decimal(result.Tax/(result.Price+result.CRV)).quantize(Decimal("0.00000"))
|
|
2188
|
+
else:
|
|
2189
|
+
taxRate=Decimal('0.00000')
|
|
2187
2190
|
except Exception as e:
|
|
2188
2191
|
ex=[e,str(e),repr(e)]
|
|
2189
2192
|
ct=len(ex)
|
|
@@ -2191,7 +2194,7 @@ so use {Fore.orange_red_1}ls-lq/ls Shelf {Fore.light_yellow}from {Fore.light_mag
|
|
|
2191
2194
|
print(std_colorize(z,num,ct))
|
|
2192
2195
|
|
|
2193
2196
|
taxRate=Decimal('0.00000')
|
|
2194
|
-
result.Tax=0
|
|
2197
|
+
result.Tax=Decimal('0.00')
|
|
2195
2198
|
session.commit()
|
|
2196
2199
|
session.refresh(result)
|
|
2197
2200
|
|
|
@@ -2769,11 +2772,11 @@ Location Fields:
|
|
|
2769
2772
|
{Style.bold}{Fore.orange_red_1}Code={Fore.spring_green_3a}{CD}{Style.reset}'''
|
|
2770
2773
|
if isinstance(result,Entry):
|
|
2771
2774
|
if result.Price is None:
|
|
2772
|
-
result.Price=0
|
|
2775
|
+
result.Price=Decimal('0.00')
|
|
2773
2776
|
if result.Tax is None:
|
|
2774
|
-
result.Tax=0
|
|
2777
|
+
result.Tax=Decimal('0.00')
|
|
2775
2778
|
if result.CRV is None:
|
|
2776
|
-
result.CRV=0
|
|
2779
|
+
result.CRV=Decimal('0.00')
|
|
2777
2780
|
for k in ['PalletCount','ShelfCount','LoadCount','CaseCount','Facings']:
|
|
2778
2781
|
if getattr(result,k) < 1 or getattr(result,k) == None:
|
|
2779
2782
|
setattr(result,k,1)
|
|
@@ -2797,15 +2800,18 @@ Location Fields:
|
|
|
2797
2800
|
else:
|
|
2798
2801
|
total_price=round(round(result.Price+result.Tax,3)+round(result.CRV,3),3)
|
|
2799
2802
|
try:
|
|
2800
|
-
|
|
2803
|
+
if result.Tax > 0:
|
|
2804
|
+
taxRate=Decimal(result.Tax/(result.Price+result.CRV)).quantize(Decimal("0.00000"))
|
|
2805
|
+
else:
|
|
2806
|
+
taxRate=Decimal('0.00000')
|
|
2801
2807
|
except Exception as e:
|
|
2802
2808
|
ex=[e,str(e),repr(e)]
|
|
2803
2809
|
ct=len(ex)
|
|
2804
2810
|
for num,z in enumerate(ex):
|
|
2805
2811
|
print(std_colorize(z,num,ct))
|
|
2806
|
-
|
|
2812
|
+
|
|
2807
2813
|
taxRate=Decimal('0.00000')
|
|
2808
|
-
result.Tax=0
|
|
2814
|
+
result.Tax=Decimal('0.00')
|
|
2809
2815
|
session.commit()
|
|
2810
2816
|
session.refresh(result)
|
|
2811
2817
|
|
|
@@ -2918,7 +2924,10 @@ Location Fields:
|
|
|
2918
2924
|
else:
|
|
2919
2925
|
total_price=round(round(result.Price+result.Tax,3)+round(result.CRV,3),3)
|
|
2920
2926
|
try:
|
|
2921
|
-
|
|
2927
|
+
if result.Tax > 0:
|
|
2928
|
+
taxRate=Decimal(result.Tax/(result.Price+result.CRV)).quantize(Decimal("0.00000"))
|
|
2929
|
+
else:
|
|
2930
|
+
taxRate=Decimal('0.00000')
|
|
2922
2931
|
except Exception as e:
|
|
2923
2932
|
ex=[e,str(e),repr(e)]
|
|
2924
2933
|
ct=len(ex)
|
|
@@ -2926,7 +2935,7 @@ Location Fields:
|
|
|
2926
2935
|
print(std_colorize(z,num,ct))
|
|
2927
2936
|
|
|
2928
2937
|
taxRate=Decimal('0.00000')
|
|
2929
|
-
result.Tax=0
|
|
2938
|
+
result.Tax=Decimal('0.00')
|
|
2930
2939
|
session.commit()
|
|
2931
2940
|
session.refresh(result)
|
|
2932
2941
|
|
|
Binary file
|
radboy/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
VERSION='0.0.
|
|
1
|
+
VERSION='0.0.468'
|
|
Binary file
|
|
@@ -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=n3070Jb_hQlVexObY_sMi8zS-rw2iJHUNkgAaz8mwpY,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
|
|
@@ -210,10 +210,10 @@ radboy/GeoTools/__pycache__/GeoClass.cpython-313.pyc,sha256=eZ6hpLKoic1XCb7BKKg-
|
|
|
210
210
|
radboy/GeoTools/__pycache__/OSMClass.cpython-312.pyc,sha256=5RoT8_wiI8R7yb_B9FWIC7mALdGNoqyWtkzsjM2pbh0,40387
|
|
211
211
|
radboy/GeoTools/__pycache__/__init__.cpython-312.pyc,sha256=Y7Xtrzwm44-xuY_4NK8aDjYfVmXIzUFWOyexJu9le8A,1238
|
|
212
212
|
radboy/GeoTools/__pycache__/__init__.cpython-313.pyc,sha256=-bk9eEIxWZgHYZHtNJbrpubDRWkbdYNkGr5J7sVhyIE,1238
|
|
213
|
-
radboy/HealthLog/HealthLog.py,sha256=
|
|
213
|
+
radboy/HealthLog/HealthLog.py,sha256=9tCpmi6u7N1zSCGCTf1f5NxKl0ht-lvHmUSVqnk8zh4,26664
|
|
214
214
|
radboy/HealthLog/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
215
215
|
radboy/HealthLog/__pycache__/HealthLog.cpython-312.pyc,sha256=hTo4o7jo9L2yqPZgzuKUw_kon_PVcCuTRguELTuLrIo,27946
|
|
216
|
-
radboy/HealthLog/__pycache__/HealthLog.cpython-313.pyc,sha256=
|
|
216
|
+
radboy/HealthLog/__pycache__/HealthLog.cpython-313.pyc,sha256=tAS1OoGfGi-opNhHAI5Nn5YhiMPScE3ZqNj-H1jJkvs,42836
|
|
217
217
|
radboy/HealthLog/__pycache__/__init__.cpython-312.pyc,sha256=yZrYKBk31pGSjCRqmqzpX409iw-muC1zsNO2ObqkGlY,272
|
|
218
218
|
radboy/HealthLog/__pycache__/__init__.cpython-313.pyc,sha256=cqdZbEJKq9XVoVqDAwsW0pwwBBGSerJNWGlST3YVR3g,151
|
|
219
219
|
radboy/InListRestore/ILR.py,sha256=s8fbbHLKQSVJX1VaeyGE-vdIUGBEbOPX29kRIG2j2WY,16847
|
|
@@ -342,7 +342,7 @@ radboy/SystemSettings/__pycache__/__init__.cpython-312.pyc,sha256=aIzp4Po0t8EhSA
|
|
|
342
342
|
radboy/SystemSettings/__pycache__/__init__.cpython-313.pyc,sha256=QFDuoidxMWsGVLsy5lN-rDs6TP8nKJ4yyCyiamNOhwo,156
|
|
343
343
|
radboy/TasksMode/ReFormula.py,sha256=REDRJYub-OEOE6g14oRQOLOQwv8pHqVJy4NQk3CCM90,2255
|
|
344
344
|
radboy/TasksMode/SetEntryNEU.py,sha256=TTzlAT5rNXvXUAy16BHBq0hJOKhONYpPhdAfQKdTfGw,17364
|
|
345
|
-
radboy/TasksMode/Tasks.py,sha256
|
|
345
|
+
radboy/TasksMode/Tasks.py,sha256=_bS6WHJfPBFXursVyiqJIz4HTk-RDJ59JxCx2O416Nk,321812
|
|
346
346
|
radboy/TasksMode/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
347
347
|
radboy/TasksMode/__pycache__/ReFormula.cpython-311.pyc,sha256=QEG3PwVw-8HTd_Mf9XbVcxU56F1fC9yBqWXYPLC39DU,4865
|
|
348
348
|
radboy/TasksMode/__pycache__/ReFormula.cpython-312.pyc,sha256=aX7BWm2PPjCTnxsbGUitR-2h9hq4AjaBiHMrUXvIl0Y,3967
|
|
@@ -351,7 +351,7 @@ radboy/TasksMode/__pycache__/SetEntryNEU.cpython-312.pyc,sha256=pCdFj61aPKkHL6Sv
|
|
|
351
351
|
radboy/TasksMode/__pycache__/SetEntryNEU.cpython-313.pyc,sha256=eSWkYvfm5RuRE5rbO5wI7XxzFyKnp6KlbphSqPAF2z4,20133
|
|
352
352
|
radboy/TasksMode/__pycache__/Tasks.cpython-311.pyc,sha256=6QOTJnLiXSKdF81hkhy3vyrz49PPhS20s5_0X52g3Hw,131120
|
|
353
353
|
radboy/TasksMode/__pycache__/Tasks.cpython-312.pyc,sha256=hyJwdaYaaRLdcrNxgg36diJ5iijX5_3I0UAORsj-6LU,310295
|
|
354
|
-
radboy/TasksMode/__pycache__/Tasks.cpython-313.pyc,sha256=
|
|
354
|
+
radboy/TasksMode/__pycache__/Tasks.cpython-313.pyc,sha256=HmFSgUm-seojqWf2-cg9jUTFZF7KYTnPl4OEq0R3Ypw,395252
|
|
355
355
|
radboy/TasksMode/__pycache__/__init__.cpython-311.pyc,sha256=PKV1JbihEacm639b53bZozRQvcllSkjGP3q8STVMxF4,234
|
|
356
356
|
radboy/TasksMode/__pycache__/__init__.cpython-312.pyc,sha256=ERgnEvRMiGSecWp1BpNzLdSq_SdKw7GvFWUvUM7bLVw,272
|
|
357
357
|
radboy/TasksMode/__pycache__/__init__.cpython-313.pyc,sha256=lvsTxukyvGKB3C0rdF9dQi_bvVh6ceDVINfwcuIsd0s,151
|
|
@@ -398,7 +398,7 @@ radboy/__pycache__/Run.cpython-311.pyc,sha256=G_UEfMtkLRjR6ZpGA_BJzGenuaCcP469Y9
|
|
|
398
398
|
radboy/__pycache__/Run.cpython-312.pyc,sha256=v4xolc3mHyla991XhpYBUbBHYT0bnJ1gE-lkFoQ4GFA,241
|
|
399
399
|
radboy/__pycache__/__init__.cpython-311.pyc,sha256=R-DVbUioMOW-Fnaq7FpT5F1a5p0q3b_RW-HpLRArCAY,242
|
|
400
400
|
radboy/__pycache__/__init__.cpython-312.pyc,sha256=FsFzLXOlTK8_7ixoPZzakkR8Wibt-DvXLFh-oG2QlPw,164
|
|
401
|
-
radboy/__pycache__/__init__.cpython-313.pyc,sha256=
|
|
401
|
+
radboy/__pycache__/__init__.cpython-313.pyc,sha256=RncTPzxg7AC8aub_02wjGCzQuQiSMyOFyOIn7uZsFRs,165
|
|
402
402
|
radboy/__pycache__/__init__.cpython-39.pyc,sha256=D48T6x6FUeKPfubo0sdS_ZUut3FmBvPMP7qT6rYBZzU,275
|
|
403
403
|
radboy/__pycache__/possibleCode.cpython-311.pyc,sha256=zFiHyzqD8gUnIWu4vtyMYIBposiRQqaRXfcT_fOl4rU,20882
|
|
404
404
|
radboy/__pycache__/possibleCode.cpython-312.pyc,sha256=tk_CO-AcsO3YZj5j6vEsw3g37UmEzWc5YgeWEoJEUg4,27922
|
|
@@ -423,7 +423,7 @@ radboy/tkGui/Images/__pycache__/__init__.cpython-311.pyc,sha256=tXBYpqbOlZ24B1BI
|
|
|
423
423
|
radboy/tkGui/__pycache__/BeginnersLuck.cpython-311.pyc,sha256=xLQOnV1wuqHGaub16mPX0dDMGU9ryCeLtNz5e517_GE,3004
|
|
424
424
|
radboy/tkGui/__pycache__/Review.cpython-311.pyc,sha256=wKq24iM6Xe2OampgZ7-8U6Nvmgs2y-qWOrGwtWhc75k,4047
|
|
425
425
|
radboy/tkGui/__pycache__/__init__.cpython-311.pyc,sha256=BX7DBn5qbvKTvlrKOP5gzTBPBTeTgSMjBW6EMl7N8e0,230
|
|
426
|
-
radboy-0.0.
|
|
427
|
-
radboy-0.0.
|
|
428
|
-
radboy-0.0.
|
|
429
|
-
radboy-0.0.
|
|
426
|
+
radboy-0.0.468.dist-info/METADATA,sha256=Bmzp34_QgQ37-5SlLWhpPhgKuWVMV4bdnJlGEPn6Dro,1601
|
|
427
|
+
radboy-0.0.468.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
428
|
+
radboy-0.0.468.dist-info/top_level.txt,sha256=mlM0RWMUxGo1YHnlLmYrHOgGdK4XNRpr7nMFD5lR56c,7
|
|
429
|
+
radboy-0.0.468.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|