afterwards

Experiment - Afterwards (qurry.qurrium.experiment.afterwards)

class qurry.qurrium.experiment.afterwards.After(result: list[Result], counts: list[dict[str, int]])[source]

The data of experiment will be independently exported in the folder ‘legacy’, which generated after the experiment.

clear_result(*args, security: bool = False, mute_warning: bool = True)[source]

Clear the result of experiment.

Parameters:
  • security (bool, optional) – Security for clearing. Defaults to False.

  • mute_warning (bool, optional) – Mute the warning when clearing. Defaults to False.

counts: list[dict[str, int]]

Counts of experiment.

static default_value()[source]

The default value of each field.

export() dict[str, Any][source]

Export the experiment’s data after executing.

Returns:

The experiment’s data after executing.

Return type:

dict[str, Any]

classmethod read(file_index: dict[str, str], save_location: Path) After[source]

Read the exported experiment file.

Parameters:
  • file_index (dict[str, str]) – The index of exported experiment file.

  • save_location (Path) – The location of exported experiment file.

Returns:

The experiment’s arguments, the experiment’s common parameters, and the experiment’s side product.

Return type:

tuple[dict[str, Any], “After”, dict[str, Any]]

result: list[Result]

Results of experiment.

qurry.qurrium.experiment.afterwards.create_afterwards(after: After | None = None) After[source]

Create an Afterwards object.

Parameters:

after (Union[After, None], optional) – The After object to create. Defaults to None.

Returns:

The After object.

Return type:

After