read

Engine.read_fixed_rotation_key(filename)
Creates a fixed rotation key by reading data from a file.
  • Input:
    • filename: str
      • Can be an absolute or relative path.
  • Output:
    • FixedRotationKey

Examples

Using an absolute path

from desilofhe import Engine

engine = Engine()
fixed_rotation_key = engine.read_fixed_rotation_key("/opt/desilo/fixed_rotation_key")

Using a relative path

from desilofhe import Engine

engine = Engine()
fixed_rotation_key = engine.read_fixed_rotation_key("fixed_rotation_key")