|
19 | 19 | "from pathlib import Path\n", |
20 | 20 | "import geopandas as gpd\n", |
21 | 21 | "import pandas as pd\n", |
22 | | - "from grid_reducer.utils import get_ckt_from_opendss_model\n", |
| 22 | + "from grid_reducer.opendss import OpenDSS\n", |
23 | 23 | "from grid_reducer.network import get_graph_from_circuit\n", |
24 | 24 | "from grid_reducer.plot import graph_to_geo_dataframe" |
25 | 25 | ] |
26 | 26 | }, |
27 | 27 | { |
28 | 28 | "cell_type": "code", |
29 | | - "execution_count": 3, |
| 29 | + "execution_count": null, |
30 | 30 | "id": "bfae5523", |
31 | 31 | "metadata": {}, |
32 | 32 | "outputs": [ |
|
46 | 46 | "master_dss_path = Path(\"../tests/data/smartds/Master.dss\")\n", |
47 | 47 | "\n", |
48 | 48 | "# Load the circuit object from the OpenDSS model\n", |
49 | | - "ckt = get_ckt_from_opendss_model(master_dss_path)\n", |
| 49 | + "ckt = OpenDSS(master_dss_path).get_circuit()\n", |
50 | 50 | "\n", |
51 | 51 | "# Create a NetworkX graph from the circuit\n", |
52 | 52 | "graph = get_graph_from_circuit(ckt)\n", |
|
803 | 803 | "\n", |
804 | 804 | "# Load a second circuit (e.g., a modified version for comparison)\n", |
805 | 805 | "master_dss_path2 = Path(\"../tests/data/smartds/Master.dss\")\n", |
806 | | - "ckt2 = get_ckt_from_opendss_model(master_dss_path2)\n", |
| 806 | + "ckt2 = OpenDSS(master_dss_path2).get_circuit()\n", |
807 | 807 | "graph2 = get_graph_from_circuit(ckt2)\n", |
808 | 808 | "gdf2 = graph_to_geo_dataframe(graph2)\n", |
809 | 809 | "\n", |
|
0 commit comments