Closed zhengyun0215 closed 2 years ago
I also have the same error during this step and by looking at the details I find a conflict between the input from targets_truth
and the definition for the function write_skies
.
In the definiton of targets_truth
function (https://github.com/desihub/desitarget/blob/master/py/desitarget/mock/build.py#L796), in line 988, it uses the function write_skies
and passes the value healpix
to the argument hpxlist
. The value healpix
is a scalar produced by for healpix, healseed in zip(healpixels, healpixseeds):
in the function targets_truth
(line 890), while in the definition of write_skies
(https://github.com/desihub/desitarget/blob/master/py/desitarget/io.py#L1090), the hpxlist
should be a list. So I think it is this mismatch that causes the problem...
@zhengyun0215 thanks for the crash report. I'll tackle this and related tickets (https://github.com/desihub/desitarget/issues/745#issuecomment-850769119) soon.
The most significant updates to the targeting code in support of the main survey have been implemented and then I plan on updating the targeting simulations / mocks.
Fixed in https://github.com/desihub/desitarget/pull/788/commits/ae46447987fd10a2690ce9d2eee2825f372d5e88 in https://github.com/desihub/desitarget/pull/788.
@geordie666 this is the only place I touch non-mock code, but the change should be innocuous to production runs of desitarget.
Hi all , I try to use MPI_Select_Mock_Target to make mtl file. But I got this error:
Which means the sky.fits file couldn't be made and I couldn't make build-64-28120.log_0 in my catalog. It seems that I could run MPI_Select code last week but after updating, it failed. Hope you can give some help, thank you so much 😊