Skip to content

Commit

Permalink
Remove function get_eko in core
Browse files Browse the repository at this point in the history
  • Loading branch information
andreab1997 committed Sep 16, 2022
1 parent bff4be7 commit fd0e203
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 2 additions & 2 deletions n3fit/src/evolven3fit/evolve.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ def evolve_fit(
else:
try:
log.info(f"Loading eko from theory {theoryID}")
theory_eko_path = Loader().check_theoryID(theoryID).get_eko()
theory_eko_path = (Loader().check_theoryID(theoryID).path)/'eko.tar'
eko_op = output.Output.load_tar(theory_eko_path)
except TypeError:
except:
log.info(f"eko not found in theory {theoryID}, we will construct it")
eko_op = eko_utils.construct_eko_for_fit(theory, op, log, dump_eko)
pass
Expand Down
5 changes: 0 additions & 5 deletions validphys2/src/validphys/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -801,11 +801,6 @@ def get_description(self):
dbpath = self.path.parent/'theory.db'
return fetch_theory(dbpath, self.id)

def get_eko(self):
if self.is_pineappl():
return self.path/'eko.tar'
raise TypeError(f"the requested eko does not exists because the theory {self.id} is not a pineappl theory")

__slots__ = ('id', 'path')

def __repr__(self):
Expand Down

0 comments on commit fd0e203

Please sign in to comment.