Skip to content

Commit

Permalink
Merge pull request #181 from slacgismo/bmeyers-patch-1
Browse files Browse the repository at this point in the history
Fixing a bug in the default setting for the time dilation module.
  • Loading branch information
bmeyers authored Feb 21, 2025
2 parents d5aa80d + 38abc9a commit 813b505
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions solardatatools/algorithms/dilation.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
"matrix": "raw",
}


class Dilation:
def __init__(self, data_handler, **config):
if len(config) == 0:
self.config = DEFAULT
else:
self.config = config
def __init__(self, data_handler, nvals_dil=DEFAULT["nvals_dil"], matrix=DEFAULT["matrix"]):
config = {
"nvals_dil": nvals_dil,
"matrix": matrix
}
self.config = config
if self.config["matrix"] == "raw":
mat = data_handler.raw_data_matrix
elif self.config["matrix"] == "filled":
Expand Down

0 comments on commit 813b505

Please sign in to comment.