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
(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)::n_remaining(pybind11::iterator const&) 2
bind_init(pybind11::class_<scipp::variable::Variable>&) 3
(anonymous namespace)::MakeVariable<scipp::dataset::DataArray>::apply(scipp::core::Dimensions const&, pybind11::object const&, pybind11::object const&, scipp::units::Unit) 7
scipp::dataset::DataArray (anonymous namespace)::extract_scalar<scipp::dataset::DataArray>(pybind11::object const&, scipp::units::Unit) 7
auto (anonymous namespace)::make_element_array<scipp::dataset::DataArray>(scipp::core::Dimensions const&, pybind11::object const&, scipp::units::Unit) 7
(anonymous namespace)::MakeVariable<scipp::dataset::Dataset>::apply(scipp::core::Dimensions const&, pybind11::object const&, pybind11::object const&, scipp::units::Unit) 8
scipp::dataset::Dataset (anonymous namespace)::extract_scalar<scipp::dataset::Dataset>(pybind11::object const&, scipp::units::Unit) 8
auto (anonymous namespace)::make_element_array<scipp::dataset::Dataset>(scipp::core::Dimensions const&, pybind11::object const&, scipp::units::Unit) 8
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::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::core::Dimensions (anonymous namespace)::pad_structure_dimensions<4, 4>(scipp::core::Dimensions) 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::core::Dimensions (anonymous namespace)::pad_structure_dimensions<4>(scipp::core::Dimensions) 15
(anonymous namespace)::MakeVariable<scipp::variable::Variable>::apply(scipp::core::Dimensions const&, pybind11::object const&, pybind11::object const&, scipp::units::Unit) 22
scipp::variable::Variable (anonymous namespace)::extract_scalar<scipp::variable::Variable>(pybind11::object const&, scipp::units::Unit) 22
auto (anonymous namespace)::make_element_array<scipp::variable::Variable>(scipp::core::Dimensions const&, pybind11::object const&, scipp::units::Unit) 23
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::core::Dimensions (anonymous namespace)::pad_structure_dimensions<3, 3>(scipp::core::Dimensions) 29
scipp::python::PyObject (anonymous namespace)::extract_scalar<scipp::python::PyObject>(pybind11::object const&, scipp::units::Unit) 43
(anonymous namespace)::MakeVariable<scipp::python::PyObject>::apply(scipp::core::Dimensions const&, pybind11::object const&, pybind11::object const&, scipp::units::Unit) 45
auto (anonymous namespace)::make_element_array<scipp::python::PyObject>(scipp::core::Dimensions const&, pybind11::object const&, scipp::units::Unit) 45
int (anonymous namespace)::extract_scalar<int>(pybind11::object const&, scipp::units::Unit) 64
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::core::Dimensions (anonymous namespace)::pad_structure_dimensions<3>(scipp::core::Dimensions) 95
float (anonymous namespace)::extract_scalar<float>(pybind11::object const&, scipp::units::Unit) 98
bool (anonymous namespace)::extract_scalar<bool>(pybind11::object const&, scipp::units::Unit) 133
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
(anonymous namespace)::MakeVariable<float>::apply(scipp::core::Dimensions const&, pybind11::object const&, pybind11::object const&, scipp::units::Unit) 265
(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
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
scipp::core::time_point (anonymous namespace)::extract_scalar<scipp::core::time_point>(pybind11::object const&, scipp::units::Unit) 331
auto (anonymous namespace)::make_element_array<float>(scipp::core::Dimensions const&, pybind11::object const&, scipp::units::Unit) 331
(anonymous namespace)::MakeVariable<int>::apply(scipp::core::Dimensions const&, pybind11::object const&, pybind11::object const&, scipp::units::Unit) 353
auto (anonymous namespace)::make_element_array<int>(scipp::core::Dimensions const&, pybind11::object const&, scipp::units::Unit) 353
auto (anonymous namespace)::make_element_array<scipp::core::time_point>(scipp::core::Dimensions const&, pybind11::object const&, scipp::units::Unit) 612
(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<bool>::apply(scipp::core::Dimensions const&, pybind11::object const&, pybind11::object const&, scipp::units::Unit) 775
auto (anonymous namespace)::make_element_array<bool>(scipp::core::Dimensions const&, pybind11::object const&, scipp::units::Unit) 776
long (anonymous namespace)::extract_scalar<long>(pybind11::object const&, scipp::units::Unit) 1796
(anonymous namespace)::ensure_is_scalar(pybind11::buffer const&) 2479
(anonymous namespace)::MakeVariable<long>::apply(scipp::core::Dimensions const&, pybind11::object const&, pybind11::object const&, scipp::units::Unit) 11889
auto (anonymous namespace)::make_element_array<long>(scipp::core::Dimensions const&, pybind11::object const&, scipp::units::Unit) 11890
double (anonymous namespace)::extract_scalar<double>(pybind11::object const&, scipp::units::Unit) 15706
(anonymous namespace)::ensure_same_shape(pybind11::object const&, pybind11::object const&) 21748
(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)::shape_of(pybind11::object const&) 22546
(anonymous namespace)::MakeVariable<double>::apply(scipp::core::Dimensions const&, pybind11::object const&, pybind11::object const&, scipp::units::Unit) 25458
auto (anonymous namespace)::make_element_array<double>(scipp::core::Dimensions const&, pybind11::object const&, scipp::units::Unit) 26326
(anonymous namespace)::make_variable(pybind11::object const&, pybind11::object const&, pybind11::object const&, std::optional<scipp::units::Unit> const&, scipp::core::DType) 39717
(anonymous namespace)::build_dimensions(pybind11::object const&, pybind11::object const&, pybind11::object const&, long) 39851
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
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
(anonymous namespace)::parse_data_sequence(pybind11::object const&, pybind11::object const&) 79434
(anonymous namespace)::is_empty(pybind11::object const&) 119285

Generated by: LCOV version 1.14