Skip to content
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

U/danielsf/when obs lsst sim breaks #92

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
fix call to observatory.latitude
danielsf committed Oct 28, 2019
commit ade133ce0423f2d743c122382001c1801effdc3a
2 changes: 1 addition & 1 deletion python/lsst/sims/GalSimInterface/galSimInterpreter.py
Original file line number Diff line number Diff line change
@@ -770,7 +770,7 @@ def __init__(self, obs_metadata=None, detectors=None, bandpassDict=None,
self.local_hour_angle \
= self.getHourAngle(self.obs_metadata.mjd.TAI,
self.obs_metadata.pointingRA)*galsim.degrees
self.obs_latitude = self.observatory.getLatitude().asDegrees()*galsim.degrees
self.obs_latitude = self.observatory.lat.degree*galsim.degrees

# Make a trivial SED to use for faint things.
blue_limit = np.min([bp.blue_limit for bp in self.gs_bandpass_dict.values()])