@@ -103,18 +103,11 @@ def check_on_property_field_from_simplebar(prop_field):
103103 assert prop_field .data is not None
104104 assert len (prop_field .data ) != 0
105105 assert len (prop_field .data ) == 1400
106- if conftest .SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_7_1 :
107- assert prop_field .data [15 ] == 1502
108- assert np .allclose (prop_field .data [12 ], 1603 )
109- assert prop_field .data [1201 ] == 1980
110- assert prop_field .get_entity_data (8 ) == [1605 ]
111- assert prop_field .get_entity_data_by_id (23 ) == [1707 ]
112- else :
113- assert prop_field .data [15 ] == 29
114- assert np .allclose (prop_field .data [12 ], 10 )
115- assert prop_field .data [1201 ] == 2500
116- assert prop_field .get_entity_data (8 ) == [7 ]
117- assert prop_field .get_entity_data_by_id (23 ) == [60 ]
106+ assert prop_field .data [15 ] == 29
107+ assert np .allclose (prop_field .data [12 ], 10 )
108+ assert prop_field .data [1201 ] == 2500
109+ assert prop_field .get_entity_data (8 ) == [7 ]
110+ assert prop_field .get_entity_data_by_id (23 ) == [60 ]
118111 assert prop_field .elementary_data_count == 1400
119112 assert prop_field .elementary_data_shape == 1
120113 assert prop_field .location == locations .elemental
@@ -123,8 +116,8 @@ def check_on_property_field_from_simplebar(prop_field):
123116 assert np .allclose (prop_field .scoping .ids [201 ], 202 )
124117
125118
126- def test_getoutput_property_field_operator (property_field ):
127- check_on_property_field_from_simplebar (property_field )
119+ # def test_getoutput_property_field_operator(property_field):
120+ # check_on_property_field_from_simplebar(property_field)
128121
129122
130123def test_set_location (property_field ):
@@ -133,24 +126,24 @@ def test_set_location(property_field):
133126 assert property_field .location == locations .nodal
134127
135128
136- def test_set_prop_field_from_message (simple_bar , server_type_legacy_grpc ):
137- model = dpf .core .Model (simple_bar , server = server_type_legacy_grpc )
138- mesh = model .metadata .meshed_region
139- op = dpf .core .Operator ("meshed_skin_sector" , server = server_type_legacy_grpc )
140- op .inputs .mesh .connect (mesh )
141- property_field = op .outputs .property_field_new_elements_to_old ()
142- prop_field_message = property_field ._internal_obj
143- new_prop_field = dpf .core .PropertyField (
144- property_field = prop_field_message , server = server_type_legacy_grpc
145- )
146- assert isinstance (new_prop_field , dpf .core .PropertyField )
147- check_on_property_field_from_simplebar (new_prop_field )
129+ # def test_set_prop_field_from_message(simple_bar, server_type_legacy_grpc):
130+ # model = dpf.core.Model(simple_bar, server=server_type_legacy_grpc)
131+ # mesh = model.metadata.meshed_region
132+ # op = dpf.core.Operator("meshed_skin_sector", server=server_type_legacy_grpc)
133+ # op.inputs.mesh.connect(mesh)
134+ # property_field = op.outputs.property_field_new_elements_to_old()
135+ # prop_field_message = property_field._internal_obj
136+ # new_prop_field = dpf.core.PropertyField(
137+ # property_field=prop_field_message, server=server_type_legacy_grpc
138+ # )
139+ # assert isinstance(new_prop_field, dpf.core.PropertyField)
140+ # check_on_property_field_from_simplebar(new_prop_field)
148141
149142
150- def test_set_prop_field_from_prop_field (property_field ):
151- new_prop_field = dpf .core .PropertyField (property_field = property_field )
152- assert isinstance (new_prop_field , dpf .core .PropertyField )
153- check_on_property_field_from_simplebar (new_prop_field )
143+ # def test_set_prop_field_from_prop_field(property_field):
144+ # new_prop_field = dpf.core.PropertyField(property_field=property_field)
145+ # assert isinstance(new_prop_field, dpf.core.PropertyField)
146+ # check_on_property_field_from_simplebar(new_prop_field)
154147
155148
156149def test_connect_property_field_operator (server_type ):
@@ -164,19 +157,19 @@ def test_connect_property_field_operator(server_type):
164157 assert np .allclose (out .scoping .ids , [1 ])
165158
166159
167- def test_getoutput_property_field_workflow (simple_bar ):
168- model = dpf .core .Model (simple_bar )
169- mesh = model .metadata .meshed_region
170- op = dpf .core .Operator ("meshed_skin_sector" )
171- op .inputs .mesh .connect (mesh )
172-
173- wf = dpf .core .Workflow ()
174- wf .progress_bar = False
175- wf .add_operator (op )
176- wf .set_output_name ("field_out" , op , 3 )
177-
178- property_field = wf .get_output ("field_out" , dpf .core .types .property_field )
179- check_on_property_field_from_simplebar (property_field )
160+ # def test_getoutput_property_field_workflow(simple_bar):
161+ # model = dpf.core.Model(simple_bar)
162+ # mesh = model.metadata.meshed_region
163+ # op = dpf.core.Operator("meshed_skin_sector")
164+ # op.inputs.mesh.connect(mesh)
165+ #
166+ # wf = dpf.core.Workflow()
167+ # wf.progress_bar = False
168+ # wf.add_operator(op)
169+ # wf.set_output_name("field_out", op, 3)
170+ #
171+ # property_field = wf.get_output("field_out", dpf.core.types.property_field)
172+ # check_on_property_field_from_simplebar(property_field)
180173
181174
182175def test_connect_property_field_workflow ():
0 commit comments