Skip to content

Corrige inconsistências no README#208

Merged
fccoelho merged 4 commits intoAlertaDengue:mainfrom
anapaulagomes:readme-clean-up
Sep 26, 2025
Merged

Corrige inconsistências no README#208
fccoelho merged 4 commits intoAlertaDengue:mainfrom
anapaulagomes:readme-clean-up

Conversation

@anapaulagomes
Copy link
Contributor

Esse PR corrige imports e remove chamada a função que não existe no README.

A chamada para download dos arquivos do SINAN requer instalação das dependências do geo, reportada em #207.

README.md Outdated
**Reading `.dbc` file:**

```python
>>> from pysus.utilities.readdbc import read_dbc
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's true that this function no longer exists within pysus, but for people that have standalone DBC files they can still use the pyreaddbc.read_dbc Perhaps this example could be modified to just fix the import, and be kept in the README

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But this function is not even there. There are open issues about it in the repo, too.

>>> from pyreaddbc import read_dbc
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name 'read_dbc' from 'pyreaddbc' (/Users/ccc/Library/Caches/pypoetry/virtualenvs/pysus-Np31jkgz-py3.11/lib/python3.11/site-packages/pyreaddbc/__init__.py)
>>> from pyreaddbc import readdbc
>>> filename = '~/Downloads/DOAC2023.dbc'
>>> readdbc(filename, encoding='iso-8859-1')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: 'module' object is not callable

Copy link
Collaborator

@fccoelho fccoelho Nov 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right. I am going to fix this, by re-adding this function to Pyreaddbc. I think it's useful

@fccoelho fccoelho merged commit 8d63ae1 into AlertaDengue:main Sep 26, 2025
@github-actions
Copy link

🎉 This PR is included in version 1.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants