Skip to content
Snippets Groups Projects
Select Git revision
  • df586f0a2e7d38fe288a4a61b1e512f232b0da41
  • master default protected
  • 72-improve-docs-for_optimal_setup
  • os-path-join
  • develop-GA
  • add-higher-spindown-components
  • v1.3
  • v1.2
  • v1.1.2
  • v1.1.0
  • v1.0.1
11 results

semi_coherent_glitch_search_using_MCMC.py

Blame
    • 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_beam_trace.py 581 B
    import pykat
    from pykat.utilities.plotting.beamtrace import plot_beam_trace
    import numpy as np
    import pylab
    import copy
    
    kat = pykat.finesse.kat()
    
    cmds = """
    l l1 1 0 n0
    s s0 1000 n0 n1
    m m1 0.5 0.5 0 n1 n2
    s s1 10 n2 n3
    m m2 0.5 0.5 0 n3 n4
    s s2 20 n4 n5
    bs bs1 0.5 0.5 0 0 n5 n6 n7 n8
    
    s s3 20 n6 n9
    
    s s4 20 n7 n10
    
    s s5 20 n8 n11
    
    bs bs2 0.5 0.5 0 0 n9 n12 n13 n14
    
    s s6 3 n12 n15
    
    lens lens1 20 n15 n16
    
    s s7 500 n16 n17
    
    gouy g1 x s0 s1 s2
    
    bp bp1 x w0 n5
    gauss g1 l1 n0 8e-3 -1000 4e-3 -1200
    noxaxis
    maxtem 0 
    """
    
    kat.parseCommands(cmds)
    
    plot_beam_trace(kat, 'n0', 'n17')