ersilia.publish.test package

Subpackages

Submodules

ersilia.publish.test.test module

class ersilia.publish.test.test.ModelTester(model, from_dir, from_github, from_dockerhub, from_s3, version, shallow, deep, surface, inspect, report_path, clean)[source]

Bases: ErsiliaBase

Class to handle model testing. Initializes the model tester services and runs the tests.

Parameters:
  • model (str) – The ID of the model.

  • from_dir (str) – The directory for the model.

  • from_github (bool) – Flag indicating whether to fetch the repository from GitHub.

  • from_dockerhub (bool) – Flag indicating whether to fetch the repository from DockerHub.

  • from_s3 (bool) – Flag indicating whether to fetch the repository from S3.

  • version (str) – Version of the model.

  • shallow (bool) – Flag indicating whether to perform shallow checks.

  • deep (bool) – Flag indicating whether to perform deep checks.

  • surface (bool) – Flag indicating whether to perform surface checks.

  • inspect (bool) – Flag indicating whether to perform inspect checks.

  • report_path (str) – Flag to specify the path for output as json.

  • clean (bool) – Flag indicating whether to clean temp folder.

clean_temp()[source]

Clean up the temp model directory.

run()[source]

Run the model tester.

Module contents