1. 30 Jan, 2016 5 commits
    • Médéric Boquien's avatar
      Pratical implementation of the validation of the parameters. The patch is... · 0d883320
      Médéric Boquien authored
      Pratical implementation of the validation of the parameters. The patch is quite long as it has a direct effect on the structure of the configuration dictionary. The validation has the advantage of automatically convert the parameters to the right type. Therefore rather than building a dictionary ourselves, we rather use the ready-made dictionary from ConfigObj. Because the names of the sections are not the same, quite a bit of code had to be adapted. Finally, note that the validation file containing the specification of each variable, pcigale.ini.spec, is created while building the pcigale.ini file. Also because it is needed to convert the data to the right type, one cannot run cigale without a correct validation file.
      0d883320
    • Médéric Boquien's avatar
      Specify the types and the constraints of the input parameters for the SED... · 784a1690
      Médéric Boquien authored
      Specify the types and the constraints of the input parameters for the SED creation modules and the analysis modules. Once validation is activated, the validation module will be able to infer the constraints from the specified information.
      784a1690
    • Médéric Boquien's avatar
    • Médéric Boquien's avatar
      So far no validation was made on the input parameters provided in pcigale.ini.... · e86ffbb3
      Médéric Boquien authored
      So far no validation was made on the input parameters provided in pcigale.ini. This could lead to runtime crashes when an argument took an unexpected value. As we are using the ConfigObj module to handle the configuration file, we can also use the validate module that comes with it. However the standard validation functions are not precise enough in our case. This file defines two validation functions for input parameters, and a new exception that will be used in a subsequent patch.
      e86ffbb3
    • Médéric Boquien's avatar
      Modules were a bit inconsistent how the input parameters are used. It was not... · e40d9852
      Médéric Boquien authored
      Modules were a bit inconsistent how the input parameters are used. It was not always ensured they were the right type, they were sometimes read several times, and finally they were not always obtained from the _init_code() method. This is an attempt to clean that up as much as possible.
      e40d9852
  2. 27 Jan, 2016 3 commits
  3. 26 Jan, 2016 5 commits
  4. 25 Jan, 2016 1 commit
  5. 22 Jan, 2016 1 commit
    • Médéric Boquien's avatar
      Abstract the call to the parameters handler to allow for the creation of... · f7e7d502
      Médéric Boquien authored
      Abstract the call to the parameters handler to allow for the creation of different handlers depending on how the parameters are provided, for instance either a systematic grid by giving then in pcigale.ini or through a file with each line providing a the parameters for a different model. The change is transparent to the rest of pcigale so it does not matter which handler is actually used.
      f7e7d502
  6. 21 Jan, 2016 3 commits
  7. 20 Jan, 2016 2 commits
  8. 19 Jan, 2016 4 commits
  9. 18 Jan, 2016 1 commit
  10. 15 Jan, 2016 1 commit
  11. 14 Jan, 2016 1 commit
    • Médéric Boquien's avatar
      Correct the mass-dependent physical quantities for the difference between the... · 5ea521a4
      Médéric Boquien authored
      Correct the mass-dependent physical quantities for the difference between the redshift of the model and the redshift of the observation. Because the former is rounded to 2 decimal places, there can be a redshift difference of 0.005 (if CIGALE computes the list of redshifts itself). This can lead to differences of more than 0.35 dex at z=0.01 for instance.
      5ea521a4
  12. 18 Dec, 2015 1 commit
  13. 17 Dec, 2015 1 commit
  14. 14 Dec, 2015 1 commit
  15. 11 Dec, 2015 1 commit
  16. 10 Dec, 2015 3 commits
  17. 08 Dec, 2015 1 commit
  18. 07 Dec, 2015 5 commits