Best Python code snippet using pandera_python
analyse_logdata_ekf.py
Source:analyse_logdata_ekf.py
...53 pos_checks_when_sensors_not_fused=pos_checks_when_sensors_not_fused)54 metrics = calculate_ecl_ekf_metrics(55 ulog, innov_flags, innov_fail_checks, sensor_checks, in_air, in_air_no_ground_effects,56 red_thresh=red_thresh, amb_thresh=amb_thresh)57 check_status, master_status = perform_ecl_ekf_checks(58 metrics, sensor_checks, innov_fail_checks, check_levels)59 return master_status, check_status, metrics, airtime_info60def find_checks_that_apply(61 control_mode: dict, estimator_status: dict, pos_checks_when_sensors_not_fused: bool = False) ->\62 Tuple[List[str], List[str]]:63 """64 finds the checks that apply and stores them in lists for the std checks and the innovation65 fail checks.66 :param control_mode:67 :param estimator_status:68 :param b_pos_only_when_sensors_fused:69 :return: a tuple of two lists that contain strings for the std checks and for the innovation70 fail checks.71 """...
registry.py
Source:registry.py
...47 else:48 if check:49 tags += (check, )50 return inner51 def run_checks(self, app_configs=None, tags=None, include_deployment_checks=False):52 """53 Run all registered checks and return list of Errors and Warnings.54 """55 errors = []56 checks = self.get_checks(include_deployment_checks)57 if tags is not None:58 checks = [check for check in checks59 if hasattr(check, 'tags') and set(check.tags) & set(tags)]60 else:61 # By default, 'database'-tagged checks are not run as they do more62 # than mere static code analysis.63 checks = [check for check in checks64 if not hasattr(check, 'tags') or Tags.database not in check.tags]65 for check in checks:66 new_errors = check(app_configs=app_configs)67 assert is_iterable(new_errors), (68 "The function %r did not return a list. All functions registered "69 "with the checks registry must return a list." % check)70 errors.extend(new_errors)71 return errors72 def tag_exists(self, tag, include_deployment_checks=False):73 return tag in self.tags_available(include_deployment_checks)74 def tags_available(self, deployment_checks=False):75 return set(chain(*[check.tags for check in self.get_checks(deployment_checks) if hasattr(check, 'tags')]))76 def get_checks(self, include_deployment_checks=False):77 checks = list(self.registered_checks)78 if include_deployment_checks:79 checks.extend(self.deployment_checks)80 return checks81registry = CheckRegistry()82register = registry.register83run_checks = registry.run_checks...
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!