Skip to content

Commit

Permalink
correct concatenation of atom feature in different layers
Browse files Browse the repository at this point in the history
  • Loading branch information
JiQi535 committed Jan 27, 2024
1 parent a73ef6b commit 0ee886f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion maml/describers/_m3gnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,4 +141,4 @@ def transform_one(self, structure: Structure | Molecule):
atom_fea_dict = {k: v for k, v in atom_fea.items() if k in self.output_layers}
if self.return_type == dict:
return atom_fea_dict
return pd.DataFrame(np.concatenate(list(atom_fea_dict.values())))
return pd.DataFrame(np.concatenate(list(atom_fea_dict.values()), axis=1))

0 comments on commit 0ee886f

Please sign in to comment.