Skip to content

hash_geom=True forces to try using phidl even it is not installed #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
shamil777 opened this issue Jun 10, 2024 · 0 comments
Open

Comments

@shamil777
Copy link

While calling lytest.exe run myfile mytestfunc from command line
I have a following traceback:

'c:\users\botan\appdata\local\programs\python\python38\lib\site-packages\pya\init.py'>
Traceback (most recent call last):
File "C:\Users\botan\AppData\Local\Programs\Python\Python38\Scripts\lytest-script.py", line 33, in
sys.exit(load_entry_point('lytest==0.1.0', 'console_scripts', 'lytest')())
File "c:\users\botan\appdata\local\programs\python\python38\lib\site-packages\lytest\command_line.py", line 62, in cm_main
cm_xor_test(args.args)
File "c:\users\botan\appdata\local\programs\python\python38\lib\site-packages\lytest\command_line.py", line 116, in cm_xor_test
difftesting_function()
File ".\Projects\32QStairDisp\test_design.py", line 22, in test_design_shmest
difftest_it(design_total_draw)()
File "c:\users\botan\appdata\local\programs\python\python38\lib\site-packages\lytest\utest_buds.py", line 77, in wrapper
run_xor(ref_file, test_file, tolerance=1, hash_geom=True, verbose=False)

File "c:\users\botan\appdata\local\programs\python\python38\lib\site-packages\lytest\kdb_xor.py", line 163, in run_xor
run_xor_pya(*args, **kwargs)
File "c:\users\botan\appdata\local\programs\python\python38\lib\site-packages\lytest\kdb_xor.py", line 18, in run_xor_pya
run_xor_phidl(file1, file2, tolerance, hash_geom=True, verbose=verbose)
File "c:\users\botan\appdata\local\programs\python\python38\lib\site-packages\lytest\kdb_xor.py", line 140, in run_xor_phidl
TOP1, TOP2 = [import_oas(fn) for fn in [file1, file2]]
File "c:\users\botan\appdata\local\programs\python\python38\lib\site-packages\lytest\kdb_xor.py", line 140, in
File "c:\users\botan\appdata\local\programs\python\python38\lib\site-packages\lytest\phidl_oas.py", line 19, in import_oas
retval = pg.import_gds(filename, cellname=cellname, flatten=flatten)
File "c:\users\botan\appdata\local\programs\python\python38\lib\site-packages\lytest\phidl_oas.py", line 12, in __getattr__
raise ImportError('phidl was not found, so import/write OAS will not work')

My thoughts that problem resides here:

lytest/lytest/kdb_xor.py

Lines 15 to 17 in c7d2c10

if hash_geom or pya is None:
run_xor_phidl(file1, file2, tolerance, hash_geom=True, verbose=verbose)
return

while calling run_xor(ref_file, test_file, tolerance=1, hash_geom=True, verbose=False)
hash_geom=True forces to use phidl and trying to load .oas format though reference design is .gds
Furthermore, phidl is not installed in my particular case.

shamil777 added a commit to shamil777/lytest that referenced this issue Jun 17, 2024
If user has no phidl library install, then hardcoded `hash_geom=True` leads to executing phidl code and throws an error:
atait#6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant