Commit 36875551 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update recordpubli to improve PEP8 compliance

parent 100df53e
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
import numpy as np import numpy as np
import re import re
from .base import (ARXIV, from .base import (ARXIV,
ARXIV_PDF, ARXIV_PDF,
REG_ARXIV_NUMBER, REG_ARXIV_NUMBER,
...@@ -17,7 +16,6 @@ from pandas import concat, DataFrame ...@@ -17,7 +16,6 @@ from pandas import concat, DataFrame
from plugin_dbui import as_list, CLEAN_SPACES from plugin_dbui import as_list, CLEAN_SPACES
from .record import Record from .record import Record
AUTHOR_FORMATS = [ AUTHOR_FORMATS = [
"First, Last", "First, Last",
"F. Last", "F. Last",
...@@ -169,6 +167,7 @@ class RecordPubli(Record): ...@@ -169,6 +167,7 @@ class RecordPubli(Record):
+---------------------------------+----------------------------------+ +---------------------------------+----------------------------------+
""" """
def __init__(self, *args): def __init__(self, *args):
self._last_fmt_author = "Last, First" self._last_fmt_author = "Last, First"
...@@ -211,7 +210,7 @@ class RecordPubli(Record): ...@@ -211,7 +210,7 @@ class RecordPubli(Record):
"fmt_name", "fmt_name",
"full_name", "full_name",
"last_name"] "last_name"]
self["authors"] = DataFrame([[""]*len(cols)], columns=cols) self["authors"] = DataFrame([[""] * len(cols)], columns=cols)
return return
data = self["authors"] data = self["authors"]
...@@ -235,7 +234,7 @@ class RecordPubli(Record): ...@@ -235,7 +234,7 @@ class RecordPubli(Record):
# protection -- affiliation not defined # protection -- affiliation not defined
if "affiliation" not in columns: if "affiliation" not in columns:
dfa = DataFrame([""]*len(df), columns=["affiliation"]) dfa = DataFrame([""] * len(df), columns=["affiliation"])
df = concat([df, dfa], axis="columns") df = concat([df, dfa], axis="columns")
# convert list of affiliation to string separated by | # convert list of affiliation to string separated by |
...@@ -287,7 +286,7 @@ class RecordPubli(Record): ...@@ -287,7 +286,7 @@ class RecordPubli(Record):
"pagination"] "pagination"]
self["publication_info"] = \ self["publication_info"] = \
DataFrame([[""]*len(cols)], columns=cols) DataFrame([[""] * len(cols)], columns=cols)
return return
...@@ -823,7 +822,7 @@ class RecordPubli(Record): ...@@ -823,7 +822,7 @@ class RecordPubli(Record):
"""The date of submission. """The date of submission.
Returns: Returns:
str or list: str:
* format are"YYYY-MM", "YYYY-MM-DD", "DD MMM YYYY", *etc.* * format are"YYYY-MM", "YYYY-MM-DD", "DD MMM YYYY", *etc.*
* Empty string when not defined. * Empty string when not defined.
......
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