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 Nov 21, 2023
2 parents 0039d75 + 896bb72 commit 1b12cfa
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 deletions.
6 changes: 6 additions & 0 deletions src/bundles/dicom/src/dicom/dicom_hierarchy.py
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,12 @@ def affine(self):
, files[0].frame_positions[-1]
, self.files[0].mask_length
)
else:
z_axis = self._z_spacing_from_files(
files[0].frame_positions[0]
, files[0].frame_positions[-1]
, int(len(files[0].frame_positions) / self.num_times)
)
else:
z_axis = self._z_spacing_from_files(
files[0].frame_positions[0]
Expand Down
2 changes: 1 addition & 1 deletion src/bundles/dicom/src/ui/segmentations.py
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ def _on_model_removed_from_session(self, *args):

def delete(self):
self.session.triggers.remove_handler(self.model_added_handler)
self.session.triggers.remove_handler(self.model_removed_handler)
self.session.triggers.remove_handler(self.model_closed_handler)
# TODO: Restore old mouse modes if necessary
if self.session.ui.main_window.view_layout == "orthoplanes":
self.session.ui.main_window.main_view.clear_segmentation_tool()
Expand Down
2 changes: 1 addition & 1 deletion src/bundles/list_info/bundle_info.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<BundleInfo name="ChimeraX-ListInfo" version="1.2.1"
<BundleInfo name="ChimeraX-ListInfo" version="1.2.2"
package="chimerax.list_info"
minSessionVersion="1" maxSessionVersion="1">

Expand Down
15 changes: 8 additions & 7 deletions src/bundles/list_info/src/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,14 @@ def info_chains(session, atoms=None, attribute="chain_id", *, return_json=False,
from chimerax.core.commands import atomspec
atoms = atomspec.everything(session)
results = atoms.evaluate(session)
chains = []
for m in results.models:
try:
chains.extend(m.chains)
except AttributeError:
# No chains, no problem
pass
chains = results.atoms.unique_residues.unique_chains
#chains = []
#for m in results.models:
# try:
# chains.extend(m.chains)
# except AttributeError:
# # No chains, no problem
# pass
return report_chains(session.logger, chains, attribute, return_json=return_json, save_file=save_file)
info_chains_desc = CmdDesc(required=[("atoms", Or(AtomSpecArg, EmptyArg))],
keyword=[("attribute", StringArg), ('save_file', SaveFileNameArg)],
Expand Down

0 comments on commit 1b12cfa

Please sign in to comment.