Skip to content

Commit

Permalink
Merge pull request #3 from rajeeja/master
Browse files Browse the repository at this point in the history
o Fix pre-commit to get actions a green check :)
  • Loading branch information
hyoo authored Jun 1, 2022
2 parents c876102 + 7ebfbed commit 33fe918
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
5 changes: 3 additions & 2 deletions candle/data_utils.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
from __future__ import absolute_import

from typing import List

import numpy as np
import pandas as pd
from typing import List

# Adding conditional import for compatibility between
# sklearn versions
Expand Down Expand Up @@ -832,7 +833,7 @@ def load_Xy_data_noheader(
classes: int,
usecols: List = None,
scaling: str = None,
dtype=DEFAULT_DATATYPE
dtype=DEFAULT_DATATYPE,
):
"""
Load training and testing data from the files specified, with the first
Expand Down
4 changes: 3 additions & 1 deletion candle/helper_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
from .file_utils import get_file


def fetch_file(link: str, subdir: str, unpack: bool = False, md5_hash: str = None) -> str:
def fetch_file(
link: str, subdir: str, unpack: bool = False, md5_hash: str = None
) -> str:
"""
Convert URL to file path and download the file if it is not already
present in spedified cache.
Expand Down
2 changes: 1 addition & 1 deletion candle/uq_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def generate_index_distribution(
:param Dict params: Contains the keywords that control the behavior of the function \
(uq_train_fr, uq_valid_fr, uq_test_fr for fraction specification, \
uq_train_vec, uq_valid_vec, uq_test_vec for block list specification, and \
uq_train_bks, uq_valid_bks, uq_test_bks for block number specification)
uq_train_bks, uq_valid_bks, uq_test_bks for block number specification)
:return: Tuple of numpy arrays
Expand Down
2 changes: 1 addition & 1 deletion candle/viz_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def plot_2d_density_sigma_vs_error(sigma, yerror, method=None, figprefix=None):

def plot_histogram_error_per_sigma(sigma, yerror, method=None, figprefix=None):
"""
Functionality to plot a 1D histogram of the distribution of computed errors
Functionality to plot a 1D histogram of the distribution of computed errors
(i.e. values of observed - predicted) observed
for specific values of standard deviations computed. The range of
standard deviations computed is split in xbins values and the
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"scipy",
"patsy",
"statsmodels",
"protobuf==3.20.0",
],
setup_requires=["pytest-runner", "flake8"],
tests_requires=["pytest"],
Expand Down

0 comments on commit 33fe918

Please sign in to comment.