Skip to content

Commit

Permalink
remove irrelevant docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyStegeman committed Apr 25, 2024
1 parent 9801c7f commit 647677a
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions validphys2/src/validphys/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from frozendict import frozendict
import pandas as pd

from nnpdf_data import legacy_to_new_map
from reportengine import configparser, report
from reportengine.compat import yaml
from reportengine.configparser import ConfigError, _parse_func, element_of, record_from_defaults
Expand All @@ -26,7 +27,6 @@
SimilarCuts,
ThCovMatSpec,
)
from nnpdf_data import legacy_to_new_map
from validphys.fitdata import fitted_replica_indexes, num_fitted_replicas
from validphys.gridvalues import LUMI_CHANNELS
from validphys.loader import (
Expand Down Expand Up @@ -128,7 +128,7 @@ def parse_pdf(self, name: str):
pdf = self.loader.check_pdf(name)
except PDFNotFound as e:
raise ConfigError(
"Bad PDF: {} not installed".format(name), name, self.loader.available_pdfs
f"Bad PDF: {name} not installed", name, self.loader.available_pdfs
) from e
except LoaderError as e:
raise ConfigError(e) from e
Expand Down Expand Up @@ -1063,14 +1063,6 @@ def produce_reweight_all_datasets(self, experiments):
ret.append({"reweighting_experiments": [single_exp], "dataset_input": dsinput})
return ret

"""
def produce_theoryid(self, theory):
if not isinstance(theory, dict) or 'theoryid' not in theory:
raise ConfigError("Failed to get 'theoryid' from 'theory'. "
"Expected that key to be present.")
return theory['theoryid']
"""

def produce_pdf_id(self, pdf) -> str:
"""Return a string containing the PDF's LHAPDF ID"""
return pdf.name
Expand Down Expand Up @@ -1723,5 +1715,3 @@ def produce_total_phi_data(self, fitthcovmat):

class Config(report.Config, CoreConfig, ParamfitsConfig):
"""The effective configuration parser class."""

pass

0 comments on commit 647677a

Please sign in to comment.