You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# You can access the logs from python with the 'logs' key of the Checkcel class
101
102
```
102
103
103
104
# Templates
@@ -108,8 +109,12 @@ In all cases, you will need to at least include a list of validators and associa
108
109
**metadata*: A list of column names. This will create a metadata sheet with these columns, without validation on them
109
110
**expected_rows*: (Default 0): Number of *data* rows expected
110
111
**empty_ok* (Default False): Whether to accept empty values as valid
111
-
**ignore_space* (Default False): whether to trim the values for spaces before checking validity
112
-
**ignore_case* (Default False): whether to ignore the case
112
+
**na_ok* (Default False): whether to allow NA (or n/a) values as valid
113
+
**ignore_space* (Default False): whether to trim the values for spaces before checking validity in python
114
+
**ignore_case* (Default False): whether to ignore the case (when relevant)before checking validity in python
115
+
**skip_generation* (Default False): whether to skip the excel validation generation (for file generation) for all validators
116
+
**skip_validation* (Default False): whether to skip the python validation for all validators
117
+
**unique* (Default False): whether to require unicity for all validators
113
118
114
119
The last 3 parameters will affect all the validators (when relevant), but can be overriden at the validator level (eg, you can set 'empty_ok' to True for all, but set it to False for a specific validator).
115
120
@@ -155,66 +160,69 @@ All validators (except NoValidator) have these options available. If relevant, t
155
160
* The dict keys must be column names, and the values lists of 'rejected values'. The current column will accept empty values if the related column's value is **not** in the list of reject values
156
161
**ignore_space* (Default False): whether to trim the values for spaces before checking validity
157
162
**ignore_case* (Default False): whether to ignore the case
158
-
**unique* (Default False): whether to enforce unicity for this column. (Not enforced in excel yet, except if there are not other validation (ie TextValidator and RegexValidator in some cases))
163
+
**unique* (Default False): whether to enforce unicity for this column. (Not enforced in excel for 'Set-type' validators (set, linked-set, ontology, vocabulaireOuvert))
164
+
**na_ok* (Default False): whether to allow NA (or n/a) values as valid.
165
+
**skip_generation* (Default False): whether to skip the excel validation for this validator (for file generation)
166
+
**skip_validation* (Default False): whether to skip the python validation for this validator
159
167
160
168
*As excel validation for non-empty values is unreliable, the non-emptiness cannot be properly enforced in excel files*
161
169
162
170
### Validator-specific options
163
171
164
172
* NoValidator (always True)
165
173
***No in-file validation generated**
166
-
* TextValidator(empty_ok=False)
174
+
* TextValidator(**kwargs)
167
175
***No in-file validation generated** (unless *unique* is set)
168
-
* IntValidator(min="", max="", empty_ok=False)
176
+
* IntValidator(min="", max="", **kwargs)
169
177
* Validate that a value is an integer
170
178
**min*: Minimal value allowed
171
179
**max*: Maximal value allowed
172
-
* FloatValidator(min="", max="", empty_ok=False)
180
+
* FloatValidator(min="", max="", **kwargs)
173
181
* Validate that a value is an float
174
182
**min*: Minimal value allowed
175
183
**max*: Maximal value allowed
176
-
* SetValidator(valid_values=[], empty_ok=False)
184
+
* SetValidator(valid_values=[], **kwargs)
177
185
* Validate that a value is part of a set of allowed values
0 commit comments