ethz-asl / data-driven-dynamics

Data Driven Dynamics Modeling for Aerial Vehicles
Other
98 stars 14 forks source link

Only import visual dataframe selection when data selection is enabled #178

Closed manumerous closed 2 years ago

manumerous commented 2 years ago

This way the user and automated tests can run without needing to install the dependencies of the visual dataframe selector.

manumerous commented 2 years ago

This fixes the following CT error:

Run make estimate-model model=quadrotor_model
python3 Tools/parametric_model/generate_parametric_model.py \
--config /__w/data-driven-dynamics/data-driven-dynamics/Tools/parametric_model/configs/quadrotor_model.yaml \
--data_selection False \
--plot False \
/__w/data-driven-dynamics/data-driven-dynamics/resources/quadrotor_model.ulg
Traceback (most recent call last):
  File "Tools/parametric_model/generate_parametric_model.py", line 42, in <module>
    from visual_dataframe_selector.data_selector import select_visual_data
  File "/__w/data-driven-dynamics/data-driven-dynamics/Tools/parametric_model/visual_dataframe_selector/__init__.py", line 1, in <module>
    from . import src
  File "/__w/data-driven-dynamics/data-driven-dynamics/Tools/parametric_model/visual_dataframe_selector/src/__init__.py", line 1, in <module>
    from .confirm_selection_window import ConfirmSelectionWindow
  File "/__w/data-driven-dynamics/data-driven-dynamics/Tools/parametric_model/visual_dataframe_selector/src/confirm_selection_window.py", line 5, in <module>
    from PyQt5 import QtCore
ModuleNotFoundError: No module named 'PyQt5'
make: *** [Makefile:35: estimate-model] Error 1
Error: Process completed with exit code 2.