EranOfek / AstroPack

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

Error in DB insertion tag: v2.1 #418

Closed EranOfek closed 6 months ago

EranOfek commented 7 months ago

1964006] 2024-03-11 14:40:47.610 > [INF] last01e: pipline.DemonLAST finished saving Asteroid data for group 1 / RunTime: 247.6 [1964006] 2024-03-11 14:40:54.183 > [INF] last01e: pipline.DemonLAST started preparing DB data for group 1 [1964006] 2024-03-11 14:40:54.327 > [ERR] last01e: pipeline.DemonLAST try error: Dot indexing is not supported for variables of this type. / funname: DemonLAST.main @ line: 2494 [1964006] 2024-03-11 14:40:54.331 > [ERR] last01e: Exception: id=MATLAB:structRefFromNonStruct msg=Dot indexing is not supported for variables of this type. [1964006] 2024-03-11 14:40:54.334 > [ERR] last01e: stack: Ind=1; FunName=DemonLAST.main; line=2494 [1964006] 2024-03-11 14:40:54.337 > [ERR] last01e: stack: Ind=2; FunName=startBatchLASTPipeline; line=31 [1964006] 2024-03-11 14:40:54.340 > [INF] last01e: pipeline.DemonLAST / pipeline.generic.multiRaw2procCoadd analyzed 20 images starting at 20240310.025044.634

[1964006] 2024-03-11 14:40:54.760 > [INF] last01e: pipline.DemonLAST executing pipeline for group 2 - First image: /last01e/data1/archive/LAST.01.01.01/new/LAST.01.01.01_20240310.024310.683_clear_1446_001_001_001_sci_raw_Image_1.fits

EranOfek commented 7 months ago

Error in line 2494: ADB.insert(RawHeader,'Type','bulkima', 'BulkFN',FN_I, 'BulkCatType','raw', 'Table',Args.DB_Table_Raw, 'FileNames',RawImageListFinal);

EranOfek commented 7 months ago

The problem is on line 2466: isempty(ADB) && ( ~Args.DB_ImageBulk || ~Args.DB_CatalogBulk) % connect to DB

The answer is false and ADB is not created.

agioffe commented 6 months ago

Sorry, I was likely influenced by the virus when I wrote it yesterday. I will correct it now.

agioffe commented 6 months ago

I corrected it. We indeed need to connect to DB in any case, because all the CSV dumping has been moved inside db.AstroDb.insert Please, try it.