Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
Update definition of loadstep because otherwise it's not compatible w…
Browse files Browse the repository at this point in the history
…ith pyiron_workflow
  • Loading branch information
samwaseda committed Sep 22, 2024
1 parent 96959d4 commit 4db2b8b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pyiron_continuum/damask/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,8 @@ def get_loading(solver, load_steps):
if not isinstance(load_steps, list):
load_steps = [load_steps]
if "mech_bc_dict" in load_steps[0]:
return YAML(solver=solver, loadstep=translate_load_steps(load_steps))
else:
return YAML(solver=solver, loadstep=load_steps)
load_steps = translate_load_steps(load_steps)
return YAML(solver=solver, loadstep=load_steps)


def translate_load_steps(load_steps):
Expand Down

0 comments on commit 4db2b8b

Please sign in to comment.