Skip to content

Error when post-processing file with temperature field #30

@samuel-hg-engel

Description

@samuel-hg-engel

I get the following error when post-processing a workflow that has a DAMASK simulation with a temperature field. The error looks to stemming from damask-parse being unable to read the log file.

Traceback (most recent call last):
  File "/path/to/workflow/artifacts/submissions/0/scripts/simulate_VE_loading_damask_act_5.py", line 48, in <module>
    output = read_log(**func_kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^
  File "/path/to/workflow/artifacts/submissions/0/scripts/simulate_VE_loading_damask_act_5.py", line 8, in read_log
    return read_spectral_stdout(path=damask_stdout_file, encoding="utf8")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "path/to/software/damask-parse/damask_parse/readers.py", line 231, in read_spectral_stdout
    parsed_inc = parse_increment(i)
                 ^^^^^^^^^^^^^^^^^^
  File "/path/to/software/damask-parse/damask_parse/readers.py", line 109, in parse_increment
    inc_iter_i = parse_increment_iteration(i)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/path/to/software/damask-parse/damask_parse/readers.py", line 37, in parse_increment_iteration
    dg_str = dg_match.group(1)
             ^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'group'

The log file has the following additional section compared to the standard output log:

 ===========================================================================

 ... thermal conduction converged ..................................

 Minimum|Maximum|Delta Temperature / K =  293.000   293.000    0.0000

 ===========================================================================

But I cannot see a reason why this would interfere with the error that has been given about, which references a seperate line prior to this output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions