Skip to content

Nolds Docstrings are no longer valid for Python 3.12 onwards #81

@adrianwix

Description

@adrianwix

Hello,

You need to update all the docstrings to have a valid syntax, otherwise they throw a SyntaxWarning

 uv run python --version
  uv run python -c "
  import traceback
  try:
      import nolds
      print('nolds imported OK:', nolds.__version__)
      from pybasin.feature_extractors.nolds_feature_extractor import _nolds_available
      print('_nolds_available:', _nolds_available)
  except Exception as e:
      traceback.print_exc()
  "
  shell: /usr/bin/bash -e {0}
  env:
    UV_PYTHON_INSTALL_DIR: /home/runner/work/_temp/uv-python-dir
    UV_PYTHON: 3.12.12
    UV_CACHE_DIR: /home/runner/work/_temp/setup-uv-cache
Python 3.12.12
/home/runner/work/pybasin/pybasin/.venv/lib/python3.12/site-packages/nolds/measures.py:419: SyntaxWarning: invalid escape sequence '\|'
  \|X(t, X_0) - X(t, X_0 + eps)| = e^(lambda * t) * \|eps|
/home/runner/work/pybasin/pybasin/.venv/lib/python3.12/site-packages/nolds/measures.py:1455: SyntaxWarning: invalid escape sequence '\|'
  [\|y_0 - y_d\|, \|y_1 - y_(d+1)\|, ... , \|y_(N-d-1) - y_(N-1)\|] raising them to
Traceback (most recent call last):
  File "<string>", line 5, in <module>
AttributeError: module 'nolds' has no attribute '__version__'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions