Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

task metrics testing should be more robust #939

Open
grg2rsr opened this issue Feb 27, 2025 · 0 comments
Open

task metrics testing should be more robust #939

grg2rsr opened this issue Feb 27, 2025 · 0 comments

Comments

@grg2rsr
Copy link

grg2rsr commented Feb 27, 2025

TestTaskMetrics loads fake bpod data:

class TestTaskMetrics(unittest.TestCase):
    def setUp(self):
        self.data = self.load_fake_bpod_data()
        self.wheel_gain = 4
        wheel_data = self.load_fake_wheel_data(self.data, wheel_gain=self.wheel_gain)
        self.data.update(wheel_data)

    @staticmethod
    def load_fake_bpod_data(n=5):
        """Create fake extractor output of bpodqc.load_data

        :param n: the number of trials
        :return: a dict of simulated trial data
        """

if the n is changed ( in load_fake_bpod_data(n=5), several tests start to fail.

@grg2rsr grg2rsr changed the title fake bpod data in task metrics testing should be more robust task metrics testing should be more robust Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant