-
Notifications
You must be signed in to change notification settings - Fork 0
/
per2py_installation.txt
70 lines (51 loc) · 3.53 KB
/
per2py_installation.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# First, install miniconda3 from here:
https://docs.conda.io/en/latest/miniconda.html
# Choose Python 3.8 Windows 64bit installer of Miniconda3, download, run the file, select admin, for all, select add to PATH, do not make default (unless you have no previous Python environment)
# More information on Anaconda and its environments:
https://towardsdatascience.com/a-guide-to-conda-environments-bc6180fc533
https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html
-----------------------------------------------------------------------------------------------
# Create per2py environment and install necessary packages by yml file:
# click in Windows on Start menu, run Anaconda PowerShell prompt (as admin if possible) and check the current work directory
# copy file p2p.yml to current directory (usually C:\Users\username), then type on Anaconda prompt and wait (may take a long time):
conda env create -f p2p.yml
OR
# Create per2py environment and install necessary packages manually:
# click in Windows on Start menu, run Anaconda PowerShell prompt (as admin if possible), type and enter each row and wait for installation:
conda create -n per2py
conda activate per2py
conda env list
conda install numpy
conda install scipy matplotlib ipython jupyter pandas seaborn xlrd
conda install spectrum pywavelets lmfit
# If you have trouble installing from default channel (i.e. you get some error message), type this instead:
conda install --channel conda-forge spectrum pywavelets lmfit
conda install -c conda-forge scikit-posthocs
--------------------------------------------------------------------------------------------
# To check proper installation, type:
conda list
# and check presence of each module in the list.
# seaborn is for heatmaps, xlrd for xlsx imports in latest versions, spectrum pywavelets lmfit for per2py
# to run per2py in IDLE, type this in conda prompt
conda activate per2py
idle
# to use batch file that autoactivates per2py env and starts idle/spyder, right click on desktop, create New text document (not Word, notepad txt),
# rename it to per2py.bat, open it in notepad and copy paste this:
@echo on
call C:\ProgramData\Miniconda3\Scripts\activate.bat
call activate per2py
call python -m idlelib
# C:\ProgramData\... need to be modified to your actual path to miniconda, which depends on admin/user install!
# If you have a fairly powerful PC (8GB+ RAM, quadcore+), you can use Spyder IDE. But it is not necessary to install spyder, you can use default IDE named IDLE on older PCs.
# First you need to install Spyder, it downgrades jedi for some reason:
conda install spyder
# to run per2py in spyder, type this in conda prompt
conda activate per2py
spyder
# batch file is the same, but instead> call python -m idlelib, type:
spyder.exe
IMPORTANT:
# For CZ Windows users only:
1. change ; to , in Excel CSV coding, like this: Vyhledej: Region (změnit zemi...) – Další možnosti pro datum… - Změnit datum, čas,… - Další nastavení – Oddělovač seznamu – tam napiš , místo ;
2. change , to . in Excel: run Excel 2016 or newer (for older version it is a bit different, google it): Soubor - Možnosti - Upřesnit - zruš Použít oddělovač systému a do Oddělovač desetinných míst napiš .
# Once everything is installed, unzip source file (e.g. per2py_luminoskan.zip) somewhere (or download from github once ready) and follow corresponding instructions (e.g. in file _manual_per2py_luminoskan.txt) to analyze luminiscence data.