Skip to content

Commit

Permalink
Update order.
Browse files Browse the repository at this point in the history
  • Loading branch information
riga committed Jul 15, 2024
1 parent d0459ae commit f891f10
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions columnflow/config_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
from collections import OrderedDict

import law
import order
od = order
import order as od

from columnflow.util import maybe_import
from columnflow.types import Callable, Any, Sequence
Expand Down Expand Up @@ -71,7 +70,7 @@ def get_events_from_categories(
return events[mask]


def get_root_processes_from_campaign(campaign: order.config.Campaign) -> order.unique.UniqueObjectIndex:
def get_root_processes_from_campaign(campaign: od.config.Campaign) -> od.unique.UniqueObjectIndex:
"""
Extracts all root process objects from datasets contained in an order *campaign* and returns
them in a unique object index.
Expand Down Expand Up @@ -100,12 +99,12 @@ def get_root_processes_from_campaign(campaign: order.config.Campaign) -> order.u


def get_datasets_from_process(
config: order.config.Config,
process: str | order.process.Process,
config: od.config.Config,
process: str | od.process.Process,
strategy: str = "inclusive",
only_first: bool = True,
check_deep: bool = False,
) -> list[order.dataset.Dataset]:
) -> list[od.dataset.Dataset]:
r"""Given a *process* and the *config* it belongs to, returns a list of order dataset objects that
contain matching processes. This is done by walking through *process* and its child processes
and checking whether they are contained in known datasets. *strategy* controls how possible
Expand Down
2 changes: 1 addition & 1 deletion modules/order

0 comments on commit f891f10

Please sign in to comment.