Skip to content

Solve loading of letters#2

Open
leviathanch wants to merge 2 commits into
infinitymdm:masterfrom
leviathanch:HighLevelParser2
Open

Solve loading of letters#2
leviathanch wants to merge 2 commits into
infinitymdm:masterfrom
leviathanch:HighLevelParser2

Conversation

@leviathanch

Copy link
Copy Markdown

The letter element dictionary had not been initialized properly, this patch makes sure that the dict has been initialized, preventing crashes in lctime

I have now tracked down the error and introduced a proper fix

David Lanzendörfer added 2 commits July 25, 2025 15:17
The letter element dictionary had not been initialized properly,
this patch makes sure that the dict has been initialized, preventing
crashes in lctime
NGSpice now writes warnings to stderror apparently.

In order to keep going when trying to characterize our cells with
CharLib, I need to discard some errors when the slew rate is too
small in some circumstances.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer to keep the old import structure if possible, and instead use ElementData.elements or ElementData._init on L318-320.

Comment thread PySpice/Spice/NgSpice/Shared.py
elif 'doAnalyses' in content:
func = self._logger.info
elif 'run simulation(s) aborted' in content:
func = self._logger.info

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like it should probably be at least a .warning, if not .error. Or is there a case where it's ok if the simulations are aborted?

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

Successfully merging this pull request may close these issues.

2 participants