1. 17 Sep, 2013 4 commits
    • Yannick Roehlly's avatar
    • Yannick Roehlly's avatar
      Postfix the key instead of prefixing · c7072d8b
      Yannick Roehlly authored
      Instead of prefixing the key in the SED with the module name, we postfix
      them with the same postfix as the module name if any. This makes easier
      to inter-change modules adding the same information (for instance
      attenuation modules adding the attenuation value).
      That implies that when using several modules adding the same
      information, one must postfix the name of each.
      c7072d8b
    • Yannick Roehlly's avatar
      Postfix the key instead of prefixing · a78bf8c3
      Yannick Roehlly authored
      Instead of prefixing the key in the SED with the module name, we postfix
      them with the same postfix as the module name if any. This makes easier
      to inter-change modules adding the same information (for instance
      attenuation modules adding the attenuation value).
      That implies that when using several modules adding the same
      information, one must postfix the name of each.
      a78bf8c3
    • Yannick Roehlly's avatar
      Use ordered dictionaries for parameters · 4fcb6311
      Yannick Roehlly authored
      So that the configuration files and the serialized data have a logical
      order.
      4fcb6311
  2. 16 Sep, 2013 1 commit
  3. 28 Jun, 2013 1 commit
    • Yannick Roehlly's avatar
      Get rid of process / _process separation · c13de4ed
      Yannick Roehlly authored
      The process method was used to complete and check the parameter
      dictionary before launching the _process one defined in each module. Now
      that the parameters are dealed with at instantiation, this separation is
      no more useful.
      
      Also, modify the attenuation modules to read the filter in the database
      at instantiation.
      c13de4ed
  4. 27 Jun, 2013 1 commit
    • Yannick Roehlly's avatar
      Cast numeric parameters to their correct type · 10165bcc
      Yannick Roehlly authored
      To avoid problems that might occur when, for instance, using an integer
      instead of a float, we now cast the module parameters to their expected
      type. This will also have the advantage to raise an error when a
      parameter can't be interpreted with its expected type.
      
      Also, use integer for age parameters as we are now using Myr as unit.
      10165bcc
  5. 17 Jun, 2013 1 commit
    • Yannick Roehlly's avatar
      Simplify the SED class · 84ec7cd1
      Yannick Roehlly authored
      Rename lumin_contributions to luminosities and use a 2 axis numpy array
      instead of a list of arrays. This should accelerate some operations.
      
      The star formation history is now stored in its own property.
      TODO: maybe automatically add age and instantaneous SFR to the info dictionnary when setting the SFH.
      84ec7cd1
  6. 28 May, 2013 1 commit
    • Yannick Roehlly's avatar
      Use Myr for times · 52af6e0f
      Yannick Roehlly authored
      Using Gyr leads to some errors when comparing times (because they are no
      really equals when they shoud). So we switch to the use of Myr as it is
      the precision for our times.
      
      Maybe later, we'll go further and use integers for these values.
      52af6e0f
  7. 23 Apr, 2013 1 commit
  8. 03 Apr, 2013 3 commits