We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 727aded commit 748b5c1Copy full SHA for 748b5c1
3 files changed
bindings/python/src/implicit/representation/core/helpers.hpp
@@ -67,15 +67,14 @@ namespace geode
67
.def( "horizon_id_from_name_2d", &horizon_id_from_name< 2 > )
68
.def( "horizon_id_from_name_3d", &horizon_id_from_name< 3 > )
69
.def( "implicit_section_from_cross_section_scalar_field",
70
- []( CrossSection& model, std::string_view attribute_name ) {
+ []( CrossSection& model, const uuid& attribute_id ) {
71
return implicit_section_from_cross_section_scalar_field(
72
- model.clone(), attribute_name );
+ model.clone(), attribute_id );
73
} )
74
.def( "implicit_model_from_structural_model_scalar_field",
75
- []( StructuralModel& model,
76
- std::string_view attribute_name ) {
+ []( StructuralModel& model, const uuid& attribute_id ) {
77
return implicit_model_from_structural_model_scalar_field(
78
79
80
.def( "stratigraphic_model_from_implicit_model_and_coords",
81
[]( ImplicitStructuralModel& implicit_model,
bindings/python/tests/implicit/test-py-stratigraphic-section.py
@@ -43,9 +43,12 @@ def import_section_with_stratigraphy():
43
44
for surface in stratigraphic_section.surfaces():
45
mesh = surface.mesh()
46
- scalar_attribute = mesh.vertex_attribute_manager().find_attribute_double(
+ scalar_attributes = mesh.vertex_attribute_manager().attribute_ids_matching_name(
47
"curvature_min"
48
)
49
+ scalar_attribute = mesh.vertex_attribute_manager().find_read_only_attribute_double(
50
+ scalar_attributes[0]
51
+ )
52
for vertex_id in range(mesh.nb_vertices()):
53
model_builder.set_stratigraphic_coordinates(
54
surface,
tests/implicit/test-stratigraphic-model.cpp
@@ -259,14 +259,17 @@ int main()
259
{
260
geode::Logger::info( "Starting test" );
261
geode::OpenGeodeGeosciencesImplicitLibrary::initialize();
262
+ geode::Logger::set_level( geode::Logger::LEVEL::debug );
263
geode::StratigraphicModel model{ geode::load_structural_model(
264
absl::StrCat( geode::DATA_PATH, "vri2.og_strm" ) ) };
265
const geode::uuid block1_id{ "00000000-c271-42e7-8000-00002c3147ed" };
266
add_horizons_stack_to_model( model, block1_id );
267
test_model( model, block1_id );
268
geode::Logger::info( "Testing copy" );
269
test_copy( model, block1_id );
270
+ DEBUG( "Testing save stratigraphic surfaces" );
271
test_save_stratigraphic_surfaces( model );
272
+ DEBUG( "Testing IO" );
273
test_io( model, block1_id );
274
275
geode::Logger::info( "TEST SUCCESS" );
0 commit comments