Skip to content

Commit

Permalink
BUFR: fix compressed text size
Browse files Browse the repository at this point in the history
  • Loading branch information
istvans-mn committed Oct 18, 2024
1 parent 5671ef7 commit 123c079
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions ingest/src/ingest/bufr/NorBufr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,20 @@ uint64_t NorBufr::uncompressDescriptor(std::list<DescriptorId>::iterator &it,

std::vector<bool> bl = NorBufrIO::getBitVec(sb, NBINC * 8, bits);
ucbits.insert(ucbits.end(), bl.begin(), bl.end());
current_desc.setMeta(const_cast<DescriptorMeta *>(&(tabB->at(*it))));
current_desc.setStartBit(subsetsb);
/* TODO: switch back !!!!
if( NBINC && dm.datawidth() != static_cast<uint64_t>(NBINC*8) )
{
std::cerr << "Datawidth Check: assoc field ? dw=" << dm.datawidth() <<
" NBINC:" << NBINC << "\n";
int bitdiff = dm.datawidth() - NBINC * 8;
if (bitdiff) {
DescriptorMeta *dmn = new DescriptorMeta;
*dmn = dm;
dmn->setDatawidth(bl.size());
auto dm_ptr = addMeta(dmn);
// Meta already exists
if (dm_ptr != dmn)
delete dmn;
current_desc.setMeta(dm_ptr);
} else {
current_desc.setMeta(const_cast<DescriptorMeta *>(&(tabB->at(*it))));
current_desc.setStartBit(subsetsb);
}
*/

subsetsb += NBINC * 8;
sb += NBINC * 8;
Expand Down

1 comment on commit 123c079

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

API Unit Test Coverage Report
FileStmtsMissCoverMissing
\_\_init\_\_.py00100% 
datastore_pb2.py614821%34–81
datastore_pb2_grpc.py542750%15–16, 19, 65–80, 121–123, 128–130, 135–137, 142–144, 148–173, 219, 246, 273, 300
export_metrics.py100100% 
grpc_getter.py201145%15–19, 23–26, 30–32, 36–38
locustfile.py15150%1–31
main.py43784%45, 50, 60, 70–71, 81–82
metadata_endpoints.py653152%45–54, 58, 85, 100–219, 223
response_classes.py50100% 
utilities.py1744674%20, 38, 45, 67–70, 78–89, 94–101, 121, 125, 127, 155, 161, 179, 193–194, 198, 214–218, 222–228, 232–234, 264, 268, 290, 295
custom_geo_json
   edr_feature_collection.py60100% 
formatters
   \_\_init\_\_.py110100% 
   covjson.py59198%91
   geojson.py21290%27, 52
openapi
   custom_dimension_examples.py40100% 
   edr_query_parameter_descriptions.py110100% 
   openapi_examples.py130100% 
routers
   \_\_init\_\_.py00100% 
   edr.py101496%348–349, 438–439
   feature.py471960%99–132, 148–153, 159–181
TOTAL72021171% 

API Unit Test Coverage Summary

Tests Skipped Failures Errors Time
30 0 💤 0 ❌ 0 🔥 1.887s ⏱️

Please sign in to comment.