ersilia.publish.test package¶
Subpackages¶
- ersilia.publish.test.services package
- Submodules
- ersilia.publish.test.services.checks module
CheckServiceCheckService.check_consistent_output()CheckService.check_files()CheckService.check_information()CheckService.check_model_output_content()CheckService.check_simple_model_async_output()CheckService.check_simple_model_output()CheckService.compare_csv_columns()CheckService.find_missing_first_output_col()CheckService.get_inputs()CheckService.trim_string()CheckService.validate_file_content()
- ersilia.publish.test.services.constants module
ChecksChecks.COLUMN_CHECK_FAILUREChecks.COLUMN_CHECK_SUCCESSChecks.COLUMN_MISMATCHChecks.COLUMN_NAME_VALIDITYChecks.CONSISTENCYChecks.CSV_CONTENT_CHECKChecks.DEPENDENCY_PINNEDChecks.DIR_SIZEChecks.EMPTY_COLUMNSChecks.ENV_SIZEChecks.FETCH_FAILSChecks.IMAGE_SIZEChecks.INCONSISTENCYChecks.MODEL_CONSISTENCYChecks.PREDEFINED_EXAMPLEChecks.RUN_BASHChecks.SIMPLE_MODEL_RUNChecks.SIMPLE_MODEL_RUN_ASYNCChecks.SIMPLE_MODEL_RUN_COLUMNSChecks.SIZE_CACL_FAILEDChecks.SIZE_CACL_SUCCESSChecks.TOTAL_DIR_SIZE
OptionsSTATUS_CONFIGSTableConfigTableTypeTableType.ASNC_MODEL_RUN_CHECKTableType.COMPUTATIONAL_PERFORMANCETableType.CONSISTENCY_BASHTableType.DEPENDECY_COLUMN_CHECKTableType.FETCH_STATUS_SURFACETableType.FINAL_RUN_SUMMARYTableType.INSPECT_SUMMARYTableType.MODEL_DIRECTORY_SIZESTableType.MODEL_FILE_CHECKSTableType.MODEL_INFORMATION_CHECKSTableType.MODEL_OUTPUTTableType.MODEL_RUN_CHECKTableType.MODEL_SIZESTableType.RUNNER_CHECKUP_STATUSTableType.SHALLOW_CHECK_SUMMARY
- ersilia.publish.test.services.inspect module
CheckStrategyInspectServiceModelInspectorModelInspector.BENTOML_FILESModelInspector.ERSILIAPACK_FILESModelInspector.REQUIRED_FIELDSModelInspector.check_complete_folder_structure()ModelInspector.check_complete_metadata()ModelInspector.check_computational_performance()ModelInspector.check_dependencies_are_valid()ModelInspector.check_no_extra_files()ModelInspector.check_repo_exists()ModelInspector.validate_repo_structure()
Result
- ersilia.publish.test.services.io module
IOServiceIOService.calculate_directory_size()IOService.calculate_image_size()IOService.collect_and_save_json()IOService.get_conda_env_size()IOService.get_directories_sizes()IOService.get_env_sizes()IOService.get_file_requirements()IOService.get_model_type()IOService.get_output_consistency()IOService.read_csv_values()IOService.submit_smiles_and_get_results()
PackageInstaller
- ersilia.publish.test.services.parser module
- ersilia.publish.test.services.runner module
- ersilia.publish.test.services.setup module
- Module contents
Submodules¶
ersilia.publish.test.noxfile module¶
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:
ErsiliaBaseClass 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.