Grant(Record, MutableMapping)¶
-
class
metaknowledge.grants.
Grant
(original, grantdDict, idValue, bad, error, sFile='', sLine=0)¶ -
__init__
(original, grantdDict, idValue, bad, error, sFile='', sLine=0)¶ Initialize self. See help(type(self)) for accurate signature.
-
getInstitutions
(tags=None, seperator=';', _getTag=False)¶ Returns a list of the names of institutions. This is done by looking (in order) for any of fields in tags and splitting the strings on seperator (in case of multiple institutions). If no strings are found an empty list will be returned.
Note for some Grants
getInstitutions
has been overwritten and will ignore the arguments and simply provide the investigators.Parameters¶
tags :
optional list[str]
A list of the tags to look for institutions inseperator :
optional str
The string that separators each institutions name within the column
-
getInvestigators
(tags=None, seperator=';', _getTag=False)¶ Returns a list of the names of investigators. This is done by looking (in order) for any of fields in tags and splitting the strings on seperator. If no strings are found an empty list will be returned.
Note for some Grants
getInvestigators
has been overwritten and will ignore the arguments and simply provide the investigators.Parameters¶
tags :
optional list[str]
A list of the tags to look for investigators inseperator :
optional str
The string that separators each investigators name within the column
-
update
(other)¶ Adds all the tag-entry pairs from other to the
Grant
. If there is a conflict other takes precedence.
-