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

24 statements  

« prev     ^ index     » next       coverage.py v7.8.0, created at 2025-04-01 09:51 +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 .backends import create_model_adapter 

45from .block_meta import BlockMeta 

46from .common import MemberId 

47from .prediction import predict, predict_many 

48from .sample import Sample 

49from .stat_calculators import compute_dataset_measures 

50from .stat_measures import Stat 

51from .tensor import Tensor 

52from .utils import VERSION 

53from .weight_converters import add_weights 

54 

55__version__ = VERSION 

56 

57 

58# aliases 

59test_resource = test_description 

60"""alias of `test_description`""" 

61load_resource = load_description 

62"""alias of `load_description`""" 

63load_model = load_model_description 

64"""alias of `load_model_description`""" 

65 

66__all__ = [ 

67 "__version__", 

68 "add_weights", 

69 "axis", 

70 "Axis", 

71 "AxisId", 

72 "block_meta", 

73 "BlockMeta", 

74 "build_description", 

75 "cli", 

76 "commands", 

77 "common", 

78 "compute_dataset_measures", 

79 "create_model_adapter", 

80 "create_prediction_pipeline", 

81 "digest_spec", 

82 "dump_description", 

83 "enable_determinism", 

84 "io", 

85 "load_dataset_description", 

86 "load_description_and_test", 

87 "load_description_and_validate_format_only", 

88 "load_description", 

89 "load_model_description", 

90 "load_model", 

91 "load_resource", 

92 "MemberId", 

93 "model_adapters", 

94 "predict_many", 

95 "predict", 

96 "prediction", 

97 "PredictionPipeline", 

98 "proc_ops", 

99 "proc_setup", 

100 "sample", 

101 "Sample", 

102 "save_bioimageio_package_as_folder", 

103 "save_bioimageio_package", 

104 "save_bioimageio_yaml_only", 

105 "settings", 

106 "stat_calculators", 

107 "stat_measures", 

108 "Stat", 

109 "tensor", 

110 "Tensor", 

111 "test_description", 

112 "test_model", 

113 "test_resource", 

114 "validate_format", 

115]