Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't import StreamConfig #99

Open
benjwadams opened this issue Mar 2, 2023 · 1 comment
Open

Can't import StreamConfig #99

benjwadams opened this issue Mar 2, 2023 · 1 comment

Comments

@benjwadams
Copy link
Contributor

Attempting to import ioos_qc.config.StreamConfig according to the docs at https://ioos.github.io/ioos_qc/usage.html#streamconfig fails when using 2.1.0:

>>> import ioos_qc
>>> ioos_qc.__version__
'2.1.0'
>>> from ioos_qc.config import StreamConfig
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name 'StreamConfig' from 'ioos_qc.config' (/home/badams/miniconda3/envs/ioos-qc-front-end/lib/python3.10/site-packages/ioos_qc/config.py)
>>> from ioos_qc.config import QcConfig

grepping I don't see a class definition for StreamConfig, but importing the old QcConfig appears to work. However, this ends up being confusing since StreamConfig is referenced by the current docs.

@kwilcox
Copy link
Member

kwilcox commented Mar 2, 2023

The docs need to be updated, the only interface you need to load any config object is the Config class: from ioos_qc.config import Config

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

No branches or pull requests

2 participants