In some notebooks, the uproot library is always imported.
If the user doesn't need /want to bother with ROOT-based data for comparisons, there will be no uproot in the virtual environment.
To Reproduce
Steps to reproduce the behavior:
Launch the DirectionLUT benchmark with no uproot and no CTAMARS or EventDisplay data.
Expected behavior
After parameter injection, only if any boolean variable is used to load 3rd party ROOT-based data there should be the import.
If uproot is not present and e.g. load_CTAMARS is False, the notebook shouldn't crash with an ImportError.
Describe the problem
In some notebooks, the uproot library is always imported. If the user doesn't need /want to bother with ROOT-based data for comparisons, there will be no uproot in the virtual environment.
To Reproduce Steps to reproduce the behavior:
Expected behavior
After parameter injection, only if any boolean variable is used to load 3rd party ROOT-based data there should be the import. If uproot is not present and e.g.
load_CTAMARS
isFalse
, the notebook shouldn't crash with anImportError
.