commit acb3eb449a44e7212cbdb3a73219e339cd7765f1
parent 1341edffe259aa83588a1e2aae4a6b93e4158637
Author: Henry Unite <unitehenry@gmail.com>
Date: Wed, 10 Jun 2026 04:57:30 +0000
fix: decompress file name
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/compression.py b/compression.py
@@ -51,9 +51,9 @@ def compress(file_name):
@app.function(gpu="h100", image=image, volumes={ "/data": vol })
def decompress(file_name):
- outfile = "".join(file_path.rsplit(".nc", 1))
+ outfile = "".join(file_name.rsplit(".nc", 1))
run([
"source /Nacrith-GPU/venv/bin/activate",
- f'python /Nacrith-GPU/cli.py decompress "/data/{file_name}.nc" "/data/{outfile}"',
+ f'python /Nacrith-GPU/cli.py decompress "/data/{file_name}" "/data/{outfile}"',
])