slv.inversion.config.InversionConfig.background_kwargs_key#
- property InversionConfig.background_kwargs_key: dict#
a
csv_path(thect_stiltproduct) is replaced by its path plus size and mtime.The background and the model-data mismatch key on this instead of
background_kwargs, so a CT-STILT CSV rewritten at the same path (a new CarbonTracker version, an extended record) rebuilds them rather than being read stale.See also
mobile_obs_keythe same fingerprint for
mobile_obs.
Examples
>>> import tempfile >>> from pathlib import Path >>> csv = Path(tempfile.mkdtemp()) / "ct.csv" >>> _ = csv.write_text("obs_time,ct_ch4_ppm") >>> cfg = InversionConfig( ... background="ct_stilt", background_kwargs={"csv_path": csv} ... ) >>> key = cfg.background_kwargs_key["csv_path"] >>> _ = csv.write_text("obs_time,ct_ch4_ppm,uncertainty") # rewritten in place >>> cfg.background_kwargs_key["csv_path"] != key True
- Type:
background_kwargsas the cache keys see it