Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement download component #1166

Closed
ddelpiano opened this issue Jul 19, 2021 · 3 comments
Closed

Implement download component #1166

ddelpiano opened this issue Jul 19, 2021 · 3 comments
Assignees

Comments

@ddelpiano
Copy link
Contributor

related to the implementation of https://app.zenhub.com/workspaces/vfb15-59c292c4286ea849ed3c9326/issues/virtualflybrain/geppetto-vfb/1163 .

Note:

  • as first iteration we will implement a simple flexlayout tab component with:
  • a checklist for the file types to be downloaded (provided in the design card).
  • a download button
  • once the download button is clicked this should trigger a rest call to the file server to download all the file types selected for all the instances of the scene.

No styling at this stage, this will be a poc to test the functionality, the we will worry about the look and feel in a separate card, probably linked to the upload itself.

@Robbie1977
Copy link
Contributor

Robbie1977 commented Jul 20, 2021

@ddelpiano @jrmartin development branch now implements the VFB_xxxxxxxx.VFB_xxxxxxxx_meta variable:

DownloadMeta
{'obj':{'url':'https://v2.virtualflybrain.org/data/VFB/i/jrch/ju5n/VFB_00101567/volume.obj','local':'VFB_00101567/PointCloudFiles(OBJ)/VFB_jrchju5n_(FB7B_L_(FlyEM-HB:948346463)).obj'},'swc':{'url':'https://v2.virtualflybrain.org/data/VFB/i/jrch/ju5n/VFB_00101567/volume.swc','local':'VFB_00101567/Skeleton(SWC)/VFB_jrchju5n_(FB7B_L_(FlyEM-HB:948346463)).swc'},'wlz':{'url':'https://v2.virtualflybrain.org/data/VFB/i/jrch/ju5n/VFB_00101567/volume.wlz','local':'VFB_00101567/Slices(WOOLZ)/VFB_jrchju5n_(FB7B_L_(FlyEM-HB:948346463)).wlz'},'nrrd':{'url':'https://v2.virtualflybrain.org/data/VFB/i/jrch/ju5n/VFB_00101567/volume.nrrd','local':'VFB_00101567/SignalFiles(NRRD)/VFB_jrchju5n_(FB7B_L_(FlyEM-HB:948346463)).nrrd'}}

formatted:

{
   "obj":{
      "url":"https://v2.virtualflybrain.org/data/VFB/i/jrch/ju5n/VFB_00101567/volume.obj",
      "local":"VFB_00101567/PointCloudFiles(OBJ)/VFB_jrchju5n_(FB7B_L_(FlyEM-HB:948346463)).obj"
   },
   "swc":{
      "url":"https://v2.virtualflybrain.org/data/VFB/i/jrch/ju5n/VFB_00101567/volume.swc",
      "local":"VFB_00101567/Skeleton(SWC)/VFB_jrchju5n_(FB7B_L_(FlyEM-HB:948346463)).swc"
   },
   "wlz":{
      "url":"https://v2.virtualflybrain.org/data/VFB/i/jrch/ju5n/VFB_00101567/volume.wlz",
      "local":"VFB_00101567/Slices(WOOLZ)/VFB_jrchju5n_(FB7B_L_(FlyEM-HB:948346463)).wlz"
   },
   "nrrd":{
      "url":"https://v2.virtualflybrain.org/data/VFB/i/jrch/ju5n/VFB_00101567/volume.nrrd",
      "local":"VFB_00101567/SignalFiles(NRRD)/VFB_jrchju5n_(FB7B_L_(FlyEM-HB:948346463)).nrrd"
   }
}

@jrmartin
Copy link
Contributor

@Robbie1977 I tested the zip server and it's working well. The obj, wlz, nrrd and bibtex get downloaded as part of the zip. The ones missing are the images and .swc files, the variable 'filemeta' in the geppetto model doesn't have references for the images or .swc.

jrmartin added a commit that referenced this issue Jul 31, 2021
@Robbie1977
Copy link
Contributor

Robbie1977 commented Jul 31, 2021

@jrmartin Only neurons have skeletons (swc) files. I haven't added the thumbnails but can do that although we need to be able to just configure extension type with names in the download tool so the exact files aren't important just a configurable list of NAME (EXT) for users to tick from e.g. skeletons (swc)

An example Neuron with swc would be VFB_00000001 or VFB_jrchjrch

@jrmartin jrmartin linked a pull request Aug 13, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants