Skip to content

Commit

Permalink
Fixed __pycache__ and __init__ imports for full_featurizer
Browse files Browse the repository at this point in the history
  • Loading branch information
SurgeArrester authored Oct 25, 2024
1 parent ab6dc38 commit ee247d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ElMD/ElMD.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,10 @@ def full_feature_vector(self, positional_encode=False, min_freq=1e-4):
full_features = []

for f in feature_dicts:
# Fixes __pycache__ and __init__ cases
if '__' in f:
continue

d, _ = _get_periodic_tab(f)
vectors = np.array([d[el] for el in self.normed_composition.keys()])

Expand Down

0 comments on commit ee247d7

Please sign in to comment.