Skip to content
Snippets Groups Projects
Commit bfd08f79 authored by Andreas Freise's avatar Andreas Freise
Browse files

using the new block read and write to write new file after tuning

parent 6627a41c
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,7 @@ def main():
kat.ITMX.mass = 1e9
kat.ITMY.mass = 1e9
kat.verbose = False
kat.maxtem = "off"
kat.maxtem = 4 #"off"
kat.phase = 2
#----------------------------------------------------------
......@@ -106,6 +106,16 @@ def main():
_maxtemStr="off"
pre_code2 = "# tuned for maxtem = {}, phase = {:2}".format(_maxtemStr, int(kat_check.phase))
print(kat_code1)
print(kat_code2)
print(kat_code3)
baseBlocks = LIGO1.rawBlocks
baseBlocks.remove(["tunings", "errsigs", "locks"])
#baseBlocks.remove("tunings")
#baseBlocks.remove("errsigs")
#baseBlocks.remove("locks")
baseBlocks.add('tuning', kat_code1)
baseBlocks.write("mytest.kat")
print("---------------------------------------------------------------------")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment