Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add logging of when we enter and exit gj #244

Merged
merged 1 commit into from
Nov 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions polytope_feature/datacube/backends/fdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ def __init__(

self.gj = gj
if len(alternative_axes) == 0:
logging.info("Find GribJump axes for %s", context)
self.fdb_coordinates = self.gj.axes(partial_request, ctx=context)
logging.info("Retrieved available GribJump axes for %s", context)
if len(self.fdb_coordinates) == 0:
raise BadRequestError(partial_request)
else:
Expand Down Expand Up @@ -117,7 +119,9 @@ def get(self, requests: TensorIndexTree, context=None):
complete_list_complete_uncompressed_requests.append(complete_uncompressed_request)
complete_fdb_decoding_info.append(fdb_requests_decoding_info[j])
logging.debug("The requests we give GribJump are: %s", complete_list_complete_uncompressed_requests)
logging.info("Requests given to GribJump extract for %s", context)
output_values = self.gj.extract(complete_list_complete_uncompressed_requests, context)
logging.info("Requests extracted from GribJump for %s", context)
logging.debug("GribJump outputs: %s", output_values)
self.assign_fdb_output_to_nodes(output_values, complete_fdb_decoding_info)

Expand Down
Loading