143a80dde5
Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com>
4.5 KiB
4.5 KiB
How to Python in computational neuroscience, data mining, and more
{:.no_toc}
* TOC {:toc}All the tutorials are tested with Python 3.11.x. Older version might have a problem with the new versions of type anotations.
Flow chart
Workflow
- Python installation
- VS Code installation
- VS Code configuration
- VS Code Microsoft Tutorials
- VS Code Python Interactive window
- VS Code Markdown
Important VS Code notes:
- You can mark segments of source node with your mouse (or keyboard) and use the TAB key to increase the level of the indentation or use SHIFT + TAB do decrease the indentation level.
- CTRL + SHIFT + 7 toggles between comment and normal source code.
- The function key F2 allows you to change variable and function names. VS Code goes through all the node in your Project directory and changes all occurrences of the function or variable name accordingly. The same is true if you change a file name in a project directory.
Python: The Basics of the basics
- Overview
- Hello, Python
- Style Rulez
- Programming Recommendations
- Basic Math Operations
- Truth Value Testing
- Formatted String Literals
- Flow Control Overview
- Sequence Types
- Mapping Types
- Functions
- Type annotations
- Files
- JSON and dict for parameter files
- Creating order via sub-directories: os.makedirs
- Finding files in a directory: glob
- Class
- Exceptions (try / except)
- Importing Modules
- Built-in Functions
- The Python Standard Library
Numpy: The Basics of the basics
Matplotlib.pyplot
Numpy
Python: Data analysis
Python: Questions of spectral nature
- Numpy: rfft and spectral power
- scipy.signal: Butterworth low, high and band-pass
- PyWavelets: Wavelet Transforms in Python
Python: Daily little helper
PyTorch
Matlab: Basics
Note: I will transfer the old pages to this new place (and update it). It will take some time but it will happen...