diff --git a/src/commands/dispatch-dump.ts b/src/commands/dispatch-dump.ts index 26159cb..6b511c3 100644 --- a/src/commands/dispatch-dump.ts +++ b/src/commands/dispatch-dump.ts @@ -45,7 +45,9 @@ const dispatch = async ({ // Enumerate the list of files of the ASIAIR directory. const asiAirFiles = getFitsFromDirectory({ - directory: `${asiAirDirectory}/${shootingMode}`, + directory: `${asiAirDirectory}/${ + shootingMode === "autorun" ? "Autorun" : "Plan" + }`, projectDirectory, }); logger.info(`Found ${asiAirFiles.length} files to dispatch.`); diff --git a/src/tests/e2e/__snapshots__/e2e-testing.spec.ts.snap b/src/tests/e2e/__snapshots__/e2e-testing.spec.ts.snap index cf5194f..75a3c1c 100644 --- a/src/tests/e2e/__snapshots__/e2e-testing.spec.ts.snap +++ b/src/tests/e2e/__snapshots__/e2e-testing.spec.ts.snap @@ -28,8 +28,8 @@ exports[`E2E should be neat 2`] = ` "temperature": "-10.1C", "fileName": "Light_FOV_120.0s_Bin1_S_gain0_20240624-010850_-10.1C_0001.fit", "extension": "fit", - "sourceDirectory": "tmp/asiair-dump/autorun/Light/FOV", - "sourceFilePath": "tmp/asiair-dump/autorun/Light/FOV/Light_FOV_120.0s_Bin1_S_gain0_20240624-010850_-10.1C_0001.fit", + "sourceDirectory": "tmp/asiair-dump/Autorun/Light/FOV", + "sourceFilePath": "tmp/asiair-dump/Autorun/Light/FOV/Light_FOV_120.0s_Bin1_S_gain0_20240624-010850_-10.1C_0001.fit", "projectDirectory": "tmp/project/S/Light_120.0s_Bin1_S_gain0" } ], @@ -64,8 +64,8 @@ exports[`E2E should be neat 2`] = ` "temperature": "-10.5C", "fileName": "Flat_1.0ms_Bin1_S_gain100_20240511-094304_-10.5C_0001.fit", "extension": "fit", - "sourceDirectory": "tmp/asiair-dump/autorun/Flat", - "sourceFilePath": "tmp/asiair-dump/autorun/Flat/Flat_1.0ms_Bin1_S_gain100_20240511-094304_-10.5C_0001.fit", + "sourceDirectory": "tmp/asiair-dump/Autorun/Flat", + "sourceFilePath": "tmp/asiair-dump/Autorun/Flat/Flat_1.0ms_Bin1_S_gain100_20240511-094304_-10.5C_0001.fit", "projectDirectory": "tmp/project/S/Flat_1.0ms_Bin1_S_gain100" }, { @@ -80,8 +80,8 @@ exports[`E2E should be neat 2`] = ` "temperature": "-10.0C", "fileName": "Flat_1.0ms_Bin1_S_gain100_20240511-094305_-10.0C_0002.fit", "extension": "fit", - "sourceDirectory": "tmp/asiair-dump/autorun/Flat", - "sourceFilePath": "tmp/asiair-dump/autorun/Flat/Flat_1.0ms_Bin1_S_gain100_20240511-094305_-10.0C_0002.fit", + "sourceDirectory": "tmp/asiair-dump/Autorun/Flat", + "sourceFilePath": "tmp/asiair-dump/Autorun/Flat/Flat_1.0ms_Bin1_S_gain100_20240511-094305_-10.0C_0002.fit", "projectDirectory": "tmp/project/S/Flat_1.0ms_Bin1_S_gain100" }, { @@ -96,8 +96,8 @@ exports[`E2E should be neat 2`] = ` "temperature": "-10.5C", "fileName": "Flat_1.0ms_Bin1_S_gain100_20240511-094306_-10.5C_0003.fit", "extension": "fit", - "sourceDirectory": "tmp/asiair-dump/autorun/Flat", - "sourceFilePath": "tmp/asiair-dump/autorun/Flat/Flat_1.0ms_Bin1_S_gain100_20240511-094306_-10.5C_0003.fit", + "sourceDirectory": "tmp/asiair-dump/Autorun/Flat", + "sourceFilePath": "tmp/asiair-dump/Autorun/Flat/Flat_1.0ms_Bin1_S_gain100_20240511-094306_-10.5C_0003.fit", "projectDirectory": "tmp/project/S/Flat_1.0ms_Bin1_S_gain100" } ], @@ -175,8 +175,8 @@ exports[`E2E should be neat 2`] = ` "temperature": "-10.1C", "fileName": "Light_FOV_60.0s_Bin1_H_gain0_20240624-010850_-10.1C_0001.fit", "extension": "fit", - "sourceDirectory": "tmp/asiair-dump/autorun/Light/FOV", - "sourceFilePath": "tmp/asiair-dump/autorun/Light/FOV/Light_FOV_60.0s_Bin1_H_gain0_20240624-010850_-10.1C_0001.fit", + "sourceDirectory": "tmp/asiair-dump/Autorun/Light/FOV", + "sourceFilePath": "tmp/asiair-dump/Autorun/Light/FOV/Light_FOV_60.0s_Bin1_H_gain0_20240624-010850_-10.1C_0001.fit", "projectDirectory": "tmp/project/H/Light_60.0s_Bin1_H_gain0" }, { @@ -191,8 +191,8 @@ exports[`E2E should be neat 2`] = ` "temperature": "-10.1C", "fileName": "Light_FOV_60.0s_Bin1_H_gain0_20240624-010851_-10.1C_0002.fit", "extension": "fit", - "sourceDirectory": "tmp/asiair-dump/autorun/Light/FOV", - "sourceFilePath": "tmp/asiair-dump/autorun/Light/FOV/Light_FOV_60.0s_Bin1_H_gain0_20240624-010851_-10.1C_0002.fit", + "sourceDirectory": "tmp/asiair-dump/Autorun/Light/FOV", + "sourceFilePath": "tmp/asiair-dump/Autorun/Light/FOV/Light_FOV_60.0s_Bin1_H_gain0_20240624-010851_-10.1C_0002.fit", "projectDirectory": "tmp/project/H/Light_60.0s_Bin1_H_gain0" }, { @@ -207,8 +207,8 @@ exports[`E2E should be neat 2`] = ` "temperature": "-10.1C", "fileName": "Light_FOV_60.0s_Bin1_H_gain0_20240624-010852_-10.1C_0003.fit", "extension": "fit", - "sourceDirectory": "tmp/asiair-dump/autorun/Light/FOV", - "sourceFilePath": "tmp/asiair-dump/autorun/Light/FOV/Light_FOV_60.0s_Bin1_H_gain0_20240624-010852_-10.1C_0003.fit", + "sourceDirectory": "tmp/asiair-dump/Autorun/Light/FOV", + "sourceFilePath": "tmp/asiair-dump/Autorun/Light/FOV/Light_FOV_60.0s_Bin1_H_gain0_20240624-010852_-10.1C_0003.fit", "projectDirectory": "tmp/project/H/Light_60.0s_Bin1_H_gain0" } ], @@ -243,8 +243,8 @@ exports[`E2E should be neat 2`] = ` "temperature": "-10.5C", "fileName": "Flat_1.0ms_Bin1_H_gain100_20240511-094306_-10.5C_0001.fit", "extension": "fit", - "sourceDirectory": "tmp/asiair-dump/autorun/Flat", - "sourceFilePath": "tmp/asiair-dump/autorun/Flat/Flat_1.0ms_Bin1_H_gain100_20240511-094306_-10.5C_0001.fit", + "sourceDirectory": "tmp/asiair-dump/Autorun/Flat", + "sourceFilePath": "tmp/asiair-dump/Autorun/Flat/Flat_1.0ms_Bin1_H_gain100_20240511-094306_-10.5C_0001.fit", "projectDirectory": "tmp/project/H/Flat_1.0ms_Bin1_H_gain100" }, { @@ -259,8 +259,8 @@ exports[`E2E should be neat 2`] = ` "temperature": "-10.5C", "fileName": "Flat_1.0ms_Bin1_H_gain100_20240511-094306_-10.5C_0002.fit", "extension": "fit", - "sourceDirectory": "tmp/asiair-dump/autorun/Flat", - "sourceFilePath": "tmp/asiair-dump/autorun/Flat/Flat_1.0ms_Bin1_H_gain100_20240511-094306_-10.5C_0002.fit", + "sourceDirectory": "tmp/asiair-dump/Autorun/Flat", + "sourceFilePath": "tmp/asiair-dump/Autorun/Flat/Flat_1.0ms_Bin1_H_gain100_20240511-094306_-10.5C_0002.fit", "projectDirectory": "tmp/project/H/Flat_1.0ms_Bin1_H_gain100" }, { @@ -275,8 +275,8 @@ exports[`E2E should be neat 2`] = ` "temperature": "-10.5C", "fileName": "Flat_1.0ms_Bin1_H_gain100_20240511-094306_-10.5C_0003.fit", "extension": "fit", - "sourceDirectory": "tmp/asiair-dump/autorun/Flat", - "sourceFilePath": "tmp/asiair-dump/autorun/Flat/Flat_1.0ms_Bin1_H_gain100_20240511-094306_-10.5C_0003.fit", + "sourceDirectory": "tmp/asiair-dump/Autorun/Flat", + "sourceFilePath": "tmp/asiair-dump/Autorun/Flat/Flat_1.0ms_Bin1_H_gain100_20240511-094306_-10.5C_0003.fit", "projectDirectory": "tmp/project/H/Flat_1.0ms_Bin1_H_gain100" } ], @@ -354,8 +354,8 @@ exports[`E2E should be neat 2`] = ` "temperature": "-10.1C", "fileName": "Light_FOV_60.0s_Bin1_S_gain100_20240624-010850_-10.1C_0001.fit", "extension": "fit", - "sourceDirectory": "tmp/asiair-dump/autorun/Light/FOV", - "sourceFilePath": "tmp/asiair-dump/autorun/Light/FOV/Light_FOV_60.0s_Bin1_S_gain100_20240624-010850_-10.1C_0001.fit", + "sourceDirectory": "tmp/asiair-dump/Autorun/Light/FOV", + "sourceFilePath": "tmp/asiair-dump/Autorun/Light/FOV/Light_FOV_60.0s_Bin1_S_gain100_20240624-010850_-10.1C_0001.fit", "projectDirectory": "tmp/project/S/Light_60.0s_Bin1_S_gain100" }, { @@ -370,8 +370,8 @@ exports[`E2E should be neat 2`] = ` "temperature": "-10.1C", "fileName": "Light_FOV_60.0s_Bin1_S_gain100_20240624-010851_-10.1C_0002.fit", "extension": "fit", - "sourceDirectory": "tmp/asiair-dump/autorun/Light/FOV", - "sourceFilePath": "tmp/asiair-dump/autorun/Light/FOV/Light_FOV_60.0s_Bin1_S_gain100_20240624-010851_-10.1C_0002.fit", + "sourceDirectory": "tmp/asiair-dump/Autorun/Light/FOV", + "sourceFilePath": "tmp/asiair-dump/Autorun/Light/FOV/Light_FOV_60.0s_Bin1_S_gain100_20240624-010851_-10.1C_0002.fit", "projectDirectory": "tmp/project/S/Light_60.0s_Bin1_S_gain100" }, { @@ -386,8 +386,8 @@ exports[`E2E should be neat 2`] = ` "temperature": "-10.1C", "fileName": "Light_FOV_60.0s_Bin1_S_gain100_20240624-010852_-10.1C_0003.fit", "extension": "fit", - "sourceDirectory": "tmp/asiair-dump/autorun/Light/FOV", - "sourceFilePath": "tmp/asiair-dump/autorun/Light/FOV/Light_FOV_60.0s_Bin1_S_gain100_20240624-010852_-10.1C_0003.fit", + "sourceDirectory": "tmp/asiair-dump/Autorun/Light/FOV", + "sourceFilePath": "tmp/asiair-dump/Autorun/Light/FOV/Light_FOV_60.0s_Bin1_S_gain100_20240624-010852_-10.1C_0003.fit", "projectDirectory": "tmp/project/S/Light_60.0s_Bin1_S_gain100" } ], @@ -454,8 +454,8 @@ exports[`E2E should be neat 2`] = ` "temperature": "-10.5C", "fileName": "Flat_1.0ms_Bin1_S_gain100_20240511-094304_-10.5C_0001.fit", "extension": "fit", - "sourceDirectory": "tmp/asiair-dump/autorun/Flat", - "sourceFilePath": "tmp/asiair-dump/autorun/Flat/Flat_1.0ms_Bin1_S_gain100_20240511-094304_-10.5C_0001.fit", + "sourceDirectory": "tmp/asiair-dump/Autorun/Flat", + "sourceFilePath": "tmp/asiair-dump/Autorun/Flat/Flat_1.0ms_Bin1_S_gain100_20240511-094304_-10.5C_0001.fit", "projectDirectory": "tmp/project/S/Flat_1.0ms_Bin1_S_gain100" }, { @@ -470,8 +470,8 @@ exports[`E2E should be neat 2`] = ` "temperature": "-10.0C", "fileName": "Flat_1.0ms_Bin1_S_gain100_20240511-094305_-10.0C_0002.fit", "extension": "fit", - "sourceDirectory": "tmp/asiair-dump/autorun/Flat", - "sourceFilePath": "tmp/asiair-dump/autorun/Flat/Flat_1.0ms_Bin1_S_gain100_20240511-094305_-10.0C_0002.fit", + "sourceDirectory": "tmp/asiair-dump/Autorun/Flat", + "sourceFilePath": "tmp/asiair-dump/Autorun/Flat/Flat_1.0ms_Bin1_S_gain100_20240511-094305_-10.0C_0002.fit", "projectDirectory": "tmp/project/S/Flat_1.0ms_Bin1_S_gain100" }, { @@ -486,8 +486,8 @@ exports[`E2E should be neat 2`] = ` "temperature": "-10.5C", "fileName": "Flat_1.0ms_Bin1_S_gain100_20240511-094306_-10.5C_0003.fit", "extension": "fit", - "sourceDirectory": "tmp/asiair-dump/autorun/Flat", - "sourceFilePath": "tmp/asiair-dump/autorun/Flat/Flat_1.0ms_Bin1_S_gain100_20240511-094306_-10.5C_0003.fit", + "sourceDirectory": "tmp/asiair-dump/Autorun/Flat", + "sourceFilePath": "tmp/asiair-dump/Autorun/Flat/Flat_1.0ms_Bin1_S_gain100_20240511-094306_-10.5C_0003.fit", "projectDirectory": "tmp/project/S/Flat_1.0ms_Bin1_S_gain100" } ],