Skip to content

Commit

Permalink
Update surfaces.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Japhiolite committed May 25, 2023
1 parent 7868b7e commit cc3b233
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gempy/core/surfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,11 +326,11 @@ def map_series(self, mapping_object: Union[dict, pn.DataFrame] = None):
s.append(k)
f.append(form)

new_series_mapping = pn.DataFrame([pn.Categorical(s, self.series.df.index)],
f, columns=['series'])
#new_series_mapping = pn.DataFrame([pn.Categorical(s, self.series.df.index)],

This comment has been minimized.

Copy link
@AlexanderJuestel

AlexanderJuestel May 25, 2023

Contributor

I can confirm that this change fixed an issue that I encountered as well. If #802 gets merged, my installation works as of now. Also the 3D model visualization with PyVista works

# f, columns=['series'])
# with pandas 2.0.1 something along the lines of
new_series_mapping = pn.DataFrame(list(zip(pn.Categorical(s, self.series.df.index),
f)), columns=['series'])
new_series_mapping = pn.DataFrame(list(zip(pn.Categorical(s, self.series.df.index))),
index=f, columns=['series'])

elif isinstance(mapping_object, pn.Categorical):
# This condition is for the case we have surface on the index and in 'series' the category
Expand Down

0 comments on commit cc3b233

Please sign in to comment.