Commit 2904f480 authored by Daniel Williams's avatar Daniel Williams
Browse files

Merge branch '15-hardware-injections-are-all-nan-for-adhoc-waveforms' into 'master'

Resolve "Hardware injections are all NAN for adhoc waveforms"

Closes #15

See merge request daniel-williams/minke!5
parents 377c1c39 32770d1b
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -730,12 +730,14 @@ class HWInj(Frame):
                    # Check distance scaling
                    # This should probably be done in LALSimulation, but
                    # right now it doesn't seem to be working.
                    distance = sim_burst.amplitude
                    

                    # Check if the distance or the hrss is stored in the hrss field.
                    if sim_burst.hrss > 1:
                        distance = sim_burst.amplitude
                        file_distance = sim_burst.hrss
                    else:
                        distance = 1.0
                        file_distance = 1.0