Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ackizilkale committed Oct 23, 2023
1 parent 5fe026c commit acc420a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ def export(self, path: str):

def validate(self, **kwargs) -> dict:
output_kwargs = {k: v.default_value for k, v in self._dict_params.items()}
assert not (kwargs != {} and self.params == []), "kwargs are rejected since `params` is empty"
assert kwargs == {} or self.params != [], "kwargs are rejected since `params` is empty"

for key, value in kwargs.items():
assert key in self._dict_params, f"param `{key}` is not in setting: {list(self._dict_params.keys())}"
if key in self._dict_params:
Expand Down

0 comments on commit acc420a

Please sign in to comment.