Skip to content

Commit

Permalink
DatasetRunnableChildPart update_configure_args refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
GDYendell committed Jun 30, 2017
1 parent 75e221a commit 5fdec8d
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions malcolm/modules/ADCore/parts/datasetrunnablechildpart.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,10 @@

class DatasetRunnableChildPart(RunnableChildPart):
"""Part controlling a configure/run child Block with a dataset table"""
def update_configure_args(self, response):
def update_configure_args(self, response, without=()):
# Decorate validate and configure with the sum of its parts
response = deserialize_object(response, Update)
method_metas = [deserialize_object(response.value, MethodModel),
DatasetRunnableChildPart.configure.MethodModel]
without = ["formatName"]
self.method_models["validate"].recreate_from_others(
method_metas, without)
self.method_models["configure"].recreate_from_others(
method_metas, without)
self.controller.update_configure_args()
super(DatasetRunnableChildPart, self).update_configure_args(
response, without=without + ("formatName",))

def _params_with_format_name(self, params):
new_params = dict(formatName=self.name)
Expand Down

0 comments on commit 5fdec8d

Please sign in to comment.