Skip to content

read_adf11.py filepathing not robust #22

@d-v-t

Description

@d-v-t

While attempting to run the ss_ion_ball_adf11.py example, I kept getting errors saying the computer was attempting to establish a rank 4 tensor that would take 3-8 GB to allocate. Parsing through read_adf11.py, I noticed that there is a check for

if( 'r' in re.split('_',re.split('/',fil)[-1])[0]):

Splitting by '/' is fine for Linux but doesn't work for windows where paths are split by '\'. I edited read_adf11.py to use pathlib and made a couple of performance/readability improvements related to checking ACD/SCD/XCD/etc status.
read_adf11.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions