Closed saraylet closed 1 month ago
[dev1 84926b1e] The problem was due to a bug in AstroTable/insertCol - it couldn't handle empty columns. Made some modifications to insertCol and also to fitPhotCube.
In psfFitPhot: line 145 - add && Args.FindSrc and argument added with default false.
In AstroTable/insertCol line 1043: added: if ~isempty(Data)
Running these lines of code:
Using this file:
LAST.01.01.01_20240108.191341.991_clear_043+18_041_001_001_sci_merged_Asteroids_1.mat
Results in this error:
It is trying to run these lines of code in AstroTable.m:
At the time of the error, MP is not empty, it is a 1x5 MovingSource object. OldArray is empty (problematic) and NewData is a 2x7 double. Therefore, Nrow is 0 and NrowI is 2.