From 03e692469b62231c4c7e4a7755fdd83de24a8d63 Mon Sep 17 00:00:00 2001 From: Michael Jackson Date: Mon, 13 Nov 2023 11:40:11 -0500 Subject: [PATCH] Upate python codes to WriteDREAM3DFilter Signed-off-by: Michael Jackson --- wrapping/python/examples/basic_arrays.py | 2 +- wrapping/python/examples/basic_ebsd_ipf.py | 8 ++++---- wrapping/python/examples/geometry_examples.py | 4 ++-- wrapping/python/examples/import_d3d.py | 4 ++-- wrapping/python/examples/output_file.py | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/wrapping/python/examples/basic_arrays.py b/wrapping/python/examples/basic_arrays.py index 43375a49d8..46f1058df5 100644 --- a/wrapping/python/examples/basic_arrays.py +++ b/wrapping/python/examples/basic_arrays.py @@ -125,7 +125,7 @@ output_file_path = "/tmp/output_file_example.dream3d" -result = cx.ExportDREAM3DFilter.execute(data_structure=data_structure, +result = cx.WriteDREAM3DFilter.execute(data_structure=data_structure, export_file_path=output_file_path, write_xdmf_file=True) if len(result.errors) != 0: diff --git a/wrapping/python/examples/basic_ebsd_ipf.py b/wrapping/python/examples/basic_ebsd_ipf.py index 56f0c95bb1..10ba833b5a 100644 --- a/wrapping/python/examples/basic_ebsd_ipf.py +++ b/wrapping/python/examples/basic_ebsd_ipf.py @@ -28,7 +28,7 @@ # Rotate the Euler Reference Frame #------------------------------------------------------------------------------ result = cxor.RotateEulerRefFrameFilter.execute(data_structure=data_structure, - cell_euler_angles_array_path=cx.DataPath(["Small IN100", "Scan Data", "EulerAngles"]), + euler_angles_array_path=cx.DataPath(["Small IN100", "Scan Data", "EulerAngles"]), rotation_axis=[0,0,1,90]) if len(result.errors) != 0: print('Errors: {}', result.errors) @@ -139,7 +139,7 @@ #------------------------------------------------------------------------------ color_control_points = cx.Json('{"RGBPoints": [0,0,0,0,0.4,0.901960784314,0,0,0.8,0.901960784314,0.901960784314,0,1,1,1,1]}') result = cx.GenerateColorTableFilter.execute(data_structure=data_structure, - rgb_array_path="CI Color", + output_rgb_array_name="CI Color", selected_data_array_path=cx.DataPath(["Small IN100", "Scan Data", "Confidence Index"]), selected_preset=color_control_points) if len(result.errors) != 0: @@ -181,14 +181,14 @@ # Write the DataStructure to a .dream3d file #------------------------------------------------------------------------------ output_file_path = "basic_ebsd_example.dream3d" -result = cx.ExportDREAM3DFilter.execute(data_structure=data_structure, +result = cx.WriteDREAM3DFilter.execute(data_structure=data_structure, export_file_path=output_file_path, write_xdmf_file=True) if len(result.errors) != 0: print('Errors: {}', result.errors) print('Warnings: {}', result.warnings) else: - print("No errors running the ExportDREAM3DFilter") + print("No errors running the WriteDREAM3DFilter") diff --git a/wrapping/python/examples/geometry_examples.py b/wrapping/python/examples/geometry_examples.py index 9bb63e6623..178b524363 100644 --- a/wrapping/python/examples/geometry_examples.py +++ b/wrapping/python/examples/geometry_examples.py @@ -215,9 +215,9 @@ output_file_path = "geometry_examples.dream3d" -result = cx.ExportDREAM3DFilter.execute(data_structure=data_structure, export_file_path=output_file_path, write_xdmf_file=True) +result = cx.WriteDREAM3DFilter.execute(data_structure=data_structure, export_file_path=output_file_path, write_xdmf_file=True) if len(result.errors) != 0: print('Errors: {}', result.errors) print('Warnings: {}', result.warnings) else: - print("No errors running the ExportDREAM3DFilter filter") + print("No errors running the WriteDREAM3DFilter filter") diff --git a/wrapping/python/examples/import_d3d.py b/wrapping/python/examples/import_d3d.py index 72cd598654..141267b05b 100644 --- a/wrapping/python/examples/import_d3d.py +++ b/wrapping/python/examples/import_d3d.py @@ -39,14 +39,14 @@ # Write the DataStructure to a .dream3d file #------------------------------------------------------------------------------ output_file_path = "/tmp/import_data.dream3d" -result = cx.ExportDREAM3DFilter.execute(data_structure=data_structure, +result = cx.WriteDREAM3DFilter.execute(data_structure=data_structure, export_file_path=output_file_path, write_xdmf_file=True) if len(result.errors) != 0: print('Errors: {}', result.errors) print('Warnings: {}', result.warnings) else: - print("No errors running the ExportDREAM3DFilter") + print("No errors running the WriteDREAM3DFilter") #------------------------------------------------------------------------------ diff --git a/wrapping/python/examples/output_file.py b/wrapping/python/examples/output_file.py index da922eea50..b41e2fd63d 100644 --- a/wrapping/python/examples/output_file.py +++ b/wrapping/python/examples/output_file.py @@ -31,7 +31,7 @@ print(npdata) output_file_path = "output_file_example.dream3d" -result = cx.ExportDREAM3DFilter.execute(data_structure=data_structure, +result = cx.WriteDREAM3DFilter.execute(data_structure=data_structure, export_file_path=output_file_path, write_xdmf_file=True) if len(result.errors) != 0: