Skip to content

Commit

Permalink
udpate: small adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
VsevolodX committed Aug 13, 2024
1 parent 8487d70 commit 89edbc7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/py/mat3ra/made/tools/build/perturbation/builders.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def _post_process(
return [wrap_to_unit_cell(item) for item in items]

def _update_material_name(self, material: Material, configuration: _ConfigurationType) -> Material:
perturbation_details = f"Perturbation: {configuration.perturbation_function_holder.get_json().get('function')}"
perturbation_details = f"Perturbation: {configuration.perturbation_function_holder.get_json().get('type')}"
material.name = f"{material.name} ({perturbation_details})"
return material

Expand Down
2 changes: 1 addition & 1 deletion src/py/mat3ra/made/tools/utils/perturbation.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def __init__(
def get_json(self) -> dict:
return {
"type": self.__class__.__name__,
"function": "sine_wave",
"function": str(self.function),
"variables": self.variables,
"amplitude": self.amplitude,
"wavelength": self.wavelength,
Expand Down

0 comments on commit 89edbc7

Please sign in to comment.