Skip to content

Commit

Permalink
try fix python tests
Browse files Browse the repository at this point in the history
  • Loading branch information
francoisbonneau committed Jan 12, 2024
1 parent 9bbecea commit b3911eb
Show file tree
Hide file tree
Showing 20 changed files with 531 additions and 931 deletions.
32 changes: 25 additions & 7 deletions bindings/python/src/inspector/information.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,32 @@

namespace geode
{
template < typename ProblemType >
void do_define_information(
pybind11::module& module, const std::string& typestr )
{
using InspectionIssues = geode::InspectionIssues< ProblemType >;
const auto name = absl::StrCat( "InspectionIssues", typestr );
pybind11::class_< InspectionIssues >( module, name.c_str() )
.def_readwrite( "description", &InspectionIssues::description )
.def_readwrite( "problems", &InspectionIssues::problems )
.def_readwrite( "messages", &InspectionIssues::messages )
.def( "number", &InspectionIssues::number )
.def( "string", &InspectionIssues::string );
}
void define_information( pybind11::module& module )
{
// pybind11::class_< InspectionIssues >( module, "InspectionIssues" )
// // .def( pybind11::init<>() )
// .def_readwrite( "description", &InspectionIssues::description )
// .def_readwrite( "problems", &InspectionIssues::problems )
// .def_readwrite( "messages", &InspectionIssues::messages )
// .def( "number", &InspectionIssues::number )
// .def( "string", &InspectionIssues::string );
do_define_information< index_t >( module, "Index" );
do_define_information< std::vector< index_t > >(
module, "VectorIndex" );
do_define_information< PolyhedronFacet >( module, "PolyhedronFacet" );
do_define_information< std::array< index_t, 2 > >(
module, "ArrayIndex2" );
do_define_information< PolyhedronFacetVertices >(
module, "PolyhedronFacetVertices" );
do_define_information< PolygonEdge >( module, "PolygonEdge" );
do_define_information< std::pair< index_t, index_t > >(
module, "PairIndex" );
do_define_information< uuid >( module, "UUID" );
}
} // namespace geode
154 changes: 77 additions & 77 deletions bindings/python/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,80 +18,80 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

# add_geode_python_test(
# SOURCE "test-py-brep.py"
# DEPENDENCIES
# ${PROJECT_NAME}::py_inspector
# )
#
# add_geode_python_test(
# SOURCE "test-py-section.py"
# DEPENDENCIES
# ${PROJECT_NAME}::py_inspector
# )
#
# add_geode_python_test(
# SOURCE "test-py-edgedcurve-colocation.py"
# DEPENDENCIES
# ${PROJECT_NAME}::py_inspector
# )
#
# add_geode_python_test(
# SOURCE "test-py-edgedcurve-degeneration.py"
# DEPENDENCIES
# ${PROJECT_NAME}::py_inspector
# )
#
# add_geode_python_test(
# SOURCE "test-py-pointset-colocation.py"
# DEPENDENCIES
# ${PROJECT_NAME}::py_inspector
# )
#
# add_geode_python_test(
# SOURCE "test-py-solid-colocation.py"
# DEPENDENCIES
# ${PROJECT_NAME}::py_inspector
# )
#
# add_geode_python_test(
# SOURCE "test-py-solid-degeneration.py"
# DEPENDENCIES
# ${PROJECT_NAME}::py_inspector
# )
#
# add_geode_python_test(
# SOURCE "test-py-surface-adjacency.py"
# DEPENDENCIES
# ${PROJECT_NAME}::py_inspector
# )
#
# add_geode_python_test(
# SOURCE "test-py-surface-colocation.py"
# DEPENDENCIES
# ${PROJECT_NAME}::py_inspector
# )
#
# add_geode_python_test(
# SOURCE "test-py-surface-degeneration.py"
# DEPENDENCIES
# ${PROJECT_NAME}::py_inspector
# )
#
# add_geode_python_test(
# SOURCE "test-py-surface-intersections.py"
# DEPENDENCIES
# ${PROJECT_NAME}::py_inspector
# )
#
# add_geode_python_test(
# SOURCE "test-py-surface-curve-intersections.py"
# DEPENDENCIES
# ${PROJECT_NAME}::py_inspector
# )
#
# add_geode_python_test(
# SOURCE "test-py-surface-manifold.py"
# DEPENDENCIES
# ${PROJECT_NAME}::py_inspector
# )
add_geode_python_test(
SOURCE "test-py-brep.py"
DEPENDENCIES
${PROJECT_NAME}::py_inspector
)

add_geode_python_test(
SOURCE "test-py-section.py"
DEPENDENCIES
${PROJECT_NAME}::py_inspector
)

add_geode_python_test(
SOURCE "test-py-edgedcurve-colocation.py"
DEPENDENCIES
${PROJECT_NAME}::py_inspector
)

add_geode_python_test(
SOURCE "test-py-edgedcurve-degeneration.py"
DEPENDENCIES
${PROJECT_NAME}::py_inspector
)

add_geode_python_test(
SOURCE "test-py-pointset-colocation.py"
DEPENDENCIES
${PROJECT_NAME}::py_inspector
)

add_geode_python_test(
SOURCE "test-py-solid-colocation.py"
DEPENDENCIES
${PROJECT_NAME}::py_inspector
)

add_geode_python_test(
SOURCE "test-py-solid-degeneration.py"
DEPENDENCIES
${PROJECT_NAME}::py_inspector
)

add_geode_python_test(
SOURCE "test-py-surface-adjacency.py"
DEPENDENCIES
${PROJECT_NAME}::py_inspector
)

add_geode_python_test(
SOURCE "test-py-surface-colocation.py"
DEPENDENCIES
${PROJECT_NAME}::py_inspector
)

add_geode_python_test(
SOURCE "test-py-surface-degeneration.py"
DEPENDENCIES
${PROJECT_NAME}::py_inspector
)

add_geode_python_test(
SOURCE "test-py-surface-intersections.py"
DEPENDENCIES
${PROJECT_NAME}::py_inspector
)

add_geode_python_test(
SOURCE "test-py-surface-curve-intersections.py"
DEPENDENCIES
${PROJECT_NAME}::py_inspector
)

add_geode_python_test(
SOURCE "test-py-surface-manifold.py"
DEPENDENCIES
${PROJECT_NAME}::py_inspector
)
Loading

0 comments on commit b3911eb

Please sign in to comment.