Closed EvgeniiChaikin closed 2 years ago
I have created a fix that will just set the missing fields to zero.
We discussed updating the VR config file in #180, but I don't know what happened to that in the end.
The VR config should have been merged when merging the new dust model into master. If not, then we should fix the config we use in the repository.
Here is the VR config in question with updated fields https://gitlab.cosma.dur.ac.uk/EAGLE/swift-colibre/-/blob/hawk-scaling-test/examples/COLIBRE_ICs/vrconfig_3dfof_subhalos_SO_hydro.cfg
We discussed updating the VR config file in https://github.com/SWIFTSIM/pipeline-configs/pull/180, but I don't know what happened to that in the end.
This was merged into the code repo but not the pipeline I think, My impression was that the pipeline config vr config was minimal for backward compatibility, while the repo was up to date with latest code and post-processing script, though happy to merge the config files
Hi @bwvdnbro @james-trayford
After the merge #180, I get the following error when running the pipeline
This happens because in the function
register_dust(self, catalogue, aperture_sizes, Z_sun, twelve_plus_log_OH_solar)
incolibre/registration.py
, some variables are defined inside thetry
branch of atry except
block but then are referenced outside the block. Thus, if the code enters theexcept
branch instead of thetry
branch, the variables remain undefined, which later in the code results in the error described above.Looking at what the velociraptor tries to register in the
try
branch, I can see that now we have, e.g.,small_grain_mass_{aperture_size}_kpc
computed in apertures but I can't find any fields with similar names in the VR config (https://gitlab.cosma.dur.ac.uk/EAGLE/swift-colibre/-/blob/master/examples/COLIBRE_ICs/vrconfig_3dfof_subhalos_SO_hydro.cfg). This makes me think that the latter needs an update.