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

Passing literal json to 'read_json' is deprecated #2416

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

quant12345
Copy link
Contributor

Removes warning:

FutureWarning: Passing literal json to 'read_json' is deprecated and will be removed in a future version. To read from a literal string, wrap it in a 'StringIO' object.

Test to check:

pytest pandapower/test/api/test_file_io.py::test_json_simple_index_type
pytest pandapower/test/api/test_file_io.py::test_json_index_names
pytest pandapower/test/api/test_file_io.py::test_json_multiindex_and_index_names
pytest pandapower/test/control/test_stactrl.py::test_stactrl_pf_import

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.

1 participant