MCPcopy
hub / github.com/microsoft/qlib / get

Method get

qlib/workflow/task/utils.py:100–111  ·  view source on GitHub ↗

Get datetime by index. Parameters ---------- idx : int index of the calendar

(self, idx: int)

Source from the content-addressed store, hash-verified

98 self.cals = D.calendar(future=self._future, end_time=end_time)
99
100 def get(self, idx: int):
101 """
102 Get datetime by index.
103
104 Parameters
105 ----------
106 idx : int
107 index of the calendar
108 """
109 if idx is None or idx >= len(self.cals):
110 return None
111 return self.cals[idx]
112
113 def max(self) -> pd.Timestamp:
114 """

Callers 14

truncateMethod · 0.95
shiftMethod · 0.95
__init__Method · 0.45
_get_report_freqMethod · 0.45
_generateMethod · 0.45
__init__Method · 0.45
random_initMethod · 0.45
_generateMethod · 0.45
search_recordsMethod · 0.45
search_recordsMethod · 0.45
generateMethod · 0.45
task_statMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected