Skip to content

Commit

Permalink
Merge pull request #229 from phonopy/yaml-type2-dataset
Browse files Browse the repository at this point in the history
New phono3py yaml for type2 dataset
  • Loading branch information
atztogo authored May 26, 2024
2 parents bd9bfae + 6524c46 commit 5304765
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions phono3py/interface/phono3py_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
import numpy as np
from phonopy.interface.phonopy_yaml import (
PhonopyYaml,
PhonopyYamlDumper,
PhonopyYamlLoader,
PhonopyYamlDumperBase,
PhonopyYamlLoaderBase,
load_yaml,
phonopy_yaml_property_factory,
)
Expand Down Expand Up @@ -82,7 +82,7 @@ class Phono3pyYamlData:
phonon_primitive: Optional[Primitive] = None


class Phono3pyYamlLoader(PhonopyYamlLoader):
class Phono3pyYamlLoader(PhonopyYamlLoaderBase):
"""Phono3pyYaml loader."""

def __init__(
Expand Down Expand Up @@ -168,7 +168,7 @@ def _parse_fc3_dataset(self):
self._data.dataset = dataset

# This case should work only for v2.2 or later.
if self._data.dataset is None and "displacements" in self._yaml:
if self._data.dataset is None:
self._data.dataset = self._get_dataset(self._data.supercell)

def _parse_fc3_dataset_type1(self, natom):
Expand Down Expand Up @@ -263,7 +263,7 @@ def _parse_fc3_dataset_type1_without_forces(self, data1, d2, disp2_id):
return disp2_id


class Phono3pyYamlDumper(PhonopyYamlDumper):
class Phono3pyYamlDumper(PhonopyYamlDumperBase):
"""Phono3pyYaml dumper."""

_default_dumper_settings = {
Expand Down

0 comments on commit 5304765

Please sign in to comment.