Skip to content

Commit 5d41245

Browse files
Remove input_structure deprecation warning
All plugins have been updated to use `structure_uuid`.
1 parent 9ba5c42 commit 5d41245

1 file changed

Lines changed: 1 addition & 16 deletions

File tree

src/aiidalab_qe/common/mixins.py

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from __future__ import annotations
22

33
import typing as t
4-
import warnings
54

65
import traitlets as tl
76

@@ -94,21 +93,7 @@ def _link_model(self, model: M):
9493
dependency_parts = dependency.rsplit(".", 1)
9594
if len(dependency_parts) == 1: # from parent
9695
target_model = self
97-
if dependency == "input_structure":
98-
# BACKWARDS COMPATIBLE - remove when all plugins are updated!
99-
warnings.warn(
100-
(
101-
"The `input_structure` dependency is deprecated. "
102-
"Please use the `structure_uuid` dependency instead. "
103-
"`input_structure` is now a property that loads the "
104-
"structure by uuid."
105-
),
106-
DeprecationWarning,
107-
stacklevel=2,
108-
)
109-
trait = "structure_uuid"
110-
else:
111-
trait = dependency
96+
trait = dependency
11297
else: # from sibling
11398
sibling, trait = dependency_parts
11499
target_model = self.get_model(sibling)

0 commit comments

Comments
 (0)