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
130957cf
There was a problem fetching the pipeline summary.
Commit
130957cf
authored
8 years ago
by
David Verelst
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of gitlab.windenergy.dtu.dk:toolbox/WindEnergyToolbox
parents
09895caa
f2ac9fa1
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
requirements.txt
+2
-1
2 additions, 1 deletion
requirements.txt
wetb/gtsdf/gtsdf.py
+0
-3
0 additions, 3 deletions
wetb/gtsdf/gtsdf.py
wetb/hawc2/cluster_simulation.py
+2
-2
2 additions, 2 deletions
wetb/hawc2/cluster_simulation.py
wetb/hawc2/htc_file.py
+4
-1
4 additions, 1 deletion
wetb/hawc2/htc_file.py
with
8 additions
and
7 deletions
requirements.txt
+
2
−
1
View file @
130957cf
...
@@ -11,4 +11,5 @@ h5py
...
@@ -11,4 +11,5 @@ h5py
pandas
pandas
tables
tables
future
future
paramiko
paramiko
\ No newline at end of file
psutil
This diff is collapsed.
Click to expand it.
wetb/gtsdf/gtsdf.py
+
0
−
3
View file @
130957cf
...
@@ -3,7 +3,6 @@ from builtins import zip
...
@@ -3,7 +3,6 @@ from builtins import zip
from
builtins
import
range
from
builtins
import
range
from
builtins
import
str
from
builtins
import
str
from
future
import
standard_library
from
future
import
standard_library
from
wetb.utils.timing
import
print_time
standard_library
.
install_aliases
()
standard_library
.
install_aliases
()
import
warnings
import
warnings
from
wetb.gtsdf.unix_time
import
from_unix
from
wetb.gtsdf.unix_time
import
from_unix
...
@@ -16,8 +15,6 @@ import numpy as np
...
@@ -16,8 +15,6 @@ import numpy as np
import
numpy.ma
as
ma
import
numpy.ma
as
ma
block_name_fmt
=
"
block%04d
"
block_name_fmt
=
"
block%04d
"
@print_time
def
load
(
filename
,
dtype
=
None
):
def
load
(
filename
,
dtype
=
None
):
"""
Load a
'
General Time Series Data Format
'
-hdf5 datafile
"""
Load a
'
General Time Series Data Format
'
-hdf5 datafile
...
...
This diff is collapsed.
Click to expand it.
wetb/hawc2/cluster_simulation.py
+
2
−
2
View file @
130957cf
from
wetb.hawc2.simulation
import
Simulation
,
SimulationThread
from
wetb.hawc2.simulation
import
Simulation
,
SimulationThread
import
os
import
os
import
sys
import
sys
from
threading
import
Thread
from
threading
import
Thread
class
ClusterSimulation
(
Simulation
):
class
ClusterSimulation
(
Simulation
):
...
@@ -17,7 +17,7 @@ class ClusterSimulation(Simulation):
...
@@ -17,7 +17,7 @@ class ClusterSimulation(Simulation):
def
update_status
(
self
,
*
args
,
**
kwargs
):
def
update_status
(
self
,
*
args
,
**
kwargs
):
Simulation
.
update_status
(
self
,
*
args
,
**
kwargs
)
Simulation
.
update_status
(
self
,
*
args
,
**
kwargs
)
with
open
(
"
/home/
mmpe
/.hawc2launcher/status_%s
"
%
self
.
simulation_id
,
'
w
'
)
as
fid
:
with
open
(
"
/home/
%s
/.hawc2launcher/status_%s
"
%
(
os
.
environ
[
'
USER
'
],
self
.
simulation_id
)
,
'
w
'
)
as
fid
:
fid
.
write
(
"
;
"
.
join
([
self
.
simulation_id
,
self
.
status
]
+
[
str
(
getattr
(
self
.
logFile
,
v
))
for
v
in
[
'
status
'
,
'
pct
'
,
'
remaining_time
'
,
'
lastline
'
]])
+
"
\n
"
)
fid
.
write
(
"
;
"
.
join
([
self
.
simulation_id
,
self
.
status
]
+
[
str
(
getattr
(
self
.
logFile
,
v
))
for
v
in
[
'
status
'
,
'
pct
'
,
'
remaining_time
'
,
'
lastline
'
]])
+
"
\n
"
)
def
show_status
(
self
):
def
show_status
(
self
):
...
...
This diff is collapsed.
Click to expand it.
wetb/hawc2/htc_file.py
+
4
−
1
View file @
130957cf
...
@@ -234,6 +234,9 @@ class HTCFile(HTCContents, HTCDefaults):
...
@@ -234,6 +234,9 @@ class HTCFile(HTCContents, HTCDefaults):
raise
Exception
(
str
(
stdout
)
+
str
(
stderr
))
raise
Exception
(
str
(
stdout
)
+
str
(
stderr
))
if
"
__main__
"
==
__name__
:
if
"
__main__
"
==
__name__
:
f
=
HTCFile
(
r
"
C:\mmpe\HAWC2\models\PhaseIJacketv30\htc
"
,
"
../../
"
)
f
=
HTCFile
(
r
"
C:\mmpe\HAWC2\models\DTU10MWRef6.0\htc\DTU_10MW_RWT_power_curve.htc
"
,
"
../
"
)
f
.
save
(
r
"
C:\mmpe\HAWC2\models\DTU10MWRef6.0\htc\DTU_10MW_RWT_power_curve.htc
"
)
f
=
HTCFile
(
r
"
C:\mmpe\HAWC2\models\DTU10MWRef6.0\htc\DTU_10MW_RWT.htc
"
,
"
../
"
)
f
.
save
(
r
"
C:\mmpe\HAWC2\models\DTU10MWRef6.0\htc\DTU_10MW_RWT.htc
"
)
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