Skip to content

Commit

Permalink
Re #1776 looks like working sphere_proj
Browse files Browse the repository at this point in the history
  • Loading branch information
abuts committed Dec 13, 2024
1 parent c68841b commit 318ed2b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@
obj = obj.check_combo_arg();
end
end
function obj = set_img_scales(obj,varargin)
function obj = set_img_scales(~,varargin)
error('HORACE:CurveProjBase:invalid_argument', ...
'You can not set image scales directly. Use projection type instead')
end
Expand Down
12 changes: 3 additions & 9 deletions horace_core/sqw/coord_transform/@kf_sphere_proj/kf_sphere_proj.m
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,8 @@
% defined by object properties
%
if isa(pix_data,'PixelDataBase')
if pix_data.is_corrected
error('HORACE:kf_sphere_proj:not_implemented', ...
'Misaligned pixels are not yet implemented');
%pix_cc = pix_data.get_raw_data('q_coordinates');
else
pix_cc = pix_data.q_coordinates;
end
shift_ei = obj.offset(4) ~=0;
pix_cc = pix_data.q_coordinates;
shift_ei = obj.offset(4) ~=0; % its ginored for the time being

ndim = 3;
input_is_obj = true;
Expand All @@ -146,7 +140,7 @@
kf = obj.ki_-pix_cc(1:3,:);
end
pix_transformed = transform_pix_to_img@sphere_proj(obj,kf,varargin{:});
if ndim == 4
if ndim > 3
if input_is_obj
pix_transformed = [pix_transformed;pix_data.dE];
else
Expand Down

0 comments on commit 318ed2b

Please sign in to comment.