Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
WindEnergyToolbox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
toolbox
WindEnergyToolbox
Commits
4497a8fe
There was a problem fetching the pipeline summary.
Commit
4497a8fe
authored
8 years ago
by
mads
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
https://gitlab.windenergy.dtu.dk/toolbox/WindEnergyToolbox
parents
fae5568a
80477722
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/install-manual-detailed.md
+52
-62
52 additions, 62 deletions
docs/install-manual-detailed.md
wetb/prepost/dlctemplate.py
+2
-1
2 additions, 1 deletion
wetb/prepost/dlctemplate.py
with
54 additions
and
63 deletions
docs/install-manual-detailed.md
+
52
−
62
View file @
4497a8fe
...
@@ -18,6 +18,10 @@ Installation instructions follow in alphabetical orderby platorm.
...
@@ -18,6 +18,10 @@ Installation instructions follow in alphabetical orderby platorm.
## Linux
## Linux
*
Basic dependencies:
> python (3.5 recommended) git gcc gcc-fortran (gfortran)
*
Use either your system package manager, pip + virtualenv, or Anaconda to
*
Use either your system package manager, pip + virtualenv, or Anaconda to
install the following python dependencies:
install the following python dependencies:
...
@@ -27,25 +31,37 @@ install the following python dependencies:
...
@@ -27,25 +31,37 @@ install the following python dependencies:
Note that often the pytables packages is called python-tables instead of
Note that often the pytables packages is called python-tables instead of
python-pytables.
python-pytables.
*
Other tools you will need:
> git gcc gcc-fortran (gfortran)
## Mac
##
Dependencies on
Mac
People who now how to handle Python on the Mac side are kindly requested to
People who now how to handle Python on the Mac side are kindly requested to
complete this guide :-)
complete this guide :-)
## Windows
##
Dependencies on
Windows
A Python installation with compilers is required. If you already have this,
A Python installation with compilers is required. If you already have this,
or know how set up such an environment, you skip to
or know how set up such an environment, you skip to
[
here
](
install-manual-detailed.md#and-finally-install-wetb
)
.
[
here
](
install-manual-detailed.md#and-finally-install-wetb
)
.
### Microsft Visual Studio 2010
### Microsft Visual Studio 2010 Compiler
```
wetb``` contains extensions that need to be compiled.
On Windows things are complicated because you need to use the same compiler as
the one used for Python. This means that for compiling extensions on:
* Python 2.7 you need [Microsoft Visual C++ Compiler for Python 2.7](http://aka.ms/vcpython27),
or the [direct link](https://www.microsoft.com/en-gb/download/details.aspx?id=44266).
* Python 3.4 you need MS Visual Studio 2010
* Python 3.5 (and later) you need MS Visual Studio 2015
* You can install Microsoft Visual C++ Compiler for Python 2.7 alongside
MS Visual Studio 2010, but you can not install Visual Studio 2010 and 2015
in parallel.
You can find more background information and installation instructions
[here](https://packaging.python.org/en/latest/extensions/#setting-up-a-build-environment-on-windows),
[here](https://blogs.msdn.microsoft.com/pythonengineering/2016/04/11/unable-to-find-vcvarsall-bat/),
or [here](http://stevedower.id.au/blog/building-for-python-3-5-part-two/).
### Command line
### Command line
...
@@ -76,96 +92,69 @@ if you are not happy with it, see [here](https://git-scm.com/downloads/guis).
...
@@ -76,96 +92,69 @@ if you are not happy with it, see [here](https://git-scm.com/downloads/guis).
[tortoisegit](https://tortoisegit.org/)
[tortoisegit](https://tortoisegit.org/)
### Option 1: Anaconda (large download)
## Recommended python distribution: Anaconda
*
Anaconda is a professional grade, full blown scientific Python distribution.
*
Download Anaconda Python 2.7 for Windows
[
here
](
https://www.continuum.io/downloads
)
.
### Installing Anaconda, activate root environment
Depening on whether you already have a Python system installation, or another
Anaconda version, you can should chose wisely between the two offered options:
* Add Anaconda to the system PATH: you can only have one Anaconda installation
* Anaconda is a professional grade, full blown scientific Python distribution.
added to your path, but you can have multiple Anaconda or Miniconda installations
in parallelel.
* Set as your Python default system installation (you can only have one Python
installation set as your systems default).
* Download and install Anaconda from
[https://www.continuum.io/downloads](https://www.continuum.io/downloads).
*
Although the
```wetb```
module is Python 3.5 compatible, compiling it under
> Note: the choice of Anaconda for Python 2.7 or Python 3.5 only affects the
Windows requires MS Visual Studio 2015. When using Visual Studio 2010, you can
root environment. You can always create additional environments using other
compile extensions for both Python 2.7 and Python 3.4. If you want to use
Python versions, see below.
Python 3+, we recommend to use 3.4 for the time being, unless if you know what
you are doing (and wouldn't care to share installation instructions):
*
Update the root Anaconda environment:
* Update the root Anaconda environment
(type in a terminal)
:
```
```
conda update --all
conda update --all
```
```
*
You can now create an independent environment with a specific python version
:
*
Activate the Anaconda root environment in a terminal as follows
:
```
```
conda create -n py27 python=2.7
activate
conda create -n py34 python=3.4
```
```
*
These environments can be activated as follows:
and your terminal will do something like:
```
```
activate
py27
C:
\U
sers
\>
activate
activate py34
[Anaconda3] C:
\U
sers
\>
```
```
note that the name of the environment is now a prefix before the current path.
use ```deactivate``` to deactivate the environment.
use ```deactivate``` to deactivate the environment.
*
You can only have the full Anaconda distribution in the root environment.
### Optionally, create other independent Anaconda environments
When creating new environments you will have to manually install all packages
you require for that specific environment.
### Option 2: Miniconda (smaller download)
*
MS Visual Studio 2010
*
For building Python packages with Python 2.7,
* By using environments you can manage different Python installations with
[
http://aka.ms/vcpython27
](
http://aka.ms/vcpython27
)
, here's the
different versions on your system. Creating environments is as easy as:
[
direct link
](
https://www.microsoft.com/en-gb/download/details.aspx?id=44266
)
.
*
Download the latest Python 3 (!!) Miniconda installer for your platform
[
here
](
http://conda.pydata.org/miniconda.html
)
*
No need to worry about Python 2 or 3 at this stage. You can still use the
Python 3 installer for creating Python 2 conda environments
*
Before creating/activation/updating any specific miniconda environemnt,
update the global miniconda environment (conda, pip, etc)
```
conda update --all
```
*
Create a a new environment
```
```
conda create -n py27 python=2.7
conda create -n py27 python=2.7
conda create -n py34 python=3.4
conda create -n py34 python=3.4
conda create -n py35 python=3.5
```
```
*
Activate th
e envirnment
*
Thes
e envir
o
nment
s can be activated as follows:
```
```
activate py27
activate py27
activate py34
activate py35
```
```
use ```deactivate``` to deactivate the environment.
### Install dependencies with conda and pip
### Install dependencies with conda and pip
* Install the necessary Python dependencies using the conda package manager:
* Install the necessary Python dependencies using the conda package manager:
```
```
conda install setuptools_scm future h5py pytables pytest nose sphinx
blosc
conda install setuptools_scm future h5py pytables pytest nose sphinx
conda install scipy pandas matplotlib cython xlrd coverage xlwt openpyxl
conda install scipy pandas matplotlib cython xlrd coverage xlwt openpyxl
```
```
...
@@ -182,11 +171,12 @@ pip install pyscaffold pytest-cov --no-deps
...
@@ -182,11 +171,12 @@ pip install pyscaffold pytest-cov --no-deps
```
```
git clone https://gitlab.windenergy.dtu.dk/toolbox/WindEnergyToolbox.git
git clone https://gitlab.windenergy.dtu.dk/toolbox/WindEnergyToolbox.git
cd WindEnergyToolbox
cd WindEnergyToolbox
pip install -e .
pip install -e .
--no-deps
```
```
Note that
```pip install -e .```
will install
```wetb```
in the source directory.
Note that ```pip install -e . --no-deps``` will install ```wetb``` in the source
This works best if you are also developing and regularly updating this package.
directory. This works best if you are also developing and regularly updating
this package.
You can run the tests cases from the source root directory:
You can run the tests cases from the source root directory:
...
...
This diff is collapsed.
Click to expand it.
wetb/prepost/dlctemplate.py
+
2
−
1
View file @
4497a8fe
...
@@ -363,7 +363,8 @@ def post_launch(sim_id, statistics=True, rem_failed=True, check_logs=True,
...
@@ -363,7 +363,8 @@ def post_launch(sim_id, statistics=True, rem_failed=True, check_logs=True,
'
hub3-blade3-node-%03i-momentvec-y
'
%
nn_blr
]]
'
hub3-blade3-node-%03i-momentvec-y
'
%
nn_blr
]]
i0
,
i1
=
0
,
-
1
i0
,
i1
=
0
,
-
1
tags
=
list
(
cc
.
cases
[
list
(
cc
.
cases
.
keys
())[
0
]].
keys
())
# in addition, sim_id and case_id are always added by default
tags
=
[
'
[Case folder]
'
]
add
=
None
add
=
None
# general statistics for all channels channel
# general statistics for all channels channel
df_stats
=
cc
.
statistics
(
calc_mech_power
=
True
,
i0
=
i0
,
i1
=
i1
,
df_stats
=
cc
.
statistics
(
calc_mech_power
=
True
,
i0
=
i0
,
i1
=
i1
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment