Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
finesse
pykat
Commits
450ce175
Commit
450ce175
authored
Aug 05, 2015
by
Daniel Toyra
Browse files
Merge branch 'master' of gitmaster.atlas.aei.uni-hannover.de:pykat/pykat
parents
0ce0238e
d69e2853
Changes
1
Show whitespace changes
Inline
Side-by-side
pykat/parallel.py
View file @
450ce175
...
...
@@ -28,7 +28,7 @@ from IPython.parallel import Client
import
sys
import
os
def
_run
(
commands
,
pwd
):
def
_run
(
commands
,
pwd
,
**
kwargs
):
import
os
os
.
chdir
(
pwd
)
...
...
@@ -36,7 +36,7 @@ def _run(commands, pwd):
kat
=
pykat
.
finesse
.
kat
()
kat
.
parseCommands
(
commands
)
out
=
kat
.
run
(
rethrowExceptions
=
True
)
out
=
kat
.
run
(
rethrowExceptions
=
True
,
**
kwargs
)
return
out
...
...
@@ -75,8 +75,8 @@ class parakat(object):
self
.
_lview
.
block
=
False
self
.
_results
=
[]
def
run
(
self
,
kat
):
self
.
_results
.
append
(
self
.
_lview
.
apply_async
(
_run
,
""
.
join
(
kat
.
generateKatScript
()),
os
.
getcwd
()))
def
run
(
self
,
kat
,
**
kwargs
):
self
.
_results
.
append
(
self
.
_lview
.
apply_async
(
_run
,
""
.
join
(
kat
.
generateKatScript
()),
os
.
getcwd
()
,
**
kwargs
))
def
getResults
(
self
):
out
=
[]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment