Commit 6fcfceaf authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Polish import and docstring of record.py and recordpubli.py

parent 17acbd9c
...@@ -7,7 +7,8 @@ from .base import OAI, OAI_URL, REG_OAI ...@@ -7,7 +7,8 @@ from .base import OAI, OAI_URL, REG_OAI
class Record(dict): class Record(dict):
"""The base class for JSON record. """Base class for JSON record coming from cds.cern.ch or old.inspirehep.net.
It is a dictionary with the following structure:: It is a dictionary with the following structure::
record[field][subfield] = value record[field][subfield] = value
......
...@@ -5,9 +5,9 @@ import numpy as np ...@@ -5,9 +5,9 @@ import numpy as np
import re import re
from store_tools import (ARXIV, from store_tools import (ARXIV,
ARXIV_PDF, ARXIV_PDF,
REG_ARXIV_NUMBER, REG_ARXIV_NUMBER,
REG_YEAR) REG_YEAR)
from .exception import RecordException from .exception import RecordException
from filters import CLEAN_COLLABORATION from filters import CLEAN_COLLABORATION
......
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