Skip to content

Commit 75e8ce3

Browse files
committed
initial commit
1 parent c7be558 commit 75e8ce3

3 files changed

Lines changed: 13 additions & 2 deletions

File tree

n3fit/src/n3fit/scripts/vp_setupfit.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
from reportengine import colors
3838
from validphys.app import App
3939
from validphys.config import Config, ConfigError, Environment, EnvironmentError_
40-
from validphys.loader import FallbackLoader, PhotonQEDNotFound, TheoryNotFound
40+
from validphys.loader import FallbackLoader, Loader, PhotonQEDNotFound, TheoryNotFound
4141
from validphys.utils import yaml_safe
4242

4343
loader = FallbackLoader()
@@ -176,6 +176,7 @@ def from_yaml(cls, o, *args, **kwargs):
176176

177177
# Check theory covariance matrix configuration
178178
thconfig = file_content.get('theorycovmatconfig', {})
179+
theoryid = file_content['theory']['theoryid']
179180
if thconfig.get('point_prescription') is not None:
180181
raise ConfigError(
181182
"`point_prescription` has been removed in favor of a list of "
@@ -188,6 +189,12 @@ def from_yaml(cls, o, *args, **kwargs):
188189
'datacuts::theory::theorycovmatconfig nnfit_theory_covmat'
189190
)
190191

192+
# Save a hash of the FK-Tables
193+
loader = Loader()
194+
theories_path = loader.theories_path
195+
196+
197+
191198
# Check fiatlux configuration
192199
fiatlux = file_content.get('fiatlux')
193200
if fiatlux is not None:

nnprofile_example.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# ~/.config/NNPDF/nnprofile.yaml
66
# To change the configuration of the NNPDF code framework
77

8-
nnpdf_share: ~/.local/share/NNPDF
8+
nnpdf_share: /data/theorie/jkoorn/hep/share/NNPDF
99

1010
results_path: results
1111
ekos_path: ekos

validphys2/src/validphys/loader.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,10 @@ def hyperscan_resultpath(self):
170170
hyperscan_path.mkdir(parents=True, exist_ok=True)
171171
return hyperscan_path
172172

173+
@property
174+
def theories_path(self):
175+
return self._theories_path
176+
173177
def _vp_cache(self):
174178
"""Return the vp-cache path, and create it if it doesn't exist"""
175179
vpcache = pathlib.Path(self.nnprofile['validphys_cache_path'])

0 commit comments

Comments
 (0)