Skip to content

Commit 7ea849a

Browse files
Copilotnjzjz
andcommitted
refactor: return dictionary directly in additional_data property
Co-authored-by: njzjz <9496702+njzjz@users.noreply.github.com>
1 parent 2d400fe commit 7ea849a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

source/tests/consistent/fitting/test_dipole.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,13 +140,12 @@ def additional_data(self) -> dict:
140140
mixed_types,
141141
sel_type,
142142
) = self.param
143-
additional = {
143+
return {
144144
"ntypes": self.ntypes,
145145
"dim_descrpt": self.inputs.shape[-1],
146146
"mixed_types": mixed_types,
147147
"embedding_width": 30,
148148
}
149-
return additional
150149

151150
def build_tf(self, obj: Any, suffix: str) -> tuple[list, dict]:
152151
(

0 commit comments

Comments
 (0)