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 merge requests found
Pipeline #77219 passed with stage
in 1 minute and 5 seconds
......@@ -94,7 +94,8 @@ class InterpolationArrayContainer(CustomGenerator):
except Exception as e:
raise ValueError(f"Failed to prepare interpolation arrays: {e}") from e
@classmethod
# TODO: Deprecated!
'''@classmethod
def from_material(cls, name: str, material):
"""Create an interpolation container from a material object.
Args:
......@@ -104,7 +105,7 @@ class InterpolationArrayContainer(CustomGenerator):
Returns:
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):
"""Generate code for binary search interpolation.
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment