Skip to content

Commit

Permalink
Force numpy array coercion to 'object'
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-evs committed Feb 7, 2024
1 parent f245181 commit 4e52778
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion matminer/featurizers/structure/bonding.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ def fit(self, X, y=None):
self
"""
unpadded_bobs = [self.bag(s, return_baglens=True) for s in X]
bonds = [list(bob.keys()) for bob in unpadded_bobs]
bonds = np.asarray([list(bob.keys()) for bob in unpadded_bobs], dtype=object)
bonds = np.unique(sum(bonds, []))
baglens = [0] * len(bonds)

Expand Down

0 comments on commit 4e52778

Please sign in to comment.