From 54755492c5234e4a3254d09aa3fe6e941565bcf2 Mon Sep 17 00:00:00 2001 From: Sortofamudkip <wishyutp0328@gmail.com> Date: Wed, 12 Jul 2023 19:32:24 +0200 Subject: [PATCH] fixed parameter checking --- src/Dataset.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Dataset.py b/src/Dataset.py index fc3c334..a8b6924 100644 --- a/src/Dataset.py +++ b/src/Dataset.py @@ -232,7 +232,7 @@ class Dataset: if type(colname) != str: logging.error("parameter `colname` is not a string") raise ValueError(f"{colname} is not a string") - if type(colname) not in (None, bool): + if type(ascending) not in (None, bool): logging.error("parameter `ascending` is not a bool or None") raise ValueError(f"{colname} is not a bool or None") @@ -270,7 +270,7 @@ class Dataset: if type(colname) != str: logging.error("parameter `colname` is not a string") raise ValueError(f"{colname} is not a string") - if type(colname) not in (None, bool): + if type(ascending) not in (None, bool): logging.error("parameter `ascending` is not a bool or None") raise ValueError(f"{colname} is not a bool or None") -- GitLab