-
Notifications
You must be signed in to change notification settings - Fork 39
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
Sim catalog #803
base: toast3
Are you sure you want to change the base?
Sim catalog #803
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor things, mostly just stale debugging and copy/paste reference to Az/El in the comments.
@@ -1013,6 +1014,9 @@ def attempt_scan( | |||
break | |||
if success: | |||
break | |||
if t is None: | |||
import pdb | |||
pdb.set_trace() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you intend to leave this debugger call here (rather than raising an exception, etc)?
# This operator is based on a Simons Observatory source file, | ||
# https://github.com/simonsobs/sotodlib/blob/master/sotodlib/toast/ops/sim_catalog.py | ||
|
||
# Copyright (c) 2018-2024 Simons Observatory. | ||
# Full license can be found in the top level "LICENSE" file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since you were the original author of that code, I would remove these lines.
|
||
self.detector_pointing.apply(obs_data, detectors=[det]) | ||
try: | ||
det_quat = obs_data.obs[0].detdata[self.detector_pointing.quats][det] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could also just do obs.detdata[...]
.
import pdb | ||
|
||
pdb.set_trace() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe log an error and re-raise the exception here?
detector_pointing = Instance( | ||
klass=Operator, | ||
allow_none=True, | ||
help="Operator that translates boresight Az/El pointing into detector frame", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be Ra/Dec frame?
|
||
pdb.set_trace() | ||
|
||
# Convert Az/El quaternion of the detector into angles |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hopefully these are Ra/Dec quaternions...
import pdb | ||
|
||
pdb.set_trace() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More debugging things to remove
) | ||
|
||
outfile = os.path.join(self.outdir, "map.png") | ||
fig.savefig(outfile) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having a visual check is great. If the sources were bright enough we might even be able to look at the relevant pixel closest to the source and confirm the map value is close to expected.
Generalization of the SO point source simulation module with an important bugfix for HWP-modulated cases.