dandi / dandi-hub

Infrastructure and code for the dandihub
https://hub.dandiarchive.org
Other
9 stars 23 forks source link

feature: install MatNWB for MATLAB instances #43

Open bendichter opened 1 year ago

bendichter commented 1 year ago

In general it's hard to know what packages MATLAB users are going to want- there aren't any packages that are as ubiquitous as numpy and scipy are for Python. But it seems to me that someone opening an instance on DANDI Hub will probably want MatNWB installed. Otherwise the first few steps of anyone using MATLAB will be to do this.

What's the best way to set this up? One options is we could make a startup.m script and within that we could git clone MatNWB and add it to the path. The advantage of doing it that way would be you always have the latest version.

satra commented 1 year ago

there are two places that need to be addressed:

  1. in this post start section: https://github.com/dandi/dandi-hub/blob/dandi/dandi-info/config.yaml.j2#L253
  2. in the Dockerfile.matlab to a location like /opt/matnwb

for the moment, the dockerfile will auto rebuild, but i'll need to do trigger the changes to config manually.