MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / convert

Method convert

lib/matplotlib/testing/jpl_units/Epoch.py:84–90  ·  view source on GitHub ↗
(self, frame)

Source from the content-addressed store, hash-verified

82 self._seconds -= deltaDays * 86400.0
83
84 def convert(self, frame):
85 if self._frame == frame:
86 return self
87
88 offset = self.allowed[self._frame][frame]
89
90 return Epoch(frame, self._seconds + offset, self._jd)
91
92 def frame(self):
93 return self._frame

Callers 15

julianDateMethod · 0.95
secondsPastMethod · 0.95
_cmpMethod · 0.95
__add__Method · 0.95
__sub__Method · 0.95
_set_image_for_buttonMethod · 0.45
_writeImgMethod · 0.45
_iconMethod · 0.45
test_indexed_imageFunction · 0.45
test_d_glyphFunction · 0.45
test_convertMethod · 0.45

Calls 1

EpochClass · 0.85

Tested by 9

test_indexed_imageFunction · 0.36
test_d_glyphFunction · 0.36
test_convertMethod · 0.36
test_convert_failMethod · 0.36
test_axvspan_epochFunction · 0.36
test_axhspan_epochFunction · 0.36