EranOfek / AstroPack

Astronomy & Astrophysics Software Pacakge
Other
16 stars 4 forks source link

MovingSource.read causes "Invalid or deleted object" error #474

Open saraylet opened 2 weeks ago

saraylet commented 2 weeks ago

MovingSource.read causes "Invalid or deleted object" error.

Running these lines of code:

Folder = {'/','last11w','data1','sarah'};
Files = dir(fullfile(Folder{:},'LAST*_merged_*.mat'));
MP = MovingSource.read(Files(1).Name, 'Path', fullfile(Folder{:}));

Causes the error:

Invalid or deleted object.

Error in Component/insertPropVal (line 378)
                    Obj(Iobj).(PropName) = Val{1};

Error in MovingSource.read (line 450)
                            Tmp.(FieldsName{1}).insertPropVal('FileName', FileName);

378                     Obj(Iobj).(PropName) = Val{1};
EranOfek commented 2 weeks ago

Not enough details to reproduce - please provide the file name and path (e.g., Files(1).Name)

On Mon, Jul 8, 2024 at 1:10 PM saraylet @.***> wrote:

MovingSource.read causes "Invalid or deleted object" error.

Running these lines of code:

Folder = {'/','last11w','data1','sarah'}; Files = dir(fullfile(Folder{:},'LASTmerged.mat')); MP = MovingSource.read(Files(1).Name, 'Path', fullfile(Folder{:}));

Causes the error:

Invalid or deleted object.

Error in Component/insertPropVal (line 378) Obj(Iobj).(PropName) = Val{1};

Error in MovingSource.read (line 450) Tmp.(FieldsName{1}).insertPropVal('FileName', FileName);

378 Obj(Iobj).(PropName) = Val{1};

— Reply to this email directly, view it on GitHub https://github.com/EranOfek/AstroPack/issues/474, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJUQ4IZT4HQR55YVUY7FUTZLJQQXAVCNFSM6AAAAABKQQDK7KVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM4TKMRRG43DSNA . You are receiving this because you are subscribed to this thread.Message ID: @.***>