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
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
wtlib
WindEnergyToolbox
Commits
adfed72f
Commit
adfed72f
authored
7 years ago
by
David Verelst
Browse files
Options
Downloads
Patches
Plain Diff
prepost.GenerateDLCs: import other math modules from numpy
parent
c7e6df55
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
wetb/prepost/GenerateDLCs.py
+4
-1
4 additions, 1 deletion
wetb/prepost/GenerateDLCs.py
with
4 additions
and
1 deletion
wetb/prepost/GenerateDLCs.py
+
4
−
1
View file @
adfed72f
...
@@ -11,7 +11,8 @@ from __future__ import absolute_import
...
@@ -11,7 +11,8 @@ from __future__ import absolute_import
# arctan and pi are required because they are in the formulas that are
# arctan and pi are required because they are in the formulas that are
# evaluated
# evaluated
from
numpy
import
floor
,
arctan
,
pi
from
numpy
import
(
floor
,
arctan
,
pi
,
log
,
log10
,
sin
,
cos
,
tan
,
e
,
arcsin
,
arccos
)
import
pandas
as
pd
import
pandas
as
pd
import
xlrd
import
xlrd
from
argparse
import
ArgumentParser
from
argparse
import
ArgumentParser
...
@@ -244,6 +245,8 @@ class GenerateDLCCases(GeneralDLC):
...
@@ -244,6 +245,8 @@ class GenerateDLCCases(GeneralDLC):
if
sheet
.
cell_value
(
1
,
i
)
is
not
None
:
if
sheet
.
cell_value
(
1
,
i
)
is
not
None
:
tag
=
str
(
sheet
.
cell_value
(
1
,
i
))
tag
=
str
(
sheet
.
cell_value
(
1
,
i
))
if
tag
is
not
''
:
if
tag
is
not
''
:
# FIXME: only works if [wsp] is defined as variable
# and [seed] tags are present
if
sheet
.
cell_value
(
0
,
i
)
==
'
C
'
:
if
sheet
.
cell_value
(
0
,
i
)
==
'
C
'
:
constants
[
tag
]
=
sheet
.
cell_value
(
2
,
i
)
constants
[
tag
]
=
sheet
.
cell_value
(
2
,
i
)
if
sheet
.
cell_value
(
0
,
i
)
==
'
V
'
:
if
sheet
.
cell_value
(
0
,
i
)
==
'
V
'
:
...
...
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