Commit ef212096 authored by Andreas Freise's avatar Andreas Freise
Browse files

adding a template file for creating examples

parent d8f29504
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from pykat import finesse
from pykat.commands import *
def main():
Template file for using PyKat to automate Finesse simulations
Andreas Freise 19.05.2015
# for debugging we might need to see the temporay file:
global kat
kat = finesse.kat(tempdir=".",tempname="test")
kat.verbose = False
code1 = """
l l1 1 0 0 n1
s s1 1 n1 n2
pd power n2
xaxis l1 P lin 1 2 4
out =
print("result = {}".format(out.y))
if __name__ == '__main__':
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment