Skip to content

Commit

Permalink
chore: fix format and type comments
Browse files Browse the repository at this point in the history
  • Loading branch information
misho104 committed Mar 9, 2019
1 parent 542eb40 commit fa3e848
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion susy_cross_section/base/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import logging
import pathlib # noqa: F401
import sys
from typing import Any, Dict, List, Mapping, MutableMapping, Optional, Sequence, Union
from typing import Any, Dict, List, Mapping, MutableMapping, Optional, Union

from susy_cross_section.utility import TypeCheck as TC

Expand Down
2 changes: 1 addition & 1 deletion susy_cross_section/interp/interpolator.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ def __init__(self, kind="linear", axes_wrapper=None):
def _interpolate(self, df):
# type: (pandas.DataFrame)->InterpType
try:
xs = df.index.levels # multiindex case
xs = df.index.levels # multiindex case
ys = df.unstack().to_numpy()
except AttributeError:
xs = [df.index.values]
Expand Down
2 changes: 1 addition & 1 deletion validation/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import validation.onedim
from susy_cross_section.interp.axes_wrapper import AxesWrapper
from susy_cross_section.interp.interpolator import ScipyGridInterpolator
from susy_cross_section.table import File, Table
from susy_cross_section.table import File

__author__ = susy_cross_section.scripts.__author__
__copyright__ = susy_cross_section.scripts.__copyright__
Expand Down
4 changes: 2 additions & 2 deletions validation/onedim.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
from susy_cross_section.interp.interpolator import (
AbstractInterpolator,
Interpolation,
ScipyGridInterpolator,
Scipy1dInterpolator,
ScipyGridInterpolator,
)
from susy_cross_section.table import Table
from validation.base import BaseValidator, PathLike
Expand Down Expand Up @@ -164,7 +164,7 @@ def draw_variations(self, ax, table, interp_list, **kwargs):
return max(max(v) for v in variations), max(max(v) for v in badnesses)

def compare(self, table, nllfast_cache_key=None):
# type: (Table)->None
# type: (Table, Optional[str])->None
"""Compare multiple interpolators."""
m = (0.22, 0.13, 0.1, 0.1) # left, bottom, right, top
w, h = 1 - m[0] - m[2], 1 - m[1] - m[3]
Expand Down

0 comments on commit fa3e848

Please sign in to comment.