Continuing development. Boundary handling seems to be stable and working. Now testing void finding.

This commit is contained in:
Paul M. Sutter 2025-01-08 15:13:29 +08:00
parent 3dce2593d9
commit cf97cfba5d
6 changed files with 92 additions and 41 deletions

View file

@ -229,6 +229,7 @@ void flagEdgeGalaxies(prepObservation_info& args ,
output_data.mask_index = output_data.id_gal.size();
// write a small text file with galaxy position (for diagnostic purposes)
// TODO - remove this
FILE *fp;
fp = fopen("galaxies.txt", "w");
for (int i = 0; i < data.size(); i++) {
@ -240,7 +241,7 @@ void flagEdgeGalaxies(prepObservation_info& args ,
}
fclose(fp);
/* NOTE: temporarily moved to python for quick debugging. Will move back to
/* NOTE: temporarily moved to python for quick prototyping. Will move back to
here once it's all sorted
// convert redshift boundaries to covmoving if necessary
@ -463,8 +464,8 @@ int main(int argc, char **argv)
fp = fopen("total_particles.txt", "w");
fprintf(fp, "%d", output_data.pos.size());
fclose(fp);
printf("Done!\n");
// END PMS - TODO REMOVE THIS
printf("Done!\n");
return 0;
}