Skip to content

Commit

Permalink
Merge branch 'main' into release/2.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
codie3611 committed Mar 4, 2024
2 parents 888eccd + 079560e commit 9a84092
Show file tree
Hide file tree
Showing 3 changed files with 774 additions and 607 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,6 @@ venv.bak/

# Ignore generated changelog
CHANGELOG.md
test/read_write_test.py

# Custom test file
test/read_write_test.py
12 changes: 9 additions & 3 deletions lasso/dyna/d3plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -674,8 +674,14 @@ def build_header(self):
):
new_header["ioshl3"] = 1000
else:
# new_header["ioshl3"] = 999
new_header["ioshl3"] = 0
# See https://github.com/open-lasso-python/lasso-python/issues/39
if (
ArrayType.element_shell_thickness in self.d3plot.arrays
or ArrayType.element_shell_internal_energy in self.d3plot.arrays
):
new_header["ioshl3"] = 999
else:
new_header["ioshl3"] = 0

if n_shells == 0:
new_header["ioshl3"] = (
Expand Down Expand Up @@ -6163,7 +6169,7 @@ def plot(
def write_d3plot(
self, filepath: Union[str, BinaryIO], block_size_bytes: int = 2048, single_file: bool = True
):
"""Write a d3plot file again **(pro version only)**
"""Write a d3plot file again
Parameters
----------
Expand Down
Loading

0 comments on commit 9a84092

Please sign in to comment.