Skip to content
Snippets Groups Projects
Verified Commit 4d3ccda2 authored by Michaël El Kharroubi's avatar Michaël El Kharroubi :satellite:
Browse files

Merge branch 'master' into 3D

parents a6f9ae3f 0b49c89e
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,7 @@ double_vector_t *init_vector(uint32_t N)
* with values from 0 to N excluded.
*
* @param N The number of dimensions.
* @return A dynamically allocated vector : [0,1..N]
* @return A dynamically allocated vector : [0,1..N-1]
*/
double_vector_t *iota(uint32_t N)
{
......
......@@ -36,7 +36,7 @@ double_vector_t *init_vector(uint32_t N);
* with values from 0 to N excluded.
*
* @param N The number of dimensions.
* @return A dynamically allocated vector : [0,1..N]
* @return A dynamically allocated vector : [0,1..N-1]
*/
double_vector_t *iota(uint32_t N);
/** @brief
......
......@@ -3,7 +3,7 @@ from typing import Tuple
METADATA_SIZE = 6
def _parse_metada(metadata: bytes) -> Tuple[type, int]:
def _parse_metadata(metadata: bytes) -> Tuple[type, int]:
"""
Parse the metadata for a vec file.
......@@ -42,7 +42,7 @@ def load_vector(filename: str) -> np.ndarray:
# Read our metadata struct
metadata = file.read(METADATA_SIZE)
datatype, nb_components = _parse_metada(metadata)
datatype, nb_components = _parse_metadata(metadata)
array = np.fromfile(file, dtype=datatype, count=nb_components)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment