other:python:jyp_steps
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
other:python:jyp_steps [2016/01/19 16:40] – jypeter | other:python:jyp_steps [2016/01/20 11:58] – jypeter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Following JYP's steps ====== | + | ====== Following JYP' |
As can be expected, there is **a lot** of online python documentation available, and it's easy to get lost. You can always use google to find an answer to your problem, and you will probably end up looking at lots of answers on [[http:// | As can be expected, there is **a lot** of online python documentation available, and it's easy to get lost. You can always use google to find an answer to your problem, and you will probably end up looking at lots of answers on [[http:// | ||
- | This page tries to list some //python for the scientist// related resources, in a suggested reading order. | + | This page tries to list some //python for the scientist// related resources, in a suggested reading order. |
+ | |||
+ | ===== The official python documentation ===== | ||
+ | |||
+ | You do not need to read all the python documentation at this step, but it is really well made and you should at least have a look at it. The **Tutorial** is really well made, and you should have a look at the table of content of the **Python Standard Library**. There is a lot in the default library that can make your life easier | ||
+ | |||
+ | ==== Python 2.7 ==== | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | ==== Python 3 ==== | ||
+ | |||
+ | [[https:// | ||
===== Scipy Lecture Notes ===== | ===== Scipy Lecture Notes ===== | ||
Line 22: | Line 34: | ||
* [[http:// | * [[http:// | ||
+ | |||
+ | ===== Improving the performance of your code ===== | ||
+ | |||
+ | You can already get a very efficient script by checking the following: | ||
+ | |||
+ | * **make sure that your script is not using too much memory** (the amount depends on the computer you are using)! Your script should be scalable (e.g. keeps on working even when your data gets bigger), so it's a good idea to load only the data you need in memory (e.g. not all the time steps), and learn how to load chunks of data | ||
+ | |||
+ | * **make sure that you are using array/ | ||
+ | |||
+ | If your script is still not fast enough, there is a lot you can do to improve it, without resorting to parallelization (that may introduce extra bugs rather that extra performance). See the sections below | ||
+ | |||
+ | Hint: before optimizing your script, you should spent some time // | ||
+ | |||
+ | ==== Tutorials by Ian Osvald ==== | ||
+ | |||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | |||
+ | ===== Python 2.7 vs Python 3 ===== | ||
+ | |||
+ | The official [[https:// | ||
/* standard page footer */ | /* standard page footer */ |
other/python/jyp_steps.txt · Last modified: 2025/02/26 11:40 by jypeter