I discovered a bug in the GasMapper while playing with an unusual use case: I am trying to load an ID file of gas IDs only, generated from a uniform resolution baryon volume.
The current implementation of GasMapper seems to skip the gas IDs to flag only the DM grids. I assume it expects that the user would provide a combination of DM+gas but in my case, I don't have access to the DM IDs so it results in zero cells flagged at all.
The change implemented below correct this behaviour, not breaking other mapper and gas tests. However, I am not the most confident with this part of the code, so comments welcome.
Hi,
I discovered a bug in the GasMapper while playing with an unusual use case: I am trying to load an ID file of gas IDs only, generated from a uniform resolution baryon volume.
The current implementation of GasMapper seems to skip the gas IDs to flag only the DM grids. I assume it expects that the user would provide a combination of DM+gas but in my case, I don't have access to the DM IDs so it results in zero cells flagged at all.
The change implemented below correct this behaviour, not breaking other mapper and gas tests. However, I am not the most confident with this part of the code, so comments welcome.
I added a test for this use case.
Martin