1. 23 Dec, 2022 1 commit
  2. 15 Dec, 2022 1 commit
  3. 07 Dec, 2022 1 commit
  4. 30 Nov, 2022 2 commits
  5. 15 Nov, 2022 1 commit
  6. 11 Nov, 2022 1 commit
  7. 26 Oct, 2022 1 commit
    • Jakob Stierhof's avatar
      Add mpi_abort call · ef6a9b20
      Jakob Stierhof authored
      When the output file exists and we don't overwrite it, we call
      mpi_abort (if we can). If we can't the MPI runs into an error.
      Not nice, but thats the best we can do.
      ef6a9b20
  8. 13 Oct, 2022 1 commit
  9. 22 Sep, 2022 2 commits
  10. 20 Sep, 2022 2 commits
  11. 19 Sep, 2022 1 commit
  12. 15 Sep, 2022 2 commits
    • Jakob Stierhof's avatar
      Fix continue file with restriced parameter ranges · d513971c
      Jakob Stierhof authored
      When a chain file was continued or a new one created from an
      old chain, it could happen, that walkers are outside of the
      current parameter ranges (if they have been changed).
      
      I added a check that tries to find enough valid parameter
      combinations to run the chain from the restricted set.
      d513971c
    • Jakob Stierhof's avatar
      Fix bug checking sloppy status, flush file · d127ab36
      Jakob Stierhof authored
      The check for not matching number of walkers was wrong. No accesses
      the proper struct.
      
      In case the job crashed ( and was not just aborted ) although we
      write the data to file, it seems that they are not recoverable in
      the fits file. I added a close and open call after each cycle/elapsed
      time to write the file boundaries properly. There is a fits function
      doing this, but it is not implemented in the slang wrapper.
      d127ab36
  13. 12 Sep, 2022 1 commit
  14. 09 Sep, 2022 1 commit
  15. 07 Sep, 2022 3 commits
  16. 01 Sep, 2022 1 commit
  17. 21 Jul, 2022 3 commits
    • Jakob Stierhof's avatar
    • Jakob Stierhof's avatar
      Fixing all Undefine_Type== tests · dbcf316a
      Jakob Stierhof authored
      This does not solve the whole issue. Previous version of slang
      allowed that Undefined_Types can be passed arround as long as they
      are not actively used. Somthing like this was okay:
      
      variable undefined_var;
      
      define test (a,b)
      {
        return a*100;
      }
      
      test(5, undefined_var);
      
      The current devel version of slang throws an error as soon as the
      undefined type interacts with the stack. So the above code is not
      valid any more.
      dbcf316a
    • Jakob Stierhof's avatar
      Replace Undefine_Type comparison with __is_initialized test · d0a25c12
      Jakob Stierhof authored
      This will take some time probably. New slang version effectively
      treats all undefined variables as errors. Yes, this renders the
      Undefine_Type absolutely useless... So, variables can be declared
      and not initialized, but as soon as the are used things will go
      south. The proper way to test this is
      
      __is_initialized(&potentiall_undefined_variable);
      
      Yes, it takes a pointer. Fix here for optimal binning.
      
      Oh, and, yes, this is a run time error. That means they will only
      show up once in use...
      d0a25c12
  18. 01 Jun, 2022 2 commits
  19. 18 May, 2022 3 commits
    • Jakob Stierhof's avatar
      Split exact implementation of pfold events · 365863ef
      Jakob Stierhof authored
      Now pfold event case also respects the exact qualifier
      and takes the differential phase grid change into account.
      Otherwise constant period is assumed over one GTI frame
      and the exposure time is equally distirbuted to the phase bins.
      The exact code runs ~10 times slower.
      365863ef
    • Jakob Stierhof's avatar
      Use intrinsics to speed up exposure calculation · e897d1fe
      Jakob Stierhof authored
      We use 2d arrays to make the looping a bit more compact
      and eventually improve the speed. But more importantly also
      add an "exact" qualifier to the events caluclation. The not
      exact branch assumes a constant dP over a GTI window.
      e897d1fe
    • Jakob Stierhof's avatar
      Fix speed issue for pfold on fast periods · 50944ded
      Jakob Stierhof authored
      Felix found an issue for fast periods (relative to GTI windows or LC
      bins) where a huge performace penalty occured because we were looping
      through each covered period one by one. For slow rotations/short
      windows this is perfectly fine (and fast). To cover the case of fast
      periods I changed the loop to go through all time frames of one phase
      bin. Currently the change is applied if the time window covers more
      than 5 phases. Might need some tweaking.
      50944ded
  20. 17 May, 2022 1 commit
    • Jakob Stierhof's avatar
      Another bug in chain init · fc59c103
      Jakob Stierhof authored
      Sometimes the interpolation goes wrong and produces parameters
      outside the parameter interval. This should be fixed more properly,
      but for now we just calp it to the maximum if it is larger.
      fc59c103
  21. 16 May, 2022 1 commit
  22. 28 Apr, 2022 1 commit
  23. 29 Mar, 2022 2 commits
  24. 28 Mar, 2022 1 commit
    • Jakob Stierhof's avatar
      Fix emcee problem with older versions of slang · 7b0429a0
      Jakob Stierhof authored
      Slang v2.3.1 and older did not allow keywords as unquoted field namse. The
      implementation uses 'continue' as a qualifier and passed it arround like a
      normal struct field. This caused problems with said older versions.
      Changed to use get_struct_field/set_struct_field. Still the problem when
      used as the qualifier to pass to emcee_hammer, but can be quoted like
      
      emcee_hamme(; "continue");
      7b0429a0
  25. 12 Mar, 2022 3 commits
    • Ole Koenig's avatar
    • Ole Koenig's avatar
      lag_energy_spectrum: Remove Uttley+14 lag error field · 4f5fd264
      Ole Koenig authored
      * Commit 10c11aa5 removes the time lag error calculation from Uttley+14
        as it only differs from Nowak+99 in the normalization (signal PSD
        versus full PSD).
      * Consequently, also the field in the lag-energy spectrum output file
        needs to be removed
      4f5fd264
    • Ole Koenig's avatar
      lag_energy_spectrum: Frequency interval filtering from ]fmin,fmax] to [fmin,fmax] · 87f38607
      Ole Koenig authored
      * The lower bin should also be included, otherwise the minimal
        frequency bin (1/T) is never included in the calculation
      
      Further notes:
      
      * lag_energy_spectrum (and foucalc) filters the frequency range
        [fmin,fmax] and calculates the RMS in that range with the where
        function. This can potentially lead to underestimates of the RMS
        because bins where fmin/fmax is in between bin_lo and bin_hi are NOT
        counted.
      * Example:
                                           fmin       fmax
      User defined frequency filtering:     |           |
      Frequency grid coming from DFT:    |   |   |   |   |
                                               X   X
      only the two bins marked with X are accounted for in the RMS calculation.
      
      * A potentially better implementation is to use an if statement to
        check whether most of the bin is below or above the frequency
        threshold and then decide to in-/exclude it.
      87f38607
  26. 10 Mar, 2022 1 commit
    • Ole Koenig's avatar
      foucalc: Remove Uttley+14 error calculation in colacal.sl · 10c11aa5
      Ole Koenig authored
      * Uttley+14 calculate the coherence with the full power spectrum
        (noise + signal) in the denominator. This calculation was added in
        commit 4a64f55c.
      * This calculation differs from the one in Nowak+99 Eq. 16.,
        Ingram+19 Eq. 21, or Vaughan&Nowak 97 Eq. 8 who divide by the SIGNAL
        power spectrum only.
      * Thus, the Uttley+14 coherence will lead to a *smaller* value and
        thus bigger uncertainties on the time lag. That is, Uttley+14
        *overestimate* the uncertainties.
      * This commit reverses 4a64f55c: It removes the Uttley+14 calculation.
      10c11aa5