orgua / shepherd-datalib

Programming- and CLI-Interface for the h5-dataformat of the Shepherd-Testbed
MIT License
2 stars 0 forks source link

Emulation from IVCurves has a bug #72

Open orgua opened 1 day ago

orgua commented 1 day ago

Deriving a Harvester-Config with custom window-size does NOT set the step-size at all

hrv_config = HarvesterPRUConfig.from_vhrv(
    self.cfg_src.harvester,
    for_emu=True,
    dtype_in=dtype_in,
    window_size=window_size,
)

Workaround

Until fixed, it is needed to specify sample_n manually, i.e.

cfg_bq25570_base = VirtualSourceConfig(
    name="BQ25570",
    harvester=VirtualHarvesterConfig(
        name="mppt_bq_solar",
        samples_n=900,
)