Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

renamed 'lst_input' -> 'spiketrains' in BinnedSpikeTrain class' #311

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion elephant/conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ def __init__(self, spiketrains, binsize=None, num_bins=None, t_start=None,
spiketrains = [spiketrains]

# Link to input
self.lst_input = spiketrains
self.spiketrains = spiketrains
# Set given parameters
self.t_start = t_start
self.t_stop = t_stop
Expand Down Expand Up @@ -501,6 +501,13 @@ def matrix_rows(self):
def matrix_columns(self):
return self._sparse_mat_u.shape[1]

@property
def lst_input(self):
warnings.warn("'lst_input' property is renamed to 'spiketrains' and "
"will be deleted in Elephant v0.9.0 ",
DeprecationWarning)
return self.spiketrains

# =========================================================================
# There are four cases the given parameters must fulfill, or a `ValueError`
# will be raised:
Expand Down