Skip to content

Commit

Permalink
Replace the path in file with scicrunch file path
Browse files Browse the repository at this point in the history
  • Loading branch information
ddjnw1yu committed Sep 15, 2024
1 parent 4fed6e9 commit b7bca4a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pages/datasets/file/[datasetId]/[datasetVersion]/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ export default {
if (packageType == 'Unsupported') {
await discover.getSegmentationInfo(route.params.datasetId, filePath, s3Bucket).then(({ data }) => {
segmentationData = data
// file is from pennsieve, filePath is from scicrunch
// Normally filePath will be correct if path in file and filePath not the same
if (file.path != filePath) {
file.path = filePath
}
})
}
} catch(e) {
Expand Down

0 comments on commit b7bca4a

Please sign in to comment.