Docker-in-Docker (DinD) capabilities of public runners deactivated. More info

Commit 472e1cf3 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update recordpubli to improve method find_affiliation.

parent 321d9aa3
......@@ -385,7 +385,7 @@ class RecordPubli(Record):
pattern (str):
regular expression defining the affiliation keys.
It has to be build for an exact match namely containing
start and end of string. This is reuqired to separate
start and end of string. This is required to separate
`Ecole Plolytechnique` from `Ecole Polytechnique, Lausanne`.
Returns:
......@@ -400,7 +400,8 @@ class RecordPubli(Record):
pattern = "(%s)" % pattern
data = (df.affiliation.str.extract(pattern, expand=False)
.dropna())
.dropna()
.unique())
return (data[0] if len(data) > 0 else "")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment