Skip to content

Commit

Permalink
style: Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-pasquale committed Jan 11, 2024
1 parent 8b54280 commit 7f78f5b
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions src/qibocal/auto/validators/chi2.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,26 +45,3 @@ def __call__(
except AttributeError:
log.error(f"Chi2 validation not available for {type(results)}")
return None


# def check_chi2(
# results: Results,
# target: Union[QubitId, QubitPairId, list[QubitId]],
# thresholds: Optional[list] = None,
# ) -> Optional[float]:
# """Performs validation of results using chi2.

# Find the threshold of the chi2 among thresholds.
# """

# if thresholds is None:
# thresholds = [CHI2_MAX]

# try:
# chi2 = results.chi2[target][0]
# idx = np.searchsorted(thresholds, chi2)
# return idx - 1

# except AttributeError:
# log.error(f"Chi2 validation not available for {type(results)}")
# return None

0 comments on commit 7f78f5b

Please sign in to comment.