Skip to content

Commit 354bfd6

Browse files
committed
removed verbosity option
1 parent 7b2446a commit 354bfd6

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

validphys2/src/validphys/lhapdfset.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,6 @@ class LHAPDFSet:
6767
Once instantiated this class will load the PDF set according to whether it is to be
6868
treated as a T0 set (only the CV) or not.
6969
70-
It is possible to control the LHAPDF verbosity with the flag ``lhapdf_verbosity``.
71-
This will override the global value set in ``app.py``
72-
7370
For Monte Carlo sets the central value (member 0) is by default not included when taking
7471
the resutls for all members (i.e., when using ``grid_values``).
7572
However, it is possible to add member 0 by changing the ``include_cv`` attribute to True.
@@ -78,7 +75,7 @@ class LHAPDFSet:
7875
the introduction of this class
7976
"""
8077

81-
def __init__(self, name, error_type, lhapdf_verbosity=None):
78+
def __init__(self, name, error_type):
8279
log.info("PDF: %s ErrorType: %s", name, error_type.description)
8380
if isinstance(error_type, int):
8481
# libNNPDF error types were int
@@ -93,9 +90,6 @@ def __init__(self, name, error_type, lhapdf_verbosity=None):
9390
self._flavors = None
9491
self._libNNPDF_set = None
9592
self.include_cv = False
96-
# Set the verbosity of LHAPDF
97-
if lhapdf_verbosity is not None:
98-
lhapdf.setVerbosity(lhapdf_verbosity)
9993

10094
@property
10195
def is_monte_carlo(self):
@@ -109,6 +103,7 @@ def is_t0(self):
109103

110104
@property
111105
def n_members(self):
106+
"""Return the number of active members in the PDF set"""
112107
return len(self.members)
113108

114109
@property

0 commit comments

Comments
 (0)