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
f2ac9fa1
There was a problem fetching the pipeline summary.
Commit
f2ac9fa1
authored
8 years ago
by
mads
Browse files
Options
Downloads
Patches
Plain Diff
user name thing
parent
d0d2b460
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
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
6 additions
and
3 deletions
wetb/hawc2/cluster_simulation.py
+
2
−
2
View file @
f2ac9fa1
from
wetb.hawc2.simulation
import
Simulation
,
SimulationThread
import
os
import
os
import
sys
from
threading
import
Thread
class
ClusterSimulation
(
Simulation
):
...
...
@@ -17,7 +17,7 @@ class ClusterSimulation(Simulation):
def
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
"
)
def
show_status
(
self
):
...
...
This diff is collapsed.
Click to expand it.
wetb/hawc2/htc_file.py
+
4
−
1
View file @
f2ac9fa1
...
...
@@ -234,6 +234,9 @@ class HTCFile(HTCContents, HTCDefaults):
raise
Exception
(
str
(
stdout
)
+
str
(
stderr
))
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