Skip to content
Snippets Groups Projects
Select Git revision
  • 1cb3e05dcfd6f8f1eed83c4bead05ec84741de4a
  • master default protected
  • Binary
  • add-version-information
  • os-path-join
  • develop-GA
  • timeFstatmap
  • add-higher-spindown-components
  • develop-DK
  • adds-header-to-grid-search
  • v1.3
  • v1.2
  • v1.1.2
  • v1.1.0
  • v1.0.1
15 results

semi_coherent_search_using_MCMC.py

Blame
  • Forked from Gregory Ashton / PyFstat
    Source project has a limited visibility.
    • Gregory Ashton's avatar
      89f200ed
      Renames sftfilepath -> sftfilepattern · 89f200ed
      Gregory Ashton authored
      This renames the input sftfilepath to sftfilepattern and adds
      documentation on how that should be used, i.e. a colon separated list of
      wildstring or exact matches. In globbing for all matches, the colon
      split is added in. sftfilepath is still used by `Writer` since
      an exact path is known.
      89f200ed
      History
      Renames sftfilepath -> sftfilepattern
      Gregory Ashton authored
      This renames the input sftfilepath to sftfilepattern and adds
      documentation on how that should be used, i.e. a colon separated list of
      wildstring or exact matches. In globbing for all matches, the colon
      split is added in. sftfilepath is still used by `Writer` since
      an exact path is known.
    test_dump.py 582 B
    import pykat
    
    kat = pykat.finesse.kat()
    
    kat.parseCommands("""
    bs bs1 0.5 0.5 0 0 n1 dump n3 dump
    """)
    
    print "BEFORE"
    print "".join(kat.generateKatScript())
    
    kat.nodes.replaceNode(kat.bs1, kat.bs1.nodes[3], kat.nodes.createNode("test4"))
    kat.nodes.replaceNode(kat.bs1, kat.bs1.nodes[1], kat.nodes.createNode("test2"))
    
    kat.nodes.replaceNode(kat.bs1, "n1", kat.nodes.createNode("test1"))
    kat.nodes.replaceNode(kat.bs1, "n3", kat.nodes.createNode("dump"))
    kat.nodes.replaceNode(kat.bs1, "test1", kat.nodes.createNode("dump"))
    
    print "AFTER"
    print "".join(kat.generateKatScript())