dayhoff-tools 1.2.3__py3-none-any.whl → 1.2.4__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/warehouse.py +21 -0
- {dayhoff_tools-1.2.3.dist-info → dayhoff_tools-1.2.4.dist-info}/METADATA +1 -1
- {dayhoff_tools-1.2.3.dist-info → dayhoff_tools-1.2.4.dist-info}/RECORD +5 -5
- {dayhoff_tools-1.2.3.dist-info → dayhoff_tools-1.2.4.dist-info}/WHEEL +0 -0
- {dayhoff_tools-1.2.3.dist-info → dayhoff_tools-1.2.4.dist-info}/entry_points.txt +0 -0
dayhoff_tools/warehouse.py
CHANGED
@@ -282,6 +282,27 @@ def add_to_warehouse(
|
|
282
282
|
# Change the working directory to the warehouse folder
|
283
283
|
os.chdir("warehouse")
|
284
284
|
|
285
|
+
# Configure DVC cache for Lightning Studio if needed
|
286
|
+
if os.path.exists("/teamspace/studios/this_studio"):
|
287
|
+
studio_cache_dir = "/teamspace/studios/this_studio/.dvc_cache"
|
288
|
+
os.makedirs(studio_cache_dir, exist_ok=True)
|
289
|
+
try:
|
290
|
+
result = subprocess.run(
|
291
|
+
["dvc", "cache", "dir"], capture_output=True, text=True, check=True
|
292
|
+
)
|
293
|
+
current_cache = result.stdout.strip()
|
294
|
+
if current_cache != studio_cache_dir:
|
295
|
+
subprocess.run(
|
296
|
+
["dvc", "cache", "dir", studio_cache_dir, "--local"], check=True
|
297
|
+
)
|
298
|
+
print(
|
299
|
+
f"✅ Configured warehouse DVC cache for Lightning Studio: {studio_cache_dir}"
|
300
|
+
)
|
301
|
+
except subprocess.CalledProcessError:
|
302
|
+
subprocess.run(
|
303
|
+
["dvc", "cache", "dir", studio_cache_dir, "--local"], check=True
|
304
|
+
)
|
305
|
+
|
285
306
|
# Add and push the data file
|
286
307
|
subprocess.run(["dvc", "add", warehouse_path], check=True)
|
287
308
|
|
@@ -25,8 +25,8 @@ dayhoff_tools/intake/structure.py,sha256=ufN3gAodQxhnt7psK1VTQeu9rKERmo_PhoxIbB4
|
|
25
25
|
dayhoff_tools/intake/uniprot.py,sha256=BZYJQF63OtPcBBnQ7_P9gulxzJtqyorgyuDiPeOJqE4,16456
|
26
26
|
dayhoff_tools/logs.py,sha256=DKdeP0k0kliRcilwvX0mUB2eipO5BdWUeHwh-VnsICs,838
|
27
27
|
dayhoff_tools/sqlite.py,sha256=jV55ikF8VpTfeQqqlHSbY8OgfyfHj8zgHNpZjBLos_E,18672
|
28
|
-
dayhoff_tools/warehouse.py,sha256=
|
29
|
-
dayhoff_tools-1.2.
|
30
|
-
dayhoff_tools-1.2.
|
31
|
-
dayhoff_tools-1.2.
|
32
|
-
dayhoff_tools-1.2.
|
28
|
+
dayhoff_tools/warehouse.py,sha256=8YbnQ--usrEgDQGfvpV4MrMji55A0rq2hZaOgFGh6ag,15896
|
29
|
+
dayhoff_tools-1.2.4.dist-info/METADATA,sha256=WhzGyg_sOZXiu0DpDuLCHDzjnDb2ltPpKWws8Sp1guM,2842
|
30
|
+
dayhoff_tools-1.2.4.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
31
|
+
dayhoff_tools-1.2.4.dist-info/entry_points.txt,sha256=iAf4jteNqW3cJm6CO6czLxjW3vxYKsyGLZ8WGmxamSc,49
|
32
|
+
dayhoff_tools-1.2.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|