dashboard.blueprints.scans package¶
Submodules¶
dashboard.blueprints.scans.forms module¶
- class dashboard.blueprints.scans.forms.ScanChecklistForm(*args, **kwargs)¶
Bases:
FlaskForm
- comment = <UnboundField(TextAreaField, ('Comment:',), {'id': 'scan-comment', 'validators': [<wtforms.validators.DataRequired object>], 'render_kw': {'placeholder': 'Add description', 'rows': 12, 'required': True, 'maxlength': '1028'}})>¶
- submit = <UnboundField(SubmitField, ('Submit',), {})>¶
- class dashboard.blueprints.scans.forms.SliceTimingForm(*args, **kwargs)¶
Bases:
FlaskForm
- submit = <UnboundField(SubmitField, ('Update',), {'id': 'submit_timings'})>¶
- timings = <UnboundField(TextAreaField, ('NewTimings',), {'id': 'new_timings', 'render_kw': {'rows': 4, 'cols': 65, 'required': True, 'placeholder': 'Enter comma separated slice timings'}})>¶
dashboard.blueprints.scans.utils module¶
- dashboard.blueprints.scans.utils.get_nifti_path(scan)¶
- dashboard.blueprints.scans.utils.update_json(scan, contents)¶
dashboard.blueprints.scans.views module¶
- dashboard.blueprints.scans.views.fix_slice_timing(study_id, scan_id, auto=False, delete=False)¶
- dashboard.blueprints.scans.views.load_scan(study_id, scan_id, file_name)¶
Sends a scan in a format the papaya viewer can read
This locates the filesystem path for a scan database record and returns it in a format that papaya can work with.
NOTE: The file name with the correct extension must be the last part of the URL or papaya will trip over decompression issues.
- dashboard.blueprints.scans.views.papaya(study_id, scan_id)¶
- dashboard.blueprints.scans.views.scan(study_id, scan_id)¶
- dashboard.blueprints.scans.views.scan_review(study_id, scan_id, sign_off=False, delete=False, update=False)¶
Module contents¶
- dashboard.blueprints.scans.register_bp(app)¶