Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Python] fix ProjData_read_from_file #1230

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/python/plot_sinogram_profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down