ITADN

read_adf11.py filepathing not robust

#22Opend-v-t 创建于 2024-04-10
D
d-v-tcommented
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](https://github.com/johnson-c/ColRadPy/files/14934959/read_adf11.zip)
2 条评论