diff --git a/component/tile/dmp_tile.py b/component/tile/dmp_tile.py index 9a87d1c..0eb7493 100644 --- a/component/tile/dmp_tile.py +++ b/component/tile/dmp_tile.py @@ -8,7 +8,6 @@ class DmpTile(sw.Tile): def __init__(self, model, aoi_model): - # gather the io as class attribute self.aoi_model = aoi_model self.model = model @@ -20,15 +19,20 @@ def __init__(self, model, aoi_model): self.password = sw.PasswordField(label="Copernicus Scihub Password") # bind them with the output - self.model.bind(self.date_picker_start, "event_start").bind(self.date_picker_end, "event_end").bind(self.username, "username").bind( - self.password, "password" - ) + self.model.bind(self.date_picker_start, "event_start").bind( + self.date_picker_end, "event_end" + ).bind(self.username, "username").bind(self.password, "password") # construct the tile super().__init__( id_="process_widget", title="Set input parameters", - inputs=[self.date_picker_start, self.date_picker_end, self.username, self.password], + inputs=[ + self.date_picker_start, + self.date_picker_end, + self.username, + self.password, + ], alert=sw.Alert(), btn=sw.Btn("Process"), ) @@ -36,9 +40,8 @@ def __init__(self, model, aoi_model): # link the click to an event self.btn.on_event("click", self._on_click) - @su.loading_button(debug=False) + @su.loading_button() def _on_click(self, widget, data, event): - ## check input file if not self.alert.check_input(self.model.event_start, "no start date selected"): return