Skip to content

Commit

Permalink
Fix deprecated append for B_struct
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxvandenBoom committed Jul 25, 2023
1 parent ae49283 commit aff4979
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bpc_interactive.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,8 @@
" if np.mean(B_tmp.T @ V_tmp) < 0:\n",
" B_tmp = -B_tmp\n",
" \n",
" B_struct = B_struct.append({'curve': B_tmp, 'pairs': cl_pg[0]}, ignore_index=True)\n",
" curr_B = pd.DataFrame({'curve': [B_tmp], 'pairs': [cl_pg[0]]})\n",
" B_struct = pd.concat([B_struct, curr_B], ignore_index=True)\n",
" \n",
"# pairs not represented by any basis\n",
"excluded_pairs = np.where(1 - (np.sum(H0_, axis=0)))\n",
Expand Down

0 comments on commit aff4979

Please sign in to comment.