Skip to content

Commit

Permalink
remove hacky fix
Browse files Browse the repository at this point in the history
  • Loading branch information
longshuicy committed Dec 12, 2023
1 parent f10b365 commit 55c6bf3
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions notebooks/nci_functionality.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -300,24 +300,6 @@
"### EPF/WDS network cascading interdependency analysis"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# temporary fix (no need in the next release)\n",
"import pandas as pd\n",
"from pyincore import Dataset\n",
"\n",
"epf_subst_failure_df = epf_subst_failure_results.get_dataframe_from_csv()\n",
"epf_subst_dmg_df = epn_sub_dmg.get_output_dataset(\"result\").get_dataframe_from_csv()\n",
"epf_subst_failure_df = pd.merge(epf_subst_dmg_df[['guid', 'DS_0', 'DS_1', 'DS_2', 'DS_3', 'DS_4',]], epf_subst_failure_df[\n",
" ['guid', 'failure_probability']], on='guid', how='outer')\n",
"epf_subst_failure_df.head()\n",
"epf_subst_failure_results = Dataset.from_dataframe(epf_subst_failure_df, name=\"updated_epf_substation_failure\", data_type=\"incore:failureProbability\")"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down

0 comments on commit 55c6bf3

Please sign in to comment.