replace torchgeo datamodule by lightning datamodule to facilitate integration with terratorch
File "/dccstor/terratorch/users/rkie/gitco/terratorch.addaed-elephant-2/.venv/lib/python3.12/site-packages/jsonargparse/_typehints.py", line 1071, in adapt_typehints [103/1840]
raise_unexpected_value(f"Import path {val['class_path']} does not {msg} {typehint.__name__}")
File "/dccstor/terratorch/users/rkie/gitco/terratorch.addaed-elephant-2/.venv/lib/python3.12/site-packages/jsonargparse/_typehints.py", line 702, in raise_unexpected_value
raise ValueError(message) from exception
ValueError: Import path terratorch.datamodules.od_aed_elephant.ElephantDataModule does not correspond to a subclass of BaseDataModule
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/dccstor/terratorch/users/rkie/gitco/terratorch.addaed-elephant-2/.venv/lib/python3.12/site-packages/jsonargparse/_core.py", line 478, in parse_object
cfg_apply = self._apply_actions(cfg_obj, prev_cfg=cfg)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/dccstor/terratorch/users/rkie/gitco/terratorch.addaed-elephant-2/.venv/lib/python3.12/site-packages/jsonargparse/_core.py", line 1331, in _apply_actions
value = self._check_value_key(action, value, action_dest, prev_cfg)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/dccstor/terratorch/users/rkie/gitco/terratorch.addaed-elephant-2/.venv/lib/python3.12/site-packages/jsonargparse/_core.py", line 1383, in _check_value_key
value = action._check_type_(value, cfg=cfg) # type: ignore[attr-defined]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/dccstor/terratorch/users/rkie/gitco/terratorch.addaed-elephant-2/.venv/lib/python3.12/site-packages/jsonargparse/_common.py", line 275, in _check_type_
return self._check_type(value, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/dccstor/terratorch/users/rkie/gitco/terratorch.addaed-elephant-2/.venv/lib/python3.12/site-packages/jsonargparse/_typehints.py", line 602, in _check_type
raise TypeError(f'Parser key "{self.dest}"{elem}:\n{error}') from ex
TypeError: Parser key "datamodule":
Import path terratorch.datamodules.od_aed_elephant.ElephantDataModule does not correspond to a subclass of BaseDataModule
replace torchgeo datamodule by lightning datamodule to facilitate integration with terratorch