These are chat archives for astropy/astropy
out_ctype = ['HPLN-CAR', 'HPLT-CAR']is not what you want
__init__in your custom frame doesn't work?
obstime = TimeFrameAttribute(default=None, secondary_attribute='equinox')and then you overload
__init__and you check if it's the default value and if it is, you reset it to the current time, and that doesn't work?
default='now'and delays evaluation until the first 'get'
obstime='now'is easier than
SkyCoordissue you mentioned above?
kwargs = dict([(nm, getattr(hgcframe, nm)) for nm in hgcframe.get_frame_attr_names()]) return HelioGraphicCarrington(representation, **kwargs)
realize_frameis basically just shorthand for that
Defining Transformationssection of
modeling.fitting.LevMarLSQFitter, you can get this directly:
x = np.arange(100) y = 2*x+1+np.random.randn(100)/10 m=modeling.models.Linear1D(0,1) f=modeling.fitting.LevMarLSQFitter() f(m,x,y) f.fit_info['param_cov’]
right, ok but SkyCoord sets it's FrameAttributes
That’s right, the intent is that you never even have to think about
SkyCoord while writing frame transforms. That’s the whole separation-of-layers thing that APE5 was aiming for (if that turns out not to be true, I’d consider at a bug, most likey)