NNPDF / reportengine

A framework for declarative data analysis
https://data.nnpdf.science/validphys-docs/guide.html
GNU General Public License v2.0
1 stars 2 forks source link

Dask parallelization #32

Closed siranipour closed 3 years ago

siranipour commented 4 years ago

Would be cool if it worked, but it doesn't.

siranipour commented 4 years ago

Ok if we take the example runcard:

pdf: NNPDF31_nnlo_as_0118_DISonly
fit: NNPDF31_nnlo_as_0118_DISonly

experiments:
  from_: fit

theory:
  from_: fit

theoryid:
  from_: theory

t0pdfset:
  from_: datacuts

datacuts:
  from_: fit

use_cuts: fromfit

template_text: |
  {@experiments::experiment plot_chi2dist@}

actions_:
  - report(main=True)

It won't work because, for the 2nd to last node, node.value.function is not a function but instead a reportengine.report.report_generator object, which we obviously can't delay :'(. Not too sure how to bypass this.

Edit: report_generator has a __call__ method so this should work.... Hmmmm : thinking emoji :