Skip to content

Commit

Permalink
Change from to_snakecase to quantity_name in _add_attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
sudarshanv01 committed Sep 15, 2023
1 parent da003ef commit ea241b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/py4vasp/_calculations.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ def number_of_calculations(self) -> Dict[str, int]:

def _add_attribute_from_path(calc, class_):
instance = class_.from_paths(calc.paths())
setattr(calc, convert.to_snakecase(class_.__name__), instance)
setattr(calc, convert.quantity_name(class_.__name__), instance)
return calc


def _add_attribute_from_file(calc, class_):
instance = class_.from_files(calc.files())
setattr(calc, convert.to_snakecase(class_.__name__), instance)
setattr(calc, convert.quantity_name(class_.__name__), instance)
return calc


Expand Down

0 comments on commit ea241b5

Please sign in to comment.