From d2ccba8650193cf45f9bc5d4463f0fa2c761ea5f Mon Sep 17 00:00:00 2001 From: Benjamin Jelley Date: Mon, 17 Aug 2026 12:40:39 -0400 Subject: [PATCH] basename for this_script --- pointCollection/scripts/make_tiles.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pointCollection/scripts/make_tiles.py b/pointCollection/scripts/make_tiles.py index 477bfdc..b33cc60 100755 --- a/pointCollection/scripts/make_tiles.py +++ b/pointCollection/scripts/make_tiles.py @@ -10,6 +10,7 @@ import os import argparse import sys +from pathlib import Path import numpy as np import json @@ -69,7 +70,8 @@ def make_queue(index_file, queue_file, tile_W=2.e5, file_type='data', verbose=Fa out_file=f"{out_dir}/E{int(np.real(xx))}_N{int(np.imag(xx))}.h5" if os.path.isfile(out_file) and not replace: continue - this_str=f"{__file__} -i {index_file} -W {tile_W} -t {file_type} --proj4 '{proj4}' --xy {np.real(xx)} {np.imag(xx)} -o {out_dir}" + this_script=Path(__file__).name + this_str=f"{this_script} -i {index_file} -W {tile_W} -t {file_type} --proj4 '{proj4}' --xy {np.real(xx)} {np.imag(xx)} -o {out_dir}" if field_dict_json is not None: this_str += f" -j {field_dict_json}" if verbose: