Skip to content

Commit a30be2b

Browse files
committed
remove default loading of heavy dependencies, this is not used by anyone because udf's just allow imports
1 parent bd50370 commit a30be2b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

openeo/udf/run_code.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,7 @@ def _build_default_execution_context():
4444
# "SpatialExtent": SpatialExtent, # TODO?
4545
# "MachineLearnModel": MachineLearnModelConfig, # TODO?
4646
}
47-
for name in ["geopandas", "torch", "torchvision", "tensorflow", "tensorboard"]:
48-
try:
49-
context[name] = importlib.import_module(name)
50-
except ImportError:
51-
_log.info("Module {m} not available for UDF execution context".format(m=name))
47+
5248

5349
return context
5450

0 commit comments

Comments
 (0)