dayhoff-tools 1.9.7__tar.gz → 1.9.8__tar.gz

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.
Files changed (32) hide show
  1. {dayhoff_tools-1.9.7 → dayhoff_tools-1.9.8}/PKG-INFO +1 -1
  2. {dayhoff_tools-1.9.7 → dayhoff_tools-1.9.8}/dayhoff_tools/cli/engine_commands.py +11 -8
  3. {dayhoff_tools-1.9.7 → dayhoff_tools-1.9.8}/pyproject.toml +1 -1
  4. {dayhoff_tools-1.9.7 → dayhoff_tools-1.9.8}/README.md +0 -0
  5. {dayhoff_tools-1.9.7 → dayhoff_tools-1.9.8}/dayhoff_tools/__init__.py +0 -0
  6. {dayhoff_tools-1.9.7 → dayhoff_tools-1.9.8}/dayhoff_tools/chemistry/standardizer.py +0 -0
  7. {dayhoff_tools-1.9.7 → dayhoff_tools-1.9.8}/dayhoff_tools/chemistry/utils.py +0 -0
  8. {dayhoff_tools-1.9.7 → dayhoff_tools-1.9.8}/dayhoff_tools/cli/__init__.py +0 -0
  9. {dayhoff_tools-1.9.7 → dayhoff_tools-1.9.8}/dayhoff_tools/cli/cloud_commands.py +0 -0
  10. {dayhoff_tools-1.9.7 → dayhoff_tools-1.9.8}/dayhoff_tools/cli/main.py +0 -0
  11. {dayhoff_tools-1.9.7 → dayhoff_tools-1.9.8}/dayhoff_tools/cli/swarm_commands.py +0 -0
  12. {dayhoff_tools-1.9.7 → dayhoff_tools-1.9.8}/dayhoff_tools/cli/utility_commands.py +0 -0
  13. {dayhoff_tools-1.9.7 → dayhoff_tools-1.9.8}/dayhoff_tools/deployment/base.py +0 -0
  14. {dayhoff_tools-1.9.7 → dayhoff_tools-1.9.8}/dayhoff_tools/deployment/deploy_aws.py +0 -0
  15. {dayhoff_tools-1.9.7 → dayhoff_tools-1.9.8}/dayhoff_tools/deployment/deploy_gcp.py +0 -0
  16. {dayhoff_tools-1.9.7 → dayhoff_tools-1.9.8}/dayhoff_tools/deployment/deploy_utils.py +0 -0
  17. {dayhoff_tools-1.9.7 → dayhoff_tools-1.9.8}/dayhoff_tools/deployment/job_runner.py +0 -0
  18. {dayhoff_tools-1.9.7 → dayhoff_tools-1.9.8}/dayhoff_tools/deployment/processors.py +0 -0
  19. {dayhoff_tools-1.9.7 → dayhoff_tools-1.9.8}/dayhoff_tools/deployment/swarm.py +0 -0
  20. {dayhoff_tools-1.9.7 → dayhoff_tools-1.9.8}/dayhoff_tools/embedders.py +0 -0
  21. {dayhoff_tools-1.9.7 → dayhoff_tools-1.9.8}/dayhoff_tools/fasta.py +0 -0
  22. {dayhoff_tools-1.9.7 → dayhoff_tools-1.9.8}/dayhoff_tools/file_ops.py +0 -0
  23. {dayhoff_tools-1.9.7 → dayhoff_tools-1.9.8}/dayhoff_tools/h5.py +0 -0
  24. {dayhoff_tools-1.9.7 → dayhoff_tools-1.9.8}/dayhoff_tools/intake/gcp.py +0 -0
  25. {dayhoff_tools-1.9.7 → dayhoff_tools-1.9.8}/dayhoff_tools/intake/gtdb.py +0 -0
  26. {dayhoff_tools-1.9.7 → dayhoff_tools-1.9.8}/dayhoff_tools/intake/kegg.py +0 -0
  27. {dayhoff_tools-1.9.7 → dayhoff_tools-1.9.8}/dayhoff_tools/intake/mmseqs.py +0 -0
  28. {dayhoff_tools-1.9.7 → dayhoff_tools-1.9.8}/dayhoff_tools/intake/structure.py +0 -0
  29. {dayhoff_tools-1.9.7 → dayhoff_tools-1.9.8}/dayhoff_tools/intake/uniprot.py +0 -0
  30. {dayhoff_tools-1.9.7 → dayhoff_tools-1.9.8}/dayhoff_tools/logs.py +0 -0
  31. {dayhoff_tools-1.9.7 → dayhoff_tools-1.9.8}/dayhoff_tools/sqlite.py +0 -0
  32. {dayhoff_tools-1.9.7 → dayhoff_tools-1.9.8}/dayhoff_tools/warehouse.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: dayhoff-tools
3
- Version: 1.9.7
3
+ Version: 1.9.8
4
4
  Summary: Common tools for all the repos at Dayhoff Labs
5
5
  Author: Daniel Martin-Alarcon
6
6
  Author-email: dma@dayhofflabs.com
@@ -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
- idle_disp = f" [yellow]Idle {idle_seconds//60}m/{timeout_sec//60}m: [red]{remaining//60}m {remaining%60}s[/red] left[/yellow]"
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
- return f"[yellow]Idle {int(idle_seconds_v)//60}m/{int(thresh_v)//60}m: [red]{remaining//60}m {remaining%60}s[/red] left[/yellow]"
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:
@@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api"
5
5
 
6
6
  [project]
7
7
  name = "dayhoff-tools"
8
- version = "1.9.7"
8
+ version = "1.9.8"
9
9
  description = "Common tools for all the repos at Dayhoff Labs"
10
10
  authors = [
11
11
  {name = "Daniel Martin-Alarcon", email = "dma@dayhofflabs.com"}
File without changes