Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pymatlib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Rahil Doshi
pymatlib
Commits
85791707
Commit
85791707
authored
2 months ago
by
Rahil Doshi
Browse files
Options
Downloads
Patches
Plain Diff
Remove factory method from_material
parent
a1854ff1
No related branches found
No related tags found
No related merge requests found
Pipeline
#77219
passed
2 months ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/pymatlib/core/codegen/interpolation_array_container.py
+3
-2
3 additions, 2 deletions
src/pymatlib/core/codegen/interpolation_array_container.py
with
3 additions
and
2 deletions
src/pymatlib/core/codegen/interpolation_array_container.py
+
3
−
2
View file @
85791707
...
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment