Skip to content

Commit

Permalink
fix pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-goeldi committed Jun 26, 2024
1 parent 490e963 commit c3a48ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@
* add invert to droute_manhattan by [@joamatab](https://github.com/joamatab) in https://github.com/gdsfactory/kfactory/pull/217
* better_odd_port_width_message by [@joamatab](https://github.com/joamatab) in https://github.com/gdsfactory/kfactory/pull/220
* Added `rec_dict` to `@cell` decorator to allow for recursive dictionaries by [@sebastian-goeldi](https://github.com/sebastian-goeldi) in https://github.com/gdsfactory/kfactory/pull/221
* more consitent names for routes by [@joamatab](https://github.com/joamatab) in https://github.com/gdsfactory/kfactory/pull/226
* more consistent names for routes by [@joamatab](https://github.com/joamatab) in https://github.com/gdsfactory/kfactory/pull/226
* Virtual Cells by [@sebastian-goeldi](https://github.com/sebastian-goeldi) in https://github.com/gdsfactory/kfactory/pull/228


Expand Down
5 changes: 2 additions & 3 deletions src/kfactory/kcell.py
Original file line number Diff line number Diff line change
Expand Up @@ -7568,7 +7568,6 @@ def show(
and not the main KCLayout.
"""
import inspect
import tempfile

delete = False
delete_lyrdb = False
Expand All @@ -7579,9 +7578,9 @@ def show(
stk = inspect.getouterframes(inspect.currentframe())
frame = stk[2]
frame_filename_stem = Path(frame.filename).stem
if frame_filename_stem.startswith("<ipython-input"): # IPython Case
if frame_filename_stem.startswith("<ipython-input"): # IPython Case
name = "ipython"
else: # Normal Python kernel case
else: # Normal Python kernel case
if frame.function != "<module>":
name = frame_filename_stem + "_" + frame.function
else:
Expand Down

0 comments on commit c3a48ef

Please sign in to comment.