Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pycbg
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mpm-at-recover
pycbg
Commits
ff6e4e00
Commit
ff6e4e00
authored
1 year ago
by
Sacha Duverger
Browse files
Options
Downloads
Patches
Plain Diff
Change a bit the same line as previous commit in case there is no MP at all in the simulation
parent
00f68da4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/pycbg/postprocessing.py
+1
-1
1 addition, 1 deletion
src/pycbg/postprocessing.py
with
1 addition
and
1 deletion
src/pycbg/postprocessing.py
+
1
−
1
View file @
ff6e4e00
...
...
@@ -85,7 +85,7 @@ class ResultsReader():
self
.
pstresses
,
self
.
pstrains
,
self
.
ppressures
=
[],
[],
[]
self
.
pmasses
,
self
.
pvolumes
,
self
.
pmaterials
=
[],
[],
[]
self
.
pcell_ids
=
[]
n_mp_max
=
max
([
np
.
max
(
rd
[
"
id
"
])
+
1
for
rd
in
self
.
raw_data
])
n_mp_max
=
np
.
max
([
np
.
max
(
rd
[
"
id
"
])
+
1
for
rd
in
self
.
raw_data
])
for
df
in
self
.
raw_data
:
ids
=
list
(
df
[
"
id
"
])
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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