Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
asapo
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
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
GitLab update on
Thursday, 24 April, 7 a.m. CEST
Show more breadcrumbs
Joao Alvim Oliveira Dias De Almeida
asapo
Commits
5f1e68ab
Commit
5f1e68ab
authored
3 years ago
by
Sergey Yakubov
Browse files
Options
Downloads
Patches
Plain Diff
rename some arguments
parent
e64fa883
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
consumer/api/python/asapo_consumer.pyx.in
+4
-4
4 additions, 4 deletions
consumer/api/python/asapo_consumer.pyx.in
tests/automatic/consumer/consumer_api_python/consumer_api.py
+4
-4
4 additions, 4 deletions
tests/automatic/consumer/consumer_api_python/consumer_api.py
with
8 additions
and
8 deletions
consumer/api/python/asapo_consumer.pyx.in
+
4
−
4
View file @
5f1e68ab
...
...
@@ -152,8 +152,8 @@ cdef class PyConsumer:
return arr,meta
def get_next(self, group_id, meta_only = True, stream = "default"):
return self._op("next",group_id,stream,meta_only,0)
def get_last(self, meta_only = True, stream = "default",
in
group = ""):
return self._op("last",
in
group,stream,meta_only,0)
def get_last(self, meta_only = True, stream = "default", group
_id
= ""):
return self._op("last",group
_id
,stream,meta_only,0)
def get_by_id(self,uint64_t id,meta_only = True, stream = "default"):
return self._op("id","",stream,meta_only,id)
def retrieve_data(self,meta):
...
...
@@ -370,8 +370,8 @@ cdef class PyConsumer:
return res
def get_next_dataset(self, group_id, min_size = 0, stream = "default"):
return self._op_dataset("next",group_id,stream,min_size,0)
def get_last_dataset(self, min_size = 0, stream = "default",
in
group = ""):
return self._op_dataset("last",
in
group,stream,min_size,0)
def get_last_dataset(self, min_size = 0, stream = "default", group
_id
= ""):
return self._op_dataset("last",group
_id
,stream,min_size,0)
def get_dataset_by_id(self, uint64_t id, min_size = 0, stream = "default"):
return self._op_dataset("id","0",stream,min_size,id)
def get_beamtime_meta(self):
...
...
This diff is collapsed.
Click to expand it.
tests/automatic/consumer/consumer_api_python/consumer_api.py
+
4
−
4
View file @
5f1e68ab
...
...
@@ -77,10 +77,10 @@ def check_single(consumer, group_id):
assert_usermetadata
(
meta
,
"
get last1
"
)
# get last in group
_
,
meta
=
consumer
.
get_last
(
meta_only
=
True
,
in
group
=
group_id
)
_
,
meta
=
consumer
.
get_last
(
meta_only
=
True
,
group
_id
=
group_id
)
assert_metaname
(
meta
,
"
5
"
,
"
get last in group
"
)
try
:
consumer
.
get_last
(
meta_only
=
True
,
in
group
=
group_id
)
consumer
.
get_last
(
meta_only
=
True
,
group
_id
=
group_id
)
except
asapo_consumer
.
AsapoEndOfStreamError
:
pass
else
:
...
...
@@ -337,10 +337,10 @@ def check_dataset(consumer, group_id):
assert_metaname
(
res
[
'
content
'
][
2
],
"
10_3
"
,
"
get get_last_dataset1 name3
"
)
# get last dataset in group
res
=
consumer
.
get_last_dataset
(
in
group
=
group_id
)
res
=
consumer
.
get_last_dataset
(
group
_id
=
group_id
)
assert_eq
(
res
[
'
id
'
],
10
,
"
get_last_dataset in group
"
)
try
:
consumer
.
get_last_dataset
(
in
group
=
group_id
)
consumer
.
get_last_dataset
(
group
_id
=
group_id
)
except
asapo_consumer
.
AsapoEndOfStreamError
:
pass
else
:
...
...
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