Skip to content

Commit f57b520

Browse files
committed
Some transformation bugs
1 parent ed9930c commit f57b520

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/analysis/compute_quantities/positions.jl

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1101,6 +1101,15 @@ function computePARotationMatrix(
11011101
$(components)")
11021102
)
11031103

1104+
if any(isempty, [positions, velocities, masses])
1105+
(
1106+
logging[] &&
1107+
@info("computePARotationMatrix: The positions, masses or velocities are empty. \
1108+
I will return the identity matrix")
1109+
)
1110+
return I
1111+
end
1112+
11041113
elseif component snapshotTypes(data_dict)
11051114

11061115
positions = data_dict[component]["POS "]
@@ -1111,7 +1120,7 @@ function computePARotationMatrix(
11111120
(
11121121
logging[] &&
11131122
@info("computePARotationMatrix: The positions, masses or velocities for component \
1114-
:$(component) are missing. I will return the identity matrix")
1123+
:$(component) are empty. I will return the identity matrix")
11151124
)
11161125
return I
11171126
end

0 commit comments

Comments
 (0)