Skip to content

Commit

Permalink
Fix to python 2 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
amccaugh committed May 20, 2021
1 parent 5be0261 commit 0e754c1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
language: python

python:
- "2.7"
- "3.5"
- "3.6"
- "3.7"
Expand Down
5 changes: 4 additions & 1 deletion phidl/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -3175,7 +3175,10 @@ def _gen_param_variations(

D_list = []
for params in parameter_list:
D_new = make_device(function, config = param_defaults, **params, **param_override)
new_params = dict()
new_params.update(params)
new_params.update(param_override)
D_new = make_device(function, config = param_defaults, **new_params)
label_text = ''
for name, value in params.items():
label_text += ('%s=%s' % (name,value)) + '\n'
Expand Down

0 comments on commit 0e754c1

Please sign in to comment.