We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ac74b3 commit c7c0378Copy full SHA for c7c0378
src/scippneutron/atoms/__init__.py
@@ -42,7 +42,7 @@ def atomic_weight(self) -> sc.Variable:
42
"This likely means that there is no standard atomic weight "
43
"for this element."
44
)
45
- return self._atomic_weight
+ return self._atomic_weight.copy()
46
47
@property
48
def atomic_mass(self) -> sc.Variable:
@@ -53,7 +53,7 @@ def atomic_mass(self) -> sc.Variable:
53
"This likely means that you specified an element name, not a specific "
54
"isotope; atomic masses are only defined for isotopes / nuclides."
55
56
- return self._atomic_mass
+ return self._atomic_mass.copy()
57
58
def __eq__(self, other: object) -> bool | type(NotImplemented):
59
if not isinstance(other, Atom):
0 commit comments