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
e34f5d2c
Commit
e34f5d2c
authored
9 years ago
by
mads
Browse files
Options
Downloads
Patches
Plain Diff
clean up
parent
b04e5b12
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/hawc2/simulation.py
+3
-7
3 additions, 7 deletions
wetb/hawc2/simulation.py
with
3 additions
and
7 deletions
wetb/hawc2/simulation.py
+
3
−
7
View file @
e34f5d2c
import
os
from
wetb.hawc2.htc_file
import
HTCFile
from
wetb.hawc2.log_file
import
LogFile
,
SIMULATING
import
threading
from
wetb.hawc2
import
dummy_simulator
from
threading
import
Timer
,
Thread
import
sys
import
multiprocessing
from
multiprocessing.process
import
Process
import
psutil
from
wetb.functions.process_exec
import
pexec
,
process
,
exec_process
import
time
from
wetb.functions.process_exec
import
process
,
exec_process
import
subprocess
import
shutil
import
json
...
...
@@ -178,8 +174,8 @@ class SimulationThread(Thread):
p
=
psutil
.
Process
(
os
.
getpid
())
p
.
nice
=
psutil
.
BELOW_NORMAL_PRIORITY_CLASS
self
.
res
=
exec_process
(
self
.
process
)
class
RepeatedTimer
(
object
):
def
__init__
(
self
,
interval
,
function
,
*
args
,
**
kwargs
):
self
.
_timer
=
None
...
...
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