read

Engine.read_fixed_roll_key(file_path)
Creates a fixed roll key by reading data from a file.
  • Input:
    • file_path: str or pathlib.Path
      • Can be an absolute or relative path.
  • Output:
    • FixedRollKey

Examples

Using an absolute path

from desilofhe import Engine

engine = Engine()
fixed_roll_key = engine.read_fixed_roll_key("/opt/desilo/fixed_roll_key")

Using a relative path

from desilofhe import Engine

engine = Engine()
fixed_roll_key = engine.read_fixed_roll_key("fixed_roll_key")