Skip to content

Commit

Permalink
<>[]: <Dependency update>
Browse files Browse the repository at this point in the history
[Yet again]

[#123]
  • Loading branch information
Humberto Sanchez II committed Dec 24, 2024
1 parent 2370f33 commit e8d6568
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
pip install buildlackey~=1.7.0
pip install orthogonal==1.3.1
pip install pyumldiagrams==3.1.20
pip install pyforcedirectedlayout>=0.80.5
pip install pyforcedirectedlayout>=0.80.6
pip install pyorthogonalrouting>=1.3.0
- run:
name: run tests
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ dependencies = [
'antlr4-python3-runtime==4.13.1',
'pyumldiagrams>=3.1.20',
'orthogonal>=1.3.1',
'pyforcedirectedlayout>=0.80.5',
'pyforcedirectedlayout>=0.80.6',
'pyorthogonalrouting>=1.3.0',
]
[project.urls]
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ oglio==2.3.4

orthogonal==1.3.1
pyumldiagrams==3.1.20
pyforcedirectedlayout==0.80.5
pyforcedirectedlayout==0.80.6
pyorthogonalrouting==1.3.0
2 changes: 1 addition & 1 deletion src/pyutplugins/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__: str = '3.1.2'
__version__: str = '3.1.4'
12 changes: 11 additions & 1 deletion src/pyutplugins/toolplugins/ToolForceDirectedLayout.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ def _buildNameDictionary(self, oglObjects: OglObjects):

def _layoutStatusCallBack(self, status: LayoutStatus):

# noinspection PyProtectedMember
from wx._core import wxAssertionError

if self._layoutProgressDialog is None:
self._layoutProgressDialog = ProgressDialog('Arranging', 'Starting', parent=None, style=PD_APP_MODAL | PD_ELAPSED_TIME)
self._layoutProgressDialog.SetRange(status.maxIterations)
Expand All @@ -132,7 +135,14 @@ def _layoutStatusCallBack(self, status: LayoutStatus):
f'iterations: {status.iterations}\n'
f'stopCount: {status.stopCount}\n'
)
self._layoutProgressDialog.Update(status.iterations, statusMsg)
try:
self._layoutProgressDialog.Update(status.iterations, statusMsg)
except RuntimeError as re:
self.logger.error(f'wxPython error: {re}')
self._layoutProgressDialog = ProgressDialog('Arranging', 'Starting', parent=None, style=PD_APP_MODAL | PD_ELAPSED_TIME)
self._layoutProgressDialog.SetRange(status.maxIterations)
except wxAssertionError as ae:
self.logger.error(f'{status.iterations=} {ae}')

self._pluginAdapter.refreshFrame()

Expand Down

0 comments on commit e8d6568

Please sign in to comment.