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

Package update and python version update to 3.7 - 3.9 #181

Merged
merged 30 commits into from Jul 23, 2021

Conversation

mltja
Copy link
Member

@mltja mltja commented May 28, 2021

Updated packages and python version for python 3.7 to 3.9 all tests are passing.
Setup.py updated that an error occur if python 3.6 is installed

Todo:

  • Automated testing has to be updated for new python versions (coveralls)
  • Updating read the docs requirements ?

Malte Jahn added 20 commits April 30, 2021 16:09
* test_rings
* test_get_connected_lines_from_bus
* test_get_connected_components_from_bus
* test_get_neighbours

Changed documentation of get_neighbours:
* returns a set not a list

Changed get_connected_components_from_bus:
When searching connected switches it was searched in self.switches_df.bus_open. I think self.switches_df.bus_closed is correct, because in self.switches_df.bus_open only "virtual_..." are listed and not the "real" bus.
test_topology.py - test_get_connected_lines_from_bus
tests if bus is in each line separately

test_topology.py - test_get_connected_components_from_bus
test if return dataframes of not connected components are empty
Change the way of CRS transformation method
Reduced the calling of proj2equidistant to prevent performance loss
Content of Dataframe is equal but assert_frame_equal fails, therefore workaround with .to_string()
        pd.testing.assert_frame_equal(
>           timeseries_obj.loads_active_power, loads_active_power
        )
E       AssertionError: (None, <Hour>)

network/test_timeseries.py:99: AssertionError
Updated compare values, only small differences don't know why the changes occur
Fixed test_add_storage_unit_timeseries with pandas 1.2.4

TypeError: ufunc 'isfinite' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''
Expected value deviated a bit, don't know why.
KeyError: "Passing list-likes to .loc or [] with any missing labels is no longer supported.
KeyError: "Passing list-likes to .loc or [] with any missing labels is no longer supported.
KeyError: "Passing list-likes to .loc or [] with any missing labels is no longer supported.
Use numpy.isclose()

>       assert (gens_before[gens_before["type"] == "solar"].p_nom.sum() ==
                edisgo.topology.generators_df[
                    edisgo.topology.generators_df["type"] == "solar"].p_nom.sum())
E       assert 10.203790999999992 == 10.203790999999994

io/test_generators_import.py:458: AssertionError
Added .tolist() in numpy.isclose(...)

E       TypeError: ufunc 'isfinite' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''
@birgits birgits changed the base branch from features/emob_integration to dev July 16, 2021 12:54
@birgits birgits merged commit 378c4c5 into dev Jul 23, 2021
@birgits birgits deleted the features/package_update branch July 25, 2021 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants