Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 0 additions & 39 deletions src/cript/nodes/primary_nodes/material.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,45 +138,6 @@ def __init__(
keyword=keyword,
)

@property
@beartype
def name(self) -> str:
"""
material name

Examples
---------
>>> import cript
>>> my_material = cript.Material(
... name="my component material 1",
... identifier=[{"chem_formula": "my material chem formula"}],
... )
>>> my_material.name = "my new material name"

Returns
-------
str
material name
"""
return self._json_attrs.name

@name.setter
@beartype
def name(self, new_name: str) -> None:
"""
set the name of the material

Parameters
----------
new_name: str

Returns
-------
None
"""
new_attrs = replace(self._json_attrs, name=new_name)
self._update_json_attrs_if_valid(new_attrs)

@property
@beartype
def identifier(self) -> List[Dict[str, str]]:
Expand Down