Skip to content

Commit

Permalink
mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
ric-evans committed Nov 15, 2024
1 parent 25e0bba commit af858f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion examples/standard_distribution_comparisons.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

import numpy
import pylab # type: ignore[import]

# What's the difference here between voka.metrics.chisq
# and scipy.stats.chisquare ?
# import voka.metrics.chisq
Expand Down
6 changes: 3 additions & 3 deletions examples/traditional_two_sample_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def compare(benchmark_distribution, systematic_distribution, pvalues, density=Fa
print(80 * '-')
figure_number = 1

pvalues_width_systematic = collections.defaultdict(list)
pvalues_width_systematic: dict = collections.defaultdict(list)
for idx, systematic_width in enumerate(widths):
# print('width = %.4f' % systematic_width)
systematic_distribution = numpy.random.normal(loc=benchmark_center,
Expand Down Expand Up @@ -237,7 +237,7 @@ def compare(benchmark_distribution, systematic_distribution, pvalues, density=Fa
pylab.ylabel('log(p-value)')

print(80 * '-')
pvalues_center_systematic = collections.defaultdict(list)
pvalues_center_systematic: dict = collections.defaultdict(list)
for idx, systematic_center in enumerate(centers):
# print('center = %.4f' % systematic_center)
systematic_distribution = numpy.random.normal(loc=systematic_center,
Expand Down Expand Up @@ -282,7 +282,7 @@ def compare(benchmark_distribution, systematic_distribution, pvalues, density=Fa
print(80 * '-')
pylab.figure(figure_number)
figure_number += 1
pvalues_size_systematic = collections.defaultdict(list)
pvalues_size_systematic: dict = collections.defaultdict(list)
for systematic_size in sizes:
# print('size = %d' % int(systematic_size))
systematic_distribution = numpy.random.normal(loc=benchmark_center,
Expand Down

0 comments on commit af858f6

Please sign in to comment.