timescale#
- class jinwu.core.timescale(source: EventDataBase | str | Path, *, background: EventDataBase | str | Path | None = None, alpha: float | None = None, timezero: Any | None = None)[source]#
Bases:
object事件时标分析器(独立于 EventData.plot)。
负责调用 ops.txx 计算时标,并通过 plot.plot_event_txx 可视化。
Methods Summary
compute(*[, background, alpha])调用 ops.txx 计算时标结果。
plot([result, srcname, title, figsize, out, ...])绘制时标诊断图;若无 result 则内部先 compute。
summary([result])Methods Documentation
- compute(*, background: EventDataBase | str | Path | None = None, alpha: float | None = None, **txx_kwargs: Any) Dict[str, Any][source]#
调用 ops.txx 计算时标结果。
- plot(result: Dict[str, Any] | None = None, *, srcname: str | None = None, title: str | None = None, figsize: Tuple[float, float] = (10.5, 8.2), out: str | Path | None = None, binsize: float | None = None, background: EventDataBase | str | Path | None = None, alpha: float | None = None, **txx_kwargs: Any)[source]#
绘制时标诊断图;若无 result 则内部先 compute。
参数 - binsize: 直方图分箱宽度(秒)。等价于传入 evt_binsize 给 compute/ops.txx。
这样可以在不显式调用 compute 的情况下直接 plot(…, binsize=…)。