Esempio n. 1
0
    def __new__(cls, *args, **kwargs):
        frame_transform_graph.transform(FunctionTransform, cls,
                                        cls.equatorial)(cls.to_equatorial)
        frame_transform_graph.transform(FunctionTransform, cls.equatorial,
                                        cls)(cls.from_equatorial)

        return super().__new__(cls)
Esempio n. 2
0
    def __new__(cls, *args, **kwargs):
        frame_transform_graph.transform(AffineTransform, cls, ICRS)(cls.to_icrs)
        frame_transform_graph.transform(AffineTransform, ICRS, cls)(cls.from_icrs)
        frame_transform_graph.transform(
            FunctionTransformWithFiniteDifference, cls, cls
        )(cls.self_transform)

        return super().__new__(cls)
Esempio n. 3
0
    def __new__(cls, *args, **kwargs):
        frame_transform_graph.transform(AffineTransform, cls, ICRS)(cls.to_icrs)
        frame_transform_graph.transform(AffineTransform, ICRS, cls)(cls.from_icrs)
        frame_transform_graph.transform(
            FunctionTransformWithFiniteDifference, cls, cls
        )(cls.self_transform)

        return super().__new__(cls)
Esempio n. 4
0
 def __new__(cls, *args, **kwargs):
     frame_transform_graph.transform(DynamicMatrixTransform, cls.cb_crs,
                                     cls)(cb_crs_to_cb_j2000_eq)
     frame_transform_graph.transform(DynamicMatrixTransform, cls,
                                     cls.cb_crs)(cb_j2000_eq_to_cb_crs)
     return super().__new__(cls)
Esempio n. 5
0
 def __new__(cls, *args, **kwargs):
     frame_transform_graph.transform(AffineTransform, ICRS,
                                     cls)(icrs_to_cb_crs)
     frame_transform_graph.transform(AffineTransform, cls,
                                     ICRS)(cb_crs_to_icrs)
     return super().__new__(cls)
Esempio n. 6
0
 def __new__(cls, *args, **kwargs):
     frame_transform_graph.transform(FunctionTransformWithFiniteDifference,
                                     cls.cb_crs, cls)(cb_crs_to_cb_fixed)
     frame_transform_graph.transform(FunctionTransformWithFiniteDifference,
                                     cls, cls.cb_crs)(cb_fixed_to_cb_crs)
     return super().__new__(cls)