Skip to content

Commit

Permalink
EditTests
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderJuestel committed Nov 27, 2023
1 parent a8f25fb commit a27e9b0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions gemgis/visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -2607,6 +2607,9 @@ def create_deviated_borehole_df(df_survey: pd.DataFrame,
.. versionadded:: 1.0.x
.. versionchanged:: 1.1.7
Replace pandas append with concat.
Example
_______
Expand Down Expand Up @@ -2654,9 +2657,7 @@ def create_deviated_borehole_df(df_survey: pd.DataFrame,
position = np.array(position.coords)

# Calculating the bottom depth of each borehole segment
df_survey['depth_bottom'] = df_survey[depth].append(pd.Series(np.nan,
index=[len(df_survey[depth])]))[
1:].reset_index(drop=True)
df_survey['depth_bottom'] = pd.concat([df_survey[depth], pd.Series(np.nan,index=[len(df_survey[depth])])])

# Calculating the plunging vector for each borehole segment
df_survey['vector'] = df_survey.apply(lambda row: calculate_vector(row[dip],
Expand Down

0 comments on commit a27e9b0

Please sign in to comment.