API Reference¶
introduction.zohTool.cli¶
introduction.zohTool.apis¶
- class introduction.zohTool.apis.IntervalEvent(k: 'int', t0: 'float', t1: 'float', u_in: 'float', y0: 'float', y1: 'float')[source]¶
Bases:
object- Parameters:
k (int)
t0 (float)
t1 (float)
u_in (float)
y0 (float)
y1 (float)
- k: int¶
- t0: float¶
- t1: float¶
- u_in: float¶
- y0: float¶
- y1: float¶
- class introduction.zohTool.apis.RunRequest(csv=None, json_spec=None, Ts=0.001, delay=0.0, droop_tau=inf, offset=0.0, units='V', scale=1000000.0, idx_bits=None, in_dir='in', out_dir='out', out_csv=None, out_vcd=None)[source]¶
Bases:
objectTyped input for running a ZOH simulation.
- Parameters:
csv (str | None)
json_spec (str | None)
Ts (float)
delay (float)
droop_tau (float)
offset (float)
units (str)
scale (float)
idx_bits (int | None)
in_dir (str)
out_dir (str)
out_csv (str | None)
out_vcd (str | None)
- Ts: float = 0.001¶
- csv: str | None = None¶
- delay: float = 0.0¶
- droop_tau: float = inf¶
- idx_bits: int | None = None¶
- in_dir: str = 'in'¶
- json_spec: str | None = None¶
- offset: float = 0.0¶
- out_csv: str | None = None¶
- out_dir: str = 'out'¶
- out_vcd: str | None = None¶
- scale: float = 1000000.0¶
- units: str = 'V'¶
- class introduction.zohTool.apis.RunResult(events: 'List[IntervalEvent]' = <factory>, messages: 'List[str]' = <factory>, wrote_csv: 'Optional[str]' = None, wrote_vcd: 'Optional[str]' = None)[source]¶
Bases:
object- Parameters:
events (List[IntervalEvent])
messages (List[str])
wrote_csv (str | None)
wrote_vcd (str | None)
- events: List[IntervalEvent]¶
- messages: List[str]¶
- wrote_csv: str | None = None¶
- wrote_vcd: str | None = None¶
introduction.zohTool.app¶
introduction.zohTool.core¶
introduction.zohTool.design¶
- class introduction.zohTool.design.CSVExporter[source]¶
Bases:
object- write_results_csv(path, events, units)[source]¶
- Parameters:
path (str)
events (List[IntervalEvent])
units (str)
- Return type:
None
- class introduction.zohTool.design.VCDWriter[source]¶
Bases:
object- write_vcd_zoh(path, events, scale=1000000.0, idx_bits=None)[source]¶
- Parameters:
path (str)
events (List[IntervalEvent])
scale (float)
idx_bits (int | None)
- Return type:
None
introduction.zohTool.io¶
introduction.zohTool.utils¶
- introduction.zohTool.utils.log_call(logger_func=None)[source]¶
A tiny decorator to log function calls (name + kwargs). Pass a logger function that accepts a single string (e.g., print).
- Parameters:
logger_func (Callable[[str], Any] | None)