Skip to content

Commit

Permalink
Bug fix in vector serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
cpiker committed Oct 8, 2024
1 parent 298663b commit 60706bb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions das2/dataset_hdr3.c
Original file line number Diff line number Diff line change
Expand Up @@ -731,14 +731,6 @@ static DasErrCode _serial_makeVarAry(context_t* pCtx, bool bHandleFill)
}
}

if(vt == vtUnknown){
return das_error(DASERR_SERIAL,
"Could not determine the value type for new array in variable "
"%s:%s in dataset ID %d", DasDim_id(pCtx->pCurDim), pCtx->varUse,
pCtx->nPktId
);
}

/* Dealing with internal structure */
uint32_t uFlags = 0;

Expand Down
2 changes: 1 addition & 1 deletion das2/var_ary.c
Original file line number Diff line number Diff line change
Expand Up @@ -1287,7 +1287,7 @@ DasErrCode DasVarAry_encode(DasVar* pBase, const char* sRole, DasBuf* pBuf)
if(i> 0)DasBuf_puts(pBuf, ";");
DasBuf_printf(pBuf, "%d", das_geovec_dir(&gvec, i));
}
DasBuf_puts(pBuf, "\"/>\n");
DasBuf_puts(pBuf, "\">\n");

nItems *= gvec.ncomp; /* More items per packet if we have vectors */

Expand Down

0 comments on commit 60706bb

Please sign in to comment.