Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
P
pykat
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
9
Issues
9
List
Boards
Labels
Service Desk
Milestones
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
Container Registry
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
finesse
pykat
Commits
1227471a
Commit
1227471a
authored
Mar 05, 2018
by
Andreas Freise
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updating old examples to new syntax
parent
8f0c7dd2
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
238 additions
and
182 deletions
+238
-182
examples/asc_test/asc_pd_phase.py
examples/asc_test/asc_pd_phase.py
+1
-1
examples/asc_test/master.py
examples/asc_test/master.py
+166
-166
examples/parallel_running.py
examples/parallel_running.py
+6
-1
examples/pykat_plotting.ipynb
examples/pykat_plotting.ipynb
+65
-14
No files found.
examples/asc_test/asc_pd_phase.py
View file @
1227471a
...
...
@@ -18,7 +18,7 @@ def run(tmpkat):
# function for root finding
def
PD_q_test
(
x
):
kat
.
PDrefl_q
.
ph
i
[
0
]
=
x
kat
.
PDrefl_q
.
ph
ase
[
0
]
=
x
out
=
kat
.
run
(
printout
=
0
,
printerr
=
0
)
print
'
\r
root finding: function value
%
g '
%
out
.
y
,
sys
.
stdout
.
flush
()
...
...
examples/asc_test/master.py
View file @
1227471a
This diff is collapsed.
Click to expand it.
examples/parallel_running.py
View file @
1227471a
...
...
@@ -3,11 +3,16 @@
# Firstly you need to start an ipython cluster on your computer. To do this open
# a new terminal and type the command:
#
# ipcluster start -
n
4
# ipcluster start -
-n=
4
#
# (or something similar)
# This will start a cluster with 4 workers. You should set this number to how many
# cores you have.
#
from
__future__
import
absolute_import
from
__future__
import
division
from
__future__
import
print_function
from
__future__
import
unicode_literals
import
pykat
from
pykat.parallel
import
parakat
...
...
examples/pykat_plotting.ipynb
View file @
1227471a
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
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