Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 3, 2023
1 parent b479682 commit 5b18b64
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
14 changes: 8 additions & 6 deletions xhydro/frequency_analysis/local.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
import xarray as xr
import numpy as np
import warnings
import copy
import fnmatch
import warnings
from typing import Union

import numpy as np
import pandas as pd
import fnmatch
import scipy.stats
import xhydro as xh

import xarray as xr
from statsmodels.tools import eval_measures
from xclim.indices.stats import fit, parametric_quantile

import xhydro as xh

__all__ = [
"Data",
"Local",
]


class Data:
def __init__(self, ds: xr.Dataset):
"""init function takes a dataset as input and initialize an empty
Expand Down
6 changes: 3 additions & 3 deletions xhydro/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ def get_julian_day(month, day, year=None):
Examples
--------
>>> import xarray as xr
>>> cehq_data_path = '/dbfs/mnt/devdlzxxkp01/datasets/xhydro/tests/cehq/zarr'
>>> cehq_data_path = "/dbfs/mnt/devdlzxxkp01/datasets/xhydro/tests/cehq/zarr"
>>> ds = xr.open_zarr(cehq_data_path, consolidated=True)
>>> donnees = Data(ds)
>>> jj = donnees.get_julian_day(month = 9, day = 1)
>>> jj = donnees.get_julian_day(month=9, day=1)
>>> jj: 244
>>> jj = donnees.get_julian_day(month = 9, day = 1, year = 2000)
>>> jj = donnees.get_julian_day(month=9, day=1, year=2000)
>>> jj: 245
"""
if year is None:
Expand Down

0 comments on commit 5b18b64

Please sign in to comment.