Skip to content
Snippets Groups Projects
Select Git revision
  • 4350b7688cc61cc1ff7d00298cefa55b8689be10
  • master default protected
2 results

test_fsig.py

Blame
    • Daniel Brown's avatar
      4d173029
      adding in fsig command (not parsing yet). See example test_fsig.py in bin... · 4d173029
      Daniel Brown authored
      adding in fsig command (not parsing yet). See example test_fsig.py in bin folder. Also made component variable an optional argument for xaxis and x2axis which will break previous scripts. Did this as when setting the parameter to tune, the Param object contains whatever component owns that parameter so no need to pass it twice. Also stops someone passing a parameter not for the component stated.
      4d173029
      History
      adding in fsig command (not parsing yet). See example test_fsig.py in bin...
      Daniel Brown authored
      adding in fsig command (not parsing yet). See example test_fsig.py in bin folder. Also made component variable an optional argument for xaxis and x2axis which will break previous scripts. Did this as when setting the parameter to tune, the Param object contains whatever component owns that parameter so no need to pass it twice. Also stops someone passing a parameter not for the component stated.
    test_LLO.py 348 B
    from pykat import finesse
    from pykat.commands import xaxis
    import pylab as pl
    import numpy as np
    from pykat_LLO import LLO
    
    kat = finesse.kat()
    
    kat.parseCommands(LLO.Laser)
    kat.parseCommands(LLO.PR)
    kat.parseCommands(LLO.BS)
    kat.parseCommands(LLO.X_ARM)
    
    kat.HRBS.r_ap = 37e-2
    
    kat.parseCommands("pd pdIN nin")
    kat.noxaxis = True
    
    out = kat.run()