-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Improve Python import helpers (#1316)
after my recent changes hepmc3 test will only run if the environment is sourced. this refactors the import helpers in order to fix that
- Loading branch information
Showing
7 changed files
with
23 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
from acts._adapter import _patch_config | ||
from acts import ActsPythonBindings | ||
|
||
if not hasattr(ActsPythonBindings._examples, "_edm4hep"): | ||
raise ImportError("ActsPythonBindings._examples._edm4hep not found") | ||
|
||
_patch_config(ActsPythonBindings._examples._edm4hep) | ||
|
||
from acts.ActsPythonBindings._examples._edm4hep import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
from acts._adapter import _patch_config | ||
from acts import ActsPythonBindings | ||
|
||
if not hasattr(ActsPythonBindings._examples, "_hepmc3"): | ||
raise ImportError("ActsPythonBindings._examples._hepmc3 not found") | ||
|
||
_patch_config(ActsPythonBindings._examples._hepmc3) | ||
|
||
from acts.ActsPythonBindings._examples._hepmc3 import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule OpenDataDetector
updated
from 93277c to ef5718