-
Notifications
You must be signed in to change notification settings - Fork 133
/
Copy pathmessages.py
69 lines (65 loc) · 2.94 KB
/
messages.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
#
# Copyright 2021 The NiPreps Developers <[email protected]>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# We support and encourage derived works from this project, please read
# about our expectations at
#
# https://www.nipreps.org/community/licensing/
#
"""Logging and console messages."""
BIDS_META = 'Generating BIDS derivatives metadata.'
BUILDING_WORKFLOW = 'Building {modality} MRIQC workflow {detail}.'
CREATED_DATASET = 'Created dataset X="{feat_file}", Y="{label_file}" (N={n_samples} valid samples)'
DROPPING_NON_NUMERICAL = 'Dropping {n_labels} samples for having non-numerical labels'
GROUP_FINISHED = 'Group level finished successfully.'
GROUP_NO_DATA = 'No data found. No group level reports were generated.'
GROUP_START = """\
------------------------------------------------------------------
Generating group reports
------------------------------------------------------------------
"""
INDIVIDUAL_REPORT_GENERATED = 'Generated individual log: {out_file}'
PARTICIPANT_START = """\
------------------------------------------------------------------
Running MRIQC version {version}
----------------------------------------------------------------
{notice}
----------------------------------------------------------------
* BIDS dataset path: {bids_dir}.
* Output folder: {output_dir}.
* Analysis levels: {analysis_level}.
{extra_messages}------------------------------------------------------------------
"""
PARTICIPANT_FINISHED = """\
Participant level finished successfully averaging {duration} per subject."""
POST_Z_NANS = 'Columns {nan_columns} contain NaNs after z-scoring.'
QC_UPLOAD_COMPLETE = 'QC metrics successfully uploaded.'
QC_UPLOAD_START = 'MRIQC Web API: submitting to <{url}>'
GROUP_REPORT_GENERATED = 'Group-{modality} report generated: {path}'
RUN_FINISHED = """\
----------------------------------------------------------------
MRIQC completed (elapsed time {duration}).
----------------------------------------------------------------
"""
SUSPICIOUS_DATA_TYPE = "Input image {in_file} has a suspicious data type: '{dtype}'"
TSV_GENERATED = 'Generated summary TSV table for {modality} data: {path}'
VOXEL_SIZE_OK = 'Voxel size is large enough.'
VOXEL_SIZE_SMALL = (
'One or more voxel dimensions (%f, %f, %f) are smaller than the '
'requested voxel size (%f) - diff=(%f, %f, %f)'
)
Z_SCORING = 'z-scoring dataset...'