Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
eossr
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
ESCAPE2020
WP3
eossr
Commits
426c2e16
Commit
426c2e16
authored
3 years ago
by
vuillaut
Browse files
Options
Downloads
Patches
Plain Diff
improve docstring of get_ossr_records taht was not clear enough
parent
2cb9b5f0
No related branches found
No related tags found
1 merge request
!46
improve docstring of get_ossr_records taht was not clear enough
Pipeline
#137728
passed
3 years ago
Stage: install
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
eossr/api/__init__.py
+3
-2
3 additions, 2 deletions
eossr/api/__init__.py
eossr/api/zenodo/__init__.py
+2
-1
2 additions, 1 deletion
eossr/api/zenodo/__init__.py
with
5 additions
and
3 deletions
eossr/api/__init__.py
+
3
−
2
View file @
426c2e16
...
...
@@ -12,10 +12,11 @@ escape_community = 'escape2020'
def
get_ossr_records
(
search
=
''
,
sandbox
=
False
,
**
kwargs
):
"""
Retrieve all OSSR entries
.
Potentially long when the number of records in the OSSR increases.
Search the OSSR for records whose names or descriptions include the provided string `search`
.
Function rewritten from pyzenodo3 (https://github.com/space-physics/pyzenodo3)
:param search: string
A string to refine the search in the OSSR. The default will search for all records in the OSSR.
:param kwargs: Zenodo query arguments.
For an exhaustive list, see the query arguments at https://developers.zenodo.org/#list36
Common arguments are:
...
...
This diff is collapsed.
Click to expand it.
eossr/api/zenodo/__init__.py
+
2
−
1
View file @
426c2e16
...
...
@@ -482,10 +482,11 @@ class Record:
def
get_zenodo_records
(
search
=
''
,
sandbox
=
False
,
**
kwargs
):
"""
Search
the ossr based on
`search`.
Search
Zenodo for records whose names or descriptions include the provided string
`search`.
Function rewritten from pyzenodo3 (https://github.com/space-physics/pyzenodo3)
:param search: string
A string to refine the search in Zenodo. The default will search for all records.
:param kwargs: Zenodo query arguments.
For an exhaustive list, see the query arguments at https://developers.zenodo.org/#list36
Common arguments are:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment