-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
read in the object ids from the instance catalogs as strings #151
Comments
In |
Recording information from CWW/JC in-person conversation. This likely will have an effect on the RandomWalk galaxies and also could affect downstream programs as the code for the object type is encoded in the lower 10 bits of the integer uniqueID. |
Is this still happening, or on hold/canceled due to the other ramifications of the change? Or still needs discussion with Rahul and all? |
I think we need to make this change to support the WFD SNe. Those are the only object_ids that will not be cast-able as ints, so any downstream programs that read the instance catalogs will still be able to extract things like galaxy_id from the lower 10 bits. |
OK. So it will always be an added sub-string to the original uniqueID (now as a string)? We already need this for 2.0i even without the sprinkler. Is that correct? @EiffL just flagging you on this in case it is relevant to the knot class. |
I don't know the final format but it will be something like <galaxy_id>+<sn_id> =
Yes, this is for SNe in the WFD region which will be included even with the sprinkler disabled. |
Argh, yes, changing the uniqueID will impact the RandomWalk (because the random seed used to sample the knots is based on the id), but that should be easy to accommodate. Just let me know if/when the change happens, and I can make sure the RandomWalk code gets properly updated |
Thanks Francois, don't let us close this issue unless it is working for you too... |
@EiffL Regarding uniqueID, the only difference is that we'll store them as strings instead of ints, i.e., here |
agreed, it should be fine as long as the objectids cast to ints correctly |
Is there a PR for this one? Or is it in the commit of some of the others? I can't find it in imSim or sims_galSimInterface.. |
OK got it; thanks. I had the centroid one, but I thought there were more. The Random knot changes are somewhere else? |
The RandomWalk code isn't affected by this change since it had already cast the |
This change was made in the 2.0i development work. |
Currently they are assumed to be
int
s. Looks like there are just two lines to change:https://github.com/LSSTDESC/imSim/blob/master/python/desc/imsim/imSim.py#L186 and line 195.
phosim already allows for string ids in
v3.7.x
, and the SNe for DC2 may have string ids.The text was updated successfully, but these errors were encountered: