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
2839b4bd
Commit
2839b4bd
authored
9 years ago
by
Nathaniel Kofalt
Browse files
Options
Downloads
Patches
Plain Diff
Add QA rule
parent
8c2549f8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
api/jobs.py
+2
-1
2 additions, 1 deletion
api/jobs.py
api/rules.py
+7
-3
7 additions, 3 deletions
api/rules.py
with
9 additions
and
4 deletions
api/jobs.py
+
2
−
1
View file @
2839b4bd
...
...
@@ -40,7 +40,8 @@ def valid_transition(from_state, to_state):
return
(
from_state
+
'
-->
'
+
to_state
)
in
JOB_TRANSITIONS
or
from_state
==
to_state
ALGORITHMS
=
[
'
dcm2nii
'
'
dcm2nii
'
,
'
qa
'
]
# A FileInput tuple holds all the details of a scitran file that needed to use that as an input a formula.
...
...
This diff is collapsed.
Click to expand it.
api/rules.py
+
7
−
3
View file @
2839b4bd
...
...
@@ -42,12 +42,16 @@ MATCH_TYPES = [
# TODO: replace with default rules, which get persisted, maintained, upgraded, and reasoned intelligently
HARDCODED_RULES
=
[
# dcm2nii
{
'
alg
'
:
'
dcm2nii
'
,
'
all
'
:
[
[
'
file.type
'
,
'
dicom
'
]
],
'
alg
'
:
'
dcm2nii
'
]
},
{
'
alg
'
:
'
qa
'
,
'
all
'
:
[
[
'
file.name
'
,
'
*.nii.gz
'
]
]
}
]
...
...
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