diff --git a/documentation/release_5.2.htm b/documentation/release_5.2.htm index 1c9c7b16f9..a11ca8f5d6 100644 --- a/documentation/release_5.2.htm +++ b/documentation/release_5.2.htm @@ -63,6 +63,8 @@

New examples

Python

Changed functionality

diff --git a/examples/python/plot_sinogram_profiles.py b/examples/python/plot_sinogram_profiles.py index b54966ef2d..f42c170e6a 100644 --- a/examples/python/plot_sinogram_profiles.py +++ b/examples/python/plot_sinogram_profiles.py @@ -36,7 +36,7 @@ def plot_sinogram_profiles(projection_data_list, sumaxis=0, select=0): if isinstance(f, str): print(f"Handling:\n {f}") label = f - f = stir.ProjData_read_from_file(f) + f = stir.ProjData.read_from_file(f) if isinstance(f, stir.ProjData): f = stirextra.to_numpy(f) diff --git a/examples/python/projdata_visualisation/BackendTools/STIRInterface.py b/examples/python/projdata_visualisation/BackendTools/STIRInterface.py index dc33b38a32..d3e220bb90 100644 --- a/examples/python/projdata_visualisation/BackendTools/STIRInterface.py +++ b/examples/python/projdata_visualisation/BackendTools/STIRInterface.py @@ -43,7 +43,7 @@ def load_projdata(self, filename=None) -> bool: if self.projdata_filename != "": print("ProjDataVisualisationBackend.load_data: Loading data from file: " + self.projdata_filename) try: - self.projdata = stir.ProjData_read_from_file(self.projdata_filename) + self.projdata = stir.ProjData.read_from_file(self.projdata_filename) self.segment_data = self.refresh_segment_data() print("ProjDataVisualisationBackend.load_data: Data loaded.") self.print_projdata_configuration() diff --git a/examples/python/projdata_visualisation/demo_ProjDataVisualisation.py b/examples/python/projdata_visualisation/demo_ProjDataVisualisation.py index cb390c2a93..a7ab93401e 100644 --- a/examples/python/projdata_visualisation/demo_ProjDataVisualisation.py +++ b/examples/python/projdata_visualisation/demo_ProjDataVisualisation.py @@ -17,7 +17,7 @@ # Load data for demo (example case) filename = "examples/recon_demo/smalllong.hs" -proj_data = stir.ProjData_read_from_file(filename) +proj_data = stir.ProjData.read_from_file(filename) # Now open the GUI and pass the proj_data object OpenProjDataVisualisation(proj_data)