diff --git a/README.md b/README.md index 1766f3ce27363b10dae79fbaa1551d5b60940578..3f14d5509e1f946bc3456d19b2a9416949faefc2 100644 --- a/README.md +++ b/README.md @@ -82,10 +82,10 @@ All the [command arguments supported by `TaggingBackends`](https://gitlab.pasteu Using the [`20230129`](https://gitlab.pasteur.fr/nyx/MaggotUBA-adapter/-/tree/20230129) branch, the `20230129` tagger can be called on a supported tracking data file with: ``` -poetry run tagging-backend predict --model-instance 20230129 --skip-make-dataset +poetry run tagging-backend predict --model-instance 20230129 ``` -The `--skip-make-dataset` option is optional. It only makes *tagging-backend* slightly faster. +Note: since `TaggingBackends==0.10`, the `--skip-make-dataset` argument is default behavior. Pass `--make-dataset` instead to enforce the former default. For the above command to work, the track data file must be placed (*e.g.* copied) in the `data/raw/20230129` directory, to be first created or cleared. diff --git a/pyproject.toml b/pyproject.toml index 54779ecdd931aa059e4154157ea2b74cfcbbe200..e9961fb106e3acaed7745c6a5611beafe090efcf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "MaggotUBA-adapter" -version = "0.9.1" +version = "0.10" description = "Interface between MaggotUBA and the Nyx tagging UI" authors = ["François Laurent"] license = "MIT" diff --git a/src/maggotuba/models/trainers.py b/src/maggotuba/models/trainers.py index 154d6f139282c0a52d452c9f9937d991afa32cae..6852e40dbc23d9b8d3ff2155333c6315f4928e12 100644 --- a/src/maggotuba/models/trainers.py +++ b/src/maggotuba/models/trainers.py @@ -71,7 +71,7 @@ class MaggotTrainer: def pad(self, target_t, defined_t, data): if data.shape[0] == 1: - return data + return np.repeat(data, len(target_t), axis=0) else: head = searchsortedfirst(target_t, defined_t[0]) tail = len(target_t) - (searchsortedlast(target_t, defined_t[-1]) + 1)