Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft: Starting exposing A,B,C and the cosines to PWDocument generated inputs #11

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions qeschema/cards.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,8 @@ def get_cell_parameters_card(name, **kwargs):
logger.error("Missing required arguments when building CELL_PARAMETERS card!")
return []
# Add cell parameters card
if atomic_structure.get('@bravais_index'):
return []
cells = atomic_structure.get('cell', {})
if cells:
lines = ['%s bohr' % name]
Expand Down
2 changes: 1 addition & 1 deletion qeschema/converters.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ class PwInputConverter(RawInputConverter):
'atomic_structure': {
'@nat': 'SYSTEM[nat]',
'$': [
('SYSTEM[ibrav]', options.set_ibrav_to_zero, None),
('SYSTEM[ibrav]', options.get_ibrav, None),
("ATOMIC_POSITIONS", cards.get_atomic_positions_cell_card, None),
("CELL_PARAMETERS", cards.get_cell_parameters_card, None)
],
Expand Down
Loading