From be797c05dcf74c268544ea7e6ea9725045f4e536 Mon Sep 17 00:00:00 2001 From: "Paul M. Sutter" Date: Sat, 24 May 2025 08:56:59 -0400 Subject: [PATCH] cleanup from last round --- examples/example_observation/example_observation.py | 2 +- python_source/backend/launchers.py | 4 ++-- python_source/backend/surveyTools.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/example_observation/example_observation.py b/examples/example_observation/example_observation.py index eef5fd3..f457cc9 100644 --- a/examples/example_observation/example_observation.py +++ b/examples/example_observation/example_observation.py @@ -49,7 +49,7 @@ logDir = os.path.join(workDir,"logs","example_observation") numZobovThreads = 1 # optimization: number of subdivisions of the volume -numZobovDivisions = 2 +numZobovDivisions = 1 # buffer size (in fraction of the boz size) when sub-diving volumes zobovBuffer = 0.1 diff --git a/python_source/backend/launchers.py b/python_source/backend/launchers.py index 2c44cb3..278ce67 100644 --- a/python_source/backend/launchers.py +++ b/python_source/backend/launchers.py @@ -131,8 +131,8 @@ def launchPrep(sample, binPath, workDir=None, inputDataDir=None, log.close() # add tracers along the bounding box to contain the tessellation - log.write("\nAdding guards along box faces...\n") - nGuard = 42 + #log.write("\nAdding guards along box faces...\n") + #nGuard = 42 # load in file diff --git a/python_source/backend/surveyTools.py b/python_source/backend/surveyTools.py index 9ecf962..95369ee 100644 --- a/python_source/backend/surveyTools.py +++ b/python_source/backend/surveyTools.py @@ -263,9 +263,10 @@ def findEdgeGalaxies(galFile, maskFile, edgeGalFile, contourFile, contourPixels = np.nonzero(contourMap)[0] log.write(" We have %d rays to work with\n" % (len(contourPixels))) + for pixel in contourPixels: - #print("Working with pixel %d" % pixel) vec = healpy.pix2vec(nside,pixel) + x = raySteps * vec[0] y = raySteps * vec[1] z = raySteps * vec[2] @@ -275,7 +276,6 @@ def findEdgeGalaxies(galFile, maskFile, edgeGalFile, contourFile, flagList[nearest] = 1 # flag galaxies near redsfhit boundaries - log.write(" Flagging galaxies near redshift bounds...\n") sphereIndices = np.arange(len(contourMap)) vec = healpy.pix2vec(nside, sphereIndices)