cilissa.parsers - Parse different formats to CILISSA objects

Functions

cilissa.parsers.parse_operations_from_str(operations: List[str], kwargs: List[Any])[source]

Parses operations and their parameters from string input.

Parameters use the following format:

<operation-name>-<parameter-name>=<value>

where parameter-name uses hyphens (-) instead of underscores (_).

cilissa.parsers.parse_operations_from_json(fp: TextIO)[source]

Parses operations and their parameters from a JSON file.

Expected dictionary structure: [{“name”: “ssim”, “parameters”: {“channels_num”: 3, “sigma”: 1.5}}]

cilissa.parsers.parse_roi(string: str)[source]

Parses ROI from string.

Expected string format: 0x0,512x512 (width x height)