Tag Archives: Python

File in/out: How to import data files from Spike2 (and Matlab) into Python

Spike2 is a type of signal acquisition software commonly used in physiological studies (eg. electromyography, kinematics, cardiovascular research, sleep, etc). It is possible to perform signal analysis in Spike2 by using the drop-down menus, or by programming scripts to automate analysis. However, the programming language for Spike2 is difficult to read, which discourages many scientists from learning to program scripts

Read more

Take control of your Python print() statements: part 2

In the last post, we learned how to use .format() to improve the quality of our print() statements. You may have noticed that we were still printing lots of values after the decimal point, more than are necessary. In this post we will learn to control the presentation of numerical values. Representing and adjusting numbers using .format() With the .format()

Read more
« Older Entries Recent Entries »