GSTT-CSC / hazen-web-app

Interactive web-based implementation of hazen
Other
0 stars 0 forks source link

115 slice position task needs a folder of dicoms #116

Closed Lucrezia-Cester closed 1 year ago

Lucrezia-Cester commented 1 year ago

I have added a functionality that allows a folder to be uploaded. The DICOM headers are stored correctly on the database. However I still need to figure out how to display the folder on the webpage.

Lucrezia-Cester commented 1 year ago

This code allows the user to upload a folder and click on the folder as one of the available files. I am currently stuck at database migration.

@tomaroberts @heyhaleema

Lucrezia-Cester commented 1 year ago

[

https://user-images.githubusercontent.com/83493021/230040533-48333bc8-b6f2-47f6-b5e9-c8ceb92f2bd0.mov

](url)

Slice Position requires a folder as input.

I have created a function upload_folder() function handles the folder upload process. In theory, it should saves the uploaded folder to the server, extracts the files from the ZIP archive, and then calls the ingest() function for each file in the folder.

However I checked in postico and the database does not update when the folder is uploaded.

@hshuaib90

sophie22 commented 1 year ago

The slice position task expects 60 input files, which can be selected as a series, having uploaded all 60 files from a folder/series using the existing upload function. The slice position task can then be run on this series of 60 files, without further modifications to the code.