dayhoff-tools 1.9.7__py3-none-any.whl → 1.9.8__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.
- dayhoff_tools/cli/engine_commands.py +11 -8
- {dayhoff_tools-1.9.7.dist-info → dayhoff_tools-1.9.8.dist-info}/METADATA +1 -1
- {dayhoff_tools-1.9.7.dist-info → dayhoff_tools-1.9.8.dist-info}/RECORD +5 -5
- {dayhoff_tools-1.9.7.dist-info → dayhoff_tools-1.9.8.dist-info}/WHEEL +0 -0
- {dayhoff_tools-1.9.7.dist-info → dayhoff_tools-1.9.8.dist-info}/entry_points.txt +0 -0
@@ -781,7 +781,11 @@ def engine_status(
|
|
781
781
|
if is_idle:
|
782
782
|
if isinstance(timeout_sec, int) and isinstance(idle_seconds, int):
|
783
783
|
remaining = max(0, timeout_sec - idle_seconds)
|
784
|
-
|
784
|
+
remaining_mins = remaining // 60
|
785
|
+
if remaining_mins == 0:
|
786
|
+
idle_disp = f" [yellow]Idle {idle_seconds//60}m/{timeout_sec//60}m: [red]<1m[/red] left[/yellow]"
|
787
|
+
else:
|
788
|
+
idle_disp = f" [yellow]Idle {idle_seconds//60}m/{timeout_sec//60}m: [red]{remaining_mins}m[/red] left[/yellow]"
|
785
789
|
else:
|
786
790
|
idle_disp = " [yellow]Idle ?/?[/yellow]"
|
787
791
|
else:
|
@@ -793,14 +797,9 @@ def engine_status(
|
|
793
797
|
f"[blue]{engine['name']}[/blue] {run_disp}{idle_disp}\n",
|
794
798
|
]
|
795
799
|
|
796
|
-
# Add studio owner if known
|
797
|
-
if studio_user:
|
798
|
-
status_lines.append(f"Studio: [magenta]{studio_user}[/magenta]")
|
799
|
-
|
800
800
|
# Add activity sensors if we have idle data
|
801
801
|
if idle_data and idle_data.get("reasons"):
|
802
|
-
status_lines.append("")
|
803
|
-
status_lines.append("[bold]Activity:[/bold]")
|
802
|
+
status_lines.append("") # blank line before sensors
|
804
803
|
|
805
804
|
sensor_map = {
|
806
805
|
"CoffeeLockSensor": ("☕", "Coffee"),
|
@@ -904,7 +903,11 @@ def engine_status(
|
|
904
903
|
thresh_v = idle_info.get("idle_threshold")
|
905
904
|
if isinstance(idle_seconds_v, (int, float)) and isinstance(thresh_v, (int, float)):
|
906
905
|
remaining = max(0, int(thresh_v) - int(idle_seconds_v))
|
907
|
-
|
906
|
+
remaining_mins = remaining // 60
|
907
|
+
if remaining_mins == 0:
|
908
|
+
return f"[yellow]Idle {int(idle_seconds_v)//60}m/{int(thresh_v)//60}m: [red]<1m[/red] left[/yellow]"
|
909
|
+
else:
|
910
|
+
return f"[yellow]Idle {int(idle_seconds_v)//60}m/{int(thresh_v)//60}m: [red]{remaining_mins}m[/red] left[/yellow]"
|
908
911
|
elif isinstance(thresh_v, (int, float)):
|
909
912
|
return f"[yellow]Idle ?/{int(thresh_v)//60}m[/yellow]"
|
910
913
|
else:
|
@@ -3,7 +3,7 @@ dayhoff_tools/chemistry/standardizer.py,sha256=uMn7VwHnx02nc404eO6fRuS4rsl4dvSPf
|
|
3
3
|
dayhoff_tools/chemistry/utils.py,sha256=jt-7JgF-GeeVC421acX-bobKbLU_X94KNOW24p_P-_M,2257
|
4
4
|
dayhoff_tools/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
5
|
dayhoff_tools/cli/cloud_commands.py,sha256=33qcWLmq-FwEXMdL3F0OHm-5Stlh2r65CldyEZgQ1no,40904
|
6
|
-
dayhoff_tools/cli/engine_commands.py,sha256=
|
6
|
+
dayhoff_tools/cli/engine_commands.py,sha256=Ub-a5D93YvkciBZZ5Peny7ExEyvpZHUNhckwoVWb7iY,112861
|
7
7
|
dayhoff_tools/cli/main.py,sha256=LoFs3SI4fdCjP4pdxEAhri-_q0dmNYupmBCRE4KbBac,5933
|
8
8
|
dayhoff_tools/cli/swarm_commands.py,sha256=5EyKj8yietvT5lfoz8Zx0iQvVaNgc3SJX1z2zQR6o6M,5614
|
9
9
|
dayhoff_tools/cli/utility_commands.py,sha256=WQTHOh1MttuxaJjl2c6zMa4x7_JuaKMQgcyotYrU3GA,25883
|
@@ -27,7 +27,7 @@ dayhoff_tools/intake/uniprot.py,sha256=BZYJQF63OtPcBBnQ7_P9gulxzJtqyorgyuDiPeOJq
|
|
27
27
|
dayhoff_tools/logs.py,sha256=DKdeP0k0kliRcilwvX0mUB2eipO5BdWUeHwh-VnsICs,838
|
28
28
|
dayhoff_tools/sqlite.py,sha256=jV55ikF8VpTfeQqqlHSbY8OgfyfHj8zgHNpZjBLos_E,18672
|
29
29
|
dayhoff_tools/warehouse.py,sha256=UETBtZD3r7WgvURqfGbyHlT7cxoiVq8isjzMuerKw8I,24475
|
30
|
-
dayhoff_tools-1.9.
|
31
|
-
dayhoff_tools-1.9.
|
32
|
-
dayhoff_tools-1.9.
|
33
|
-
dayhoff_tools-1.9.
|
30
|
+
dayhoff_tools-1.9.8.dist-info/METADATA,sha256=9BRSMjhcHQLYNDDAsAPv96bto0ql63f6d-83RMjXAVQ,2914
|
31
|
+
dayhoff_tools-1.9.8.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
32
|
+
dayhoff_tools-1.9.8.dist-info/entry_points.txt,sha256=iAf4jteNqW3cJm6CO6czLxjW3vxYKsyGLZ8WGmxamSc,49
|
33
|
+
dayhoff_tools-1.9.8.dist-info/RECORD,,
|
File without changes
|
File without changes
|