@@ -1158,3 +1158,228 @@ def test_get_not_converted_ftm_earth_model(ftm_project):
1158
1158
for idx , layer in enumerate (layers ):
1159
1159
# Must be changed when public method with layer tvd is available
1160
1160
assert np_is_close (layers_data [idx ]['tvt' ], layer .tvt )
1161
+
1162
+
1163
+ def test_get_converted_meter_well_attributes (project ):
1164
+ well = project .wells .find_by_name (WELL_NAME )
1165
+ assert well is not None
1166
+
1167
+ well_data = well .to_dict ()
1168
+ assert well_data
1169
+
1170
+ attributes = well .attributes
1171
+ assert attributes is not None
1172
+
1173
+ attributes_data = attributes .to_dict ()
1174
+ assert attributes_data
1175
+
1176
+ assert np_is_close (well_data ['kb' ], attributes_data ['KB' ])
1177
+ assert np_is_close (well_data ['azimuth' ], attributes_data ['Azimuth VS' ])
1178
+ assert np_is_close (well_data ['convergence' ], attributes_data ['Convergence' ])
1179
+ assert np_is_close (well_data ['xsrf_real' ], attributes_data ['X-srf' ])
1180
+ assert np_is_close (well_data ['ysrf_real' ], attributes_data ['Y-srf' ])
1181
+
1182
+
1183
+ def test_get_not_converted_meter_well_attributes (project ):
1184
+ well = project .wells .find_by_name (WELL_NAME )
1185
+ assert well is not None
1186
+
1187
+ well_data = well .to_dict (get_converted = False )
1188
+ assert well_data
1189
+
1190
+ attributes = well .attributes
1191
+ assert attributes is not None
1192
+
1193
+ attributes_data = attributes .to_dict (get_converted = False )
1194
+ assert attributes_data
1195
+
1196
+ assert np_is_close (well_data ['kb' ], attributes_data ['KB' ])
1197
+ assert np_is_close (well_data ['azimuth' ], attributes_data ['Azimuth VS' ])
1198
+ assert np_is_close (well_data ['convergence' ], attributes_data ['Convergence' ])
1199
+ assert np_is_close (well_data ['xsrf_real' ], attributes_data ['X-srf' ])
1200
+ assert np_is_close (well_data ['ysrf_real' ], attributes_data ['Y-srf' ])
1201
+
1202
+
1203
+ def test_get_converted_foot_well_attributes (ft_project ):
1204
+ well = ft_project .wells .find_by_name (WELL_NAME )
1205
+ assert well is not None
1206
+
1207
+ well_data = well .to_dict ()
1208
+ assert well_data
1209
+
1210
+ attributes = well .attributes
1211
+ assert attributes is not None
1212
+
1213
+ attributes_data = attributes .to_dict ()
1214
+ assert attributes_data
1215
+
1216
+ assert np_is_close (well_data ['kb' ], attributes_data ['KB' ])
1217
+ assert np_is_close (well_data ['azimuth' ], attributes_data ['Azimuth VS' ])
1218
+ assert np_is_close (well_data ['convergence' ], attributes_data ['Convergence' ])
1219
+ assert np_is_close (well_data ['xsrf_real' ], attributes_data ['X-srf' ])
1220
+ assert np_is_close (well_data ['ysrf_real' ], attributes_data ['Y-srf' ])
1221
+
1222
+
1223
+ def test_get_not_converted_foot_well_attributes (ft_project ):
1224
+ well = ft_project .wells .find_by_name (WELL_NAME )
1225
+ assert well is not None
1226
+
1227
+ well_data = well .to_dict (get_converted = False )
1228
+ assert well_data
1229
+
1230
+ attributes = well .attributes
1231
+ assert attributes is not None
1232
+
1233
+ attributes_data = attributes .to_dict (get_converted = False )
1234
+ assert attributes_data
1235
+
1236
+ assert np_is_close (well_data ['kb' ], attributes_data ['KB' ])
1237
+ assert np_is_close (well_data ['azimuth' ], attributes_data ['Azimuth VS' ])
1238
+ assert np_is_close (well_data ['convergence' ], attributes_data ['Convergence' ])
1239
+ assert np_is_close (well_data ['xsrf_real' ], attributes_data ['X-srf' ])
1240
+ assert np_is_close (well_data ['ysrf_real' ], attributes_data ['Y-srf' ])
1241
+
1242
+
1243
+ def test_get_converted_ftm_well_attributes (ftm_project ):
1244
+ well = ftm_project .wells .find_by_name (WELL_NAME )
1245
+ assert well is not None
1246
+
1247
+ well_data = well .to_dict ()
1248
+ assert well_data
1249
+
1250
+ attributes = well .attributes
1251
+ assert attributes is not None
1252
+
1253
+ attributes_data = attributes .to_dict ()
1254
+ assert attributes_data
1255
+
1256
+ assert np_is_close (well_data ['kb' ], attributes_data ['KB' ])
1257
+ assert np_is_close (well_data ['azimuth' ], attributes_data ['Azimuth VS' ])
1258
+ assert np_is_close (well_data ['convergence' ], attributes_data ['Convergence' ])
1259
+ assert np_is_close (well_data ['xsrf_real' ], attributes_data ['X-srf' ])
1260
+ assert np_is_close (well_data ['ysrf_real' ], attributes_data ['Y-srf' ])
1261
+
1262
+
1263
+ def test_get_not_converted_ftm_well_attributes (ftm_project ):
1264
+ well = ftm_project .wells .find_by_name (WELL_NAME )
1265
+ assert well is not None
1266
+
1267
+ well_data = well .to_dict (get_converted = False )
1268
+ assert well_data
1269
+
1270
+ attributes = well .attributes
1271
+ assert attributes is not None
1272
+
1273
+ attributes_data = attributes .to_dict (get_converted = False )
1274
+ assert attributes_data
1275
+
1276
+ assert np_is_close (well_data ['kb' ], attributes_data ['KB' ])
1277
+ assert np_is_close (well_data ['azimuth' ], attributes_data ['Azimuth VS' ])
1278
+ assert np_is_close (well_data ['convergence' ], attributes_data ['Convergence' ])
1279
+ assert np_is_close (well_data ['xsrf_real' ], attributes_data ['X-srf' ])
1280
+ assert np_is_close (well_data ['ysrf_real' ], attributes_data ['Y-srf' ])
1281
+
1282
+
1283
+ def test_get_converted_meter_comment_box (project ):
1284
+ well = project .wells .find_by_name (WELL_NAME )
1285
+ assert well is not None
1286
+
1287
+ comments = well .comments
1288
+ assert comments is not None
1289
+
1290
+ comment_box = comments [0 ].comment_boxes [0 ]
1291
+ assert comment_box is not None
1292
+
1293
+ comment_box_data = comment_box .to_dict ()
1294
+ assert comment_box_data
1295
+
1296
+ assert np_is_close (
1297
+ comment_box_data ['anchor_md' ],
1298
+ Convertible .convert_z (value = comment_box .anchor_md , measure_units = project .measure_unit ),
1299
+ )
1300
+
1301
+
1302
+ def test_get_not_converted_meter_comment_box (project ):
1303
+ well = project .wells .find_by_name (WELL_NAME )
1304
+ assert well is not None
1305
+
1306
+ comments = well .comments
1307
+ assert comments is not None
1308
+
1309
+ comment_box = comments [0 ].comment_boxes [0 ]
1310
+ assert comment_box is not None
1311
+
1312
+ comment_box_data = comment_box .to_dict (get_converted = False )
1313
+ assert comment_box_data
1314
+
1315
+ assert np_is_close (comment_box_data ['anchor_md' ], comment_box .anchor_md )
1316
+
1317
+
1318
+ def test_get_converted_ft_comment_box (ft_project ):
1319
+ well = ft_project .wells .find_by_name (WELL_NAME )
1320
+ assert well is not None
1321
+
1322
+ comments = well .comments
1323
+ assert comments is not None
1324
+
1325
+ comment_box = comments [0 ].comment_boxes [0 ]
1326
+ assert comment_box is not None
1327
+
1328
+ comment_box_data = comment_box .to_dict ()
1329
+ assert comment_box_data
1330
+
1331
+ assert np_is_close (
1332
+ comment_box_data ['anchor_md' ],
1333
+ Convertible .convert_z (value = comment_box .anchor_md , measure_units = ft_project .measure_unit ),
1334
+ )
1335
+
1336
+
1337
+ def test_get_not_converted_ft_comment_box (ft_project ):
1338
+ well = ft_project .wells .find_by_name (WELL_NAME )
1339
+ assert well is not None
1340
+
1341
+ comments = well .comments
1342
+ assert comments is not None
1343
+
1344
+ comment_box = comments [0 ].comment_boxes [0 ]
1345
+ assert comment_box is not None
1346
+
1347
+ comment_box_data = comment_box .to_dict (get_converted = False )
1348
+ assert comment_box_data
1349
+
1350
+ assert np_is_close (comment_box_data ['anchor_md' ], comment_box .anchor_md )
1351
+
1352
+
1353
+ def test_get_converted_ftm_comment_box (ftm_project ):
1354
+ well = ftm_project .wells .find_by_name (WELL_NAME )
1355
+ assert well is not None
1356
+
1357
+ comments = well .comments
1358
+ assert comments is not None
1359
+
1360
+ comment_box = comments [0 ].comment_boxes [0 ]
1361
+ assert comment_box is not None
1362
+
1363
+ comment_box_data = comment_box .to_dict ()
1364
+ assert comment_box_data
1365
+
1366
+ assert np_is_close (
1367
+ comment_box_data ['anchor_md' ],
1368
+ Convertible .convert_z (value = comment_box .anchor_md , measure_units = ftm_project .measure_unit ),
1369
+ )
1370
+
1371
+
1372
+ def test_get_not_converted_ftm_comment_box (ftm_project ):
1373
+ well = ftm_project .wells .find_by_name (WELL_NAME )
1374
+ assert well is not None
1375
+
1376
+ comments = well .comments
1377
+ assert comments is not None
1378
+
1379
+ comment_box = comments [0 ].comment_boxes [0 ]
1380
+ assert comment_box is not None
1381
+
1382
+ comment_box_data = comment_box .to_dict (get_converted = False )
1383
+ assert comment_box_data
1384
+
1385
+ assert np_is_close (comment_box_data ['anchor_md' ], comment_box .anchor_md )
0 commit comments