schrodinger / pymol-open-source

Open-source foundation of the user-sponsored PyMOL molecular visualization system.
https://pymol.org/
Other
1.2k stars 281 forks source link

Not able to load partial pse using API #266

Closed VonBoss closed 2 years ago

VonBoss commented 2 years ago

I am unable to merge two Pymol session files using the API.

This works: load filename_1 load filename_2, partial=1

This does not work: cmd.load('filename_1') cmd.load('filename_2", 'partial=1')

The API command disregards the current session (filename_1) and replaces it with filename_2.

I am trying to merge several Pymol session files as part of a python program.

Version 2.5.4

JarrettSJohnson commented 2 years ago

I believe you want

cmd.load('filename_2', partial=1)

where partial is a named argument and not part of the string literal.

VonBoss commented 2 years ago

That was simple. Works perfectly. Thank you!

VonBoss commented 2 years ago

I am able to load multiple session files now but Pymol crashes with a segmentation fault when I try to save. Do you have any ideas what the issue might be?

JarrettSJohnson commented 2 years ago

Hard to tell without a stacktrace or anything. If you can provide that or a minimally reproduceable example, feel free to email me with it at jarrett.johnson@schrodinger.com