Skip to content

Commit

Permalink
use None as default for Experiment optional mutable (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
amnona authored and RNAer committed Dec 17, 2018
1 parent 54d4a8f commit 9806736
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion calour/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,14 @@ class Experiment:
AmpliconExperiment
'''
def __init__(self, data, sample_metadata, feature_metadata=None,
exp_metadata={}, description='', sparse=True):
exp_metadata=None, description='', sparse=True):
self.data = data
self.sample_metadata = sample_metadata
if feature_metadata is None:
feature_metadata = pd.DataFrame(np.arange(data.shape[1]))
self.feature_metadata = feature_metadata
if exp_metadata is None:
exp_metadata = {}
self.exp_metadata = exp_metadata
self.description = description
self.normalized = 0
Expand Down

0 comments on commit 9806736

Please sign in to comment.