Skip to content

Commit

Permalink
init some refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomomagni committed Mar 15, 2024
1 parent 614bd43 commit 664a798
Show file tree
Hide file tree
Showing 4 changed files with 212 additions and 177 deletions.
2 changes: 1 addition & 1 deletion src/pineko/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def check_grid_and_eko_compatible(pineappl_grid, operators, xif, max_as, max_al)
xif : float
factorization scale variation
max_as: int
max order of alpa_s
max order of alpha_s
max_al: int
max order of alpha
Expand Down
29 changes: 6 additions & 23 deletions src/pineko/cli/kfactor.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,44 +11,27 @@
@command.command("kfactor")
@click.argument("grids_folder", type=click.Path(exists=True))
@click.argument("kfactor_folder", type=click.Path(exists=True))
@click.argument("yamldb_path", type=click.Path(exists=True))
@click.argument("yamldb_file", type=click.Path(exists=True))
@click.argument("target_folder", type=click.Path(exists=True))
@click.argument("order_to_update", type=int)
@click.argument("order_exists", type=bool)
@click.option("--order_exists", is_flag=True, help="Owerwrite an existing order.")
def k_factor_inclusion(
grids_folder,
kfactor_folder,
yamldb_path,
yamldb_file,
target_folder,
order_to_update,
order_exists,
):
"""Construct new grid with k_factor included.
parameters
----------
grids_folder:
path to grids folder
kfactor_folder:
path to kfactor folder.
yamldb_path:
path to yamldb file.
target_folder:
path to updated grids folder.
order_to_update:
alpha_s order to update.
order_exists:
True if the order is already present.
"""
"""Construct new grid with k_factor included."""
grids_folder = pathlib.Path(grids_folder)
kfactor_folder = pathlib.Path(kfactor_folder)
yamldb_path = pathlib.Path(yamldb_path)
yamldb_file = pathlib.Path(yamldb_file)
target_folder = pathlib.Path(target_folder)
kfactor.compute_k_factor_grid(
grids_folder,
kfactor_folder,
yamldb_path,
yamldb_file,
order_to_update,
target_folder=target_folder,
order_exists=order_exists,
Expand Down
Loading

0 comments on commit 664a798

Please sign in to comment.