Skip to content
Snippets Groups Projects
Select Git revision
  • 077834d33a8237924a649960a68a0b9066048f5d
  • master default
2 results

test_fsig.py

Blame
  • Forked from finesse / pykat
    Source project has a limited visibility.
    • 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.
    long_transient_search_make_simulated_data.py 615 B
    #!/usr/bin/env python
    
    import pyfstat
    
    F0 = 30.0
    F1 = -1e-10
    F2 = 0
    Alpha = 0.5
    Delta = 1
    
    minStartTime = 1000000000
    maxStartTime = minStartTime + 200*86400
    
    transient_tstart = minStartTime + 50*86400
    transient_duration = 100*86400
    tref = minStartTime
    
    h0 = 1e-23
    sqrtSX = 1e-22
    
    transient = pyfstat.Writer(
        label='simulated_transient_signal', outdir='data_l', tref=tref,
        tstart=transient_tstart, F0=F0, F1=F1, F2=F2, duration=transient_duration,
        Alpha=Alpha, Delta=Delta, h0=h0, sqrtSX=sqrtSX, minStartTime=minStartTime,
        maxStartTime=maxStartTime, transientWindowType='rect')
    transient.make_data()