Skip to content

Commit 9a84092

Browse files
committed
Merge branch 'main' into release/2.0.2
2 parents 888eccd + 079560e commit 9a84092

File tree

3 files changed

+774
-607
lines changed

3 files changed

+774
-607
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,6 @@ venv.bak/
7474

7575
# Ignore generated changelog
7676
CHANGELOG.md
77-
test/read_write_test.py
77+
78+
# Custom test file
79+
test/read_write_test.py

lasso/dyna/d3plot.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -674,8 +674,14 @@ def build_header(self):
674674
):
675675
new_header["ioshl3"] = 1000
676676
else:
677-
# new_header["ioshl3"] = 999
678-
new_header["ioshl3"] = 0
677+
# See https://github.com/open-lasso-python/lasso-python/issues/39
678+
if (
679+
ArrayType.element_shell_thickness in self.d3plot.arrays
680+
or ArrayType.element_shell_internal_energy in self.d3plot.arrays
681+
):
682+
new_header["ioshl3"] = 999
683+
else:
684+
new_header["ioshl3"] = 0
679685

680686
if n_shells == 0:
681687
new_header["ioshl3"] = (
@@ -6163,7 +6169,7 @@ def plot(
61636169
def write_d3plot(
61646170
self, filepath: Union[str, BinaryIO], block_size_bytes: int = 2048, single_file: bool = True
61656171
):
6166-
"""Write a d3plot file again **(pro version only)**
6172+
"""Write a d3plot file again
61676173
61686174
Parameters
61696175
----------

0 commit comments

Comments
 (0)