1. 28 Aug, 2015 3 commits
  2. 27 Aug, 2015 2 commits
    • Médéric Boquien's avatar
      As python evaluates expressions from the left to the right, put the vector in... · 8f51e634
      Médéric Boquien authored
      As python evaluates expressions from the left to the right, put the vector in the rightmost position so that we do not multiply it with a scalar several times.
      8f51e634
    • Médéric Boquien's avatar
      When computing the flux in filters, np.trapz() become the bottleneck of the... · ce4d814d
      Médéric Boquien authored
      When computing the flux in filters, np.trapz() become the bottleneck of the code. A large part of the time is spent on safeguards and on operations for nD arrays. However in our specific case we only have 1D arrays. Also we can cache some computed variables, for instance dx which only depends on the wavelength sampling. We do that employing the same key that is used for caching the best sampling of each filter in compute_fnu(). That way the caches are consistent. The key is based on the size of the wavelength grid, the name of the filter, and the redshift.
      ce4d814d
  3. 26 Aug, 2015 4 commits
  4. 25 Aug, 2015 4 commits
  5. 07 Aug, 2015 1 commit
  6. 31 Jul, 2015 2 commits
  7. 24 Jul, 2015 1 commit
    • Yannick Roehlly's avatar
      PSEUDO filters must not be normalised · e9487032
      Yannick Roehlly authored
      The pseudo filters used to compute (pseudo) line fluxes must not be
      normalised to 1. Also, we set their effective wavelength to the mean
      wavelength of the positive part.
      e9487032
  8. 23 Jul, 2015 4 commits
    • Yannick Roehlly's avatar
      Correction to the pseudo filters · 4add16f3
      Yannick Roehlly authored
      The wavelengths must be in angstrom.
      4add16f3
    • Yannick Roehlly's avatar
      New pseudo filters to compute line fluxes · 095ef623
      Yannick Roehlly authored
      Addition of pseudo filters used to compute de fluxes in some lines.
      They are composed of a positive part (normalised to 1) above the line
      and two negative part (of the same total area) on each side used to
      remove the continuum.
      
      The PSEUDO_D4000 pseudo filter measures the difference (not the ratio)
      of the 4000 Å break.
      095ef623
    • Yannick Roehlly's avatar
      SFH_quenching module · a303838b
      Yannick Roehlly authored
      Addition of a new module performing a quench on the star formation
      history.  We must change a little the SED object to allow the
      modification of the SED.
      a303838b
    • Yannick Roehlly's avatar
      Buat 2008 SFH module · 2fac3c85
      Yannick Roehlly authored
      Addition of a new module to compute a star formation history as
      described in Buat et al. 2008.
      2fac3c85
  9. 16 Jul, 2015 2 commits
  10. 15 Jul, 2015 2 commits
  11. 26 May, 2015 1 commit
  12. 25 May, 2015 1 commit
  13. 24 May, 2015 3 commits
  14. 22 May, 2015 3 commits
  15. 21 May, 2015 2 commits
    • Médéric Boquien's avatar
      Implement a cache for the computation of the optimal grid when merging two... · 3eb0c388
      Médéric Boquien authored
      Implement a cache for the computation of the optimal grid when merging two grids. As the best_grid() function takes numpy arrays as arguments, it makes caching difficult as they are not hashable. To solve the problem we define a helper function to do the memoisation based on the size, min, and max values of each of the input arrays.
      3eb0c388
    • Médéric Boquien's avatar
      Implement a cache for the filters to compute the fluxes. Rather than passing... · 38e7f35b
      Médéric Boquien authored
      Implement a cache for the filters to compute the fluxes. Rather than passing the transmission table as an argument to compute_fnu(), which makes caching difficult and/or slow to compute the hash, we rather pass the filter name. Then the SED object fetches the filter from the database and resamples it on the optimal wavelength grid. The result is stored in cache to avoid carrying out this operation repeatedly.
      38e7f35b
  16. 20 May, 2015 5 commits