Skip to content

Commit

Permalink
Small tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisspyB committed Nov 13, 2024
1 parent a3fdd50 commit 14e3372
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pygribjump/src/pygribjump/pygribjump.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ class ExtractionRequest:
The ranges to extract.
"""
def __init__(self, req, ranges, gridHash=None):
reqstr = dic_to_request(req)
reqstr = dic_to_request(req)
rangestr = list_to_rangestr(ranges)
request = ffi.new('gribjump_extraction_request_t**')
c_reqstr = ffi.new("char[]", reqstr.encode())
Expand Down
2 changes: 2 additions & 0 deletions src/gribjump/Engine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ Engine::~Engine() {}
metkit::mars::MarsRequest Engine::buildRequestMap(ExtractionRequests& requests, ExItemMap& keyToExtractionItem ){
// Split strings into one unified map
// We also canonicalise the requests such that their keys are in alphabetical order
/// @todo: Note that it is not in general possible to arbitrary requests into a single request. In future, we should look into
/// merging into the minimum number of requests.

std::map<std::string, std::set<std::string>> keyValues;
for (auto& r : requests) {
Expand Down
2 changes: 0 additions & 2 deletions src/gribjump/ExtractionData.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
#include "eckit/value/Value.h"
#include "eckit/io/Buffer.h"

#include "metkit/mars/MarsParser.h"

namespace gribjump {

namespace {
Expand Down
4 changes: 0 additions & 4 deletions src/gribjump/ExtractionData.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ class ExtractionResult {
private: // members
std::vector<std::vector<double>> values_;
std::vector<std::vector<std::bitset<64>>> mask_;

friend class Serialiser;
};

//----------------------------------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -94,8 +92,6 @@ class ExtractionRequest {
std::vector<Range> ranges_;
std::string request_;
std::string gridHash_;

friend class Serialiser;
};

//----------------------------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit 14e3372

Please sign in to comment.