Skip to content

Commit

Permalink
update to fix two unit test regressions
Browse files Browse the repository at this point in the history
  • Loading branch information
sdat2 committed Sep 23, 2024
1 parent b290cad commit 4accd99
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion sithom/curve.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Polynomial curve fitting."""

from typing import Callable, Tuple, Sequence, Union, Optional, Literal
import numpy as np
from uncertainties import unumpy as unp, ufloat
Expand Down Expand Up @@ -108,7 +109,7 @@ def _label(param: Sequence[ufloat]) -> str:
param (Sequence[ufloat]): Polynomial fit to print out.
Returns:
str: Output of polynomial (e.g 'y = ($2\pm1$) x + 1\pm 2' )
str: Output of polynomial (e.g 'y = ($2\\\\pm1$) x + 1\\\\pm 2' )
Examples:
>>> from sithom.curve import _label
Expand Down
4 changes: 3 additions & 1 deletion sithom/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ def lim(
if balance:
vmin, vmax = _balance(vmin, vmax)

return (vmin, vmax)
return (float(vmin), float(vmax))


def pairplot(df: pd.DataFrame) -> None:
Expand All @@ -472,6 +472,8 @@ def pairplot(df: pd.DataFrame) -> None:
https://stackoverflow.com/a/50835066
TODO: Add option for subplot labels (a), (b), (c) etc.
Args:
df (pd.DataFrame): A data frame.
"""
Expand Down
1 change: 1 addition & 0 deletions sithom/time.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Time Utilities Module."""

from typing import Callable
import time
from functools import wraps
Expand Down

0 comments on commit 4accd99

Please sign in to comment.