Skip to content

Fix: Correct load_robot doctest import and data field access (Fixes #113)#214

Open
Kishore-Nair wants to merge 1 commit into
pykalman:mainfrom
Kishore-Nair:Fix/load_robot_doctest
Open

Fix: Correct load_robot doctest import and data field access (Fixes #113)#214
Kishore-Nair wants to merge 1 commit into
pykalman:mainfrom
Kishore-Nair:Fix/load_robot_doctest

Conversation

@Kishore-Nair

Copy link
Copy Markdown

This PR fixes the failing load_robot doctest in pykalman/datasets/base.py.
Specifically, it addresses two issues:

  1. Broken Import: Corrected the import path from sktime.libs.pykalman.datasets to pykalman.datasets.
  2. Field Access: Updated the data shape assertion to use data.observations.data.shape. Since observations is returned as a numpy.ma.MaskedArray, the test correctly accesses the underlying unmasked array to validate the (501, 2) shape.

Related Issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Doctest for load_robot fails

1 participant