@@ -42,7 +42,6 @@ def _get_repr_cls(value):
4242 """
4343 Return a valid representation class from ``value`` or raise exception.
4444 """
45-
4645 if value in r .REPRESENTATION_CLASSES :
4746 value = r .REPRESENTATION_CLASSES [value ]
4847 elif not isinstance (value , type ) or not issubclass (value , r .BaseRepresentation ):
@@ -60,7 +59,6 @@ def _get_diff_cls(value):
6059 As originally created, this is only used in the SkyCoord initializer, so if
6160 that is refactored, this function my no longer be necessary.
6261 """
63-
6462 if value in r .DIFFERENTIAL_CLASSES :
6563 value = r .DIFFERENTIAL_CLASSES [value ]
6664 elif not isinstance (value , type ) or not issubclass (value , r .BaseDifferential ):
@@ -1090,7 +1088,6 @@ def represent_as(self, base, s="base", in_frame_units=False):
10901088 <SkyCoord (ICRS): (x, y, z) [dimensionless]
10911089 (1., 0., 0.)>
10921090 """
1093-
10941091 # For backwards compatibility (because in_frame_units used to be the
10951092 # 2nd argument), we check to see if `new_differential` is a boolean. If
10961093 # it is, we ignore the value of `new_differential` and warn about the
@@ -1485,7 +1482,6 @@ def __repr__(self):
14851482
14861483 def _data_repr (self ):
14871484 """Returns a string representation of the coordinate data."""
1488-
14891485 if not self .has_data :
14901486 return ""
14911487
@@ -1729,7 +1725,6 @@ def __getattr__(self, attr):
17291725 TODO: We should handle dynamic representation transforms here (e.g.,
17301726 `.cylindrical`) instead of defining properties as below.
17311727 """
1732-
17331728 # attr == '_representation' is likely from the hasattr() test in the
17341729 # representation property which is used for
17351730 # self.representation_component_names.
@@ -1871,7 +1866,6 @@ def separation_3d(self, other):
18711866 ValueError
18721867 If this or the other coordinate do not have distances.
18731868 """
1874-
18751869 from .distances import Distance
18761870
18771871 if issubclass (self .data .__class__ , r .UnitSphericalRepresentation ):
@@ -1908,7 +1902,6 @@ def cartesian(self):
19081902 Shorthand for a cartesian representation of the coordinates in this
19091903 object.
19101904 """
1911-
19121905 # TODO: if representations are updated to use a full transform graph,
19131906 # the representation aliases should not be hard-coded like this
19141907 return self .represent_as ("cartesian" , in_frame_units = True )
@@ -1919,7 +1912,6 @@ def cylindrical(self):
19191912 Shorthand for a cylindrical representation of the coordinates in this
19201913 object.
19211914 """
1922-
19231915 # TODO: if representations are updated to use a full transform graph,
19241916 # the representation aliases should not be hard-coded like this
19251917 return self .represent_as ("cylindrical" , in_frame_units = True )
@@ -1930,7 +1922,6 @@ def spherical(self):
19301922 Shorthand for a spherical representation of the coordinates in this
19311923 object.
19321924 """
1933-
19341925 # TODO: if representations are updated to use a full transform graph,
19351926 # the representation aliases should not be hard-coded like this
19361927 return self .represent_as ("spherical" , in_frame_units = True )
@@ -1942,7 +1933,6 @@ def sphericalcoslat(self):
19421933 `~astropy.coordinates.SphericalCosLatDifferential` for the velocity
19431934 data in this object.
19441935 """
1945-
19461936 # TODO: if representations are updated to use a full transform graph,
19471937 # the representation aliases should not be hard-coded like this
19481938 return self .represent_as ("spherical" , "sphericalcoslat" , in_frame_units = True )
0 commit comments