Skip to content

Latest commit

 

History

History

auxiliary

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

RENDER

Libraries inside the render module use PyQt5, which doesn't have Python 3.12 support. Therefore, it is recommended to have a Python 3.11 or 3.10 virtual environment (venv) to run the following animate.py function; otherwise, a ModuleNotFoundError will be raised.

Setting up the virtual environment and installing requirements

To set up a virtual environment and install the required packages, follow these steps:

  1. Create a virtual environment:

    python3.11 -m venv venv
  2. Activate the virtual environment:

    • On Linux/Mac:
      source venv/bin/activate
    • On Windows:
      .\venv\Scripts\activate
  3. Install the required packages:

    pip install -r requirements.txt

Handling .bds files

Most of the files in the SPICE kernel are in .bds format. While using the animate function, using .bds files directly may cause an error. It is recommended to use the SPICE toolkit named dskexp to convert the file to .obj, save it locally, and then render it.

Example command:

dskexp -dsk didymos_g_04657mm_spc_0000n00000_v003.bds -text didymos_g_04657mm_spc_0000n00000_v003.obj -format obj -pec 10