Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
multi-area-model
Manage
Activity
Members
Labels
Plan
Issues
7
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IAS-6
multi-area-model
Commits
062e0c5e
Commit
062e0c5e
authored
5 years ago
by
jarsi
Browse files
Options
Downloads
Patches
Plain Diff
Swap content in try except block for a more logical flow
parent
b6d7da05
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!11
Swap content in try except block for a more logical flow
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
multiarea_model/simulation.py
+2
-2
2 additions, 2 deletions
multiarea_model/simulation.py
with
2 additions
and
2 deletions
multiarea_model/simulation.py
+
2
−
2
View file @
062e0c5e
...
...
@@ -312,9 +312,9 @@ class Simulation:
Use NEST
'
s memory wrapper function to record used memory.
"""
try
:
mem
=
nest
.
sli_func
(
'
memory_thisjob
'
)
except
AttributeError
:
mem
=
nest
.
ll_api
.
sli_func
(
'
memory_thisjob
'
)
except
AttributeError
:
mem
=
nest
.
sli_func
(
'
memory_thisjob
'
)
if
isinstance
(
mem
,
dict
):
return
mem
[
'
heap
'
]
else
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment