Skip to content
Snippets Groups Projects
Commit 85791707 authored by Rahil Doshi's avatar Rahil Doshi
Browse files

Remove factory method from_material

parent a1854ff1
No related branches found
No related tags found
No related merge requests found
Pipeline #77219 passed
...@@ -94,7 +94,8 @@ class InterpolationArrayContainer(CustomGenerator): ...@@ -94,7 +94,8 @@ class InterpolationArrayContainer(CustomGenerator):
except Exception as e: except Exception as e:
raise ValueError(f"Failed to prepare interpolation arrays: {e}") from e raise ValueError(f"Failed to prepare interpolation arrays: {e}") from e
@classmethod # TODO: Deprecated!
'''@classmethod
def from_material(cls, name: str, material): def from_material(cls, name: str, material):
"""Create an interpolation container from a material object. """Create an interpolation container from a material object.
Args: Args:
...@@ -104,7 +105,7 @@ class InterpolationArrayContainer(CustomGenerator): ...@@ -104,7 +105,7 @@ class InterpolationArrayContainer(CustomGenerator):
Returns: Returns:
InterpolationArrayContainer: Container with arrays for interpolation. InterpolationArrayContainer: Container with arrays for interpolation.
""" """
return cls(name, material.energy_density_temperature_array, material.y_array) return cls(name, material.energy_density_temperature_array, material.y_array)'''
def _generate_binary_search(self, sfg: SfgComposer): def _generate_binary_search(self, sfg: SfgComposer):
"""Generate code for binary search interpolation. """Generate code for binary search interpolation.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment