Skip to content
Snippets Groups Projects
Select Git revision
  • 6e0b510a03f4e76b1b532e1c8f5779fc1998f9e9
  • 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

sliding_window.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_const.py 732 B
    #!/usr/bin/env python
    # -*- coding: utf-8 -*-
    
    from pykat import finesse
    from pykat.detectors import *
    from pykat.components import *
    from pykat.commands import *
    from pykat.structs import *
    
    import numpy as np
    import pylab as pl
    
    code = """
    l l1 2 0 n1
    m m1 0.99 0.01 0 n1 n2
    s cav1 $test n2 n3
    m m2 0.99 0.01 -0.1 n3 n4
    
    attr m2 m 1  # mech sus1
    
    const test 1200
    ad up_refl 0 n1
    ad low_refl 0 n1
    
    qd refl_A 0 0 n1
    qd refl_Q 0 90 n1
    qd tran_A 0 0 n4
    qd tran_Q 0 90 n4
    
    put up_refl f $x1
    put low_refl f $mx1
    
    yaxis log re:im
    """
    
    kat = finesse.kat(kat_code=code)
    
    kat.signals.apply(kat.l1.power, 1, 0)
    kat.signals.apply(kat.m1.phi, 1, 90)
    
    kat.add(xaxis('log', [1, 1000], kat.signals.f, 100))
    
    out = kat.run(printout=0, printerr=0)