Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This re-imports stuff moved to
ch_ephem
. It both re-imports everything that was moved back intoch_util.ephemeris
for backwards compatibility, but also removes references toch_util.epheremis
from the code, using the newly-exported versions of things directly.This PR requires both:
Catalogs:
All the catalogs have been moved to
ch_ephem
, which provides a standard interface to them viach_ephem.catalogs.load
. To make this change,fluxcat.FluxCatalog.load
has been broken into two pieces. The newfluxcat.FluxCatalog.load_dict
imports a catalog from an already-parsed JSON dict (which is whatch_ephem
provides). The originalfluxcat.FluxCatalog.load
works as it used to, but tail-callsload_dict
to do most of the importing.Position data:
Position data (lat, lon, alt) is now obtained by fetching the parameter out of the
caput.time.Observer
objects provided bych_ephem
. The constants inch_util.ephemeris
are populated by doing this.Instrument rotation:
ch_ephem
has also taken on the rotation data that was intools
(where it's been re-imported fromch_ephem
). Not sure this is ideal. Please comment on thech_ephem
PR if you can provide an opinion on this.Private objects deleted:
I've also deleted a number of private objects which are no longer being used (i.e. objects whose names start with a leading underscore).
Notable among these is the unused
ch_util.tools._LAT_LON
which had position data for various instruments which differed from the position data provided bych_util.ephemeris
.Also removed are the long-deprectated
ch_util.ephemeris._get_chime
andch_util.ephemeris.transit_RA
.