NNPDF / pinefarm

Generate PineAPPL grids from PineCards
https://pinefarm.readthedocs.io
GNU General Public License v3.0
1 stars 0 forks source link

Issue with pinefarm cli, theories and pinecards not listed #48

Open comane opened 10 months ago

comane commented 10 months ago

Hi @cschwan , @felixhekhorn. After installing pinefarm with pip (pip install pinefarm) in a fresh conda environment I try to get the list of pinecards and theories. In both cases the command fails:

$ pinefarm list theories
^[[1;2D/store/DAMTP/mnc33/miniconda3/envs/pinefarm/lib/python3.9/site-packages/pinefarm/cli/_base.py:26: UserWarning: No configuration file detected.
  warnings.warn("No configuration file detected.")
/store/DAMTP/mnc33/miniconda3/envs/pinefarm/lib/python3.9/site-packages/pinefarm/configs.py:82: UserWarning: Using default minimal configuration ('root = $PWD').
  warnings.warn("Using default minimal configuration ('root = $PWD').")
felixhekhorn commented 10 months ago

You need a pinefarm.toml file to be able to run

I guess this is once more the prove that we should address https://github.com/NNPDF/pinefarm/issues/4 - your contributions would be very welcome :innocent:

EDIT: I think, you can still run (the messages just shows warnings), but simply in the minimal default there are no theories or cards - you need the config file to point to the relevant locations