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

prepare a list of sweep times #83

Closed
swharden opened this issue Jul 23, 2019 · 1 comment
Closed

prepare a list of sweep times #83

swharden opened this issue Jul 23, 2019 · 1 comment
Assignees

Comments

@swharden
Copy link
Owner

consider these to go along with abf.sweepList

sweepTimesSec = np.arange(abf.sweepCount) * abf.sweepIntervalSec
sweepTimesMin = sweepTimesSec / 60
@swharden swharden self-assigned this Jul 23, 2019
@swharden
Copy link
Owner Author

omg those properties already exist and those are their exact names

pyABF/src/pyabf/abf.py

Lines 573 to 581 in f7caa64

@property
def sweepTimesSec(self):
"""Numpy array of sweep start times (in seconds)"""
return np.arange(self.sweepCount)*self.sweepIntervalSec
@property
def sweepTimesMin(self):
"""Numpy array of sweep start times (in minutes)"""
return self.sweepTimesSec/60

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant