commit/galaxy-central: dan: Merged in BjoernGruening/galaxy-central-1/documentation_fixes (pull request #564)
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/aa68a19aea9d/ Changeset: aa68a19aea9d User: dan Date: 2014-11-14 15:19:11+00:00 Summary: Merged in BjoernGruening/galaxy-central-1/documentation_fixes (pull request #564) Improve the docstring of previously added sniff functions. Affected #: 2 files diff -r 65121c7c76af6b5b4501477780432d2ae3ebfc57 -r aa68a19aea9dac59c45b752e4dec6cbee7dc70cc lib/galaxy/datatypes/text.py --- a/lib/galaxy/datatypes/text.py +++ b/lib/galaxy/datatypes/text.py @@ -139,7 +139,8 @@ def sniff( self, filename ): """ - Try to load the string with the json module. If successful it's a json file. + Try to guess the Obo filetype. + It usually starts with a "format-version:" string and has several stanzas which starts with "id:". """ stanza = re.compile(r'^\[.*\]$') with open( filename ) as handle: diff -r 65121c7c76af6b5b4501477780432d2ae3ebfc57 -r aa68a19aea9dac59c45b752e4dec6cbee7dc70cc lib/galaxy/datatypes/xml.py --- a/lib/galaxy/datatypes/xml.py +++ b/lib/galaxy/datatypes/xml.py @@ -136,7 +136,7 @@ def sniff( self, filename ): """ - Try to load the string with the json module. If successful it's a json file. + Checking for keyword - '<owl' in the first 200 lines. """ owl_marker = re.compile(r'\<owl:') with open( filename ) as handle: Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org