Simplify Database
We could remove/rename some methods of Database
:
- remove
get_value
asdatabase.get_value(x)
could be replaced bydatabase[x]
- replace
get_max_iteration
by a propertyn_iterations
. - replace
contains_x
by__contains__
as the check can be done withx in database
-
store
and usedatabase[x] = values
instead (this would imply to change__setitem__
) - use a unique
get_output_history
with signatureget_output_history(output_name: str = "", add_input: bool = False)
and document the notation"@f"
for the Jacobian of"f"
; and renameget_x_history
toget_input_history