feat(flomni): warn in tomo_parameters() when single-point mode needs a different call
tomo_scan_projection() always runs a Fermat scan and tomo_acquire_at_angle() always runs a single-point acquisition -- they aren't interchangeable, and calling tomo_scan_projection() directly while single_point_instead_of_fermat_scan is on triggers an interactive confirmation prompt that would hang an unattended queue run. tomo_parameters() now prints a reminder of which one to call (including inside a custom at_each_angle hook) whenever single-point mode is enabled, surfacing this proactively instead of only at the point of the runtime prompt. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -3500,6 +3500,12 @@ class Flomni(
|
||||
print(f"Single point instead of fermat = {self.single_point_instead_of_fermat_scan}")
|
||||
if self.single_point_instead_of_fermat_scan:
|
||||
print(f"Single point random shift max <um> = {self.single_point_random_shift_max}")
|
||||
print(
|
||||
"\x1b[93mNote: with single-point mode on, acquire a single projection "
|
||||
"(including inside a custom at_each_angle hook) with "
|
||||
"tomo_acquire_at_angle(angle), not tomo_scan_projection(angle) -- the "
|
||||
"latter always runs a full Fermat scan regardless of this setting.\x1b[0m"
|
||||
)
|
||||
if self.at_each_angle_hook:
|
||||
print(f"At-each-angle hook = {self.at_each_angle_hook}")
|
||||
print("")
|
||||
|
||||
Reference in New Issue
Block a user