Skip to content

Commit f154a72

Browse files
committed
resolve pandas setting values on a slice
1 parent 81e2b26 commit f154a72

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pyxlma/plot/xlma_plot_feature.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ def plot_2d_network_points(bk_plot, netw_data, actual_height=None, fake_ic_heigh
161161
else:
162162
raise ValueError("color_by must be 'time' or 'polarity'")
163163

164-
cgs = netw_data[netw_data['type']=='CG']
165-
ics = netw_data[netw_data['type']=='IC']
164+
cgs = netw_data[netw_data['type']=='CG'].copy()
165+
ics = netw_data[netw_data['type']=='IC'].copy()
166166

167167
if actual_height is None:
168168
cgs['height'] = np.full_like(cgs.longitude, fake_cg_height)

0 commit comments

Comments
 (0)