Skip to content

Commit e6fcc63

Browse files
Give names that indicate hendrics
1 parent 5f83137 commit e6fcc63

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

hendrics/efsearch.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -610,8 +610,8 @@ def transient_search(
610610
f"Using memmapped arrays (shape {results_shape}) to reduce memory usage.",
611611
)
612612
import tempfile
613-
tmp_results = tempfile.NamedTemporaryFile(delete=True).name
614-
tmp_f = tempfile.NamedTemporaryFile(delete=True).name
613+
tmp_results = tempfile.NamedTemporaryFile(delete=True).name + "_hen.npy"
614+
tmp_f = tempfile.NamedTemporaryFile(delete=True).name + "_hen.npy"
615615
all_results = np.lib.format.open_memmap(
616616
tmp_results, mode="w+", dtype=results.dtype, shape=results_shape
617617
)
@@ -986,9 +986,9 @@ def local_show_progress(x):
986986
"Large result arrays detected, using memory-mapped files to reduce "
987987
"memory usage."
988988
)
989-
tmp_f = tempfile.NamedTemporaryFile("w+").name
990-
tmp_fdot = tempfile.NamedTemporaryFile("w+").name
991-
tmp_stat = tempfile.NamedTemporaryFile("w+").name
989+
tmp_f = tempfile.NamedTemporaryFile("w+").name + "_hen.npy"
990+
tmp_fdot = tempfile.NamedTemporaryFile("w+").name + "_hen.npy"
991+
tmp_stat = tempfile.NamedTemporaryFile("w+").name + "_hen.npy"
992992
all_fgrid = np.lib.format.open_memmap(
993993
tmp_f, mode="w+", dtype=fgrid.dtype, shape=all_fgrid_shape
994994
)

0 commit comments

Comments
 (0)