mirror of
https://github.com/PAMGuard/PAMGuard.git
synced 2024-11-25 08:32:32 +00:00
Bug for MATLAB r export when angles are null
This commit is contained in:
parent
a8f01b1509
commit
d294d3260a
@ -420,7 +420,7 @@ public class DetectionPlotDisplay extends PamBorderPane {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
System.out.println("Axis Width: " + dDPlotPane.getAxisPane(Side.BOTTOM).getWidth() + " canvas width " + dDPlotPane.getPlotCanvas().getWidth());
|
// System.out.println("Axis Width: " + dDPlotPane.getAxisPane(Side.BOTTOM).getWidth() + " canvas width " + dDPlotPane.getPlotCanvas().getWidth());
|
||||||
|
|
||||||
|
|
||||||
currentDataInfo.drawData(dDPlotPane.getPlotCanvas().getGraphicsContext2D(),
|
currentDataInfo.drawData(dDPlotPane.getPlotCanvas().getGraphicsContext2D(),
|
||||||
|
@ -39,9 +39,9 @@ public class MLRawExport extends MLDataUnitExport<PamDataUnit>{
|
|||||||
Matrix angleErrors;
|
Matrix angleErrors;
|
||||||
if (dataUnit.getLocalisation()!=null) {
|
if (dataUnit.getLocalisation()!=null) {
|
||||||
//bearing angles
|
//bearing angles
|
||||||
angles = DLMatFile.array2Matrix(dataUnit.getLocalisation().getAngles());
|
angles = DLMatFile.array2Matrix(dataUnit.getLocalisation().getAngles() == null ? new double[] {0.} : dataUnit.getLocalisation().getAngles());
|
||||||
//angle errors
|
//angle errors
|
||||||
angleErrors = DLMatFile.array2Matrix(dataUnit.getLocalisation().getAngleErrors());
|
angleErrors = DLMatFile.array2Matrix(dataUnit.getLocalisation().getAngleErrors() == null ? new double[] {0.} : dataUnit.getLocalisation().getAngleErrors());
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
//bearing angles
|
//bearing angles
|
||||||
|
@ -52,9 +52,9 @@ public class RRawExport extends RDataUnitExport<PamDataUnit> {
|
|||||||
//time delay stuff.
|
//time delay stuff.
|
||||||
if (dataUnit.getLocalisation()!=null) {
|
if (dataUnit.getLocalisation()!=null) {
|
||||||
//bearing angles
|
//bearing angles
|
||||||
rData.add("angles", new DoubleArrayVector(dataUnit.getLocalisation().getAngles()));
|
rData.add("angles", dataUnit.getLocalisation().getAngles() == null ? new DoubleArrayVector(0.) : new DoubleArrayVector(dataUnit.getLocalisation().getAngles()));
|
||||||
//angle errors
|
//angle errors
|
||||||
rData.add("angleErrors", new DoubleArrayVector(dataUnit.getLocalisation().getAngleErrors()));
|
rData.add("angleErrors", dataUnit.getLocalisation().getAngleErrors() == null? new DoubleArrayVector(0.) : new DoubleArrayVector(dataUnit.getLocalisation().getAngleErrors()));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
//bearing angles
|
//bearing angles
|
||||||
|
Loading…
Reference in New Issue
Block a user