Coverage report: 74%

Files Functions Classes

coverage.py v7.6.0, created at 2024-07-12 21:32 +0200

File function statements missing excluded coverage
src/bob/pipelines/__init__.py __appropriate__ 2 0 0 100%
src/bob/pipelines/__init__.py (no function) 12 0 0 100%
src/bob/pipelines/config/__init__.py (no function) 0 0 0 100%
src/bob/pipelines/config/distributed/__init__.py (no function) 0 0 0 100%
src/bob/pipelines/config/distributed/dask_it_pipeline.py (no function) 2 2 0 0%
src/bob/pipelines/config/distributed/local_p16.py (no function) 2 2 0 0%
src/bob/pipelines/config/distributed/local_p32.py (no function) 2 2 0 0%
src/bob/pipelines/config/distributed/local_p4.py (no function) 2 2 0 0%
src/bob/pipelines/config/distributed/local_p8.py (no function) 2 2 0 0%
src/bob/pipelines/config/distributed/local_parallel.py (no function) 2 2 0 0%
src/bob/pipelines/config/distributed/local_single_thread.py (no function) 1 1 0 0%
src/bob/pipelines/config/distributed/sge_default.py (no function) 9 9 0 0%
src/bob/pipelines/config/distributed/sge_demanding.py (no function) 9 9 0 0%
src/bob/pipelines/config/distributed/sge_gpu.py (no function) 9 9 0 0%
src/bob/pipelines/config/distributed/sge_io_big.py (no function) 8 8 0 0%
src/bob/pipelines/config/distributed/sge_io_big_non_adaptive.py (no function) 7 7 0 0%
src/bob/pipelines/config/distributed/slurm_cpu_default.py (no function) 17 17 0 0%
src/bob/pipelines/dataset/__init__.py __appropriate__ 2 0 0 100%
src/bob/pipelines/dataset/__init__.py (no function) 4 0 0 100%
src/bob/pipelines/dataset/database.py _maybe_open_file 3 1 0 67%
src/bob/pipelines/dataset/database.py FileListToSamples.__init__ 4 0 0 100%
src/bob/pipelines/dataset/database.py FileListToSamples.__iter__ 6 0 0 100%
src/bob/pipelines/dataset/database.py FileListToSamples.rows 3 3 0 0%
src/bob/pipelines/dataset/database.py CSVToSamples.__init__ 3 0 0 100%
src/bob/pipelines/dataset/database.py CSVToSamples.rows 4 0 0 100%
src/bob/pipelines/dataset/database.py FileListDatabase.__init__ 14 2 0 86%
src/bob/pipelines/dataset/database.py FileListDatabase.protocol 1 0 0 100%
src/bob/pipelines/dataset/database.py FileListDatabase.protocol 2 0 0 100%
src/bob/pipelines/dataset/database.py FileListDatabase.transformer 1 0 0 100%
src/bob/pipelines/dataset/database.py FileListDatabase.transformer 3 0 0 100%
src/bob/pipelines/dataset/database.py FileListDatabase.groups 1 0 0 100%
src/bob/pipelines/dataset/database.py FileListDatabase._instance_protocols 1 0 0 100%
src/bob/pipelines/dataset/database.py FileListDatabase.protocols 4 1 0 75%
src/bob/pipelines/dataset/database.py FileListDatabase.retrieve_dataset_protocols 6 0 0 100%
src/bob/pipelines/dataset/database.py FileListDatabase.list_file 2 0 0 100%
src/bob/pipelines/dataset/database.py FileListDatabase.get_reader 5 0 0 100%
src/bob/pipelines/dataset/database.py FileListDatabase.samples 6 0 0 100%
src/bob/pipelines/dataset/database.py FileListDatabase.sort 5 5 0 0%
src/bob/pipelines/dataset/database.py FileListDatabase.sort.key_func 1 1 0 0%
src/bob/pipelines/dataset/database.py (no function) 41 0 0 100%
src/bob/pipelines/dataset/protocols/__init__.py (no function) 1 0 0 100%
src/bob/pipelines/dataset/protocols/archive.py path_and_subdir 5 2 0 60%
src/bob/pipelines/dataset/protocols/archive.py _is_bz2 6 6 0 0%
src/bob/pipelines/dataset/protocols/archive.py is_archive 5 0 0 100%
src/bob/pipelines/dataset/protocols/archive.py search_and_open 24 24 0 0%
src/bob/pipelines/dataset/protocols/archive.py list_dirs 29 16 0 45%
src/bob/pipelines/dataset/protocols/archive.py (no function) 15 0 0 100%
src/bob/pipelines/dataset/protocols/hashing.py md5_hash 4 4 0 0%
src/bob/pipelines/dataset/protocols/hashing.py sha256_hash 4 0 0 100%
src/bob/pipelines/dataset/protocols/hashing.py verify_file 4 0 0 100%
src/bob/pipelines/dataset/protocols/hashing.py compute_crc 3 3 0 0%
src/bob/pipelines/dataset/protocols/hashing.py (no function) 8 0 0 100%
src/bob/pipelines/dataset/protocols/retrieve.py _get_local_data_directory 2 0 0 100%
src/bob/pipelines/dataset/protocols/retrieve.py _infer_filename_from_urls 6 2 0 67%
src/bob/pipelines/dataset/protocols/retrieve.py retrieve_protocols 8 1 0 88%
src/bob/pipelines/dataset/protocols/retrieve.py list_protocol_paths 13 8 0 38%
src/bob/pipelines/dataset/protocols/retrieve.py get_protocol_path 10 5 0 50%
src/bob/pipelines/dataset/protocols/retrieve.py list_protocol_names 16 7 0 56%
src/bob/pipelines/dataset/protocols/retrieve.py open_definition_file 11 4 0 64%
src/bob/pipelines/dataset/protocols/retrieve.py list_group_paths 6 3 0 50%
src/bob/pipelines/dataset/protocols/retrieve.py list_group_names 2 0 0 100%
src/bob/pipelines/dataset/protocols/retrieve.py download_protocol_definition 46 17 0 63%
src/bob/pipelines/dataset/protocols/retrieve.py (no function) 19 0 0 100%
src/bob/pipelines/distributed/__init__.py dask_get_partition_size 5 5 0 0%
src/bob/pipelines/distributed/__init__.py get_local_parallel_client 5 5 0 0%
src/bob/pipelines/distributed/__init__.py __appropriate__ 2 0 0 100%
src/bob/pipelines/distributed/__init__.py (no function) 12 2 0 83%
src/bob/pipelines/distributed/sge.py SGEIdiapJob.__init__ 33 33 0 0%
src/bob/pipelines/distributed/sge.py get_max_jobs 1 1 0 0%
src/bob/pipelines/distributed/sge.py get_resource_requirements 5 5 0 0%
src/bob/pipelines/distributed/sge.py SGEMultipleQueuesCluster.__init__ 19 19 0 0%
src/bob/pipelines/distributed/sge.py SGEMultipleQueuesCluster._get_worker_spec_options 9 9 0 0%
src/bob/pipelines/distributed/sge.py SGEMultipleQueuesCluster.scale 8 8 0 0%
src/bob/pipelines/distributed/sge.py SGEMultipleQueuesCluster.scale_up 1 1 0 0%
src/bob/pipelines/distributed/sge.py SGEMultipleQueuesCluster.scale_down 1 1 0 0%
src/bob/pipelines/distributed/sge.py SGEMultipleQueuesCluster.adapt 1 1 0 0%
src/bob/pipelines/distributed/sge.py AdaptiveMultipleQueue.recommendations 25 25 0 0%
src/bob/pipelines/distributed/sge.py AdaptiveMultipleQueue.scale_up 1 1 0 0%
src/bob/pipelines/distributed/sge.py AdaptiveMultipleQueue.scale_down 1 1 0 0%
src/bob/pipelines/distributed/sge.py SchedulerResourceRestriction.__init__ 2 2 0 0%
src/bob/pipelines/distributed/sge.py SchedulerResourceRestriction.get_no_worker_tasks_resource_restrictions 5 5 0 0%
src/bob/pipelines/distributed/sge.py (no function) 31 0 0 100%
src/bob/pipelines/distributed/sge_queues.py (no function) 4 0 0 100%
src/bob/pipelines/sample.py _copy_attributes 10 1 0 90%
src/bob/pipelines/sample.py _ReprMixin.__repr__ 1 1 0 0%
src/bob/pipelines/sample.py _ReprMixin.__eq__ 11 3 0 73%
src/bob/pipelines/sample.py Sample.__init__ 2 0 0 100%
src/bob/pipelines/sample.py DelayedSample.__init__ 33 0 0 100%
src/bob/pipelines/sample.py DelayedSample.__getattribute__ 7 0 0 100%
src/bob/pipelines/sample.py DelayedSample.__setattr__ 5 0 0 100%
src/bob/pipelines/sample.py DelayedSample.data 1 0 0 100%
src/bob/pipelines/sample.py DelayedSample.from_sample 5 0 0 100%
src/bob/pipelines/sample.py SampleSet.__init__ 2 0 0 100%
src/bob/pipelines/sample.py SampleSet.__len__ 1 0 0 100%
src/bob/pipelines/sample.py SampleSet.__getitem__ 1 0 0 100%
src/bob/pipelines/sample.py SampleSet.__setitem__ 1 0 0 100%
src/bob/pipelines/sample.py SampleSet.__delitem__ 1 0 0 100%
src/bob/pipelines/sample.py SampleSet.insert 1 0 0 100%
src/bob/pipelines/sample.py DelayedSampleSet.__init__ 2 0 0 100%
src/bob/pipelines/sample.py DelayedSampleSet.samples 1 0 0 100%
src/bob/pipelines/sample.py DelayedSampleSetCached.__init__ 3 0 0 100%
src/bob/pipelines/sample.py DelayedSampleSetCached.samples 3 0 0 100%
src/bob/pipelines/sample.py SampleBatch.__init__ 2 0 0 100%
src/bob/pipelines/sample.py SampleBatch.__len__ 1 0 0 100%
src/bob/pipelines/sample.py SampleBatch.__getitem__ 1 0 0 100%
src/bob/pipelines/sample.py SampleBatch.__array__ 12 7 0 42%
src/bob/pipelines/sample.py SampleBatch.__array__._reader 1 0 0 100%
src/bob/pipelines/sample.py (no function) 39 0 0 100%
src/bob/pipelines/transformers/__init__.py __appropriate__ 2 1 0 50%
src/bob/pipelines/transformers/__init__.py (no function) 5 0 0 100%
src/bob/pipelines/transformers/str_to_types.py str_to_types 6 0 0 100%
src/bob/pipelines/transformers/str_to_types.py str_to_bool 1 0 0 100%
src/bob/pipelines/transformers/str_to_types.py Str_To_Types 1 0 0 100%
src/bob/pipelines/transformers/str_to_types.py (no function) 4 0 0 100%
src/bob/pipelines/utils.py is_picklable 7 7 0 0%
src/bob/pipelines/utils.py assert_picklable 10 10 0 0%
src/bob/pipelines/utils.py hash_string 1 0 0 100%
src/bob/pipelines/utils.py flatten_samplesets 8 0 0 100%
src/bob/pipelines/utils.py check_parameters_for_validity 8 0 0 100%
src/bob/pipelines/utils.py check_parameter_for_validity 11 2 0 82%
src/bob/pipelines/utils.py (no function) 9 0 0 100%
src/bob/pipelines/wrappers.py _frmt 10 0 0 100%
src/bob/pipelines/wrappers.py _frmt._n 1 0 0 100%
src/bob/pipelines/wrappers.py copy_learned_attributes 3 0 0 100%
src/bob/pipelines/wrappers.py get_bob_tags 4 0 0 100%
src/bob/pipelines/wrappers.py BaseWrapper._more_tags 1 0 0 100%
src/bob/pipelines/wrappers.py _make_kwargs_from_samples 2 0 0 100%
src/bob/pipelines/wrappers.py _check_n_input_output 3 1 0 67%
src/bob/pipelines/wrappers.py DelayedSamplesCall.__init__ 6 0 0 100%
src/bob/pipelines/wrappers.py DelayedSamplesCall.__call__ 14 0 0 100%
src/bob/pipelines/wrappers.py SampleWrapper.__init__ 8 0 0 100%
src/bob/pipelines/wrappers.py SampleWrapper._samples_transform 17 2 0 88%
src/bob/pipelines/wrappers.py SampleWrapper.transform 2 0 0 100%
src/bob/pipelines/wrappers.py SampleWrapper.decision_function 2 2 0 0%
src/bob/pipelines/wrappers.py SampleWrapper.predict 2 2 0 0%
src/bob/pipelines/wrappers.py SampleWrapper.predict_proba 2 2 0 0%
src/bob/pipelines/wrappers.py SampleWrapper.score 2 2 0 0%
src/bob/pipelines/wrappers.py SampleWrapper.fit 15 1 0 93%
src/bob/pipelines/wrappers.py CheckpointWrapper.__init__ 17 2 0 88%
src/bob/pipelines/wrappers.py CheckpointWrapper._checkpoint_transform 7 0 0 100%
src/bob/pipelines/wrappers.py CheckpointWrapper._checkpoint_transform._transform_samples 25 4 0 84%
src/bob/pipelines/wrappers.py CheckpointWrapper.transform 2 0 0 100%
src/bob/pipelines/wrappers.py CheckpointWrapper.decision_function 2 2 0 0%
src/bob/pipelines/wrappers.py CheckpointWrapper.predict 2 2 0 0%
src/bob/pipelines/wrappers.py CheckpointWrapper.predict_proba 2 2 0 0%
src/bob/pipelines/wrappers.py CheckpointWrapper.score 2 2 0 0%
src/bob/pipelines/wrappers.py CheckpointWrapper.fit 9 0 0 100%
src/bob/pipelines/wrappers.py CheckpointWrapper.make_path 7 2 0 71%
src/bob/pipelines/wrappers.py CheckpointWrapper.save 16 4 0 75%
src/bob/pipelines/wrappers.py CheckpointWrapper.load 5 3 0 40%
src/bob/pipelines/wrappers.py CheckpointWrapper.load_model 6 1 0 83%
src/bob/pipelines/wrappers.py CheckpointWrapper.save_model 6 1 0 83%
src/bob/pipelines/wrappers.py _update_estimator 5 0 0 100%
src/bob/pipelines/wrappers.py is_checkpointed 1 0 0 100%
src/bob/pipelines/wrappers.py getattr_nested 5 1 0 80%
src/bob/pipelines/wrappers.py _sample_attribute 1 0 0 100%
src/bob/pipelines/wrappers.py _len_samples 1 0 0 100%
src/bob/pipelines/wrappers.py _shape_samples 1 0 0 100%
src/bob/pipelines/wrappers.py _array_from_sample_bags 29 6 0 79%
src/bob/pipelines/wrappers.py DaskWrapper.__init__ 8 0 0 100%
src/bob/pipelines/wrappers.py DaskWrapper._make_dask_resource_tag 1 0 0 100%
src/bob/pipelines/wrappers.py DaskWrapper._dask_transform 9 0 0 100%
src/bob/pipelines/wrappers.py DaskWrapper._dask_transform._transf 1 0 0 100%
src/bob/pipelines/wrappers.py DaskWrapper.transform 1 0 0 100%
src/bob/pipelines/wrappers.py DaskWrapper.decision_function 1 1 0 0%
src/bob/pipelines/wrappers.py DaskWrapper.predict 1 1 0 0%
src/bob/pipelines/wrappers.py DaskWrapper.predict_proba 1 1 0 0%
src/bob/pipelines/wrappers.py DaskWrapper.score 1 1 0 0%
src/bob/pipelines/wrappers.py DaskWrapper._get_fit_params_from_sample_bags 10 3 0 70%
src/bob/pipelines/wrappers.py DaskWrapper._fit_on_dask_array 5 1 0 80%
src/bob/pipelines/wrappers.py DaskWrapper._fit_on_dask_bag 9 9 0 0%
src/bob/pipelines/wrappers.py DaskWrapper._fit_on_dask_bag.getattr_list 1 1 0 0%
src/bob/pipelines/wrappers.py DaskWrapper.fit 22 1 0 95%
src/bob/pipelines/wrappers.py DaskWrapper.fit._fit 6 2 0 67%
src/bob/pipelines/wrappers.py ToDaskBag.__init__ 3 0 0 100%
src/bob/pipelines/wrappers.py ToDaskBag.fit 1 0 0 100%
src/bob/pipelines/wrappers.py ToDaskBag.transform 4 0 0 100%
src/bob/pipelines/wrappers.py ToDaskBag._more_tags 1 0 0 100%
src/bob/pipelines/wrappers.py wrap 23 3 0 87%
src/bob/pipelines/wrappers.py wrap._wrap 7 0 0 100%
src/bob/pipelines/wrappers.py dask_tags 9 0 0 100%
src/bob/pipelines/wrappers.py estimator_requires_fit 10 1 0 90%
src/bob/pipelines/wrappers.py is_instance_nested 7 0 0 100%
src/bob/pipelines/wrappers.py is_pipeline_wrapped 3 1 0 67%
src/bob/pipelines/wrappers.py (no function) 82 0 0 100%
src/bob/pipelines/xarray.py save 3 0 0 100%
src/bob/pipelines/xarray.py load 3 0 0 100%
src/bob/pipelines/xarray.py _load_fn_to_xarray 9 0 0 100%
src/bob/pipelines/xarray.py _one_sample_to_dataset 13 0 0 100%
src/bob/pipelines/xarray.py samples_to_dataset 11 0 0 100%
src/bob/pipelines/xarray.py Block.__init__ 21 1 0 95%
src/bob/pipelines/xarray.py Block.__getitem__ 1 1 0 0%
src/bob/pipelines/xarray.py Block.__setitem__ 1 1 0 0%
src/bob/pipelines/xarray.py Block.output_ndim 1 0 0 100%
src/bob/pipelines/xarray.py Block.make_path 4 1 0 75%
src/bob/pipelines/xarray.py Block.save 3 0 0 100%
src/bob/pipelines/xarray.py Block.load 2 0 0 100%
src/bob/pipelines/xarray.py _fit 8 0 0 100%
src/bob/pipelines/xarray.py _TokenStableTransform.__init__ 4 0 0 100%
src/bob/pipelines/xarray.py _TokenStableTransform.__dask_tokenize__ 1 0 0 100%
src/bob/pipelines/xarray.py _TokenStableTransform.__call__ 17 3 0 82%
src/bob/pipelines/xarray.py _populate_graph 8 0 0 100%
src/bob/pipelines/xarray.py _get_dask_args_from_ds 7 0 0 100%
src/bob/pipelines/xarray.py _blockwise_with_block_args 35 2 0 94%
src/bob/pipelines/xarray.py _blockwise_with_block 5 0 0 100%
src/bob/pipelines/xarray.py _load_estimator 4 0 0 100%
src/bob/pipelines/xarray.py _transform_or_load 41 0 0 100%
src/bob/pipelines/xarray.py DatasetPipeline.__init__ 2 0 0 100%
src/bob/pipelines/xarray.py DatasetPipeline._transform 43 3 0 93%
src/bob/pipelines/xarray.py DatasetPipeline.fit 4 1 0 75%
src/bob/pipelines/xarray.py DatasetPipeline.transform 1 1 0 0%
src/bob/pipelines/xarray.py DatasetPipeline.decision_function 1 0 0 100%
src/bob/pipelines/xarray.py DatasetPipeline.predict 1 0 0 100%
src/bob/pipelines/xarray.py DatasetPipeline.predict_proba 1 1 0 0%
src/bob/pipelines/xarray.py DatasetPipeline.score 1 1 0 0%
src/bob/pipelines/xarray.py (no function) 50 0 0 100%
Total   1624 429 0 74%

No items found using the specified filter.