Skip to content

Commit

Permalink
check in example
Browse files Browse the repository at this point in the history
  • Loading branch information
RasmusOrsoe committed May 29, 2024
1 parent a71765c commit eb15932
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion examples/04_training/07_train_normalizing_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,21 @@
from graphnet.models.detector.prometheus import Prometheus
from graphnet.models.gnn import DynEdge
from graphnet.models.graphs import KNNGraph
from graphnet.models.task.task import StandardFlowTask
from graphnet.training.callbacks import PiecewiseLinearLR
from graphnet.training.utils import make_train_validation_dataloader
from graphnet.utilities.argparse import ArgumentParser
from graphnet.utilities.logging import Logger
from graphnet.utilities.imports import has_jammy_flows_package

# Make sure the jammy flows is installed
try:
assert has_jammy_flows_package
except AssertionError:
raise AssertionError(
"This example requires the package`jammy_flow` "
" to be installed. It appears that the package is "
" not installed. Please install the package."
)

# Constants
features = FEATURES.PROMETHEUS
Expand Down

0 comments on commit eb15932

Please sign in to comment.