Skip to content

Commit

Permalink
Fix parameter name verification error (#59)
Browse files Browse the repository at this point in the history
in @add_parameter_from.
  • Loading branch information
iqmtestd committed Sep 27, 2023
1 parent 89f1d37 commit 50e69e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion klayout_package/python/kqcircuits/util/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def add_parameters_from(cls, /, *param_names, **param_with_default_value):
param_names = param_names[1:]
invert = True

unknown = (set(param_names) or set(param_with_default_value.keys())) - set(cls.get_schema().keys())
unknown = (set(param_names) | set(param_with_default_value.keys())) - set(cls.get_schema().keys())
if unknown:
raise ValueError(f"Parameter(s) {unknown} not available in '{cls.__name__}'")

Expand Down

0 comments on commit 50e69e1

Please sign in to comment.