Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Chenhao Ma
core
Commits
f22fa374
Commit
f22fa374
authored
10 years ago
by
Kevin S. Hahn
Browse files
Options
Downloads
Patches
Plain Diff
jobs carries information about output file specs
parent
4f3eab3e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
util.py
+11
-0
11 additions, 0 deletions
util.py
with
11 additions
and
0 deletions
util.py
+
11
−
0
View file @
f22fa374
...
...
@@ -147,12 +147,18 @@ def create_job(db, dataset):
kinds_
=
dataset
.
nims_file_kinds
state_
=
dataset
.
nims_file_state
app_id
=
None
output_state
=
None
output_type
=
None
output_kinds
=
None
if
type_
==
'
dicom
'
and
state_
==
[
'
orig
'
]:
if
kinds_
!=
[
'
screenshot
'
]:
# could ship a script that gets mounted into the container.
# but then the script would also need to specify what base image it needs.
app_id
=
'
scitran/dcm2nii:latest
'
output_state
=
[
'
derived
'
,
]
output_type
=
'
nifti
'
output_kind
=
dataset
.
nims_file_kinds
# from input file
# TODO: determine job specifications
if
not
app_id
:
...
...
@@ -186,6 +192,11 @@ def create_job(db, dataset):
'
outputs
'
:
[
{
'
url
'
:
'
%s/%s/%s
'
%
(
'
acquisitions
'
,
aid
,
'
file
'
),
'
payload
'
:
{
'
type
'
:
output_type
,
'
state
'
:
output_state
,
# TODO defined in app
'
kinds
'
:
output_kinds
,
},
},
],
'
status
'
:
'
pending
'
,
# queued
...
...
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