nickmckay / LiPD-utilities

Input/output and manipulation utilities for LiPD files in Matlab, R and Python
http://nickmckay.github.io/LiPD-utilities/
GNU General Public License v2.0
29 stars 9 forks source link

Python: validate function returns 404 error #77

Open khider opened 3 years ago

khider commented 3 years ago

The validate function returns 404 error from the api.

To reproduce:

import lipd as lpd
D=lpd.readLipd('http://wiki.linked.earth/wiki/index.php/Special:WTLiPD?op=export&lipdid=MD97-2141.Rosentha.2003') 
lpd.validate(D)

Returns:

Fetching results from validator at lipd.net/validator... this may take a few moments. MD97-2141.Rosentha.2003.lpd STATUS: HTTP 404: Not Found

Also can the function be modified to return the results/detailed and make the print optional? Reason: allow to validate files before use with a scientific software.