Closed hududed closed 11 months ago
@giovannipizzi @sphuber do you know if that is a limitation that QE itself puts on the input file, or is it just a limitation of our parser?
To be honest I don't know. I have not written these parser nor ever worked with them. But looking at _parse_cell_parameters
which defines the regex that parses the CELL_PARAMETERS
block, the regex seems to allow 0
, i.e. it considers the dot and decimals optional. So I am not sure why it fails just from looking at the code quickly. However, I would say that specifying an integer should work just fine and not return None
.
To be honest I don't know. I have not written these parser nor ever worked with them.
Yeah, same here 😅
Also looking at the code quickly, it seems the cell_vector_regex
allows integers:
But the cell_parameters_block_re
does not:
If that one doesn't match, it never gets to trying to parse the individual vectors. Not sure why there are these two separate regex-es, instead of just using the matches from cell_parameters_block_re
.
This was originally written by @lekah I think that we should accept ints (and convert them to floats)
Hello
I tried to parse an input file:
and got the error that
CELL_PARAMETERS
is a nonetype.The solution was proposed that my
CELL_PARAMETERS
values did not contain 0.0 instead of a 0.Worked:
Failed: