Skip to content

Commit

Permalink
Revert "use restorable attribute for saving parameters on server"
Browse files Browse the repository at this point in the history
This reverts commit 00f224d.
  • Loading branch information
bleykauf committed May 24, 2023
1 parent fb68fde commit 84f4b06
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions linien-server/linien_server/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -703,10 +703,9 @@ def save_parameters(self):

print("save parameters")
parameters = {}
for name, value in self.parameters:
for name, _ in self.parameters.get_all_restorable_parameters():
param = getattr(self.parameters, name)
if param.restorable:
parameters[name] = value
parameters[name] = param.value

try:
with open(PARAMETER_STORE_FN, "wb") as f:
Expand Down

0 comments on commit 84f4b06

Please sign in to comment.