Skip to content

Commit

Permalink
Update following the change of phonopy and aiida-core
Browse files Browse the repository at this point in the history
  • Loading branch information
atztogo committed Jun 16, 2020
1 parent 26c3ad3 commit 8e0eec6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion aiida_phonopy/common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def get_phonopy_instance(structure, phonon_settings_dict, params):
primitive_matrix='auto',
symprec=phonon_settings_dict['symmetry_tolerance'])
if 'nac_params' in params:
from phonopy.interface import get_default_physical_units
from phonopy.interface.calculator import get_default_physical_units
units = get_default_physical_units('vasp')
factor = units['nac_factor']
nac_params = {'born': params['nac_params'].get_array('born_charges'),
Expand Down
8 changes: 4 additions & 4 deletions aiida_phonopy/workflows/phonopy.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,13 @@ def define(cls, spec):
spec.input('code_string', valid_type=Str, required=False)
spec.input('options', valid_type=Dict, required=False)
spec.input('symmetry_tolerance',
valid_type=Float, required=False, default=Float(1e-5))
valid_type=Float, required=False, default=lambda: Float(1e-5))
spec.input('dry_run',
valid_type=Bool, required=False, default=Bool(False))
valid_type=Bool, required=False, default=lambda: Bool(False))
spec.input('run_phonopy',
valid_type=Bool, required=False, default=Bool(False))
valid_type=Bool, required=False, default=lambda: Bool(False))
spec.input('remote_phonopy',
valid_type=Bool, required=False, default=Bool(False))
valid_type=Bool, required=False, default=lambda: Bool(False))

spec.outline(
cls.initialize_supercell_phonon_calculation,
Expand Down

0 comments on commit 8e0eec6

Please sign in to comment.