-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Labels
bugSomething isn't workingSomething isn't working
Description
I'm using quantum espresso with shakenbreak and there are one or two issues.
- The default espresso file that
shakenbreakcreates is an espressorelaxcalculation. HOWEVER, theread_espresso_structuremethod presumes avc-relaxfile. That's because an ordinaryrelaxcalculation does not have the"CELL_PARAMETERS (angstrom)"string in its output thatread_espresso_structureis looking for.
Solution: Simply make the default files that shakenbreak generates to be vc-relax rather than relax.
- The following line:
atomic_positions = file_content.split("ATOMIC_POSITIONS (angstrom)")[1]
should be followed up with:
atomic_positions = atomic_positions.split("Writing output data")[0]
Otherwise the string doesn't parse correctly i.e. float conversion in the following line:
coordinates = [[float(entry) for entry in line[1:4]] for line in atomic_positions_processed]
fails due to non-numeric input.
I'm using:
shakenbreak version 3.4.2.
python 3.13
If the second error has not been removed then I can go ahead and make a pull request.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working