Coverage report: 90%

Files Functions Classes

coverage.py v7.6.1, created at 2025-03-30 20:58 +0200

File function statements missing excluded coverage
src/shephex/__init__.py (no function) 11 0 0 100%
src/shephex/cli/__init__.py (no function) 0 0 0 100%
src/shephex/cli/execute.py execute 8 0 0 100%
src/shephex/cli/execute.py (no function) 10 0 0 100%
src/shephex/cli/main.py cli 0 0 1 100%
src/shephex/cli/main.py (no function) 10 0 0 100%
src/shephex/cli/report.py LiveReport.__init__ 2 0 0 100%
src/shephex/cli/report.py LiveReport.update_table 8 0 3 100%
src/shephex/cli/report.py ConditionParser.__init__ 1 0 0 100%
src/shephex/cli/report.py ConditionParser.comma_seperated 2 2 0 0%
src/shephex/cli/report.py ConditionParser.dash_seperated 4 4 0 0%
src/shephex/cli/report.py ConditionParser.parse_conditions 17 11 0 35%
src/shephex/cli/report.py report 17 2 0 88%
src/shephex/cli/report.py report.get_render_group 4 0 0 100%
src/shephex/cli/report.py (no function) 26 0 0 100%
src/shephex/cli/slurm/__init__.py (no function) 6 0 0 100%
src/shephex/cli/slurm/add_info.py add_info 7 0 0 100%
src/shephex/cli/slurm/add_info.py (no function) 8 0 0 100%
src/shephex/cli/slurm/cancel.py get_job_id 3 0 0 100%
src/shephex/cli/slurm/cancel.py get_job_status 2 0 0 100%
src/shephex/cli/slurm/cancel.py cancel 19 0 0 100%
src/shephex/cli/slurm/cancel.py (no function) 11 0 0 100%
src/shephex/cli/slurm/open.py check_job_status 0 0 10 100%
src/shephex/cli/slurm/open.py find_output_file 0 0 58 100%
src/shephex/cli/slurm/open.py open_slurm 3 0 3 100%
src/shephex/cli/slurm/open.py (no function) 10 0 2 100%
src/shephex/cli/slurm/profile.py profile 1 1 0 0%
src/shephex/cli/slurm/profile.py directory 4 4 0 0%
src/shephex/cli/slurm/profile.py add 11 11 0 0%
src/shephex/cli/slurm/profile.py list_profiles 8 8 0 0%
src/shephex/cli/slurm/profile.py print 8 8 0 0%
src/shephex/cli/slurm/profile.py delete 4 4 0 0%
src/shephex/cli/slurm/profile.py (no function) 25 0 0 100%
src/shephex/cli/slurm/slurm.py slurm 0 0 1 100%
src/shephex/cli/slurm/slurm.py (no function) 3 0 0 100%
src/shephex/decorators/__init__.py DecoratorState.__init__ 1 0 0 100%
src/shephex/decorators/__init__.py DecoratorState.disable 1 0 0 100%
src/shephex/decorators/__init__.py DecoratorState.enable 1 0 0 100%
src/shephex/decorators/__init__.py DecoratorState.active 1 0 0 100%
src/shephex/decorators/__init__.py get_decorator_state 3 0 0 100%
src/shephex/decorators/__init__.py disable_decorators.__enter__ 1 0 0 100%
src/shephex/decorators/__init__.py disable_decorators.__exit__ 1 0 0 100%
src/shephex/decorators/__init__.py (no function) 15 0 0 100%
src/shephex/decorators/chain.py chain 3 0 0 100%
src/shephex/decorators/chain.py chain.decorator 2 0 0 100%
src/shephex/decorators/chain.py chain.decorator.wrapper 9 0 0 100%
src/shephex/decorators/chain.py (no function) 7 0 0 100%
src/shephex/decorators/hexperiment.py hexperiment 3 0 0 100%
src/shephex/decorators/hexperiment.py hexperiment.decorator 2 0 0 100%
src/shephex/decorators/hexperiment.py hexperiment.decorator.wrapper 10 0 0 100%
src/shephex/decorators/hexperiment.py (no function) 7 0 0 100%
src/shephex/executor/__init__.py (no function) 3 0 0 100%
src/shephex/executor/executor.py Executor.__init__ 1 0 0 100%
src/shephex/executor/executor.py Executor.execute 16 1 0 94%
src/shephex/executor/executor.py Executor._sequence_execute 5 0 0 100%
src/shephex/executor/executor.py Executor._single_execute 0 0 1 100%
src/shephex/executor/executor.py Executor._execute 2 0 0 100%
src/shephex/executor/executor.py LocalExecutor.__init__ 1 0 0 100%
src/shephex/executor/executor.py LocalExecutor._single_execute 6 0 0 100%
src/shephex/executor/executor.py (no function) 17 0 0 100%
src/shephex/executor/slurm/__init__.py (no function) 8 0 0 100%
src/shephex/executor/slurm/functional.py slurm_execute 10 10 0 0%
src/shephex/executor/slurm/functional.py (no function) 5 0 0 100%
src/shephex/executor/slurm/slurm_body.py SlurmBody.__init__ 3 0 0 100%
src/shephex/executor/slurm/slurm_body.py SlurmBody.add 7 0 0 100%
src/shephex/executor/slurm/slurm_body.py SlurmBody.__repr__ 1 0 0 100%
src/shephex/executor/slurm/slurm_body.py SlurmBody.__add__ 3 0 0 100%
src/shephex/executor/slurm/slurm_body.py (no function) 6 0 0 100%
src/shephex/executor/slurm/slurm_executor.py SlurmExecutor.__init__ 14 1 0 93%
src/shephex/executor/slurm/slurm_executor.py SlurmExecutor.from_config 15 15 0 0%
src/shephex/executor/slurm/slurm_executor.py SlurmExecutor.to_config 8 1 0 88%
src/shephex/executor/slurm/slurm_executor.py SlurmExecutor.from_profile 6 6 0 0%
src/shephex/executor/slurm/slurm_executor.py SlurmExecutor._single_execute 1 0 0 100%
src/shephex/executor/slurm/slurm_executor.py SlurmExecutor._sequence_execute 19 0 0 100%
src/shephex/executor/slurm/slurm_executor.py SlurmExecutor._bash_array_str 2 0 0 100%
src/shephex/executor/slurm/slurm_executor.py SlurmExecutor._body_add 6 3 0 50%
src/shephex/executor/slurm/slurm_executor.py SlurmExecutor._make_slurm_body 22 1 0 95%
src/shephex/executor/slurm/slurm_executor.py SlurmExecutor.safety_check 5 5 0 0%
src/shephex/executor/slurm/slurm_executor.py (no function) 24 0 0 100%
src/shephex/executor/slurm/slurm_header.py HeaderOption.__init__ 2 0 0 100%
src/shephex/executor/slurm/slurm_header.py HeaderOption.__repr__ 1 0 0 100%
src/shephex/executor/slurm/slurm_header.py HeaderOption.__str__ 1 0 0 100%
src/shephex/executor/slurm/slurm_header.py HeaderOption.get_name_and_index 8 0 0 100%
src/shephex/executor/slurm/slurm_header.py SlurmHeader.__init__ 1 0 0 100%
src/shephex/executor/slurm/slurm_header.py SlurmHeader.add 5 0 0 100%
src/shephex/executor/slurm/slurm_header.py SlurmHeader.__repr__ 4 0 0 100%
src/shephex/executor/slurm/slurm_header.py SlurmHeader.copy 1 0 0 100%
src/shephex/executor/slurm/slurm_header.py SlurmHeader.to_dict 1 0 0 100%
src/shephex/executor/slurm/slurm_header.py (no function) 17 0 0 100%
src/shephex/executor/slurm/slurm_options.py (no function) 1 0 0 100%
src/shephex/executor/slurm/slurm_profile.py SlurmProfileManager.__init__ 6 6 0 0%
src/shephex/executor/slurm/slurm_profile.py SlurmProfileManager.load_settings 7 7 0 0%
src/shephex/executor/slurm/slurm_profile.py SlurmProfileManager.set_profile_directory 3 3 0 0%
src/shephex/executor/slurm/slurm_profile.py SlurmProfileManager.get_profile_directory 1 1 0 0%
src/shephex/executor/slurm/slurm_profile.py SlurmProfileManager.get_all_profiles 1 1 0 0%
src/shephex/executor/slurm/slurm_profile.py SlurmProfileManager.get_profile_path 6 6 0 0%
src/shephex/executor/slurm/slurm_profile.py SlurmProfileManager.get_profile 3 3 0 0%
src/shephex/executor/slurm/slurm_profile.py (no function) 14 3 0 79%
src/shephex/executor/slurm/slurm_script.py SlurmScript.__init__ 4 0 0 100%
src/shephex/executor/slurm/slurm_script.py SlurmScript.__repr__ 1 0 0 100%
src/shephex/executor/slurm/slurm_script.py SlurmScript.path 1 0 0 100%
src/shephex/executor/slurm/slurm_script.py SlurmScript.write 3 0 0 100%
src/shephex/executor/slurm/slurm_script.py SlurmScript.submit 6 0 0 100%
src/shephex/executor/slurm/slurm_script.py (no function) 11 0 0 100%
src/shephex/experiment/__init__.py (no function) 8 0 0 100%
src/shephex/experiment/chain_iterator.py ChainableExperimentIterator.__init__ 4 0 0 100%
src/shephex/experiment/chain_iterator.py ChainableExperimentIterator.add 4 0 0 100%
src/shephex/experiment/chain_iterator.py ChainableExperimentIterator.zip 1 0 0 100%
src/shephex/experiment/chain_iterator.py ChainableExperimentIterator.permute 1 0 0 100%
src/shephex/experiment/chain_iterator.py ChainableExperimentIterator._zipped_add 18 0 0 100%
src/shephex/experiment/chain_iterator.py ChainableExperimentIterator._permute_add 22 0 0 100%
src/shephex/experiment/chain_iterator.py ChainableExperimentIterator.__iter__ 9 0 0 100%
src/shephex/experiment/chain_iterator.py ChainableExperimentIterator.__next__ 5 0 0 100%
src/shephex/experiment/chain_iterator.py ChainableExperimentIterator.__len__ 1 0 0 100%
src/shephex/experiment/chain_iterator.py (no function) 15 0 0 100%
src/shephex/experiment/context.py ExperimentContext.__init__ 4 0 0 100%
src/shephex/experiment/context.py ExperimentContext.__repr__ 1 0 0 100%
src/shephex/experiment/context.py ExperimentContext.refresh 4 0 0 100%
src/shephex/experiment/context.py ExperimentContext.directory 1 1 0 0%
src/shephex/experiment/context.py ExperimentContext.shephex_directory 1 0 0 100%
src/shephex/experiment/context.py ExperimentContext.update_progress 4 0 0 100%
src/shephex/experiment/context.py ExperimentContext.add 2 0 0 100%
src/shephex/experiment/context.py (no function) 13 0 0 100%
src/shephex/experiment/experiment.py Experiment.__init__ 14 0 0 100%
src/shephex/experiment/experiment.py Experiment.root_path 1 0 0 100%
src/shephex/experiment/experiment.py Experiment.root_path 1 0 0 100%
src/shephex/experiment/experiment.py Experiment.identifier 1 0 0 100%
src/shephex/experiment/experiment.py Experiment.procedure 1 0 0 100%
src/shephex/experiment/experiment.py Experiment.procedure 9 1 0 89%
src/shephex/experiment/experiment.py Experiment.status 1 0 0 100%
src/shephex/experiment/experiment.py Experiment.status 3 0 0 100%
src/shephex/experiment/experiment.py Experiment.directory 4 0 0 100%
src/shephex/experiment/experiment.py Experiment.shephex_directory 1 0 0 100%
src/shephex/experiment/experiment.py Experiment.dump 7 0 0 100%
src/shephex/experiment/experiment.py Experiment._dump_options 1 0 0 100%
src/shephex/experiment/experiment.py Experiment._dump_procedure 1 0 0 100%
src/shephex/experiment/experiment.py Experiment._dump_meta 1 0 0 100%
src/shephex/experiment/experiment.py Experiment.load 8 0 0 100%
src/shephex/experiment/experiment.py Experiment.load_procedure 13 1 0 92%
src/shephex/experiment/experiment.py Experiment._execute 10 0 0 100%
src/shephex/experiment/experiment.py Experiment.update_status 2 0 0 100%
src/shephex/experiment/experiment.py Experiment.to_dict 3 0 0 100%
src/shephex/experiment/experiment.py Experiment.__eq__ 5 0 0 100%
src/shephex/experiment/experiment.py Experiment.__repr__ 6 0 0 100%
src/shephex/experiment/experiment.py (no function) 48 0 0 100%
src/shephex/experiment/meta.py Meta.__init__ 2 0 0 100%
src/shephex/experiment/meta.py Meta.dump 2 0 0 100%
src/shephex/experiment/meta.py Meta.load 4 0 0 100%
src/shephex/experiment/meta.py Meta.update 1 0 0 100%
src/shephex/experiment/meta.py Meta.from_file 7 3 0 57%
src/shephex/experiment/meta.py Meta.get_dict 1 0 0 100%
src/shephex/experiment/meta.py (no function) 11 0 0 100%
src/shephex/experiment/options.py Options.__init__ 6 0 0 100%
src/shephex/experiment/options.py Options._check_type 16 0 0 100%
src/shephex/experiment/options.py Options.__repr__ 1 0 0 100%
src/shephex/experiment/options.py Options.dump 5 0 0 100%
src/shephex/experiment/options.py Options.to_dict 4 0 0 100%
src/shephex/experiment/options.py Options.name 1 0 0 100%
src/shephex/experiment/options.py Options.load 7 0 0 100%
src/shephex/experiment/options.py Options.__eq__ 7 0 0 100%
src/shephex/experiment/options.py Options.items 4 0 0 100%
src/shephex/experiment/options.py Options.keys 4 0 0 100%
src/shephex/experiment/options.py Options.values 4 0 0 100%
src/shephex/experiment/options.py Options.__getitem__ 3 0 0 100%
src/shephex/experiment/options.py Options.kwargs 1 0 0 100%
src/shephex/experiment/options.py Options.args 1 0 0 100%
src/shephex/experiment/options.py Options.add_kwarg 4 1 0 75%
src/shephex/experiment/options.py Options.add_arg 2 0 0 100%
src/shephex/experiment/options.py Options.copy 1 0 0 100%
src/shephex/experiment/options.py (no function) 27 0 0 100%
src/shephex/experiment/procedure/__init__.py (no function) 4 0 0 100%
src/shephex/experiment/procedure/pickle.py PickleProcedure.__init__ 4 0 0 100%
src/shephex/experiment/procedure/pickle.py PickleProcedure.dump 6 0 0 100%
src/shephex/experiment/procedure/pickle.py PickleProcedure._execute 26 0 0 100%
src/shephex/experiment/procedure/pickle.py PickleProcedure.hash 1 0 0 100%
src/shephex/experiment/procedure/pickle.py PickleProcedure.get_metadata 3 0 0 100%
src/shephex/experiment/procedure/pickle.py PickleProcedure.from_metadata 1 1 0 0%
src/shephex/experiment/procedure/pickle.py (no function) 20 0 0 100%
src/shephex/experiment/procedure/procedure.py Procedure.__init__ 2 0 0 100%
src/shephex/experiment/procedure/procedure.py Procedure.dump 0 0 1 100%
src/shephex/experiment/procedure/procedure.py Procedure.from_metadata 1 1 0 0%
src/shephex/experiment/procedure/procedure.py Procedure.name 1 0 0 100%
src/shephex/experiment/procedure/procedure.py Procedure.name 1 0 0 100%
src/shephex/experiment/procedure/procedure.py Procedure._execute 0 0 1 100%
src/shephex/experiment/procedure/procedure.py Procedure.hash 0 0 1 100%
src/shephex/experiment/procedure/procedure.py Procedure.__hash__ 1 0 0 100%
src/shephex/experiment/procedure/procedure.py Procedure.__eq__ 1 0 0 100%
src/shephex/experiment/procedure/procedure.py Procedure.get_metadata 1 0 0 100%
src/shephex/experiment/procedure/procedure.py (no function) 24 0 0 100%
src/shephex/experiment/procedure/script.py ScriptProcedure.__init__ 13 1 0 92%
src/shephex/experiment/procedure/script.py ScriptProcedure.dump 3 0 0 100%
src/shephex/experiment/procedure/script.py ScriptProcedure._execute 11 0 1 100%
src/shephex/experiment/procedure/script.py ScriptProcedure.hash 1 0 0 100%
src/shephex/experiment/procedure/script.py ScriptProcedure.get_function_from_script 10 2 0 80%
src/shephex/experiment/procedure/script.py ScriptProcedure.get_metadata 4 0 0 100%
src/shephex/experiment/procedure/script.py ScriptProcedure.from_metadata 1 0 0 100%
src/shephex/experiment/procedure/script.py (no function) 19 0 0 100%
src/shephex/experiment/result.py ExperimentError.__init__ 2 0 0 100%
src/shephex/experiment/result.py ExperimentResult.__post_init__ 2 0 0 100%
src/shephex/experiment/result.py ExperimentResult.get_path 2 0 0 100%
src/shephex/experiment/result.py ExperimentResult.dump 4 0 0 100%
src/shephex/experiment/result.py ExperimentResult.load 4 0 0 100%
src/shephex/experiment/result.py FutureResult.__init__ 1 0 0 100%
src/shephex/experiment/result.py FutureResult.__post_init__ 1 0 0 100%
src/shephex/experiment/result.py DryResult.__init__ 1 0 0 100%
src/shephex/experiment/result.py DryResult.__post_init__ 1 0 0 100%
src/shephex/experiment/result.py (no function) 25 0 0 100%
src/shephex/experiment/status.py Status.__init__ 3 0 0 100%
src/shephex/experiment/status.py Status.pending 1 0 0 100%
src/shephex/experiment/status.py Status.submitted 1 1 0 0%
src/shephex/experiment/status.py Status.running 1 0 0 100%
src/shephex/experiment/status.py Status.completed 1 0 0 100%
src/shephex/experiment/status.py Status.failed 1 0 0 100%
src/shephex/experiment/status.py Status.__eq__ 3 1 0 67%
src/shephex/experiment/status.py Pending.__init__ 1 0 0 100%
src/shephex/experiment/status.py Submitted.__init__ 1 0 0 100%
src/shephex/experiment/status.py Running.__init__ 1 1 0 0%
src/shephex/experiment/status.py Completed.__init__ 1 1 0 0%
src/shephex/experiment/status.py Failed.__init__ 1 1 0 0%
src/shephex/experiment/status.py (no function) 28 3 0 89%
src/shephex/study/__init__.py (no function) 3 0 0 100%
src/shephex/study/renderer.py safe_getattr 4 2 0 50%
src/shephex/study/renderer.py StudyRenderer.__init__ 5 1 0 80%
src/shephex/study/renderer.py StudyRenderer.add_condition 1 0 0 100%
src/shephex/study/renderer.py StudyRenderer.initialize_table 8 0 0 100%
src/shephex/study/renderer.py StudyRenderer.get_rows 5 0 0 100%
src/shephex/study/renderer.py StudyRenderer.get_table 16 1 0 94%
src/shephex/study/renderer.py StudyRenderer.render_study 3 0 0 100%
src/shephex/study/renderer.py (no function) 12 0 0 100%
src/shephex/study/study.py Study.__init__ 4 0 0 100%
src/shephex/study/study.py Study.add_experiment 8 0 0 100%
src/shephex/study/study.py Study.update_experiment 1 0 0 100%
src/shephex/study/study.py Study.contains_experiment 4 0 0 100%
src/shephex/study/study.py Study.discover_experiments 1 0 0 100%
src/shephex/study/study.py Study.refresh 9 0 1 100%
src/shephex/study/study.py Study.report 2 0 0 100%
src/shephex/study/study.py Study.get_experiments 14 0 0 100%
src/shephex/study/study.py Study.where 6 1 0 83%
src/shephex/study/study.py (no function) 15 0 0 100%
src/shephex/study/table/__init__.py (no function) 2 0 0 100%
src/shephex/study/table/littletable_table.py safe_getattr 4 0 0 100%
src/shephex/study/table/littletable_table.py LittleTable.__init__ 5 0 0 100%
src/shephex/study/table/littletable_table.py LittleTable.add_column 2 0 0 100%
src/shephex/study/table/littletable_table.py LittleTable.add_row 4 0 0 100%
src/shephex/study/table/littletable_table.py LittleTable.contains_row 9 0 0 100%
src/shephex/study/table/littletable_table.py LittleTable.get_row_match 5 0 0 100%
src/shephex/study/table/littletable_table.py LittleTable.update_row 3 0 0 100%
src/shephex/study/table/littletable_table.py LittleTable.update_row_partially 6 0 0 100%
src/shephex/study/table/littletable_table.py LittleTable.where 1 0 0 100%
src/shephex/study/table/littletable_table.py (no function) 12 0 0 100%
src/shephex/where.py id_where 3 0 0 100%
src/shephex/where.py path_where 3 0 0 100%
src/shephex/where.py result_where 5 0 0 100%
src/shephex/where.py (no function) 7 0 0 100%
Total   1468 153 84 90%

No items found using the specified filter.