Skip to content

Commit

Permalink
validation: rename file
Browse files Browse the repository at this point in the history
  • Loading branch information
misho104 committed Mar 10, 2019
1 parent 65c0755 commit 151994d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions validation/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
import susy_cross_section
import susy_cross_section.config
import susy_cross_section.scripts
import validation.onedim
from susy_cross_section.table import File
from validation.validators import choose_validator

__author__ = susy_cross_section.scripts.__author__
__copyright__ = susy_cross_section.scripts.__copyright__
Expand Down Expand Up @@ -80,15 +80,15 @@ def compare(ctx, *args, **kwargs): # type: ignore
if kwargs["all"]:
for key, table in _all_tables_iter():
try:
validation.onedim.choose_validator(table)(pdf).compare(table, key)
choose_validator(table)(pdf).compare(table, key)
except ValueError as e:
print(e)
elif kwargs["table"]:
f = pathlib.Path(kwargs["table"])
assert f.is_file()
table = File(f).tables["xsec"]
try:
validation.onedim.choose_validator(table)(pdf).compare(table)
choose_validator(table)(pdf).compare(table)
except ValueError as e:
print(e)
else:
Expand All @@ -108,15 +108,15 @@ def sieve(ctx, *args, **kwargs): # type: ignore
if kwargs["all"]:
for _key, table in _all_tables_iter():
try:
validation.onedim.choose_validator(table)(pdf).sieve(table)
choose_validator(table)(pdf).sieve(table)
except ValueError as e:
print(e)
elif kwargs["table"]:
f = pathlib.Path(kwargs["table"])
assert f.is_file()
table = File(f).tables["xsec"]
try:
validation.onedim.choose_validator(table)(pdf).sieve(table)
choose_validator(table)(pdf).sieve(table)
except ValueError as e:
print(e)
else:
Expand Down
File renamed without changes.

0 comments on commit 151994d

Please sign in to comment.