AxFoundation / strax

Stream analysis for xenon TPCs
BSD 3-Clause "New" or "Revised" License
27 stars 38 forks source link

Check duplicate `depends_on` of `Plugin` #859

Closed yuema137 closed 2 months ago

yuema137 commented 2 months ago

Solve error #846.

Explanation

Basically what happened was:

Solution

The fix is simple, which is to remove the duplicate items in self.depends_on of the Plugin class.

coveralls commented 2 months ago

Coverage Status

coverage: 90.437% (+0.007%) from 90.43% when pulling 94248d477a297c20c2b35136c148bf4d35ccd91e on fix_zero_length_repeated into 529886d2d9dccbe9e313347de77eb681fafdaaae on master.

yuema137 commented 2 months ago

@dachengx In order to pass the pre-commit check I had to format it with black & flake. I think it happens now and then when we make PR for the files that were not checked previously. Should we do a through cleaning for strax?

dachengx commented 2 months ago

This PR was initially aimed to solve https://github.com/AxFoundation/strax/issues/846, but replaced by https://github.com/AxFoundation/strax/pull/860.

But this PR reminds us that we need to make sure that the depends_on is unique. I will change this PR to a safe guard of Plugin.