mirror of
https://github.com/gsi-upm/soil
synced 2025-07-05 20:42:22 +00:00
The examples weren't being properly tested in the last commit. When we fixed that a lot of bugs in the new implementation of environment and agent were found, which accounts for most of these changes. The main difference is the mechanism to load simulations from a configuration file. For that to work, we had to rework our module loading code in `serialization` and add a `source_file` attribute to configurations (and simulations, for that matter).
6 lines
168 B
Python
6 lines
168 B
Python
def report(f: property):
|
|
if isinstance(f, property):
|
|
setattr(f.fget, "add_to_report", True)
|
|
else:
|
|
setattr(f, "add_to_report", True)
|
|
return f |