You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We store and log our run configuration as Params.
When using property decorator, we noticed that changes to dependent variables are not reflected. Observe param_h values in the following example based on AnotherSubParams test class in https://github.com/kpe/py-params/blob/master/tests/test_subclassing.py
def test_param_change():
asp = AnotherSubParams()
print("Before modification of param_d")
print(f"Printing instance:{asp}")
print(f"Accessing param.d: {asp.param_d}")
print(f"Accessing param.h: {asp.param_h}")
asp.param_d = "FIND_ME"
print("After modification of param_d: aD => FIND_ME")
print(f"Printing instance: {asp}")
print(f"Accessing param.d: {asp.param_d}")
print(f"Accessing param.h: {asp.param_h}")
print(f"Printing instance: {asp}")
@kpe
We store and log our run configuration as Params.
When using property decorator, we noticed that changes to dependent variables are not reflected. Observe
param_h
values in the following example based onAnotherSubParams
test class inhttps://github.com/kpe/py-params/blob/master/tests/test_subclassing.py
generates
The text was updated successfully, but these errors were encountered: