Skip to content

Commit

Permalink
Merge pull request #25 from SDCCA/development
Browse files Browse the repository at this point in the history
fixed typo issue causing tests to fail
  • Loading branch information
meiertgrootes authored Apr 22, 2024
2 parents e415836 + c4aca1c commit 122ebdb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions quafing/multipdf/factorized_multi_dimensional_pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ def calculate_pdf(self,method=None,discretization=None):
'no method for density estimation specified')
else:
if isinstance(method,str):
warning.warn(
warnings.warn(
f'density method for ALL columns being set to {method}')
for c in self._colmetadata:
c.update({'density_method':method})
else:
for c in self._colmetadata:
colmeth = [m for i,m in enumerate(method) if m['ColNames'] == c['ColNames']]
if len(colmeth) == 0:
warning.warn(f"No density method specified for {c['ColNames']}")
warnings.warn(f"No density method specified for {c['ColNames']}")
c.update({'density_method':None})
else:
c.update(colmeth[0])
Expand All @@ -75,7 +75,7 @@ def calculate_pdf(self,method=None,discretization=None):
for c in self._colmetadata:
colmeth = [m for i,m in enumerate(method) if m['ColNames'] == c['ColNames']]
if len(colmeth) == 0:
warning.warn(f"No density method specified for {c['ColNames']}")
warnings.warn(f"No density method specified for {c['ColNames']}")
c.update({'density_method':None})
else:
c.update(colmeth[0])
Expand Down

0 comments on commit 122ebdb

Please sign in to comment.