Skip to content

Commit

Permalink
Merge pull request #59 from parklab/dev
Browse files Browse the repository at this point in the history
Bug fix related to input of DenovoSig
  • Loading branch information
Hu-JIN authored Apr 20, 2022
2 parents 7c8b533 + 8b409c0 commit 4f0bc2a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions musical/denovo.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,8 @@ def __init__(self,
):
if (type(X) != np.ndarray) or (not np.issubdtype(X.dtype, np.floating)):
self.X = np.array(X).astype(float)
else:
self.X = X
self.n_features, self.n_samples = self.X.shape
if isinstance(X, pd.DataFrame):
self.X_df = X.astype(float)
Expand Down

0 comments on commit 4f0bc2a

Please sign in to comment.