Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:RBVI/ChimeraX into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
elainecmeng committed Jan 14, 2024
2 parents 660ca09 + 060b814 commit e31c38f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/bundles/md_crds/bundle_info.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<BundleInfo name="ChimeraX-MDcrds" version="2.6"
<BundleInfo name="ChimeraX-MDcrds" version="2.6.1"
package="chimerax.md_crds"
minSessionVersion="1" maxSessionVersion="1">

Expand Down
8 changes: 6 additions & 2 deletions src/bundles/md_crds/src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,13 @@ def run_provider(session, name, mgr):
from chimerax.open_command import OpenerInfo
if name == "psf":
class MDInfo(OpenerInfo):
def open(self, session, data, file_name, **kw):
def open(self, session, data, file_name, *, slider=True, **kw):
from .read_psf import read_psf
return read_psf(session, data, file_name, **kw)
models, status = read_psf(session, data, file_name, **kw)
if slider and session.ui.is_gui:
from chimerax.std_commands.coordset import coordset_slider
coordset_slider(session, models)
return models, status
@property
def open_args(self):
from chimerax.core.commands import BoolArg, OpenFileNameArg, PositiveIntArg
Expand Down

0 comments on commit e31c38f

Please sign in to comment.