LCOV - code coverage report
Current view: top level - python - variable_init.cpp (source / functions) Hit Total Coverage
Test: coverage.info Lines: 145 159 91.2 %
Date: 2024-11-24 01:48:31 Functions: 56 56 100.0 %

Function Name Sort by function name Hit count Sort by hit count
bind_init(pybind11::class_<scipp::variable::Variable>&) 3
(anonymous namespace)::n_remaining(pybind11::iterator const&) 2
(anonymous namespace)::MakeVariable<scipp::core::time_point>::apply(scipp::core::Dimensions const&, pybind11::object const&, pybind11::object const&, scipp::units::Unit) 613
(anonymous namespace)::MakeVariable<scipp::python::PyObject>::apply(scipp::core::Dimensions const&, pybind11::object const&, pybind11::object const&, scipp::units::Unit) 45
(anonymous namespace)::MakeVariable<scipp::dataset::Dataset>::apply(scipp::core::Dimensions const&, pybind11::object const&, pybind11::object const&, scipp::units::Unit) 8
(anonymous namespace)::MakeVariable<scipp::dataset::DataArray>::apply(scipp::core::Dimensions const&, pybind11::object const&, pybind11::object const&, scipp::units::Unit) 7
(anonymous namespace)::MakeVariable<scipp::variable::Variable>::apply(scipp::core::Dimensions const&, pybind11::object const&, pybind11::object const&, scipp::units::Unit) 22
(anonymous namespace)::MakeVariable<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::apply(scipp::core::Dimensions const&, pybind11::object const&, pybind11::object const&, scipp::units::Unit) 266
(anonymous namespace)::MakeVariable<bool>::apply(scipp::core::Dimensions const&, pybind11::object const&, pybind11::object const&, scipp::units::Unit) 775
(anonymous namespace)::MakeVariable<double>::apply(scipp::core::Dimensions const&, pybind11::object const&, pybind11::object const&, scipp::units::Unit) 25458
(anonymous namespace)::MakeVariable<float>::apply(scipp::core::Dimensions const&, pybind11::object const&, pybind11::object const&, scipp::units::Unit) 265
(anonymous namespace)::MakeVariable<int>::apply(scipp::core::Dimensions const&, pybind11::object const&, pybind11::object const&, scipp::units::Unit) 353
(anonymous namespace)::MakeVariable<long>::apply(scipp::core::Dimensions const&, pybind11::object const&, pybind11::object const&, scipp::units::Unit) 11889
(anonymous namespace)::make_variable(pybind11::object const&, pybind11::object const&, pybind11::object const&, std::optional<scipp::units::Unit> const&, scipp::core::DType) 39717
scipp::core::time_point (anonymous namespace)::extract_scalar<scipp::core::time_point>(pybind11::object const&, scipp::units::Unit) 331
scipp::python::PyObject (anonymous namespace)::extract_scalar<scipp::python::PyObject>(pybind11::object const&, scipp::units::Unit) 43
scipp::dataset::Dataset (anonymous namespace)::extract_scalar<scipp::dataset::Dataset>(pybind11::object const&, scipp::units::Unit) 8
scipp::dataset::DataArray (anonymous namespace)::extract_scalar<scipp::dataset::DataArray>(pybind11::object const&, scipp::units::Unit) 7
scipp::variable::Variable (anonymous namespace)::extract_scalar<scipp::variable::Variable>(pybind11::object const&, scipp::units::Unit) 22
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > (anonymous namespace)::extract_scalar<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(pybind11::object const&, scipp::units::Unit) 173
bool (anonymous namespace)::extract_scalar<bool>(pybind11::object const&, scipp::units::Unit) 133
double (anonymous namespace)::extract_scalar<double>(pybind11::object const&, scipp::units::Unit) 15706
float (anonymous namespace)::extract_scalar<float>(pybind11::object const&, scipp::units::Unit) 98
int (anonymous namespace)::extract_scalar<int>(pybind11::object const&, scipp::units::Unit) 64
long (anonymous namespace)::extract_scalar<long>(pybind11::object const&, scipp::units::Unit) 1796
(anonymous namespace)::build_dimensions(pybind11::object const&, pybind11::object const&, pybind11::object const&, long) 39851
(anonymous namespace)::ensure_is_scalar(pybind11::buffer const&) 2479
(anonymous namespace)::ensure_same_shape(pybind11::object const&, pybind11::object const&) 21748
auto (anonymous namespace)::make_element_array<scipp::core::time_point>(scipp::core::Dimensions const&, pybind11::object const&, scipp::units::Unit) 612
auto (anonymous namespace)::make_element_array<scipp::python::PyObject>(scipp::core::Dimensions const&, pybind11::object const&, scipp::units::Unit) 45
auto (anonymous namespace)::make_element_array<scipp::dataset::Dataset>(scipp::core::Dimensions const&, pybind11::object const&, scipp::units::Unit) 8
auto (anonymous namespace)::make_element_array<scipp::dataset::DataArray>(scipp::core::Dimensions const&, pybind11::object const&, scipp::units::Unit) 7
auto (anonymous namespace)::make_element_array<scipp::variable::Variable>(scipp::core::Dimensions const&, pybind11::object const&, scipp::units::Unit) 23
auto (anonymous namespace)::make_element_array<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(scipp::core::Dimensions const&, pybind11::object const&, scipp::units::Unit) 267
auto (anonymous namespace)::make_element_array<bool>(scipp::core::Dimensions const&, pybind11::object const&, scipp::units::Unit) 776
auto (anonymous namespace)::make_element_array<double>(scipp::core::Dimensions const&, pybind11::object const&, scipp::units::Unit) 26326
auto (anonymous namespace)::make_element_array<float>(scipp::core::Dimensions const&, pybind11::object const&, scipp::units::Unit) 331
auto (anonymous namespace)::make_element_array<int>(scipp::core::Dimensions const&, pybind11::object const&, scipp::units::Unit) 353
auto (anonymous namespace)::make_element_array<long>(scipp::core::Dimensions const&, pybind11::object const&, scipp::units::Unit) 11890
(anonymous namespace)::parse_data_sequence(pybind11::object const&, pybind11::object const&) 79434
scipp::variable::Variable (anonymous namespace)::make_structured_variable<Eigen::Matrix<double, 3, 1, 0, 3, 1>, double, 3>(pybind11::object const&, pybind11::object const&, pybind11::object const&, std::optional<scipp::units::Unit> const&) 86
scipp::variable::Variable (anonymous namespace)::make_structured_variable<Eigen::Matrix<double, 3, 3, 0, 3, 3>, double, 3, 3>(pybind11::object const&, pybind11::object const&, pybind11::object const&, std::optional<scipp::units::Unit> const&) 29
scipp::variable::Variable (anonymous namespace)::make_structured_variable<Eigen::Transform<double, 3, 2, 0>, double, 4, 4>(pybind11::object const&, pybind11::object const&, pybind11::object const&, std::optional<scipp::units::Unit> const&) 10
scipp::variable::Variable (anonymous namespace)::make_structured_variable<scipp::core::Quaternion, double, 4>(pybind11::object const&, pybind11::object const&, pybind11::object const&, std::optional<scipp::units::Unit> const&) 15
scipp::variable::Variable (anonymous namespace)::make_structured_variable<scipp::core::Translation, double, 3>(pybind11::object const&, pybind11::object const&, pybind11::object const&, std::optional<scipp::units::Unit> const&) 9
scipp::core::Dimensions (anonymous namespace)::pad_structure_dimensions<3>(scipp::core::Dimensions) 95
scipp::core::Dimensions (anonymous namespace)::pad_structure_dimensions<3, 3>(scipp::core::Dimensions) 29
scipp::core::Dimensions (anonymous namespace)::pad_structure_dimensions<4>(scipp::core::Dimensions) 15
scipp::core::Dimensions (anonymous namespace)::pad_structure_dimensions<4, 4>(scipp::core::Dimensions) 10
(anonymous namespace)::throw_ndim_mismatch_error(long, std::basic_string_view<char, std::char_traits<char> >, long, std::basic_string_view<char, std::char_traits<char> >) 1
(anonymous namespace)::detail::build_dimensions(pybind11::iterator&&, pybind11::iterator&&, long, std::basic_string_view<char, std::char_traits<char> >) 21760
(anonymous namespace)::detail::consume_extra_dims(pybind11::iterator&, long) 21760
(anonymous namespace)::is_empty(pybind11::object const&) 119285
(anonymous namespace)::shape_of(pybind11::object const&) 22546
bind_init(pybind11::class_<scipp::variable::Variable>&)::{lambda(pybind11::object const&, pybind11::object const&, pybind11::object const&, std::variant<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, scipp::units::Unit, pybind11::none, DefaultUnit>, pybind11::object const&, bool)#1}::operator()(pybind11::object const&, pybind11::object const&, pybind11::object const&, std::variant<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, scipp::units::Unit, pybind11::none, DefaultUnit>, pybind11::object const&, bool) const 39958
bind_init(pybind11::class_<scipp::variable::Variable>&)::{lambda(pybind11::object const&, pybind11::object const&, pybind11::object const&, std::variant<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, scipp::units::Unit, pybind11::none, DefaultUnit>, pybind11::object const&, bool)#1}::operator()(pybind11::object const&, pybind11::object const&, pybind11::object const&, std::variant<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, scipp::units::Unit, pybind11::none, DefaultUnit>, pybind11::object const&, bool) const::{lambda()#1}::operator()() const 39866

Generated by: LCOV version 1.14