pandapipes 0.11.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pandapipes-0.11.0/.github/workflows/release.yml +103 -0
- pandapipes-0.11.0/.github/workflows/run_tests_develop.yml +185 -0
- pandapipes-0.11.0/.github/workflows/run_tests_master.yml +150 -0
- pandapipes-0.11.0/AUTHORS +28 -0
- pandapipes-0.11.0/CHANGELOG.rst +265 -0
- pandapipes-0.11.0/LICENSE +25 -0
- pandapipes-0.11.0/MANIFEST.in +3 -0
- pandapipes-0.11.0/PKG-INFO +167 -0
- pandapipes-0.11.0/README.rst +78 -0
- pandapipes-0.11.0/pyproject.toml +68 -0
- pandapipes-0.11.0/setup.cfg +8 -0
- pandapipes-0.11.0/setup.py +9 -0
- pandapipes-0.11.0/src/pandapipes/__init__.py +23 -0
- pandapipes-0.11.0/src/pandapipes/component_models/__init__.py +20 -0
- pandapipes-0.11.0/src/pandapipes/component_models/abstract_models/__init__.py +13 -0
- pandapipes-0.11.0/src/pandapipes/component_models/abstract_models/base_component.py +177 -0
- pandapipes-0.11.0/src/pandapipes/component_models/abstract_models/branch_models.py +97 -0
- pandapipes-0.11.0/src/pandapipes/component_models/abstract_models/branch_w_internals_models.py +240 -0
- pandapipes-0.11.0/src/pandapipes/component_models/abstract_models/branch_wo_internals_models.py +98 -0
- pandapipes-0.11.0/src/pandapipes/component_models/abstract_models/branch_wzerolength_models.py +75 -0
- pandapipes-0.11.0/src/pandapipes/component_models/abstract_models/circulation_pump.py +159 -0
- pandapipes-0.11.0/src/pandapipes/component_models/abstract_models/const_flow_models.py +106 -0
- pandapipes-0.11.0/src/pandapipes/component_models/abstract_models/node_element_models.py +55 -0
- pandapipes-0.11.0/src/pandapipes/component_models/abstract_models/node_models.py +70 -0
- pandapipes-0.11.0/src/pandapipes/component_models/circulation_pump_mass_component.py +64 -0
- pandapipes-0.11.0/src/pandapipes/component_models/circulation_pump_pressure_component.py +63 -0
- pandapipes-0.11.0/src/pandapipes/component_models/component_toolbox.py +227 -0
- pandapipes-0.11.0/src/pandapipes/component_models/compressor_component.py +94 -0
- pandapipes-0.11.0/src/pandapipes/component_models/ext_grid_component.py +140 -0
- pandapipes-0.11.0/src/pandapipes/component_models/flow_control_component.py +131 -0
- pandapipes-0.11.0/src/pandapipes/component_models/heat_consumer_component.py +276 -0
- pandapipes-0.11.0/src/pandapipes/component_models/heat_exchanger_component.py +114 -0
- pandapipes-0.11.0/src/pandapipes/component_models/junction_component.py +161 -0
- pandapipes-0.11.0/src/pandapipes/component_models/mass_storage_component.py +54 -0
- pandapipes-0.11.0/src/pandapipes/component_models/pipe_component.py +350 -0
- pandapipes-0.11.0/src/pandapipes/component_models/pressure_control_component.py +147 -0
- pandapipes-0.11.0/src/pandapipes/component_models/pump_component.py +221 -0
- pandapipes-0.11.0/src/pandapipes/component_models/sink_component.py +27 -0
- pandapipes-0.11.0/src/pandapipes/component_models/source_component.py +27 -0
- pandapipes-0.11.0/src/pandapipes/component_models/valve_component.py +101 -0
- pandapipes-0.11.0/src/pandapipes/constants.py +18 -0
- pandapipes-0.11.0/src/pandapipes/control/__init__.py +5 -0
- pandapipes-0.11.0/src/pandapipes/control/run_control.py +49 -0
- pandapipes-0.11.0/src/pandapipes/converter/stanet/__init__.py +6 -0
- pandapipes-0.11.0/src/pandapipes/converter/stanet/data_cleaning.py +129 -0
- pandapipes-0.11.0/src/pandapipes/converter/stanet/preparing_steps.py +462 -0
- pandapipes-0.11.0/src/pandapipes/converter/stanet/stanet2pandapipes.py +207 -0
- pandapipes-0.11.0/src/pandapipes/converter/stanet/table_creation.py +1263 -0
- pandapipes-0.11.0/src/pandapipes/converter/stanet/valve_pipe_component/__init__.py +7 -0
- pandapipes-0.11.0/src/pandapipes/converter/stanet/valve_pipe_component/create_valve_pipe.py +176 -0
- pandapipes-0.11.0/src/pandapipes/converter/stanet/valve_pipe_component/valve_pipe_component.py +123 -0
- pandapipes-0.11.0/src/pandapipes/converter/stanet/valve_pipe_component/valve_pipe_plotting.py +107 -0
- pandapipes-0.11.0/src/pandapipes/create.py +1999 -0
- pandapipes-0.11.0/src/pandapipes/idx_branch.py +52 -0
- pandapipes-0.11.0/src/pandapipes/idx_node.py +32 -0
- pandapipes-0.11.0/src/pandapipes/io/__init__.py +6 -0
- pandapipes-0.11.0/src/pandapipes/io/convert_format.py +75 -0
- pandapipes-0.11.0/src/pandapipes/io/file_io.py +162 -0
- pandapipes-0.11.0/src/pandapipes/io/io_utils.py +133 -0
- pandapipes-0.11.0/src/pandapipes/multinet/__init__.py +9 -0
- pandapipes-0.11.0/src/pandapipes/multinet/control/__init__.py +5 -0
- pandapipes-0.11.0/src/pandapipes/multinet/control/controller/__init__.py +5 -0
- pandapipes-0.11.0/src/pandapipes/multinet/control/controller/multinet_control.py +552 -0
- pandapipes-0.11.0/src/pandapipes/multinet/control/run_control_multinet.py +298 -0
- pandapipes-0.11.0/src/pandapipes/multinet/create_multinet.py +74 -0
- pandapipes-0.11.0/src/pandapipes/multinet/multinet.py +99 -0
- pandapipes-0.11.0/src/pandapipes/multinet/timeseries/__init__.py +5 -0
- pandapipes-0.11.0/src/pandapipes/multinet/timeseries/run_time_series_multinet.py +134 -0
- pandapipes-0.11.0/src/pandapipes/networks/__init__.py +7 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/gas_net_schutterwald_1bar.json +1701 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/openmodelica_test_networks/heat_transfer_cases/delta.json +1697 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/openmodelica_test_networks/heat_transfer_cases/delta_2sinks.json +1697 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/openmodelica_test_networks/heat_transfer_cases/heights.json +1697 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/openmodelica_test_networks/heat_transfer_cases/one_pipe.json +1697 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/openmodelica_test_networks/heat_transfer_cases/one_source.json +1716 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/openmodelica_test_networks/heat_transfer_cases/section_variation.json +1716 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/openmodelica_test_networks/heat_transfer_cases/t_cross.json +1697 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/openmodelica_test_networks/heat_transfer_cases/two_pipes.json +1697 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/openmodelica_test_networks/water_cases_colebrook/combined_networks/mixed_net.json +1714 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/openmodelica_test_networks/water_cases_colebrook/combined_networks/versatility.json +1844 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/openmodelica_test_networks/water_cases_colebrook/meshed_networks/delta.json +1714 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/openmodelica_test_networks/water_cases_colebrook/meshed_networks/heights.json +1695 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/openmodelica_test_networks/water_cases_colebrook/meshed_networks/pumps.json +1724 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/openmodelica_test_networks/water_cases_colebrook/meshed_networks/two_valves.json +1716 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/openmodelica_test_networks/water_cases_colebrook/one_pipe/pipe_1.json +1695 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/openmodelica_test_networks/water_cases_colebrook/one_pipe/pipe_2.json +1695 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/openmodelica_test_networks/water_cases_colebrook/one_pipe/pipe_3.json +1695 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/openmodelica_test_networks/water_cases_colebrook/strand_net/cross_3ext.json +1714 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/openmodelica_test_networks/water_cases_colebrook/strand_net/strand_net.json +1695 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/openmodelica_test_networks/water_cases_colebrook/strand_net/two_pipes.json +1695 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/openmodelica_test_networks/water_cases_colebrook/strand_net/two_pumps.json +1743 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/openmodelica_test_networks/water_cases_colebrook/t_cross/t_cross.json +1695 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/openmodelica_test_networks/water_cases_colebrook/t_cross/valves.json +1716 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/openmodelica_test_networks/water_cases_colebrook/two_pressure_junctions/two_pipes.json +1695 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/openmodelica_test_networks/water_cases_swamee-jain/combined_networks/mixed_net.json +1714 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/openmodelica_test_networks/water_cases_swamee-jain/combined_networks/versatility.json +1844 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/openmodelica_test_networks/water_cases_swamee-jain/meshed_networks/delta.json +1714 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/openmodelica_test_networks/water_cases_swamee-jain/meshed_networks/heights.json +1695 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/openmodelica_test_networks/water_cases_swamee-jain/meshed_networks/one_valve_stanet.json +1716 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/openmodelica_test_networks/water_cases_swamee-jain/meshed_networks/pumps.json +1724 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/openmodelica_test_networks/water_cases_swamee-jain/meshed_networks/two_valves.json +1716 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/openmodelica_test_networks/water_cases_swamee-jain/one_pipe/pipe_1.json +1695 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/openmodelica_test_networks/water_cases_swamee-jain/one_pipe/pipe_2.json +1695 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/openmodelica_test_networks/water_cases_swamee-jain/one_pipe/pipe_3.json +1695 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/openmodelica_test_networks/water_cases_swamee-jain/strand_net/cross_3ext.json +1714 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/openmodelica_test_networks/water_cases_swamee-jain/strand_net/strand_net.json +1695 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/openmodelica_test_networks/water_cases_swamee-jain/strand_net/strand_net_stanet_variation1.json +1695 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/openmodelica_test_networks/water_cases_swamee-jain/strand_net/strand_net_stanet_variation2.json +1695 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/openmodelica_test_networks/water_cases_swamee-jain/strand_net/two_pipes.json +1695 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/openmodelica_test_networks/water_cases_swamee-jain/strand_net/two_pumps.json +1743 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/openmodelica_test_networks/water_cases_swamee-jain/t_cross/t_cross.json +1695 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/openmodelica_test_networks/water_cases_swamee-jain/t_cross/valves.json +1716 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/openmodelica_test_networks/water_cases_swamee-jain/two_pressure_junctions/one_pipe_stanet.json +1676 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/openmodelica_test_networks/water_cases_swamee-jain/two_pressure_junctions/two_pipes.json +1695 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/simbench_test_networks/1-LV-rural1--0-no_sw.json +1694 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/simbench_test_networks/1-LV-rural1--0-sw.json +1714 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/simbench_test_networks/1-LV-rural2--0-no_sw.json +1694 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/simbench_test_networks/1-LV-rural2--0-sw.json +1714 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/simbench_test_networks/1-LV-rural3--0-no_sw.json +1694 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/simbench_test_networks/1-LV-rural3--0-sw.json +1714 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/simbench_test_networks/1-LV-semiurb4--0-no_sw.json +1694 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/simbench_test_networks/1-LV-semiurb4--0-sw.json +1714 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/simbench_test_networks/1-LV-semiurb5--0-no_sw.json +1694 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/simbench_test_networks/1-LV-semiurb5--0-sw.json +1714 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/simbench_test_networks/1-LV-urban6--0-no_sw.json +1694 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/simbench_test_networks/1-LV-urban6--0-sw.json +1714 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/stanet_test_networks/gas_cases/combined_networks/parallel_N.json +1706 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/stanet_test_networks/gas_cases/combined_networks/parallel_PC.json +1706 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/stanet_test_networks/gas_cases/combined_networks/versatility_PC.json +1772 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/stanet_test_networks/gas_cases/meshed_networks/delta_PC.json +1726 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/stanet_test_networks/gas_cases/meshed_networks/pumps_N.json +1728 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/stanet_test_networks/gas_cases/meshed_networks/square_N.json +1706 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/stanet_test_networks/gas_cases/meshed_networks/square_PC.json +1706 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/stanet_test_networks/gas_cases/meshed_networks/two_valves_N.json +1730 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/stanet_test_networks/gas_cases/meshed_networks/two_valves_PC.json +1730 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/stanet_test_networks/gas_cases/one_pipe/pipe_1_N.json +1706 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/stanet_test_networks/gas_cases/one_pipe/pipe_1_PC.json +1706 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/stanet_test_networks/gas_cases/one_pipe/pipe_2_N.json +1706 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/stanet_test_networks/gas_cases/one_pipe/pipe_2_PC.json +1706 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/stanet_test_networks/gas_cases/strand_net/pump_N.json +1728 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/stanet_test_networks/gas_cases/strand_net/two_pipes_N.json +1706 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/stanet_test_networks/gas_cases/strand_net/two_pipes_PC.json +1706 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/stanet_test_networks/gas_cases/t_cross/t_cross1_N.json +1706 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/stanet_test_networks/gas_cases/t_cross/t_cross1_PC.json +1706 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/stanet_test_networks/gas_cases/t_cross/t_cross2_N.json +1726 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/stanet_test_networks/gas_cases/t_cross/t_cross2_PC.json +1726 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/stanet_test_networks/gas_cases/two_pressure_junctions/H_net_N.json +1706 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/stanet_test_networks/gas_cases/two_pressure_junctions/H_net_PC.json +1706 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/stanet_test_networks/water_cases/combined_networks/district_N.json +1705 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/stanet_test_networks/water_cases/combined_networks/district_PC.json +1705 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/stanet_test_networks/water_cases/combined_networks/versatility_N.json +1771 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/stanet_test_networks/water_cases/combined_networks/versatility_PC.json +1771 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/stanet_test_networks/water_cases/meshed_networks/delta_N.json +1725 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/stanet_test_networks/water_cases/meshed_networks/pumps_N.json +1727 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/stanet_test_networks/water_cases/meshed_networks/two_valves_N.json +1729 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/stanet_test_networks/water_cases/meshed_networks/two_valves_PC.json +1729 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/stanet_test_networks/water_cases/one_pipe/pipe_1_N.json +1705 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/stanet_test_networks/water_cases/one_pipe/pipe_1_PC.json +1705 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/stanet_test_networks/water_cases/one_pipe/pipe_2_N.json +1705 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/stanet_test_networks/water_cases/one_pipe/pipe_2_PC.json +1705 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/stanet_test_networks/water_cases/one_pipe/pipe_3_N.json +1705 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/stanet_test_networks/water_cases/one_pipe/pipe_3_PC.json +1705 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/stanet_test_networks/water_cases/strand_net/cross_PC.json +1725 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/stanet_test_networks/water_cases/strand_net/pump_N.json +1727 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/stanet_test_networks/water_cases/strand_net/strand_net_N.json +1705 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/stanet_test_networks/water_cases/strand_net/strand_net_PC.json +1705 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/stanet_test_networks/water_cases/strand_net/two_pipes_N.json +1705 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/stanet_test_networks/water_cases/strand_net/two_pipes_PC.json +1705 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/stanet_test_networks/water_cases/t_cross/t_cross_N.json +1705 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/stanet_test_networks/water_cases/t_cross/t_cross_PC.json +1705 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/stanet_test_networks/water_cases/two_pressure_junctions/two_pipes_N.json +1705 -0
- pandapipes-0.11.0/src/pandapipes/networks/network_files/stanet_test_networks/water_cases/two_pressure_junctions/two_pipes_PC.json +1705 -0
- pandapipes-0.11.0/src/pandapipes/networks/nw_aux.py +43 -0
- pandapipes-0.11.0/src/pandapipes/networks/simple_gas_networks.py +271 -0
- pandapipes-0.11.0/src/pandapipes/networks/simple_heat_transfer_networks.py +119 -0
- pandapipes-0.11.0/src/pandapipes/networks/simple_water_networks.py +430 -0
- pandapipes-0.11.0/src/pandapipes/pandapipes_net.py +92 -0
- pandapipes-0.11.0/src/pandapipes/pf/__init__.py +8 -0
- pandapipes-0.11.0/src/pandapipes/pf/build_system_matrix.py +269 -0
- pandapipes-0.11.0/src/pandapipes/pf/derivative_calculation.py +257 -0
- pandapipes-0.11.0/src/pandapipes/pf/derivative_toolbox.py +177 -0
- pandapipes-0.11.0/src/pandapipes/pf/derivative_toolbox_numba.py +192 -0
- pandapipes-0.11.0/src/pandapipes/pf/internals_toolbox.py +203 -0
- pandapipes-0.11.0/src/pandapipes/pf/pipeflow_setup.py +789 -0
- pandapipes-0.11.0/src/pandapipes/pf/result_extraction.py +324 -0
- pandapipes-0.11.0/src/pandapipes/pipeflow.py +364 -0
- pandapipes-0.11.0/src/pandapipes/plotting/__init__.py +39 -0
- pandapipes-0.11.0/src/pandapipes/plotting/collections.py +718 -0
- pandapipes-0.11.0/src/pandapipes/plotting/generic_geodata.py +110 -0
- pandapipes-0.11.0/src/pandapipes/plotting/geo.py +64 -0
- pandapipes-0.11.0/src/pandapipes/plotting/patch_makers.py +332 -0
- pandapipes-0.11.0/src/pandapipes/plotting/pipeflow_results.py +128 -0
- pandapipes-0.11.0/src/pandapipes/plotting/plotting_toolbox.py +104 -0
- pandapipes-0.11.0/src/pandapipes/plotting/simple_plot.py +369 -0
- pandapipes-0.11.0/src/pandapipes/properties/__init__.py +5 -0
- pandapipes-0.11.0/src/pandapipes/properties/air/compressibility.txt +1 -0
- pandapipes-0.11.0/src/pandapipes/properties/air/density.txt +25 -0
- pandapipes-0.11.0/src/pandapipes/properties/air/der_compressibility.txt +1 -0
- pandapipes-0.11.0/src/pandapipes/properties/air/heat_capacity.txt +25 -0
- pandapipes-0.11.0/src/pandapipes/properties/air/molar_mass.txt +1 -0
- pandapipes-0.11.0/src/pandapipes/properties/air/viscosity.txt +25 -0
- pandapipes-0.11.0/src/pandapipes/properties/biomethane_pure/compressibility.txt +3 -0
- pandapipes-0.11.0/src/pandapipes/properties/biomethane_pure/density.txt +58 -0
- pandapipes-0.11.0/src/pandapipes/properties/biomethane_pure/der_compressibility.txt +3 -0
- pandapipes-0.11.0/src/pandapipes/properties/biomethane_pure/gas_composition.txt +10 -0
- pandapipes-0.11.0/src/pandapipes/properties/biomethane_pure/heat_capacity.txt +58 -0
- pandapipes-0.11.0/src/pandapipes/properties/biomethane_pure/higher_heating_value.txt +3 -0
- pandapipes-0.11.0/src/pandapipes/properties/biomethane_pure/molar_mass.txt +2 -0
- pandapipes-0.11.0/src/pandapipes/properties/biomethane_pure/viscosity.txt +58 -0
- pandapipes-0.11.0/src/pandapipes/properties/biomethane_treated/compressibility.txt +3 -0
- pandapipes-0.11.0/src/pandapipes/properties/biomethane_treated/density.txt +58 -0
- pandapipes-0.11.0/src/pandapipes/properties/biomethane_treated/der_compressibility.txt +3 -0
- pandapipes-0.11.0/src/pandapipes/properties/biomethane_treated/gas_composition.txt +13 -0
- pandapipes-0.11.0/src/pandapipes/properties/biomethane_treated/heat_capacity.txt +58 -0
- pandapipes-0.11.0/src/pandapipes/properties/biomethane_treated/higher_heating_value.txt +3 -0
- pandapipes-0.11.0/src/pandapipes/properties/biomethane_treated/molar_mass.txt +2 -0
- pandapipes-0.11.0/src/pandapipes/properties/biomethane_treated/viscosity.txt +58 -0
- pandapipes-0.11.0/src/pandapipes/properties/carbondioxide/density.txt +8 -0
- pandapipes-0.11.0/src/pandapipes/properties/carbondioxide/heat_capacity.txt +8 -0
- pandapipes-0.11.0/src/pandapipes/properties/carbondioxide/molar_mass.txt +1 -0
- pandapipes-0.11.0/src/pandapipes/properties/carbondioxide/viscosity.txt +8 -0
- pandapipes-0.11.0/src/pandapipes/properties/ethane/density.txt +8 -0
- pandapipes-0.11.0/src/pandapipes/properties/ethane/heat_capacity.txt +8 -0
- pandapipes-0.11.0/src/pandapipes/properties/ethane/molar_mass.txt +1 -0
- pandapipes-0.11.0/src/pandapipes/properties/ethane/viscosity.txt +8 -0
- pandapipes-0.11.0/src/pandapipes/properties/fluids.py +752 -0
- pandapipes-0.11.0/src/pandapipes/properties/hgas/compressibility.txt +2 -0
- pandapipes-0.11.0/src/pandapipes/properties/hgas/density.txt +9 -0
- pandapipes-0.11.0/src/pandapipes/properties/hgas/der_compressibility.txt +2 -0
- pandapipes-0.11.0/src/pandapipes/properties/hgas/heat_capacity.txt +9 -0
- pandapipes-0.11.0/src/pandapipes/properties/hgas/higher_heating_value.txt +2 -0
- pandapipes-0.11.0/src/pandapipes/properties/hgas/lower_heating_value.txt +2 -0
- pandapipes-0.11.0/src/pandapipes/properties/hgas/molar_mass.txt +2 -0
- pandapipes-0.11.0/src/pandapipes/properties/hgas/viscosity.txt +9 -0
- pandapipes-0.11.0/src/pandapipes/properties/hydrogen/compressibility.txt +9 -0
- pandapipes-0.11.0/src/pandapipes/properties/hydrogen/density.txt +60 -0
- pandapipes-0.11.0/src/pandapipes/properties/hydrogen/der_compressibility.txt +11 -0
- pandapipes-0.11.0/src/pandapipes/properties/hydrogen/heat_capacity.txt +60 -0
- pandapipes-0.11.0/src/pandapipes/properties/hydrogen/higher_heating_value.txt +2 -0
- pandapipes-0.11.0/src/pandapipes/properties/hydrogen/lower_heating_value.txt +2 -0
- pandapipes-0.11.0/src/pandapipes/properties/hydrogen/molar_mass.txt +2 -0
- pandapipes-0.11.0/src/pandapipes/properties/hydrogen/viscosity.txt +60 -0
- pandapipes-0.11.0/src/pandapipes/properties/lgas/compressibility.txt +2 -0
- pandapipes-0.11.0/src/pandapipes/properties/lgas/density.txt +9 -0
- pandapipes-0.11.0/src/pandapipes/properties/lgas/der_compressibility.txt +2 -0
- pandapipes-0.11.0/src/pandapipes/properties/lgas/heat_capacity.txt +9 -0
- pandapipes-0.11.0/src/pandapipes/properties/lgas/higher_heating_value.txt +2 -0
- pandapipes-0.11.0/src/pandapipes/properties/lgas/lower_heating_value.txt +2 -0
- pandapipes-0.11.0/src/pandapipes/properties/lgas/molar_mass.txt +2 -0
- pandapipes-0.11.0/src/pandapipes/properties/lgas/viscosity.txt +9 -0
- pandapipes-0.11.0/src/pandapipes/properties/methane/compressibility.txt +2 -0
- pandapipes-0.11.0/src/pandapipes/properties/methane/density.txt +9 -0
- pandapipes-0.11.0/src/pandapipes/properties/methane/der_compressibility.txt +2 -0
- pandapipes-0.11.0/src/pandapipes/properties/methane/heat_capacity.txt +9 -0
- pandapipes-0.11.0/src/pandapipes/properties/methane/higher_heating_value.txt +2 -0
- pandapipes-0.11.0/src/pandapipes/properties/methane/lower_heating_value.txt +2 -0
- pandapipes-0.11.0/src/pandapipes/properties/methane/molar_mass.txt +2 -0
- pandapipes-0.11.0/src/pandapipes/properties/methane/viscosity.txt +9 -0
- pandapipes-0.11.0/src/pandapipes/properties/nitrogen/density.txt +60 -0
- pandapipes-0.11.0/src/pandapipes/properties/nitrogen/heat_capacity.txt +60 -0
- pandapipes-0.11.0/src/pandapipes/properties/nitrogen/molar_mass.txt +2 -0
- pandapipes-0.11.0/src/pandapipes/properties/nitrogen/viscosity.txt +60 -0
- pandapipes-0.11.0/src/pandapipes/properties/oxygen/density.txt +60 -0
- pandapipes-0.11.0/src/pandapipes/properties/oxygen/heat_capacity.txt +60 -0
- pandapipes-0.11.0/src/pandapipes/properties/oxygen/molar_mass.txt +2 -0
- pandapipes-0.11.0/src/pandapipes/properties/oxygen/viscosity.txt +60 -0
- pandapipes-0.11.0/src/pandapipes/properties/properties_toolbox.py +185 -0
- pandapipes-0.11.0/src/pandapipes/properties/water/compressibility.txt +1 -0
- pandapipes-0.11.0/src/pandapipes/properties/water/density.txt +20 -0
- pandapipes-0.11.0/src/pandapipes/properties/water/der_compressibility.txt +1 -0
- pandapipes-0.11.0/src/pandapipes/properties/water/heat_capacity.txt +11 -0
- pandapipes-0.11.0/src/pandapipes/properties/water/molar_mass.txt +1 -0
- pandapipes-0.11.0/src/pandapipes/properties/water/viscosity.txt +21 -0
- pandapipes-0.11.0/src/pandapipes/std_types/__init__.py +6 -0
- pandapipes-0.11.0/src/pandapipes/std_types/library/Pipe.csv +239 -0
- pandapipes-0.11.0/src/pandapipes/std_types/library/Pump/P1.csv +4 -0
- pandapipes-0.11.0/src/pandapipes/std_types/library/Pump/P2.csv +6 -0
- pandapipes-0.11.0/src/pandapipes/std_types/library/Pump/P3.csv +4 -0
- pandapipes-0.11.0/src/pandapipes/std_types/std_type_class.py +294 -0
- pandapipes-0.11.0/src/pandapipes/std_types/std_types.py +247 -0
- pandapipes-0.11.0/src/pandapipes/test/__init__.py +13 -0
- pandapipes-0.11.0/src/pandapipes/test/api/__init__.py +3 -0
- pandapipes-0.11.0/src/pandapipes/test/api/old_versions/example_0.1.0.json +386 -0
- pandapipes-0.11.0/src/pandapipes/test/api/old_versions/example_0.1.1.json +386 -0
- pandapipes-0.11.0/src/pandapipes/test/api/old_versions/example_0.1.2.json +385 -0
- pandapipes-0.11.0/src/pandapipes/test/api/old_versions/example_0.10.0_gas.json +458 -0
- pandapipes-0.11.0/src/pandapipes/test/api/old_versions/example_0.10.0_water.json +520 -0
- pandapipes-0.11.0/src/pandapipes/test/api/old_versions/example_0.11.0_gas.json +460 -0
- pandapipes-0.11.0/src/pandapipes/test/api/old_versions/example_0.11.0_water.json +544 -0
- pandapipes-0.11.0/src/pandapipes/test/api/old_versions/example_0.2.0.json +385 -0
- pandapipes-0.11.0/src/pandapipes/test/api/old_versions/example_0.4.0.json +386 -0
- pandapipes-0.11.0/src/pandapipes/test/api/old_versions/example_0.5.0.json +386 -0
- pandapipes-0.11.0/src/pandapipes/test/api/old_versions/example_0.6.0.json +395 -0
- pandapipes-0.11.0/src/pandapipes/test/api/old_versions/example_0.7.0.json +395 -0
- pandapipes-0.11.0/src/pandapipes/test/api/old_versions/example_0.8.0_gas.json +412 -0
- pandapipes-0.11.0/src/pandapipes/test/api/old_versions/example_0.8.0_water.json +466 -0
- pandapipes-0.11.0/src/pandapipes/test/api/old_versions/example_0.8.1_gas.json +412 -0
- pandapipes-0.11.0/src/pandapipes/test/api/old_versions/example_0.8.1_water.json +466 -0
- pandapipes-0.11.0/src/pandapipes/test/api/old_versions/example_0.8.2_gas.json +412 -0
- pandapipes-0.11.0/src/pandapipes/test/api/old_versions/example_0.8.2_water.json +466 -0
- pandapipes-0.11.0/src/pandapipes/test/api/old_versions/example_0.8.3_gas.json +412 -0
- pandapipes-0.11.0/src/pandapipes/test/api/old_versions/example_0.8.3_water.json +466 -0
- pandapipes-0.11.0/src/pandapipes/test/api/old_versions/example_0.8.4_gas.json +412 -0
- pandapipes-0.11.0/src/pandapipes/test/api/old_versions/example_0.8.4_water.json +466 -0
- pandapipes-0.11.0/src/pandapipes/test/api/old_versions/example_0.8.5_gas.json +412 -0
- pandapipes-0.11.0/src/pandapipes/test/api/old_versions/example_0.8.5_water.json +466 -0
- pandapipes-0.11.0/src/pandapipes/test/api/old_versions/example_0.9.0_gas.json +458 -0
- pandapipes-0.11.0/src/pandapipes/test/api/old_versions/example_0.9.0_water.json +520 -0
- pandapipes-0.11.0/src/pandapipes/test/api/release_cycle/release_control_test_network.py +378 -0
- pandapipes-0.11.0/src/pandapipes/test/api/release_cycle/release_control_test_sink_profiles.csv +5 -0
- pandapipes-0.11.0/src/pandapipes/test/api/release_cycle/release_control_test_source_profiles.csv +5 -0
- pandapipes-0.11.0/src/pandapipes/test/api/test_aux_function.py +24 -0
- pandapipes-0.11.0/src/pandapipes/test/api/test_components/__init__.py +3 -0
- pandapipes-0.11.0/src/pandapipes/test/api/test_components/test_circ_pump_mass.py +61 -0
- pandapipes-0.11.0/src/pandapipes/test/api/test_components/test_circ_pump_pressure.py +62 -0
- pandapipes-0.11.0/src/pandapipes/test/api/test_components/test_compressor.py +68 -0
- pandapipes-0.11.0/src/pandapipes/test/api/test_components/test_ext_grid.py +424 -0
- pandapipes-0.11.0/src/pandapipes/test/api/test_components/test_flow_control.py +94 -0
- pandapipes-0.11.0/src/pandapipes/test/api/test_components/test_heat_consumer.py +213 -0
- pandapipes-0.11.0/src/pandapipes/test/api/test_components/test_heat_exchanger.py +46 -0
- pandapipes-0.11.0/src/pandapipes/test/api/test_components/test_mass_storage.py +31 -0
- pandapipes-0.11.0/src/pandapipes/test/api/test_components/test_pipe.py +113 -0
- pandapipes-0.11.0/src/pandapipes/test/api/test_components/test_pressure_control.py +70 -0
- pandapipes-0.11.0/src/pandapipes/test/api/test_components/test_pump.py +245 -0
- pandapipes-0.11.0/src/pandapipes/test/api/test_components/test_valve.py +70 -0
- pandapipes-0.11.0/src/pandapipes/test/api/test_convert_format.py +76 -0
- pandapipes-0.11.0/src/pandapipes/test/api/test_create.py +791 -0
- pandapipes-0.11.0/src/pandapipes/test/api/test_network_tables.py +88 -0
- pandapipes-0.11.0/src/pandapipes/test/api/test_special_networks.py +127 -0
- pandapipes-0.11.0/src/pandapipes/test/api/test_std_types.py +321 -0
- pandapipes-0.11.0/src/pandapipes/test/api/test_time_series.py +21 -0
- pandapipes-0.11.0/src/pandapipes/test/converter/__init__.py +0 -0
- pandapipes-0.11.0/src/pandapipes/test/converter/converter_test_files/Exampelonia_mini.csv +4540 -0
- pandapipes-0.11.0/src/pandapipes/test/converter/converter_test_files/Exampelonia_mini_with_2valvepipe.csv +3349 -0
- pandapipes-0.11.0/src/pandapipes/test/converter/converter_test_files/Exampelonia_mini_with_valve_2sliders_closed.csv +3495 -0
- pandapipes-0.11.0/src/pandapipes/test/converter/converter_test_files/Exampelonia_mini_with_valve_2sliders_open.csv +3495 -0
- pandapipes-0.11.0/src/pandapipes/test/converter/test_stanet_converter.py +101 -0
- pandapipes-0.11.0/src/pandapipes/test/data/Temperature_2zu_2ab_an.csv +6 -0
- pandapipes-0.11.0/src/pandapipes/test/data/Temperature_masche_1load_an.csv +5 -0
- pandapipes-0.11.0/src/pandapipes/test/data/Temperature_masche_1load_direction_an.csv +4 -0
- pandapipes-0.11.0/src/pandapipes/test/data/Temperature_one_pipe_an.csv +8 -0
- pandapipes-0.11.0/src/pandapipes/test/data/Temperature_tee_2ab_1zu_an.csv +5 -0
- pandapipes-0.11.0/src/pandapipes/test/data/Temperature_tee_2zu_1ab_an.csv +5 -0
- pandapipes-0.11.0/src/pandapipes/test/data/ext_grid_p.csv +2 -0
- pandapipes-0.11.0/src/pandapipes/test/data/gas_sections_an.csv +14 -0
- pandapipes-0.11.0/src/pandapipes/test/data/heat_exchanger_test.csv +3 -0
- pandapipes-0.11.0/src/pandapipes/test/data/hydraulics.csv +4 -0
- pandapipes-0.11.0/src/pandapipes/test/data/pressure_control_test_analytical.csv +3 -0
- pandapipes-0.11.0/src/pandapipes/test/data/test_circ_pump_mass.csv +5 -0
- pandapipes-0.11.0/src/pandapipes/test/data/test_circ_pump_pressure.csv +5 -0
- pandapipes-0.11.0/src/pandapipes/test/data/test_pressure_control.csv +5 -0
- pandapipes-0.11.0/src/pandapipes/test/data/test_pump.csv +5 -0
- pandapipes-0.11.0/src/pandapipes/test/data/test_time_series_results/res_ext_grid/mdot_kg_per_s.csv +26 -0
- pandapipes-0.11.0/src/pandapipes/test/data/test_time_series_results/res_junction/p_bar.csv +26 -0
- pandapipes-0.11.0/src/pandapipes/test/data/test_time_series_results/res_pipe/lambda.csv +26 -0
- pandapipes-0.11.0/src/pandapipes/test/data/test_time_series_results/res_pipe/reynolds.csv +26 -0
- pandapipes-0.11.0/src/pandapipes/test/data/test_time_series_results/res_pipe/v_mean_m_per_s.csv +26 -0
- pandapipes-0.11.0/src/pandapipes/test/data/test_time_series_results/res_sink/mdot_kg_per_s.csv +26 -0
- pandapipes-0.11.0/src/pandapipes/test/data/test_time_series_results/res_source/mdot_kg_per_s.csv +26 -0
- pandapipes-0.11.0/src/pandapipes/test/data/test_time_series_sink_profiles.csv +26 -0
- pandapipes-0.11.0/src/pandapipes/test/data/test_time_series_source_profiles.csv +26 -0
- pandapipes-0.11.0/src/pandapipes/test/data/test_valve.csv +9 -0
- pandapipes-0.11.0/src/pandapipes/test/io/__init__.py +3 -0
- pandapipes-0.11.0/src/pandapipes/test/io/test_file_io.py +179 -0
- pandapipes-0.11.0/src/pandapipes/test/multinet/__init__.py +3 -0
- pandapipes-0.11.0/src/pandapipes/test/multinet/test_control_multinet.py +424 -0
- pandapipes-0.11.0/src/pandapipes/test/multinet/test_time_series_multinet.py +136 -0
- pandapipes-0.11.0/src/pandapipes/test/networks/__init__.py +3 -0
- pandapipes-0.11.0/src/pandapipes/test/networks/test_networks.py +33 -0
- pandapipes-0.11.0/src/pandapipes/test/openmodelica_comparison/__init__.py +3 -0
- pandapipes-0.11.0/src/pandapipes/test/openmodelica_comparison/pipeflow_openmodelica_comparison.py +264 -0
- pandapipes-0.11.0/src/pandapipes/test/openmodelica_comparison/test_heat_transfer_openmodelica.py +137 -0
- pandapipes-0.11.0/src/pandapipes/test/openmodelica_comparison/test_water_openmodelica.py +396 -0
- pandapipes-0.11.0/src/pandapipes/test/pipeflow_internals/__init__.py +4 -0
- pandapipes-0.11.0/src/pandapipes/test/pipeflow_internals/test_inservice.py +679 -0
- pandapipes-0.11.0/src/pandapipes/test/pipeflow_internals/test_non_convergence.py +36 -0
- pandapipes-0.11.0/src/pandapipes/test/pipeflow_internals/test_options.py +113 -0
- pandapipes-0.11.0/src/pandapipes/test/pipeflow_internals/test_pipeflow_analytic_comparison.py +589 -0
- pandapipes-0.11.0/src/pandapipes/test/pipeflow_internals/test_pipeflow_modes.py +120 -0
- pandapipes-0.11.0/src/pandapipes/test/pipeflow_internals/test_time_series.py +180 -0
- pandapipes-0.11.0/src/pandapipes/test/pipeflow_internals/test_update_matrix.py +40 -0
- pandapipes-0.11.0/src/pandapipes/test/plotting/__init__.py +3 -0
- pandapipes-0.11.0/src/pandapipes/test/plotting/test_collections.py +188 -0
- pandapipes-0.11.0/src/pandapipes/test/plotting/test_generic_coordinates.py +36 -0
- pandapipes-0.11.0/src/pandapipes/test/plotting/test_pipeflow_results.py +44 -0
- pandapipes-0.11.0/src/pandapipes/test/plotting/test_simple_collections.py +138 -0
- pandapipes-0.11.0/src/pandapipes/test/properties/__init__.py +3 -0
- pandapipes-0.11.0/src/pandapipes/test/properties/test_fluid_specials.py +67 -0
- pandapipes-0.11.0/src/pandapipes/test/properties/test_properties_toolbox.py +315 -0
- pandapipes-0.11.0/src/pandapipes/test/pytest.ini +5 -0
- pandapipes-0.11.0/src/pandapipes/test/run_tests.py +122 -0
- pandapipes-0.11.0/src/pandapipes/test/stanet_comparison/__init__.py +3 -0
- pandapipes-0.11.0/src/pandapipes/test/stanet_comparison/pipeflow_stanet_comparison.py +180 -0
- pandapipes-0.11.0/src/pandapipes/test/stanet_comparison/test_gas_stanet.py +436 -0
- pandapipes-0.11.0/src/pandapipes/test/stanet_comparison/test_water_stanet.py +447 -0
- pandapipes-0.11.0/src/pandapipes/test/test_imports.py +29 -0
- pandapipes-0.11.0/src/pandapipes/test/test_toolbox.py +316 -0
- pandapipes-0.11.0/src/pandapipes/test/topology/__init__.py +3 -0
- pandapipes-0.11.0/src/pandapipes/test/topology/test_graph_searches.py +54 -0
- pandapipes-0.11.0/src/pandapipes/test/topology/test_nxgraph.py +27 -0
- pandapipes-0.11.0/src/pandapipes/timeseries/__init__.py +6 -0
- pandapipes-0.11.0/src/pandapipes/timeseries/run_time_series.py +128 -0
- pandapipes-0.11.0/src/pandapipes/toolbox.py +619 -0
- pandapipes-0.11.0/src/pandapipes/topology/__init__.py +8 -0
- pandapipes-0.11.0/src/pandapipes/topology/create_graph.py +185 -0
- pandapipes-0.11.0/src/pandapipes/topology/graph_searches.py +188 -0
- pandapipes-0.11.0/src/pandapipes/topology/topology_toolbox.py +42 -0
- pandapipes-0.11.0/src/pandapipes.egg-info/PKG-INFO +167 -0
- pandapipes-0.11.0/src/pandapipes.egg-info/SOURCES.txt +411 -0
- pandapipes-0.11.0/src/pandapipes.egg-info/dependency_links.txt +1 -0
- pandapipes-0.11.0/src/pandapipes.egg-info/requires.txt +40 -0
- pandapipes-0.11.0/src/pandapipes.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# This workflow will create a Python package and upload it to testPyPi or PyPi
|
|
2
|
+
# Then, it installs pandapipes from there and all dependencies and runs tests with different Python versions
|
|
3
|
+
|
|
4
|
+
name: release
|
|
5
|
+
|
|
6
|
+
# Controls when the action will run.
|
|
7
|
+
on:
|
|
8
|
+
# Allows you to run this workflow manually from the Actions tab
|
|
9
|
+
workflow_dispatch:
|
|
10
|
+
inputs:
|
|
11
|
+
upload_server:
|
|
12
|
+
description: 'upload server'
|
|
13
|
+
required: true
|
|
14
|
+
default: 'testpypi'
|
|
15
|
+
type: choice
|
|
16
|
+
options:
|
|
17
|
+
- 'testpypi'
|
|
18
|
+
- 'pypi'
|
|
19
|
+
|
|
20
|
+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
|
21
|
+
jobs:
|
|
22
|
+
upload:
|
|
23
|
+
# The type of runner that the job will run on
|
|
24
|
+
runs-on: ubuntu-latest
|
|
25
|
+
|
|
26
|
+
# Steps represent a sequence of tasks that will be executed as part of the job
|
|
27
|
+
steps:
|
|
28
|
+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
|
29
|
+
- uses: actions/checkout@v3
|
|
30
|
+
|
|
31
|
+
# Sets up python3
|
|
32
|
+
- uses: actions/setup-python@v4
|
|
33
|
+
with:
|
|
34
|
+
python-version: '3.10'
|
|
35
|
+
# Installs and upgrades pip, installs twine and other packages for the release-process
|
|
36
|
+
- name: Install dependencies
|
|
37
|
+
run: |
|
|
38
|
+
# Upgrade pip
|
|
39
|
+
python3 -m pip install --upgrade pip
|
|
40
|
+
# Install twine
|
|
41
|
+
python3 -m pip install build setuptools wheel twine
|
|
42
|
+
|
|
43
|
+
# Upload to TestPyPI
|
|
44
|
+
- name: Build and Upload to TestPyPI
|
|
45
|
+
if: ${{ inputs.upload_server == 'testpypi'}}
|
|
46
|
+
run: |
|
|
47
|
+
python3 -m build
|
|
48
|
+
python3 -m twine check dist/* --strict
|
|
49
|
+
python3 -m twine upload dist/*
|
|
50
|
+
env:
|
|
51
|
+
TWINE_USERNAME: __token__
|
|
52
|
+
TWINE_PASSWORD: ${{ secrets.TESTPYPI }}
|
|
53
|
+
TWINE_REPOSITORY: testpypi
|
|
54
|
+
|
|
55
|
+
# Upload to PyPI
|
|
56
|
+
- name: Build and Upload to PyPI
|
|
57
|
+
if: ${{ inputs.upload_server == 'pypi' }}
|
|
58
|
+
run: |
|
|
59
|
+
python3 -m build
|
|
60
|
+
python3 -m twine check dist/* --strict
|
|
61
|
+
python3 -m twine upload dist/*
|
|
62
|
+
env:
|
|
63
|
+
TWINE_USERNAME: __token__
|
|
64
|
+
TWINE_PASSWORD: ${{ secrets.PYPI }}
|
|
65
|
+
TWINE_REPOSITORY: pypi
|
|
66
|
+
|
|
67
|
+
- name: Sleep for 300s to make release available
|
|
68
|
+
uses: juliangruber/sleep-action@v1
|
|
69
|
+
with:
|
|
70
|
+
time: 300s
|
|
71
|
+
|
|
72
|
+
build:
|
|
73
|
+
runs-on: ${{ matrix.os }}
|
|
74
|
+
needs: upload
|
|
75
|
+
strategy:
|
|
76
|
+
matrix:
|
|
77
|
+
python-version: ['3.9', '3.10', '3.11', '3.12']
|
|
78
|
+
os: [ ubuntu-latest, windows-latest ]
|
|
79
|
+
steps:
|
|
80
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
81
|
+
uses: actions/setup-python@v4
|
|
82
|
+
with:
|
|
83
|
+
python-version: ${{ matrix.python-version }}
|
|
84
|
+
- name: Install dependencies
|
|
85
|
+
run: |
|
|
86
|
+
python -m pip install --upgrade pip
|
|
87
|
+
python -m pip install pytest igraph pytest-split
|
|
88
|
+
if [${{ matrix.python-version != '3.11' }}]; then python -m pip install numba; fi
|
|
89
|
+
shell: bash
|
|
90
|
+
- name: Install pandapipes from TestPyPI
|
|
91
|
+
if: ${{ inputs.upload_server == 'testpypi'}}
|
|
92
|
+
run: |
|
|
93
|
+
python -m pip install --no-cache-dir -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple pandapipes
|
|
94
|
+
- name: Install pandapipes from PyPI
|
|
95
|
+
if: ${{ inputs.upload_server == 'pypi'}}
|
|
96
|
+
run: |
|
|
97
|
+
python -m pip install pandapipes
|
|
98
|
+
- name: List all installed packages
|
|
99
|
+
run: |
|
|
100
|
+
python -m pip list
|
|
101
|
+
- name: Test with pytest
|
|
102
|
+
run: |
|
|
103
|
+
pytest --pyargs pandapipes.test
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
|
|
2
|
+
# A coverage report will be created for the Python 3.9 version
|
|
3
|
+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
|
|
4
|
+
|
|
5
|
+
# pandapipes-develop branch is designed to work with pandapower-master branch, but checks the ability to
|
|
6
|
+
# work with pandapower-develop branch (relying tests, usually not required for merges) in order to avoid
|
|
7
|
+
# problems in future releases
|
|
8
|
+
|
|
9
|
+
name: ppipes_dev
|
|
10
|
+
|
|
11
|
+
on:
|
|
12
|
+
push:
|
|
13
|
+
branches-ignore: [ master ]
|
|
14
|
+
pull_request:
|
|
15
|
+
branches-ignore: [ master ]
|
|
16
|
+
|
|
17
|
+
jobs:
|
|
18
|
+
build:
|
|
19
|
+
runs-on: ${{ matrix.os }}
|
|
20
|
+
strategy:
|
|
21
|
+
matrix:
|
|
22
|
+
python-version: ['3.9', '3.10', '3.11', '3.12']
|
|
23
|
+
os: [ ubuntu-latest, windows-latest ]
|
|
24
|
+
steps:
|
|
25
|
+
- uses: actions/checkout@v4
|
|
26
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
27
|
+
uses: actions/setup-python@v5
|
|
28
|
+
with:
|
|
29
|
+
python-version: ${{ matrix.python-version }}
|
|
30
|
+
- name: Install dependencies
|
|
31
|
+
run: |
|
|
32
|
+
python -m pip install --upgrade pip
|
|
33
|
+
python -m pip install .["all"]
|
|
34
|
+
shell: bash
|
|
35
|
+
- name: List all installed packages
|
|
36
|
+
run: |
|
|
37
|
+
python -m pip list
|
|
38
|
+
- name: Test with pytest
|
|
39
|
+
if: ${{ matrix.python-version != '3.11' }}
|
|
40
|
+
run: |
|
|
41
|
+
python -m pytest
|
|
42
|
+
- name: Test without numba
|
|
43
|
+
if: ${{ matrix.python-version == '3.11' }}
|
|
44
|
+
run: |
|
|
45
|
+
python -m pip uninstall numba -y
|
|
46
|
+
python -m pytest -n=auto
|
|
47
|
+
- name: Test with pytest and Codecov
|
|
48
|
+
if: ${{ matrix.python-version == '3.11' }}
|
|
49
|
+
run: |
|
|
50
|
+
python -m pip install pytest-cov
|
|
51
|
+
python -m pytest --cov=./ --cov-report=xml
|
|
52
|
+
- name: Upload coverage to Codecov
|
|
53
|
+
if: ${{ matrix.python-version == '3.11' }}
|
|
54
|
+
uses: codecov/codecov-action@v1
|
|
55
|
+
with:
|
|
56
|
+
verbose: true
|
|
57
|
+
|
|
58
|
+
relying:
|
|
59
|
+
runs-on: ${{ matrix.os }}
|
|
60
|
+
strategy:
|
|
61
|
+
matrix:
|
|
62
|
+
python-version: ['3.9', '3.10', '3.11', '3.12']
|
|
63
|
+
os: [ ubuntu-latest, windows-latest ]
|
|
64
|
+
steps:
|
|
65
|
+
- uses: actions/checkout@v4
|
|
66
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
67
|
+
uses: actions/setup-python@v5
|
|
68
|
+
with:
|
|
69
|
+
python-version: ${{ matrix.python-version }}
|
|
70
|
+
- name: Install dependencies
|
|
71
|
+
run: |
|
|
72
|
+
python -m pip install --upgrade pip
|
|
73
|
+
python -m pip install git+https://github.com/e2nIEE/pandapower@develop#egg=pandapower
|
|
74
|
+
python -m pip install .["all"]
|
|
75
|
+
shell: bash
|
|
76
|
+
- name: List all installed packages
|
|
77
|
+
run: |
|
|
78
|
+
python -m pip list
|
|
79
|
+
- name: Test with pytest
|
|
80
|
+
if: ${{ matrix.python-version != '3.11' }}
|
|
81
|
+
run: |
|
|
82
|
+
python -m pytest
|
|
83
|
+
- name: Test with pytest and Codecov
|
|
84
|
+
if: ${{ matrix.python-version == '3.11' }}
|
|
85
|
+
run: |
|
|
86
|
+
python -m pip install pytest-cov
|
|
87
|
+
python -m pytest -n=auto --cov=./ --cov-report=xml
|
|
88
|
+
- name: Upload coverage to Codecov
|
|
89
|
+
if: ${{ matrix.python-version == '3.11' }}
|
|
90
|
+
uses: codecov/codecov-action@v4
|
|
91
|
+
with:
|
|
92
|
+
verbose: true
|
|
93
|
+
token: ${{ secrets.CODECOV_TOKEN }}
|
|
94
|
+
dry_run: ${{ github.ref != 'refs/heads/develop' }}
|
|
95
|
+
exclude: |
|
|
96
|
+
'**/test/**'
|
|
97
|
+
'**/__init__.py'
|
|
98
|
+
'doc/**'
|
|
99
|
+
'tutorials/**'
|
|
100
|
+
'pandapipes/networks/network_files/**'
|
|
101
|
+
'**.yml'
|
|
102
|
+
'**.rst'
|
|
103
|
+
- name: Test without numba
|
|
104
|
+
if: ${{ matrix.python-version == '3.11' }}
|
|
105
|
+
run: |
|
|
106
|
+
python -m pip uninstall numba -y
|
|
107
|
+
python -m pytest -n=auto
|
|
108
|
+
|
|
109
|
+
linting:
|
|
110
|
+
runs-on: ${{ matrix.os }}
|
|
111
|
+
strategy:
|
|
112
|
+
matrix:
|
|
113
|
+
python-version: ['3.11']
|
|
114
|
+
os: [ ubuntu-latest, windows-latest ]
|
|
115
|
+
steps:
|
|
116
|
+
- uses: actions/checkout@v4
|
|
117
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
118
|
+
uses: actions/setup-python@v5
|
|
119
|
+
with:
|
|
120
|
+
python-version: ${{ matrix.python-version }}
|
|
121
|
+
- name: Install dependencies
|
|
122
|
+
run: |
|
|
123
|
+
python -m pip install --upgrade pip
|
|
124
|
+
python -m pip install flake8
|
|
125
|
+
python -m pip install .["all"]
|
|
126
|
+
shell: bash
|
|
127
|
+
- name: List all installed packages
|
|
128
|
+
run: |
|
|
129
|
+
python -m pip list
|
|
130
|
+
- name: Lint with flake8 (syntax errors and undefinded names)
|
|
131
|
+
run: |
|
|
132
|
+
# stop the build if there are Python syntax errors or undefined names
|
|
133
|
+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
|
134
|
+
- name: Lint with flake8 (all errors/warnings)
|
|
135
|
+
run: |
|
|
136
|
+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
|
137
|
+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
|
138
|
+
|
|
139
|
+
tutorial_tests:
|
|
140
|
+
runs-on: ${{ matrix.os }}
|
|
141
|
+
strategy:
|
|
142
|
+
matrix:
|
|
143
|
+
python-version: ['3.9', '3.10', '3.11', '3.12']
|
|
144
|
+
os: [ ubuntu-latest, windows-latest ]
|
|
145
|
+
steps:
|
|
146
|
+
- uses: actions/checkout@v4
|
|
147
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
148
|
+
uses: actions/setup-python@v5
|
|
149
|
+
with:
|
|
150
|
+
python-version: ${{ matrix.python-version }}
|
|
151
|
+
- name: Install dependencies
|
|
152
|
+
run: |
|
|
153
|
+
python -m pip install --upgrade pip
|
|
154
|
+
python -m pip install .["all"]
|
|
155
|
+
shell: bash
|
|
156
|
+
- name: List all installed packages
|
|
157
|
+
run: |
|
|
158
|
+
python -m pip list
|
|
159
|
+
- name: Test with pytest
|
|
160
|
+
run: |
|
|
161
|
+
python -m pytest --nbmake -n=auto "./tutorials"
|
|
162
|
+
- name: Test without numba
|
|
163
|
+
if: ${{ matrix.python-version == '3.11' }}
|
|
164
|
+
run: |
|
|
165
|
+
python -m pip uninstall numba -y
|
|
166
|
+
python -m pytest --nbmake -n=auto "./tutorials"
|
|
167
|
+
|
|
168
|
+
docs_check:
|
|
169
|
+
runs-on: ubuntu-latest
|
|
170
|
+
strategy:
|
|
171
|
+
matrix:
|
|
172
|
+
python-version: [ '3.11' ]
|
|
173
|
+
steps:
|
|
174
|
+
- uses: actions/checkout@v4
|
|
175
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
176
|
+
uses: actions/setup-python@v5
|
|
177
|
+
with:
|
|
178
|
+
python-version: ${{ matrix.python-version }}
|
|
179
|
+
- name: Check docs for Python ${{ matrix.python-version }}
|
|
180
|
+
uses: e2nIEE/sphinx-action@master
|
|
181
|
+
with:
|
|
182
|
+
pre-build-command: "python -m pip install --upgrade pip;
|
|
183
|
+
python -m pip install .[docs]"
|
|
184
|
+
build-command: "sphinx-build -b html source _build -W"
|
|
185
|
+
docs-folder: "doc/"
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
|
|
2
|
+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
|
|
3
|
+
|
|
4
|
+
# pandapipes-master branch is designed to work with pandapower-master branch
|
|
5
|
+
|
|
6
|
+
name: ppipes_master
|
|
7
|
+
|
|
8
|
+
on:
|
|
9
|
+
push:
|
|
10
|
+
branches: [ master ]
|
|
11
|
+
pull_request:
|
|
12
|
+
branches: [ master ]
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
build:
|
|
16
|
+
runs-on: ${{ matrix.os }}
|
|
17
|
+
strategy:
|
|
18
|
+
matrix:
|
|
19
|
+
python-version: ['3.9', '3.10', '3.11', '3.12']
|
|
20
|
+
os: [ ubuntu-latest, windows-latest ]
|
|
21
|
+
steps:
|
|
22
|
+
- uses: actions/checkout@v4
|
|
23
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
24
|
+
uses: actions/setup-python@v5
|
|
25
|
+
with:
|
|
26
|
+
python-version: ${{ matrix.python-version }}
|
|
27
|
+
- name: Install dependencies
|
|
28
|
+
run: |
|
|
29
|
+
python -m pip install --upgrade pip
|
|
30
|
+
python -m pip install .["all"]
|
|
31
|
+
shell: bash
|
|
32
|
+
- name: List all installed packages
|
|
33
|
+
run: |
|
|
34
|
+
python -m pip list
|
|
35
|
+
- name: Test with pytest
|
|
36
|
+
if: ${{ matrix.python-version != '3.11' }}
|
|
37
|
+
run: |
|
|
38
|
+
python -m pytest
|
|
39
|
+
- name: Test with pytest, Codecov and Coverage
|
|
40
|
+
if: ${{ matrix.python-version == '3.11' }}
|
|
41
|
+
run: |
|
|
42
|
+
python -m pip install pytest-cov
|
|
43
|
+
python -m pytest --nbmake -n=auto --cov=./ --cov-report=xml
|
|
44
|
+
cp ./coverage.xml ./codecov_coverage.xml
|
|
45
|
+
- name: Upload coverage to Codacy
|
|
46
|
+
if: ${{ matrix.python-version == '3.11' && matrix.os == 'ubuntu-latest'}}
|
|
47
|
+
env:
|
|
48
|
+
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
|
|
49
|
+
run: |
|
|
50
|
+
bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r coverage.xml
|
|
51
|
+
- name: Upload coverage to Codecov
|
|
52
|
+
if: ${{ matrix.python-version == '3.11' }}
|
|
53
|
+
uses: codecov/codecov-action@v4
|
|
54
|
+
with:
|
|
55
|
+
token: ${{ secrets.CODECOV_TOKEN }}
|
|
56
|
+
file: ./codecov_coverage.xml
|
|
57
|
+
verbose: true
|
|
58
|
+
exclude: |
|
|
59
|
+
'**/test/**'
|
|
60
|
+
'**/__init__.py'
|
|
61
|
+
'doc/**'
|
|
62
|
+
'tutorials/**'
|
|
63
|
+
'pandapipes/networks/network_files/**'
|
|
64
|
+
'**.yml'
|
|
65
|
+
'**.rst'
|
|
66
|
+
- name: Test without numba
|
|
67
|
+
if: ${{ matrix.python-version == '3.11' }}
|
|
68
|
+
run: |
|
|
69
|
+
python -m pip uninstall numba -y
|
|
70
|
+
python -m pytest -n=auto
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
relying:
|
|
74
|
+
runs-on: ${{ matrix.os }}
|
|
75
|
+
strategy:
|
|
76
|
+
matrix:
|
|
77
|
+
python-version: ['3.9', '3.10', '3.11', '3.12']
|
|
78
|
+
os: [ ubuntu-latest, windows-latest ]
|
|
79
|
+
steps:
|
|
80
|
+
- uses: actions/checkout@v4
|
|
81
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
82
|
+
uses: actions/setup-python@v5
|
|
83
|
+
with:
|
|
84
|
+
python-version: ${{ matrix.python-version }}
|
|
85
|
+
- name: Install dependencies
|
|
86
|
+
run: |
|
|
87
|
+
python -m pip install --upgrade pip
|
|
88
|
+
python -m pip install .["all"]
|
|
89
|
+
shell: bash
|
|
90
|
+
- name: List all installed packages
|
|
91
|
+
run: |
|
|
92
|
+
python -m pip list
|
|
93
|
+
- name: Test with pytest
|
|
94
|
+
# if: ${{ matrix.python-version != '3.11' }}
|
|
95
|
+
run: |
|
|
96
|
+
python -m pytest -n=auto
|
|
97
|
+
- name: Test without numba
|
|
98
|
+
if: ${{ matrix.python-version == '3.11' }}
|
|
99
|
+
run: |
|
|
100
|
+
python -m pip uninstall numba -y
|
|
101
|
+
python -m pytest -n=auto
|
|
102
|
+
|
|
103
|
+
tutorial_tests:
|
|
104
|
+
runs-on: ${{ matrix.os }}
|
|
105
|
+
strategy:
|
|
106
|
+
matrix:
|
|
107
|
+
python-version: ['3.9', '3.10', '3.11', '3.12']
|
|
108
|
+
os: [ ubuntu-latest, windows-latest ]
|
|
109
|
+
steps:
|
|
110
|
+
- uses: actions/checkout@v4
|
|
111
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
112
|
+
uses: actions/setup-python@v5
|
|
113
|
+
with:
|
|
114
|
+
python-version: ${{ matrix.python-version }}
|
|
115
|
+
- name: Install dependencies
|
|
116
|
+
run: |
|
|
117
|
+
python -m pip install --upgrade pip
|
|
118
|
+
python -m pip install .["all"]
|
|
119
|
+
shell: bash
|
|
120
|
+
- name: List all installed packages
|
|
121
|
+
run: |
|
|
122
|
+
python -m pip list
|
|
123
|
+
- name: Test with pytest
|
|
124
|
+
run: |
|
|
125
|
+
python -m pytest --nbmake -n=auto "./tutorials"
|
|
126
|
+
- name: Test without numba
|
|
127
|
+
if: ${{ matrix.python-version == '3.11' }}
|
|
128
|
+
run: |
|
|
129
|
+
python -m pip uninstall numba -y
|
|
130
|
+
python -m pytest --nbmake -n=auto "./tutorials"
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
docs_check:
|
|
134
|
+
runs-on: ubuntu-latest
|
|
135
|
+
strategy:
|
|
136
|
+
matrix:
|
|
137
|
+
python-version: [ '3.11' ]
|
|
138
|
+
steps:
|
|
139
|
+
- uses: actions/checkout@v4
|
|
140
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
141
|
+
uses: actions/setup-python@v5
|
|
142
|
+
with:
|
|
143
|
+
python-version: ${{ matrix.python-version }}
|
|
144
|
+
- name: Check docs for Python ${{ matrix.python-version }}
|
|
145
|
+
uses: e2nIEE/sphinx-action@master
|
|
146
|
+
with:
|
|
147
|
+
pre-build-command: "python -m pip install --upgrade pip;
|
|
148
|
+
python -m pip install .[docs]"
|
|
149
|
+
build-command: "sphinx-build -b html source _build -W"
|
|
150
|
+
docs-folder: "doc/"
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
Copyright (c) 2020-2024 by Fraunhofer Institute for Energy Economics
|
|
2
|
+
and Energy System Technology (IEE), Kassel, and University of Kassel. All rights reserved.
|
|
3
|
+
|
|
4
|
+
Lead Developers:
|
|
5
|
+
- Daniel Lohmeier
|
|
6
|
+
- Simon Ruben Drauz-Mauel
|
|
7
|
+
- Jolando Marius Kisse
|
|
8
|
+
|
|
9
|
+
Main Contributors:
|
|
10
|
+
- Tabea Trummel
|
|
11
|
+
- Michel Diesing
|
|
12
|
+
- Vanessa Kiesewetter
|
|
13
|
+
|
|
14
|
+
Further Contributions by:
|
|
15
|
+
- Christian Spalthoff
|
|
16
|
+
- Daniel Then
|
|
17
|
+
- Marius Schenk
|
|
18
|
+
- Natalia Sanina
|
|
19
|
+
- Erik Prade
|
|
20
|
+
|
|
21
|
+
Coordination:
|
|
22
|
+
- Tanja Manuela Kneiske
|
|
23
|
+
- Lars Lauven
|
|
24
|
+
- Jan Ulffers
|
|
25
|
+
- Martin Braun
|
|
26
|
+
|
|
27
|
+
Alumni:
|
|
28
|
+
- Dennis Cronbach (until July 2022)
|