dandi / dandisets-healthstatus

Healthchecks of dandisets and support libraries (pynwb and matnwb)
0 stars 1 forks source link

Error out the run if found that matlab license has expired #92

Open yarikoptic opened 2 weeks ago

yarikoptic commented 2 weeks ago

e.g. now we have

Your license for MATLAB has expired.

for quite a while.

There could be some other errors ("matlab not found" etc) which could trigger similar reaction -- we need to be able to detect such abnormal behavior cases.

ehennestad commented 2 weeks ago

Example output that gives a warning a head of time.


'Asset: sub-YutaMouse38/sub-YutaMouse38_ses-YutaMouse38-150709_behavior+ecephys.nwb
     Output:
             ----------------------------------------------------
            Your license will expire in 14 days.
            Please contact your system administrator or
            MathWorks to renew this license.
             ----------------------------------------------------
         Error using load
         Unable to read MAT-file
         /home/dandi/cronlib/dandisets-healthstatus/matnwb/namespaces/core.mat. File
         might be corrupt.