(self,
root = None,
workdir = None,
tag = None,
suffix = 'jpeg')
| 11 | @PLOTS.register_module(force=True) |
| 12 | class PlotsInterface(): |
| 13 | def __init__(self, |
| 14 | root = None, |
| 15 | workdir = None, |
| 16 | tag = None, |
| 17 | suffix = 'jpeg') -> None: |
| 18 | super(PlotsInterface, self).__init__() |
| 19 | self.root = root |
| 20 | self.workdir = workdir |
| 21 | self.tag = tag |
| 22 | self.suffix = suffix |
| 23 | |
| 24 | self.exp_path = init_path(os.path.join(self.root, self.workdir, self.tag)) |
| 25 | self.plot_path = init_path(os.path.join(self.exp_path, "plots")) |
| 26 | self.kline_plot_path = init_path(os.path.join(self.plot_path, "kline")) |
| 27 | self.trading_plot_path = init_path(os.path.join(self.plot_path, "trading")) |
| 28 | |
| 29 | self.echarts_js_path = os.path.join(self.root, "tools", "echarts-5.4.3" , "dist", "echarts.min.js") |
| 30 | |
| 31 | def plot_kline(self, state, info, save_dir, mode = "train"): |
| 32 |
nothing calls this directly
no test coverage detected