Skip to content

Commit

Permalink
fix for load_Waveguides
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasc-ubc committed Apr 2, 2021
1 parent a40c8e0 commit d0987b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion klayout_dot_config/python/SiEPIC/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def load_Waveguides():
paths = []
for root, dirnames, filenames in os.walk(pya.Application.instance().application_data_path(), followlinks=True):
[paths.append(os.path.join(root, filename))
for filename in fnmatch.filter(filenames, 'WAVEGUIDES.xml') if tech_name in root]
for filename in fnmatch.filter(filenames, 'WAVEGUIDES.xml') if fnmatch.filter(filenames, tech_name + '.lyt') ] # this version requires .lyt file to match tech_name

waveguides = []
if paths:
Expand Down

0 comments on commit d0987b6

Please sign in to comment.