Skip to content

Commit

Permalink
feat: fix path regression
Browse files Browse the repository at this point in the history
  • Loading branch information
TomyCesaille committed Sep 22, 2024
1 parent fddca84 commit ed48aa4
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 33 deletions.
4 changes: 3 additions & 1 deletion src/commands/dispatch-dump.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.`);
Expand Down
64 changes: 32 additions & 32 deletions src/tests/e2e/__snapshots__/e2e-testing.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
],
Expand Down Expand Up @@ -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"
},
{
Expand All @@ -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"
},
{
Expand All @@ -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"
}
],
Expand Down Expand Up @@ -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"
},
{
Expand All @@ -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"
},
{
Expand All @@ -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"
}
],
Expand Down Expand Up @@ -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"
},
{
Expand All @@ -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"
},
{
Expand All @@ -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"
}
],
Expand Down Expand Up @@ -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"
},
{
Expand All @@ -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"
},
{
Expand All @@ -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"
}
],
Expand Down Expand Up @@ -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"
},
{
Expand All @@ -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"
},
{
Expand All @@ -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"
}
],
Expand Down

0 comments on commit ed48aa4

Please sign in to comment.