This repository has been archived by the owner on Oct 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patherrorConfig.json
135 lines (135 loc) · 4.55 KB
/
errorConfig.json
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
{
"AttributeError": [
{
"module": {
"helptext": [
"Misspelling a method, ie: `np.arenge` instead of `np.arange`",
"Using a method that uses a different name, i.e `np.total` instead of `np.sum`"
]
}
},
{
"object has no attribute": {
"helptext": [
"Trying to get an attribute that doesn't exist, or misspelled, i.e \n ` a = Table().with_columns(\"Column 1\", data)` then calling `a.num_row` instead of `a.num_rows` "
]
}
}
],
"IndexError": [
{
"out of range": {
"helptext": [
"Trying to index with a value larger than the size of the array. Double check that the length of the array and make sure you aren't using a number larger than that. Also don't forget python is 0-index"
]
}
}
],
"NameError": [
{
"defined": {
"helptext": [
"Misspelling a variable, function, or method name ",
"Not importing required libraries, i.e not running the cell with `import numpy as np`",
"Kernel died. You might need to re-run cells to redefine variables"
]
}
}
],
"SyntaxError": [
{
"EOF": {
"helptext": [
"Having the wrong number of parenthesis or brackets",
"Not using a colon in define statements or for loops"
]
}
},
{
"invalid syntax": {
"helptext": [
"Adding extra parenthesis",
"Not following python define or for loop structure, not adding a colon"
]
}
}
],
"TypeError": [
{
"unsupported operand": {
"helptext": [
"Using the wrong type of input, i.e `np.arange(\"3\")`"
]
}
},
{
"not callable": {
"helptext": [
"Using a variable or object that isn't a function but using it as one, i.e `3(2)`, in this case we are using 3 as a function, if you wanted to multiply you need `3*(2)`",
"Using `tbl.columns` instead of `tbl.column`"
]
}
},
{
"positional arguments": {
"helptext": [
"Using a function that takes in a different number of arguments than provided"
]
}
},
{
"not supported between": {
"helptext": [
"Using two different incompatible object types in an operation like comparison, `3 == [3,3]`. Notice here we want to use a list and number, but this kind of operation isn't allowed, one needs to convert to array with `make_array` or review the problem specifications"
]
}
},
{
"scatter() missing 1 required positional": {
"helptext": [
"Need to include give x and y column names as string, like `tbl.scatter(x_column, y_column)`"
]
}
},
{
"with_column() missing 1 required positional argument": {
"helptext": [
"Need to give both the column name and the data as an array"
]
}
}
],
"ValueError": [
{
"invalid": {
"helptext": [
"Converting something that cannot be converted, i.e `int(\"HELLO WORLD!!\")`"
]
}
},
{
"not in the table": {
"helptext": [
"Misspelling a column label, or using a column name that isn't in the table"
]
}
},
{
"not in labels": {
"helptext": [
"Using a label not in the table, should use full name `duration (standard units)` not just `duration`",
"Not using proper spacing in `duration (standard units)`"
]
}
}
],
"ZeroDivisionError": [
{
"division by zero": {
"helptext": [
"Using the division symbol '/' where the denominator is 0 or a variable set to 0."
]
}
}
]
}