Coverage for bioimageio/core/__init__.py: 100%

22 statements  

« prev     ^ index     » next       coverage.py v7.6.7, created at 2024-11-19 09:02 +0000

1""" 

2.. include:: ../../README.md 

3""" 

4 

5from bioimageio.spec import ( 

6 build_description, 

7 dump_description, 

8 load_dataset_description, 

9 load_description, 

10 load_description_and_validate_format_only, 

11 load_model_description, 

12 save_bioimageio_package, 

13 save_bioimageio_package_as_folder, 

14 save_bioimageio_yaml_only, 

15 validate_format, 

16) 

17 

18from . import ( 

19 axis, 

20 block_meta, 

21 cli, 

22 commands, 

23 common, 

24 digest_spec, 

25 io, 

26 model_adapters, 

27 prediction, 

28 proc_ops, 

29 proc_setup, 

30 sample, 

31 stat_calculators, 

32 stat_measures, 

33 tensor, 

34) 

35from ._prediction_pipeline import PredictionPipeline, create_prediction_pipeline 

36from ._resource_tests import ( 

37 enable_determinism, 

38 load_description_and_test, 

39 test_description, 

40 test_model, 

41) 

42from ._settings import settings 

43from .axis import Axis, AxisId 

44from .block_meta import BlockMeta 

45from .common import MemberId 

46from .prediction import predict, predict_many 

47from .sample import Sample 

48from .stat_calculators import compute_dataset_measures 

49from .stat_measures import Stat 

50from .tensor import Tensor 

51from .utils import VERSION 

52 

53__version__ = VERSION 

54 

55 

56# aliases 

57test_resource = test_description 

58"""alias of `test_description`""" 

59load_resource = load_description 

60"""alias of `load_description`""" 

61load_model = load_model_description 

62"""alias of `load_model_description`""" 

63 

64__all__ = [ 

65 "__version__", 

66 "axis", 

67 "Axis", 

68 "AxisId", 

69 "block_meta", 

70 "BlockMeta", 

71 "build_description", 

72 "cli", 

73 "commands", 

74 "common", 

75 "compute_dataset_measures", 

76 "create_prediction_pipeline", 

77 "digest_spec", 

78 "dump_description", 

79 "enable_determinism", 

80 "io", 

81 "load_dataset_description", 

82 "load_description_and_test", 

83 "load_description_and_validate_format_only", 

84 "load_description", 

85 "load_model_description", 

86 "load_model", 

87 "load_resource", 

88 "MemberId", 

89 "model_adapters", 

90 "predict_many", 

91 "predict", 

92 "prediction", 

93 "PredictionPipeline", 

94 "proc_ops", 

95 "proc_setup", 

96 "sample", 

97 "Sample", 

98 "save_bioimageio_package_as_folder", 

99 "save_bioimageio_package", 

100 "save_bioimageio_yaml_only", 

101 "settings", 

102 "stat_calculators", 

103 "stat_measures", 

104 "Stat", 

105 "tensor", 

106 "Tensor", 

107 "test_description", 

108 "test_model", 

109 "test_resource", 

110 "validate_format", 

111]