diff --git a/honeybees/reporter.py b/honeybees/reporter.py index 6e6fa4a..b2c90af 100644 --- a/honeybees/reporter.py +++ b/honeybees/reporter.py @@ -94,7 +94,7 @@ def __init__(self, model, folder: str) -> None: and "report" in self.model.config and self.model.config["report"] is not None ): - self.report = True + self.enabled = True for name, conf in self.model.config["report"].items(): if conf["format"] == "zarr": filepath = os.path.join(self.export_folder, name + ".zarr.zip") @@ -116,7 +116,7 @@ def __init__(self, model, folder: str) -> None: conf["_file"] = ds conf["_time_index"] = time else: - self.report = False + self.enabled = False self.step() @@ -405,7 +405,7 @@ def extract_agent_data(self, name: str, conf: dict) -> None: def step(self) -> None: """This method is called every timestep. First appends the current model time to the list of times for the reporter. Then iterates through the data to be reported on and calls the extract_agent_data method for each of them.""" self.timesteps.append(self.model.current_time) - if self.report: + if self.enabled: for name, conf in self.model.config["report"].items(): self.extract_agent_data(name, conf)