Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
fix constants
Browse files Browse the repository at this point in the history
  • Loading branch information
b8raoult committed Feb 14, 2024
1 parent 97edeb4 commit 4951f96
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions ecml_tools/create/functions/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ def normalise_time_to_hours(r):
return r


def constants(context, dates, request, **kwargs):
to_list(request["param"])
def constants(dates, param, **kwargs):

template = get_template_field(request)

print(f"✅ load_source(constants, {template}, {request}")
return load_source("constants", source_or_dataset=template, **request)
template = get_template_field(kwargs)

print(f"✅ load_source(constants, {template}, {kwargs}")
return load_source("constants", source_or_dataset=template, date=dates, param=param)


execute = constants
Expand Down
2 changes: 1 addition & 1 deletion ecml_tools/create/loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def __init__(self, config, **kwargs):

self.groups = build_groups(*self.main_config.loop)
print("✅ GROUPS")
print(self.groups, self.main_config.loop)
# print(self.groups, self.main_config.loop)

self.output = build_output(self.main_config.output, parent=self)
self.input = self.build_input()
Expand Down

0 comments on commit 4951f96

Please sign in to comment.