Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
limbra
limbra
Commits
6fcfceaf
Commit
6fcfceaf
authored
Jan 07, 2021
by
LE GAC Renaud
Browse files
Polish import and docstring of record.py and recordpubli.py
parent
17acbd9c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
modules/store_tools/record.py
modules/store_tools/record.py
+2
-1
modules/store_tools/recordpubli.py
modules/store_tools/recordpubli.py
+3
-3
No files found.
modules/store_tools/record.py
View file @
6fcfceaf
...
@@ -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
...
...
modules/store_tools/recordpubli.py
View file @
6fcfceaf
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment