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