Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
3a793f91
Commit
3a793f91
authored
4 years ago
by
Jorrit Schaap
Browse files
Options
Downloads
Patches
Plain Diff
TMSS-320
: added method get_transformed_input_dataproduct
parent
19dd4112
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!308
Resolve TMSS-495
,
!306
Resolve TMSS-320
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
SAS/TMSS/src/tmss/tmssapp/models/scheduling.py
+4
-0
4 additions, 0 deletions
SAS/TMSS/src/tmss/tmssapp/models/scheduling.py
with
4 additions
and
0 deletions
SAS/TMSS/src/tmss/tmssapp/models/scheduling.py
+
4
−
0
View file @
3a793f91
...
@@ -225,6 +225,10 @@ class Subtask(BasicCommon):
...
@@ -225,6 +225,10 @@ class Subtask(BasicCommon):
'''
'''
return
Dataproduct
.
objects
.
filter
(
producer__subtask_id
=
self
.
id
)
return
Dataproduct
.
objects
.
filter
(
producer__subtask_id
=
self
.
id
)
def
get_transformed_input_dataproduct
(
self
,
output_dataproduct_id
:
int
)
->
'
Dataproduct
'
:
'''
return the transformed input dataproduct for the given output_dataproduct_id.
'''
return
self
.
input_dataproducts
.
get
(
consumers__output_id
=
output_dataproduct_id
)
def
get_transformed_output_dataproduct
(
self
,
input_dataproduct_id
:
int
)
->
'
Dataproduct
'
:
def
get_transformed_output_dataproduct
(
self
,
input_dataproduct_id
:
int
)
->
'
Dataproduct
'
:
'''
return the transformed output dataproduct for the given input_dataproduct_id.
'''
'''
return the transformed output dataproduct for the given input_dataproduct_id.
'''
return
self
.
output_dataproducts
.
get
(
producers__input_id
=
input_dataproduct_id
)
return
self
.
output_dataproducts
.
get
(
producers__input_id
=
input_dataproduct_id
)
...
...
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