Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/devel' into devel
Browse files Browse the repository at this point in the history
# Conflicts:
#	.idea/workspace.xml
  • Loading branch information
Santi committed Mar 31, 2024
2 parents 51299c6 + 6c718e5 commit 641e5b8
Show file tree
Hide file tree
Showing 19 changed files with 622 additions and 6,048 deletions.
5,615 changes: 0 additions & 5,615 deletions doc/rst_source/other_data_models.rst

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions src/GridCal/Gui/Analysis/object_plot_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,27 +422,27 @@ def grid_analysis(circuit: MultiCircuit,
property_name='R',
value=elm.R))

elif elm.R == 0.0:
elif elm.R == 1e-20:
logger.add(object_type=object_type.value,
element_name=elm.name,
element_index=i,
severity=LogSeverity.Information,
propty='R',
message='The resistance is exactly zero.',
message='The resistance is practically zero.',
val=elm.R)
fixable_errors.append(FixableErrorOutOfRange(grid_element=elm,
property_name='R',
value=elm.R,
lower_limit=eps_min,
upper_limit=eps_max))

if elm.X == 0.0:
if elm.X == 1e-20:
logger.add(object_type=object_type.value,
element_name=elm.name,
element_index=i,
severity=LogSeverity.Error,
propty='X',
message='The reactance is exactly zero. This hurts numerical conditioning.',
message='The reactance is practically zero. This hurts numerical conditioning.',
val=elm.X)
fixable_errors.append(FixableErrorOutOfRange(grid_element=elm,
property_name='X',
Expand All @@ -456,7 +456,7 @@ def grid_analysis(circuit: MultiCircuit,
element_index=i,
severity=LogSeverity.Error,
propty='B',
message='There is no susceptance, this hurts numerical conditioning.',
message='There is no susceptance, this could hurt numerical conditioning.',
val=elm.B)
fixable_errors.append(FixableErrorOutOfRange(grid_element=elm,
property_name='B',
Expand Down
Loading

0 comments on commit 641e5b8

Please sign in to comment.