Skip to content

Commit

Permalink
Merge pull request #31 from cgre-aachen/fixindex
Browse files Browse the repository at this point in the history
FixIndexError
  • Loading branch information
AlexanderJuestel authored Sep 2, 2023
2 parents 73db105 + fbaa108 commit 6637e3f
Showing 1 changed file with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,7 @@
"ExecuteTime": {
"end_time": "2022-04-04T11:42:42.119640Z",
"start_time": "2022-04-04T11:42:41.778575Z"
},
"scrolled": false
}
},
"outputs": [],
"source": [
Expand Down Expand Up @@ -572,7 +571,7 @@
},
"outputs": [],
"source": [
"orientations_p = gg.vector.calculate_orientations_from_strike_lines(gdf=strikes[strikes['formation'] == 'P'].sort_values(by='id', ascending=True).reset_index())\n",
"orientations_p = gg.vector.calculate_orientations_from_strike_lines(gdf=strikes[strikes['formation'] == 'P'].sort_values(by='id', ascending=True).reset_index(drop=True))\n",
"orientations_p"
]
},
Expand All @@ -587,7 +586,7 @@
},
"outputs": [],
"source": [
"orientations_q = gg.vector.calculate_orientations_from_strike_lines(gdf=strikes[strikes['formation'] == 'Q'].reset_index())\n",
"orientations_q = gg.vector.calculate_orientations_from_strike_lines(gdf=strikes[strikes['formation'] == 'Q'].reset_index(drop=True))\n",
"orientations_q"
]
},
Expand All @@ -602,7 +601,7 @@
},
"outputs": [],
"source": [
"orientations_r = gg.vector.calculate_orientations_from_strike_lines(gdf=strikes[strikes['formation'] == 'R'].reset_index())\n",
"orientations_r = gg.vector.calculate_orientations_from_strike_lines(gdf=strikes[strikes['formation'] == 'R'].reset_index(drop=True))\n",
"orientations_r"
]
},
Expand All @@ -617,7 +616,7 @@
},
"outputs": [],
"source": [
"orientations_s = gg.vector.calculate_orientations_from_strike_lines(gdf=strikes[strikes['formation'] == 'S'].reset_index())\n",
"orientations_s = gg.vector.calculate_orientations_from_strike_lines(gdf=strikes[strikes['formation'] == 'S'].reset_index(drop=True))\n",
"orientations_s"
]
},
Expand All @@ -632,7 +631,7 @@
},
"outputs": [],
"source": [
"orientations_t = gg.vector.calculate_orientations_from_strike_lines(gdf=strikes[strikes['formation'] == 'T'].reset_index())\n",
"orientations_t = gg.vector.calculate_orientations_from_strike_lines(gdf=strikes[strikes['formation'] == 'T'].reset_index(drop=True))\n",
"orientations_t"
]
},
Expand All @@ -658,7 +657,7 @@
},
"outputs": [],
"source": [
"orientations = pd.concat([orientations_p, orientations_q, orientations_r, orientations_s, orientations_t]).reset_index()\n",
"orientations = pd.concat([orientations_p, orientations_q, orientations_r, orientations_s, orientations_t]).reset_index(drop=True)\n",
"orientations"
]
},
Expand Down Expand Up @@ -1383,7 +1382,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.15"
"version": "3.10.12"
},
"varInspector": {
"cols": {
Expand Down

0 comments on commit 6637e3f

Please sign in to comment.