Coverage report: 27.00%

Files Functions Classes

coverage.py v7.6.1, created at 2025-07-24 10:14 +1000

File function statements missing excluded branches partial coverage
src/efts_io/_internals.py create_data_variable 12 12 0 4 0 0.00%
src/efts_io/_internals.py (no function) 4 0 0 0 0 100.00%
src/efts_io/_ncdf_stf2.py _create_cf_time_axis 18 18 0 5 0 0.00%
src/efts_io/_ncdf_stf2.py write_nc_stf2 156 156 0 44 0 0.00%
src/efts_io/_ncdf_stf2.py write_nc_stf2._check_optional_var_attr 3 3 0 2 0 0.00%
src/efts_io/_ncdf_stf2.py write_nc_stf2.add_optional_variables 7 7 0 4 0 0.00%
src/efts_io/_ncdf_stf2.py (no function) 22 0 0 0 0 100.00%
src/efts_io/attributes.py create_var_attribute_definition 1 1 0 0 0 0.00%
src/efts_io/attributes.py create_global_attributes 3 3 0 2 0 0.00%
src/efts_io/attributes.py (no function) 3 0 0 0 0 100.00%
src/efts_io/cli.py _DebugInfo.__init__ 1 1 0 0 0 0.00%
src/efts_io/cli.py _DebugInfo.__call__ 2 2 0 0 0 0.00%
src/efts_io/cli.py get_parser 4 4 0 0 0 0.00%
src/efts_io/cli.py main 4 4 0 0 0 0.00%
src/efts_io/cli.py (no function) 10 0 0 0 0 100.00%
src/efts_io/conventions.py get_default_dim_order 1 1 0 0 0 0.00%
src/efts_io/conventions.py check_index_found 2 2 0 2 0 0.00%
src/efts_io/conventions.py _is_nc_dataset 1 1 0 0 0 0.00%
src/efts_io/conventions.py _is_nc_variable 1 1 0 0 0 0.00%
src/efts_io/conventions.py _is_ncdf4_withattrs 1 1 0 0 0 0.00%
src/efts_io/conventions.py _has_required_dimensions 8 8 0 4 0 0.00%
src/efts_io/conventions.py has_required_stf2_dimensions 2 2 0 0 0 0.00%
src/efts_io/conventions.py has_required_xarray_dimensions 1 1 0 0 0 0.00%
src/efts_io/conventions.py _has_all_members 2 2 0 0 0 0.00%
src/efts_io/conventions.py has_required_global_attributes 6 6 0 2 0 0.00%
src/efts_io/conventions.py has_required_variables_xr 3 3 0 0 0 0.00%
src/efts_io/conventions.py has_variable 3 3 0 0 0 0.00%
src/efts_io/conventions.py check_stf_compliance 31 31 0 20 0 0.00%
src/efts_io/conventions.py _is_structural_varname 1 1 0 0 0 0.00%
src/efts_io/conventions.py _is_known_hydro_varname 1 1 0 0 0 0.00%
src/efts_io/conventions.py _is_observation_variable 1 1 0 0 0 0.00%
src/efts_io/conventions.py _is_simulation_variable 1 1 0 0 0 0.00%
src/efts_io/conventions.py _is_quality_variable 1 1 0 0 0 0.00%
src/efts_io/conventions.py _extract_var_type 7 7 0 6 0 0.00%
src/efts_io/conventions.py _check_variable_attributes_obs 3 3 0 0 0 0.00%
src/efts_io/conventions.py _check_variable_attributes_sim 3 3 0 0 0 0.00%
src/efts_io/conventions.py _check_variable_attributes_qul 3 3 0 0 0 0.00%
src/efts_io/conventions.py _check_attrs_ncdataset 9 9 0 8 0 0.00%
src/efts_io/conventions.py _check_attrs_xr 9 9 0 8 0 0.00%
src/efts_io/conventions.py _check_attrs 3 3 0 2 0 0.00%
src/efts_io/conventions.py _check_variable_attributes 8 8 0 6 0 0.00%
src/efts_io/conventions.py check_hydrologic_variables 17 17 0 10 0 0.00%
src/efts_io/conventions.py check_optional_variable_attributes 3 3 0 0 0 0.00%
src/efts_io/conventions.py convert_to_datetime64_utc 13 13 0 10 0 0.00%
src/efts_io/conventions.py exportable_to_stf2 5 5 0 0 0 0.00%
src/efts_io/conventions.py (no function) 93 0 0 8 0 100.00%
src/efts_io/debug.py _interpreter_name_version 8 8 0 4 0 0.00%
src/efts_io/debug.py get_version 4 4 0 0 0 0.00%
src/efts_io/debug.py get_debug_info 4 4 0 0 0 0.00%
src/efts_io/debug.py print_debug_info 9 9 0 4 0 0.00%
src/efts_io/debug.py (no function) 38 1 0 8 1 95.65%
src/efts_io/dimensions.py iso_date_time_str 1 1 0 0 0 0.00%
src/efts_io/dimensions.py check_is_utc 6 6 0 2 0 0.00%
src/efts_io/dimensions.py create_netcdf_time_axis 5 5 0 4 0 0.00%
src/efts_io/dimensions.py as_naive_timestamp 1 1 0 0 0 0.00%
src/efts_io/dimensions.py create_time_info 1 1 0 0 0 0.00%
src/efts_io/dimensions.py _cftime_to_pdtstamp 1 1 0 0 0 0.00%
src/efts_io/dimensions.py cftimes_to_pdtstamps 1 1 0 0 0 0.00%
src/efts_io/dimensions.py create_timestamps 8 8 0 0 0 0.00%
src/efts_io/dimensions.py _create_nc_dims 6 6 0 0 0 0.00%
src/efts_io/dimensions.py (no function) 16 0 0 0 0 100.00%
src/efts_io/helpers.py get_sample_data_path 2 2 0 2 0 0.00%
src/efts_io/helpers.py derived_rainfall_tas 2 2 0 0 0 0.00%
src/efts_io/helpers.py (no function) 3 3 0 0 0 0.00%
src/efts_io/variables.py create_variable_definition 3 3 0 2 0 0.00%
src/efts_io/variables.py default_optional_variable_definitions_v2_0 1 1 0 0 0 0.00%
src/efts_io/variables.py create_variable_definitions 7 7 0 2 0 0.00%
src/efts_io/variables.py create_variable_definitions.dataframe_to_dict 3 3 0 2 0 0.00%
src/efts_io/variables.py create_variable_definitions.f 1 1 0 0 0 0.00%
src/efts_io/variables.py create_mandatory_vardefs 7 7 0 0 0 0.00%
src/efts_io/variables.py create_optional_vardefs 4 4 0 4 0 0.00%
src/efts_io/variables.py create_optional_vardefs.f 1 1 0 0 0 0.00%
src/efts_io/variables.py create_efts_variables 19 19 0 4 0 0.00%
src/efts_io/variables.py empty_data_variables 1 1 0 0 0 0.00%
src/efts_io/variables.py (no function) 15 0 0 0 0 100.00%
src/efts_io/wrapper.py byte_to_string 7 7 0 6 0 0.00%
src/efts_io/wrapper.py byte_array_to_string 2 2 0 0 0 0.00%
src/efts_io/wrapper.py byte_stations_to_str 1 1 0 0 0 0.00%
src/efts_io/wrapper.py _first_where 4 4 0 2 0 0.00%
src/efts_io/wrapper.py load_from_stf2_file 24 24 0 10 0 0.00%
src/efts_io/wrapper.py EftsDataSet.__init__ 12 12 0 2 0 0.00%
src/efts_io/wrapper.py EftsDataSet.title 1 1 0 0 0 0.00%
src/efts_io/wrapper.py EftsDataSet.title 1 1 0 0 0 0.00%
src/efts_io/wrapper.py EftsDataSet.institution 1 1 0 0 0 0.00%
src/efts_io/wrapper.py EftsDataSet.institution 1 1 0 0 0 0.00%
src/efts_io/wrapper.py EftsDataSet.source 1 1 0 0 0 0.00%
src/efts_io/wrapper.py EftsDataSet.source 1 1 0 0 0 0.00%
src/efts_io/wrapper.py EftsDataSet.catchment 1 1 0 0 0 0.00%
src/efts_io/wrapper.py EftsDataSet.catchment 1 1 0 0 0 0.00%
src/efts_io/wrapper.py EftsDataSet.stf_convention_version 1 1 0 0 0 0.00%
src/efts_io/wrapper.py EftsDataSet.stf_convention_version 1 1 0 0 0 0.00%
src/efts_io/wrapper.py EftsDataSet.stf_nc_spec 1 1 0 0 0 0.00%
src/efts_io/wrapper.py EftsDataSet.stf_nc_spec 1 1 0 0 0 0.00%
src/efts_io/wrapper.py EftsDataSet.comment 1 1 0 0 0 0.00%
src/efts_io/wrapper.py EftsDataSet.comment 1 1 0 0 0 0.00%
src/efts_io/wrapper.py EftsDataSet.history 1 1 0 0 0 0.00%
src/efts_io/wrapper.py EftsDataSet.history 1 1 0 0 0 0.00%
src/efts_io/wrapper.py EftsDataSet.append_history 6 6 0 4 0 0.00%
src/efts_io/wrapper.py EftsDataSet.to_netcdf 5 5 0 4 0 0.00%
src/efts_io/wrapper.py EftsDataSet.set_mandatory_global_attributes 10 10 0 2 0 0.00%
src/efts_io/wrapper.py EftsDataSet.writeable_to_stf2 2 2 0 0 0 0.00%
src/efts_io/wrapper.py EftsDataSet.save_to_stf2 7 7 0 4 0 0.00%
src/efts_io/wrapper.py EftsDataSet.create_data_variables 13 13 0 10 0 0.00%
src/efts_io/wrapper.py EftsDataSet.get_all_series 1 1 0 0 0 0.00%
src/efts_io/wrapper.py EftsDataSet.get_dim_names 1 1 0 0 0 0.00%
src/efts_io/wrapper.py EftsDataSet.get_ensemble_for_stations 1 1 0 0 0 0.00%
src/efts_io/wrapper.py EftsDataSet.get_ensemble_forecasts 7 7 0 4 0 0.00%
src/efts_io/wrapper.py EftsDataSet._dim_size 1 1 0 0 0 0.00%
src/efts_io/wrapper.py EftsDataSet.get_ensemble_size 1 1 0 0 0 0.00%
src/efts_io/wrapper.py EftsDataSet.get_lead_time_count 1 1 0 0 0 0.00%
src/efts_io/wrapper.py EftsDataSet.get_lead_time_values 1 1 0 0 0 0.00%
src/efts_io/wrapper.py EftsDataSet.put_lead_time_values 1 1 0 0 0 0.00%
src/efts_io/wrapper.py EftsDataSet.get_single_series 3 3 0 2 0 0.00%
src/efts_io/wrapper.py EftsDataSet.get_station_count 1 1 0 0 0 0.00%
src/efts_io/wrapper.py EftsDataSet.get_stations_varname 1 1 0 0 0 0.00%
src/efts_io/wrapper.py EftsDataSet.get_time_dim 1 1 0 0 0 0.00%
src/efts_io/wrapper.py open_efts 1 1 0 0 0 0.00%
src/efts_io/wrapper.py nan_full 3 3 0 2 0 0.00%
src/efts_io/wrapper.py xr_efts 21 21 0 2 0 0.00%
src/efts_io/wrapper.py _stf2_mandatory_global_attributes 1 1 0 0 0 0.00%
src/efts_io/wrapper.py create_efts 23 23 0 8 0 0.00%
src/efts_io/wrapper.py create_efts.add_dim_attribute 1 1 0 0 0 0.00%
src/efts_io/wrapper.py (no function) 73 0 0 32 0 100.00%
tests/conftest.py (no function) 0 0 0 0 0 100.00%
tests/test_cli.py test_main 1 1 0 0 0 0.00%
tests/test_cli.py test_show_help 4 4 0 2 0 0.00%
tests/test_cli.py test_show_version 4 4 0 2 0 0.00%
tests/test_cli.py test_show_debug_info 7 7 0 2 0 0.00%
tests/test_cli.py (no function) 7 0 0 0 0 100.00%
tests/test_create.py test_create_new_efts 13 13 0 0 0 0.00%
tests/test_create.py test_create_new_efts._create_test_ds 2 2 0 0 0 0.00%
tests/test_create.py (no function) 6 1 0 2 1 75.00%
tests/test_read_file.py dhours 1 1 0 0 0 0.00%
tests/test_read_file.py ddays 1 1 0 0 0 0.00%
tests/test_read_file.py test_read_thing 8 8 0 0 0 0.00%
tests/test_read_file.py _do_time_axis_test 4 4 0 0 0 0.00%
tests/test_read_file.py test_time_axis 5 5 0 2 0 0.00%
tests/test_read_file.py doTests 41 41 0 4 0 0.00%
tests/test_read_file.py test_round_trip 9 9 0 2 0 0.00%
tests/test_read_file.py (no function) 34 1 0 6 1 95.00%
tests/test_time_axis.py test_create_cf_time_axis_valid_input 7 7 0 0 0 0.00%
tests/test_time_axis.py test_create_cf_time_axis_empty_data 3 3 0 2 0 0.00%
tests/test_time_axis.py test_create_cf_time_axis_invalid_time_type 3 3 0 2 0 0.00%
tests/test_time_axis.py test_convert_to_datetime64_utc 16 16 0 0 0 0.00%
tests/test_time_axis.py (no function) 15 3 0 2 1 76.47%
Total   1115 785 0 307 4 27.00%

No items found using the specified filter.