Closed nagoue closed 2 weeks ago
there are some defaults to try to interpret the date , but it can be overriden in properties file, for example:
http.group.file.date_format=%%Y-%%m-%%d %%H:%%M
unfortunatly dates are presented in very different formats
Thanks for the tip. I'll try that. It's cleaner !
De: "Olivier Sallou" @.> À: "genouest/biomaj-download" @.> Cc: "Nadia GOUE" @.>, "Author" @.> Envoyé: Vendredi 28 Janvier 2022 09:30:24 Objet: Re: [genouest/biomaj-download] mis-interpretation of date format (Issue #41)
there are some defaults to try to interpret the date , but it can be overriden in properties file, for example: http.group.file.date_format=%%Y-%%m-%%d %%H:%%M
unfortunatly dates are presented in very different formats
— Reply to this email directly, [ https://github.com/genouest/biomaj-download/issues/41#issuecomment-1023992185 | view it on GitHub ] , or [ https://github.com/notifications/unsubscribe-auth/ACE4IHQCY35Z7P2GUEFV7R3UYJH2BANCNFSM5NAB6BAQ | unsubscribe ] . Triage notifications on the go with GitHub Mobile for [ https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 | iOS ] or [ https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub | Android ] . You are receiving this because you authored the thread. Message ID: <genouest/biomaj-download/issues/41/1023992185 @ github . com>
Hi @osallou, I encountered this issue trying downloading from this site : https://ftp.uniprot.org/pub/databases/uniprot/current_release/uniparc/ Log is:
Meaning that
year
andday
are mixed up. Then, I modified this script :biomaj/venv/lib/python2.7/site-packages/biomaj_download/download/http.py
this way to make it works:It's definitely not the best way, but it solved the issue for my week. I am not really sure to see how this part of script is supposed to work as I have impression
self.http_parse.file_date_format
is always set tonone
. Cheers,