Commit 57425323 authored by Pierre Paleo's avatar Pierre Paleo

Merge branch 'ignore_projections' into 'master'

Ignore projections

Closes #187

See merge request !94
parents 18e971f0 ccda08db
Pipeline #37568 passed with stages
in 4 minutes and 56 seconds
......@@ -91,7 +91,7 @@ class DatasetAnalyzer(object):
self.projections = self.dataset_scanner.projections
self.flats = self.dataset_scanner.flats
self.darks = self.dataset_scanner.darks
self.n_angles = self.dataset_scanner.tomo_n
self.n_angles = len(self.dataset_scanner.projections)
self.radio_dims = (self.dataset_scanner.dim_1, self.dataset_scanner.dim_2)
self._binning = (1, 1)
self.translations = None
......@@ -144,7 +144,7 @@ class DatasetAnalyzer(object):
return
# Extraneous projections are assumed to be on the end
projs_indices = sorted(self.projections.keys())
used_radios_range = range(projs_indices[0], self.n_angles)
used_radios_range = range(projs_indices[0], self.dataset_scanner.tomo_n)
radios_not_used = []
for idx in self.projections.keys():
if idx not in used_radios_range:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment