Skip to content

Commit

Permalink
Add for autocompletion in ipython
Browse files Browse the repository at this point in the history
  • Loading branch information
edeno committed Mar 23, 2018
1 parent b8bf7cf commit 70c832b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions replay_classification/decoders.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ def __init__(self, position, lagged_position,
self.place_std_deviation = place_std_deviation
self.confidence_threshold = confidence_threshold

def __dir__(self):
return self.keys()

def fit(self):
'''Fits the decoder model for each trajectory_direction.
Expand Down Expand Up @@ -291,6 +294,9 @@ def __init__(self, position, lagged_position, spikes, trajectory_direction,
self.confidence_threshold = confidence_threshold
self.knot_spacing = knot_spacing

def __dir__(self):
return self.keys()

def fit(self):
'''Fits the decoder model by state
Expand Down

0 comments on commit 70c832b

Please sign in to comment.