Skip to content

Commit

Permalink
small change
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuangjun1981 committed Jul 19, 2021
1 parent 7030416 commit bdb4a3c
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion NeuroAnalysisTools/SingleCellAnalysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -2873,7 +2873,7 @@ def plot_dire_tuning(self, axis=None, response_dir='pos', is_collapse_sf=True, i
trace_color='#ff0000', postprocess='raw', is_plot_errbar=False,
is_normalize=False, is_arc=False, **kwargs):
"""
obsolete, please use DirectionTuning.plot_linear() or DirectionTuning.plot_polar()
:param axis:
:param response_dir:
:param is_collapse_sf:
Expand Down Expand Up @@ -2989,6 +2989,18 @@ def copy_self(self, deep=True):
baseline_window_sec=self.baseline_window_sec,
response_window_sec=self.response_window_sec)

def sort_values(self, *args, **kwargs):

if 'in_place' in kwargs and kwargs['in_place']:
raise NotImplementedError("sort_values() function of DriftingGratingResponseTableTrial "
"object cannot be in_place.")

df = super(DriftingGratingResponseTableTrial, self).sort_values(*args, **kwargs)
return DriftingGratingResponseTableTrial(data=df.copy(deep=True),
trace_type=self.trace_type,
baseline_window_sec=self.baseline_window_sec,
response_window_sec=self.response_window_sec)

def get_blank_ind(self):
blank_rows = self[(self['sf'] == 0) &
(self['tf'] == 0) &
Expand Down

0 comments on commit bdb4a3c

Please sign in to comment.