write_invalid_reasons
genie.write_invalid_reasons
¶
Write invalid reasons
Attributes¶
logger = logging.getLogger(__name__)
module-attribute
¶
Functions¶
write(syn, center_mapping_synid, error_tracker_synid)
¶
Write center errors to a file
PARAMETER | DESCRIPTION |
---|---|
syn
|
Synapse connection
TYPE:
|
center_mapping_synid
|
Center mapping Synapse id
TYPE:
|
error_tracker_synid
|
Error tracking Synapse id
TYPE:
|
Source code in genie/write_invalid_reasons.py
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 |
|
_combine_center_file_errors(syn, center_errorsdf)
¶
Combine all center errors into one printable string
PARAMETER | DESCRIPTION |
---|---|
syn
|
Synapse connection
TYPE:
|
center_errorsdf
|
Center errors dataframe
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
str
|
Center errors in a pretty formatted string
TYPE:
|
Source code in genie/write_invalid_reasons.py
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
|
get_center_invalid_errors(syn, error_tracker_synid)
¶
Get all invalid errors per center
PARAMETER | DESCRIPTION |
---|---|
syn
|
Synapse connection
TYPE:
|
error_tracker_synid
|
Synapse id of invalid error database table
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
dict
|
{center: file error string}
TYPE:
|
Source code in genie/write_invalid_reasons.py
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
|