Skip to content

Commit

Permalink
fix: vertical slicing on phase correction (#3015)
Browse files Browse the repository at this point in the history
* fix: vertical slicing on phase correction
  • Loading branch information
jobo322 authored Apr 5, 2024
1 parent cafc51a commit e1c7b7c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/component/2d/Viewer2D.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ function Viewer2D({ emptyText = undefined }: Viewer2DProps) {
const mouseClick: OnClick = useCallback(
(event) => {
const { x, y, shiftKey } = event;

if (shiftKey) {
switch (selectedTool) {
case 'phaseCorrectionTwoDimensions':
Expand Down
2 changes: 1 addition & 1 deletion src/data/data2d/Spectrum2D/getSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ export function getSlice(

if (imaginaryVerticalData) {
infoY.isComplex = true;
dataY.im = new Float64Array(yLength);
for (let i = 0; i < yLength; i++) {
dataY.im = new Float64Array(yLength);
dataY.im[i] += imaginaryVerticalData.z[i][xIndex];
}
}
Expand Down

0 comments on commit e1c7b7c

Please sign in to comment.