We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 418d951 commit 30ec3faCopy full SHA for 30ec3fa
xfields/config_tools/spacecharge_config_tools.py
@@ -355,7 +355,8 @@ def replace_spacecharge_with_PIC(
355
base_sc = pic_collection.get_pic(xlim, ylim)
356
sc = base_sc.copy(_buffer=base_sc._buffer)
357
sc.length = ee.length
358
- line.element_dict[nn] = sc
+ line.env.remove(nn)
359
+ line.env.elements[nn] = sc
360
all_pics.append(sc)
361
362
return pic_collection, all_pics
0 commit comments