NeuXtalViz package#
NeuXtalViz is a toolkit for single-crystal diffraction analysis and visualization.
Features#
UB matrix calculation
Peak indexing and integration
Volume slicing
Experiment planning
- NeuXtalViz.config package
- NeuXtalViz.models package
- Submodules
- NeuXtalViz.models.base_model module
- NeuXtalVizModel
- Attributes
- Methods
NeuXtalVizModelNeuXtalVizModel.ab_axes()NeuXtalVizModel.ab_star_axes()NeuXtalVizModel.bc_axes()NeuXtalVizModel.bc_star_axes()NeuXtalVizModel.ca_axes()NeuXtalVizModel.ca_star_axes()NeuXtalVizModel.calculate_camera_parameters()NeuXtalVizModel.files_exist()NeuXtalVizModel.get_oriented_lattice_parameters()NeuXtalVizModel.get_transform()NeuXtalVizModel.get_vector()NeuXtalVizModel.has_UB()NeuXtalVizModel.orientation_matrix()NeuXtalVizModel.rotate_camera_azimuth()NeuXtalVizModel.rotate_camera_elevation()NeuXtalVizModel.rotate_camera_roll()NeuXtalVizModel.set_UB()
- NeuXtalViz.models.crystal_structure_tools module
CrystalStructureModelCrystalStructureModel.CHARGE_PER_MINUTECrystalStructureModel.COULOMB_PER_UAHCrystalStructureModel.F2_EPSILONCrystalStructureModel.FM2_PER_BARNCrystalStructureModel.MAGNETIC_PCrystalStructureModel.PEAKS_WORKSPACECrystalStructureModel.SIM_BACKGROUND_WORKSPACECrystalStructureModel.SIM_PEAKS_WORKSPACECrystalStructureModel.SIM_RESPONSE_WORKSPACECrystalStructureModel.calculate_F2()CrystalStructureModel.calculate_UB()CrystalStructureModel.constrain_parameters()CrystalStructureModel.generate_F2()CrystalStructureModel.generate_atom_positions()CrystalStructureModel.generate_hkl_list()CrystalStructureModel.generate_settings_from_space_group()CrystalStructureModel.generate_space_groups_from_crystal_system()CrystalStructureModel.get_UB_from_vectors()CrystalStructureModel.get_absorption_dict()CrystalStructureModel.get_chemical_formula_z_parameter()CrystalStructureModel.get_crystal_system()CrystalStructureModel.get_euler_angles()CrystalStructureModel.get_goniometer_axes()CrystalStructureModel.get_incident_path_length()CrystalStructureModel.get_instrument_d_min()CrystalStructureModel.get_lattice_constants()CrystalStructureModel.get_lattice_system()CrystalStructureModel.get_material_dict()CrystalStructureModel.get_moment_direction()CrystalStructureModel.get_periodic_table()CrystalStructureModel.get_point_group_name()CrystalStructureModel.get_resolution_prior()CrystalStructureModel.get_scatterers()CrystalStructureModel.get_setting()CrystalStructureModel.get_space_group()CrystalStructureModel.get_transform_from_UB()CrystalStructureModel.get_unit_cell_transform()CrystalStructureModel.get_unit_cell_volume()CrystalStructureModel.has_crystal_structure()CrystalStructureModel.load_CIF()CrystalStructureModel.load_UB_from_file()CrystalStructureModel.load_simulator_response()CrystalStructureModel.magnetic_form_factor()CrystalStructureModel.magnetic_structure_factor2()CrystalStructureModel.predict_resolution_S_lab()CrystalStructureModel.predict_roi()CrystalStructureModel.predict_simulator_peaks()CrystalStructureModel.predict_transmission()CrystalStructureModel.response_value()CrystalStructureModel.sample_mesh()CrystalStructureModel.save_ins()CrystalStructureModel.set_crystal_structure()CrystalStructureModel.set_material()CrystalStructureModel.set_sample_shape()CrystalStructureModel.simulate_intensities()CrystalStructureModel.spectrum_for_detector()CrystalStructureModel.stoica_wilkinson_transform()CrystalStructureModel.update_lattice_parameters()CrystalStructureModel.update_parameters()CrystalStructureModel.write_ellipsoid_stl()
- NeuXtalViz.models.experiment_planner module
CrystalPlanExperimentModelExperimentModel.add_mesh()ExperimentModel.add_orientation()ExperimentModel.add_plane()ExperimentModel.calculate_footprint()ExperimentModel.calculate_harmonics()ExperimentModel.calculate_hkl_limits()ExperimentModel.calculate_individual_peak()ExperimentModel.calculate_projections()ExperimentModel.calculate_rotations()ExperimentModel.calculate_statistics()ExperimentModel.clear_combined()ExperimentModel.compute_plane_angles()ExperimentModel.copy_UB()ExperimentModel.copy_to_instrument_pc()ExperimentModel.create_plan()ExperimentModel.create_sample()ExperimentModel.crystal_plan()ExperimentModel.delete_angles()ExperimentModel.downsample()ExperimentModel.extract_data()ExperimentModel.extract_instrument_view()ExperimentModel.generate_axes()ExperimentModel.generate_table()ExperimentModel.get_UB()ExperimentModel.get_angles()ExperimentModel.get_autoreduce_instrument()ExperimentModel.get_axes_polarities()ExperimentModel.get_calibration_file_path()ExperimentModel.get_counting_options()ExperimentModel.get_coverage_info()ExperimentModel.get_crystal_system_point_groups()ExperimentModel.get_goniometer_axes()ExperimentModel.get_goniometers()ExperimentModel.get_instrument_background()ExperimentModel.get_instrument_directory()ExperimentModel.get_instrument_name()ExperimentModel.get_laue_info()ExperimentModel.get_modes()ExperimentModel.get_motors()ExperimentModel.get_peak_index()ExperimentModel.get_peak_selection()ExperimentModel.get_point_group_centering()ExperimentModel.get_scan_log()ExperimentModel.get_setting()ExperimentModel.get_symmetry()ExperimentModel.get_vanadium_file_path()ExperimentModel.get_wavelength()ExperimentModel.grouping_list()ExperimentModel.has_UB()ExperimentModel.hsl_to_rgb()ExperimentModel.individual_peak()ExperimentModel.initialize_instrument()ExperimentModel.load_UB()ExperimentModel.load_experiment()ExperimentModel.remove_instrument()ExperimentModel.reslice_last()ExperimentModel.save_experiment()ExperimentModel.save_plan()ExperimentModel.select_scan_near_equator()ExperimentModel.set_path()ExperimentModel.simultaneous_peaks()ExperimentModel.simultaneous_peaks_hkl()ExperimentModel.swap_angles()ExperimentModel.to_index()ExperimentModel.update_goniometer_motors()ExperimentModel.update_sample()ExperimentModel.validate_projection()
- NeuXtalViz.models.periodic_table module
- NeuXtalViz.models.ub_tools module
UBModelUBModel.add_peak()UBModel.add_peak_from_hkl()UBModel.avoid_aluminum_contamination()UBModel.avoid_contamination()UBModel.avoid_copper_contamination()UBModel.avoid_iron_contamination()UBModel.calculate_clim()UBModel.calculate_fractional()UBModel.calculate_highlight()UBModel.calculate_hkl()UBModel.calculate_hkl_position()UBModel.calculate_instrument_view()UBModel.calculate_integer()UBModel.calculate_peaks()UBModel.calibrate_data()UBModel.can_undo_filter_peaks()UBModel.centroid_peaks()UBModel.clear_filter_peaks_backup()UBModel.clear_intensity()UBModel.cluster_peaks()UBModel.convert_data()UBModel.copy_UB_from_Q()UBModel.copy_UB_from_peaks()UBModel.copy_UB_to_Q()UBModel.copy_UB_to_peaks()UBModel.delete_peak()UBModel.delete_peak_rows()UBModel.delete_peaks()UBModel.determine_UB_with_lattice_parameters()UBModel.determine_UB_with_niggli_cell()UBModel.extract_roi()UBModel.filter_peaks()UBModel.find_UB_from_scattering_plane()UBModel.find_peaks()UBModel.generate_lattice_transforms()UBModel.get_Q()UBModel.get_Q_info()UBModel.get_Q_status()UBModel.get_UB()UBModel.get_UB_status()UBModel.get_alignment_info()UBModel.get_all_goniometer_matrices()UBModel.get_autoreduce_instrument()UBModel.get_calibration_file_path()UBModel.get_cluster_info()UBModel.get_d()UBModel.get_d_min()UBModel.get_default_d_min()UBModel.get_example_file_path()UBModel.get_files()UBModel.get_goniometer_axes()UBModel.get_goniometers()UBModel.get_has_Q_vol()UBModel.get_instrument_from_Q()UBModel.get_instrument_name()UBModel.get_lattice_constant_errors()UBModel.get_lattice_constants()UBModel.get_lite_file_path()UBModel.get_max_d_spacing()UBModel.get_min_q_spacing()UBModel.get_modulation_info()UBModel.get_number_workspaces()UBModel.get_peak()UBModel.get_peak_info()UBModel.get_peaks_status()UBModel.get_raw_file_path()UBModel.get_run_goniometer()UBModel.get_sample_directions()UBModel.get_shared_file_path()UBModel.get_slice_info()UBModel.get_slice_z_extent()UBModel.get_vanadium_file_path()UBModel.get_wavelength()UBModel.has_Q()UBModel.has_UB()UBModel.has_peaks()UBModel.index_peaks()UBModel.integrate_peaks()UBModel.intensity_vs_radius()UBModel.is_live()UBModel.is_mono()UBModel.is_sliced()UBModel.load_Q()UBModel.load_UB()UBModel.load_data()UBModel.load_peaks()UBModel.make_Q()UBModel.possible_conventional_cells()UBModel.predict_modulated_peaks()UBModel.predict_peaks()UBModel.predict_satellite_peaks()UBModel.preview_transform_lattice()UBModel.refine_UB_with_constraints()UBModel.refine_UB_without_constraints()UBModel.refine_U_only()UBModel.remove_duplicate_peaks()UBModel.renumber_runs_by_index()UBModel.roi_scan_to_hkl()UBModel.save_Q()UBModel.save_UB()UBModel.save_peaks()UBModel.save_roi_mask()UBModel.select_cell()UBModel.set_goniometer()UBModel.set_manual_UB()UBModel.set_peak()UBModel.simplify_vector()UBModel.snapshot_filter_peaks()UBModel.sort_peaks_by_d()UBModel.sort_peaks_by_hkl()UBModel.start_live_data()UBModel.stop_live_data()UBModel.transform_lattice()UBModel.undo_filter_peaks()UBModel.update_UB()UBModel.validate_projection()
- NeuXtalViz.models.utilities module
- NeuXtalViz.models.volume_slicer module
VolumeSlicerModelVolumeSlicerModel.BOND_CIF_WORKSPACEVolumeSlicerModel.activate_workspace()VolumeSlicerModel.build_bond_network()VolumeSlicerModel.calculate_clim()VolumeSlicerModel.calculate_pdf()VolumeSlicerModel.combine_workspaces()VolumeSlicerModel.delete_workspace()VolumeSlicerModel.get_cut_info()VolumeSlicerModel.get_histo_info()VolumeSlicerModel.get_slice_info()VolumeSlicerModel.get_transform()VolumeSlicerModel.get_transforms()VolumeSlicerModel.is_cut()VolumeSlicerModel.is_histo_loaded()VolumeSlicerModel.is_sliced()VolumeSlicerModel.load_bond_cif()VolumeSlicerModel.load_md_histo_workspace()VolumeSlicerModel.next_load_display_name()VolumeSlicerModel.orientation_matrix()VolumeSlicerModel.register_workspace()VolumeSlicerModel.rename_workspace()VolumeSlicerModel.run_blur()VolumeSlicerModel.run_bragg_punch()VolumeSlicerModel.run_karen()VolumeSlicerModel.sample_bond_correlations()VolumeSlicerModel.save_cut()VolumeSlicerModel.save_md_workspace()VolumeSlicerModel.save_slice()VolumeSlicerModel.set_B()VolumeSlicerModel.set_W()
- Module contents
- NeuXtalViz.presenters package
- Submodules
- Classes
NeuXtalVizPresenterNeuXtalVizPresenter.azimuth_view_left()NeuXtalVizPresenter.azimuth_view_right()NeuXtalVizPresenter.calculate_camera_parameters()NeuXtalVizPresenter.change_lattice()NeuXtalVizPresenter.elevate_view_down()NeuXtalVizPresenter.elevate_view_up()NeuXtalVizPresenter.rotate_view_ccw()NeuXtalVizPresenter.rotate_view_cw()NeuXtalVizPresenter.save_screenshot()NeuXtalVizPresenter.stop_processing()NeuXtalVizPresenter.stop_workers()NeuXtalVizPresenter.update_complete()NeuXtalVizPresenter.update_invalid()NeuXtalVizPresenter.update_oriented_lattice()NeuXtalVizPresenter.update_processing()NeuXtalVizPresenter.update_progress()NeuXtalVizPresenter.update_status()NeuXtalVizPresenter.update_stopped()NeuXtalVizPresenter.view_ab()NeuXtalVizPresenter.view_ab_star()NeuXtalVizPresenter.view_bc()NeuXtalVizPresenter.view_bc_star()NeuXtalVizPresenter.view_ca()NeuXtalVizPresenter.view_ca_star()NeuXtalVizPresenter.view_manual()NeuXtalVizPresenter.view_up_manual()
CrystalStructureCrystalStructure.calculate_F2()CrystalStructure.calculate_F2_complete()CrystalStructure.calculate_F2_process()CrystalStructure.calculate_absorption()CrystalStructure.calculate_absorption_complete()CrystalStructure.calculate_absorption_process()CrystalStructure.calculate_hkl()CrystalStructure.calculate_hkl_complete()CrystalStructure.calculate_hkl_process()CrystalStructure.calculate_simulator()CrystalStructure.calculate_simulator_complete()CrystalStructure.calculate_simulator_process()CrystalStructure.clear_UB()CrystalStructure.generate_groups()CrystalStructure.generate_settings()CrystalStructure.highlight_row()CrystalStructure.load_CIF()CrystalStructure.load_UB()CrystalStructure.refresh_magnetic_sites()CrystalStructure.save_INS()CrystalStructure.select_instrument()CrystalStructure.select_isotope()CrystalStructure.set_atom_table()CrystalStructure.update_atoms()CrystalStructure.update_parameters()CrystalStructure.update_selection()
ExperimentExperiment.add_orientation()Experiment.add_orientation_complete()Experiment.add_orientation_process()Experiment.add_settings()Experiment.add_settings_complete()Experiment.add_settings_process()Experiment.calculate_double()Experiment.calculate_double_complete()Experiment.calculate_double_process()Experiment.calculate_harmonics()Experiment.calculate_plane()Experiment.calculate_plane_process()Experiment.calculate_single()Experiment.calculate_single_alt()Experiment.calculate_single_complete()Experiment.calculate_single_hkl()Experiment.calculate_single_process()Experiment.convert_mesh_to_hkl()Experiment.convert_plan_to_hkl()Experiment.convert_to_hkl()Experiment.convert_to_hkl_complete()Experiment.convert_to_hkl_process()Experiment.create_instrument()Experiment.delete_angles()Experiment.delete_angles_complete()Experiment.delete_angles_process()Experiment.get_normal()Experiment.highlight_peak()Experiment.load_UB()Experiment.load_detector()Experiment.load_experiment()Experiment.load_goniometer()Experiment.load_mask()Experiment.lookup_angle()Experiment.mesh_scan()Experiment.mesh_scan_complete()Experiment.mesh_scan_process()Experiment.move_orientation_down()Experiment.move_orientation_up()Experiment.optimize_coverage()Experiment.optimize_coverage_complete()Experiment.optimize_coverage_process()Experiment.plane_scan()Experiment.plane_scan_complete()Experiment.plane_scan_process()Experiment.reslice()Experiment.save_CSV()Experiment.save_experiment()Experiment.select_peak()Experiment.show_instrument()Experiment.show_instrument_complete()Experiment.show_instrument_process()Experiment.switch_centering()Experiment.switch_crystal()Experiment.switch_group()Experiment.switch_instrument()Experiment.update_goniometer()Experiment.update_hkl_limits()Experiment.update_peaks()Experiment.update_plan()Experiment.update_wavelength()Experiment.visualize()
- Classes
AtomPeriodicTableUBUB.add_highlight_1()UB.add_highlight_2()UB.add_peak()UB.add_slice_peak()UB.calculate_alignment()UB.calculate_alignment_complete()UB.calculate_alignment_process()UB.calculate_highlight()UB.calculate_hkl()UB.calculate_peak_radius()UB.calculate_peak_radius_complete()UB.calculate_peak_radius_process()UB.calculate_peaks()UB.cluster()UB.cluster_complete()UB.cluster_process()UB.convert_Q()UB.convert_Q_complete()UB.convert_Q_process()UB.convert_Q_reload()UB.convert_to_hkl()UB.convert_to_hkl_complete()UB.convert_to_hkl_process()UB.delete_peak()UB.filter_peaks()UB.filter_peaks_complete()UB.filter_peaks_process()UB.find_conventional()UB.find_conventional_complete()UB.find_conventional_process()UB.find_niggli()UB.find_niggli_complete()UB.find_niggli_process()UB.find_peaks()UB.find_peaks_complete()UB.find_peaks_process()UB.get_clim_method()UB.get_modulation_info()UB.get_normal()UB.get_vlim_method()UB.hand_index_fractional()UB.hand_index_integer()UB.handle_data_combo_change()UB.highlight_cell()UB.highlight_peak()UB.index_peaks()UB.index_peaks_complete()UB.index_peaks_process()UB.integrate_peaks()UB.integrate_peaks_complete()UB.integrate_peaks_process()UB.lattice_transform()UB.limit_min_distance_from_ub()UB.limit_radius_from_ub()UB.load_Q()UB.load_UB()UB.load_detector_calibration()UB.load_goniometer_calibration()UB.load_peaks()UB.load_tube_calibration()UB.predict_peaks()UB.predict_peaks_complete()UB.predict_peaks_process()UB.refine_UB()UB.refine_UB_complete()UB.refine_UB_process()UB.refresh_peak_views()UB.reslice()UB.save_Q()UB.save_UB()UB.save_peaks()UB.save_roi_mask()UB.select_cell()UB.select_cell_complete()UB.select_cell_process()UB.set_UB()UB.set_UB_from_scattering_plane()UB.set_UB_from_scattering_plane_complete()UB.set_UB_from_scattering_plane_process()UB.show_cells()UB.show_cells_complete()UB.show_cells_process()UB.start_live()UB.stop_live()UB.switch_instrument()UB.symmetry_transform()UB.toggle_live()UB.transform_UB()UB.transform_UB_complete()UB.transform_UB_process()UB.undo_filter_peaks()UB.undo_filter_peaks_complete()UB.undo_filter_peaks_process()UB.update_check_hkl()UB.update_cvals()UB.update_data_status()UB.update_find_distance()UB.update_find_spacing()UB.update_inst_cvals()UB.update_instrument_clim()UB.update_instrument_display()UB.update_instrument_view()UB.update_instrument_view_autoscaled()UB.update_instrument_view_complete()UB.update_instrument_view_process()UB.update_lattice_info()UB.update_roi()UB.update_run_goniometer()UB.update_scan()UB.update_slice_clim()UB.update_slice_display()UB.update_slice_extent()UB.update_transform_preview()UB.update_wavelength()UB.visualize()
VolumeSlicerVolumeSlicer.activate_workspace()VolumeSlicer.activate_workspace_complete()VolumeSlicer.calculate_pdf()VolumeSlicer.calculate_pdf_complete()VolumeSlicer.combine_workspaces()VolumeSlicer.cut_data()VolumeSlicer.cut_data_complete()VolumeSlicer.cut_data_process()VolumeSlicer.delete_workspace()VolumeSlicer.get_axis()VolumeSlicer.get_normal()VolumeSlicer.get_vlim_method()VolumeSlicer.load_NXS()VolumeSlicer.load_NXS_complete()VolumeSlicer.load_NXS_process()VolumeSlicer.load_bond_cif()VolumeSlicer.load_bond_cif_complete()VolumeSlicer.plot_bond_network()VolumeSlicer.plot_bond_network_complete()VolumeSlicer.redraw_data()VolumeSlicer.redraw_data_complete()VolumeSlicer.redraw_data_process()VolumeSlicer.refresh_workspace_lists()VolumeSlicer.rename_workspace()VolumeSlicer.run_blur()VolumeSlicer.run_blur_complete()VolumeSlicer.run_bragg_punch()VolumeSlicer.run_bragg_punch_complete()VolumeSlicer.run_karen()VolumeSlicer.run_karen_complete()VolumeSlicer.sample_bond_correlations_complete()VolumeSlicer.save_cut()VolumeSlicer.save_slice()VolumeSlicer.save_workspace()VolumeSlicer.slice_data()VolumeSlicer.slice_data_complete()VolumeSlicer.slice_data_process()VolumeSlicer.sync_symmetric_zero_with_opacity()VolumeSlicer.update_cut()VolumeSlicer.update_cut_value()VolumeSlicer.update_cvals()VolumeSlicer.update_lims()VolumeSlicer.update_pdf_space_groups()VolumeSlicer.update_slice()VolumeSlicer.update_slice_clim()VolumeSlicer.update_slice_display()VolumeSlicer.update_slice_value()VolumeSlicer.update_symmetric_xy()VolumeSlicer.update_vmax()VolumeSlicer.update_vmin()VolumeSlicer.update_volume()VolumeSlicer.update_xmax()VolumeSlicer.update_xmin()VolumeSlicer.update_ymax()VolumeSlicer.update_ymin()
- Submodules
Submodules#
NeuXtalViz.application module#
- class NeuXtalViz[source]#
Bases:
QMainWindowMain application window for NeuXtalViz.
Implements a singleton
QMainWindowthat hosts the UB Calculator, Experiment Planner, Reciprocal Space Volume Slicer, and Structure Factor Calculator tools in a stacked widget, and provides menu actions for launching external reduction/analysis GUIs (TOPAZ, garnet, ShelXle, Olex2, FullProf, VESTA) and internal helpers such as the experiment browser and structure/diffuse interface.- Attributes:
paintersushort
Methods
acceptDrops(/)accessibleDescription(/)accessibleIdentifier(/)accessibleName(/)actionEvent(object, /)actions(/)activateWindow(/)addAction(...)addActions(object, /)addDockWidget(-> None)addToolBar(-> None -> None)addToolBarBreak(self, /[, area])adjustSize(/)autoFillBackground(/)backgroundRole(/)backingStore(/)baseSize(/)blockSignals(object, /)centralWidget(/)changeEvent(object, /)childAt(...)childEvent(object, /)children(/)childrenRect(/)childrenRegion(/)clearFocus(/)clearMask(/)close(/)closeEvent(event)Stop any running live-data listener and close each tool's PyVista plotter before the window and its child widgets are destroyed.
colorCount(/)connect(...)connectNotify(object, /)contentsMargins(/)contentsRect(/)contextMenuEvent(object, /)contextMenuPolicy(/)corner(object, /)create(self, /[, arg__1, initializeWindow, ...])createPopupMenu(/)createWinId(/)createWindowContainer(window, /[, parent, flags])cursor(/)customEvent(object, /)deleteLater(/)depth(/)destroy(self, /[, destroyWindow, ...])devType(/)devicePixelRatio(/)devicePixelRatioF(/)devicePixelRatioFScale()disconnect(...)disconnectNotify(object, /)dockOptions(/)dockWidgetArea(object, /)documentMode(/)dragEnterEvent(object, /)dragLeaveEvent(object, /)dragMoveEvent(object, /)dropEvent(object, /)dumpObjectInfo(/)dumpObjectTree(/)dynamicPropertyNames(/)effectiveWinId(/)emit(self, signal, /, *args)encodeMetricF(metric, value, /)ensurePolished(/)enterEvent(object, /)event(object, /)eventFilter(self, watched, event, /)Launch the external SNS experiment browser script.
find(object, /)findChild(self, type, /[, name, options])findChildren() -> List[~PlaceholderType] ))focusInEvent(object, /)focusNextChild(/)focusNextPrevChild(object, /)focusOutEvent(object, /)focusPolicy(/)focusPreviousChild(/)focusProxy(/)focusWidget(/)font(/)fontInfo(/)fontMetrics(/)foregroundRole(/)frameGeometry(/)frameSize(/)Launch the external FullProf application.
Launch the external garnet reduction script.
geometry(/)grab(self, /[, rectangle])grabGesture(self, type, /[, flags])grabKeyboard(/)grabMouse(-> None)grabShortcut(self, key, /[, context])graphicsEffect(/)graphicsProxyWidget(/)hasFocus(/)hasHeightForWidth(/)hasMouseTracking(/)hasTabletTracking(/)height(/)heightForWidth(object, /)heightMM(/)hide(/)hideEvent(object, /)iconSize(/)inherits(object, /)initPainter(object, /)inputMethodEvent(object, /)inputMethodHints(/)inputMethodQuery(object, /)insertAction(self, before, action, /)insertActions(self, before, actions, /)insertToolBar(self, before, toolbar, /)insertToolBarBreak(object, /)installEventFilter(object, /)internalWinId(/)isActiveWindow(/)isAncestorOf(object, /)isAnimated(/)isDockNestingEnabled(/)isEnabled(/)isEnabledTo(object, /)isFullScreen(/)isHidden(/)isLeftToRight(/)isMaximized(/)isMinimized(/)isModal(/)isQmlExposed(/)isQuickItemType(/)isRightToLeft(/)isSeparator(object, /)isSignalConnected(object, /)isTopLevel(/)isVisible(/)isVisibleTo(object, /)isWidgetType(/)isWindow(/)isWindowModified(/)isWindowType(/)keyPressEvent(object, /)keyReleaseEvent(object, /)keyboardGrabber()killTimer()layout(/)layoutDirection(/)leaveEvent(object, /)locale(/)logicalDpiX(/)logicalDpiY(/)lower(/)mapFrom(-> PySide6.QtCore.QPoint)mapFromGlobal()mapFromParent()mapTo(-> PySide6.QtCore.QPoint)mapToGlobal()mapToParent()mask(/)maximumHeight(/)maximumSize(/)maximumWidth(/)menuBar(/)menuWidget(/)metaObject(/)metric(object, /)minimumHeight(/)minimumSize(/)minimumSizeHint(/)minimumWidth(/)mouseDoubleClickEvent(object, /)mouseGrabber()mouseMoveEvent(object, /)mousePressEvent(object, /)mouseReleaseEvent(object, /)move(-> None)moveEvent(object, /)moveToThread(object, /)nativeEvent(self, eventType, message, /)nativeParentWidget(/)nextInFocusChain(/)normalGeometry(/)objectName(/)Launch the external Olex2 application.
overrideWindowFlags(object, /)overrideWindowState(object, /)paintEngine(/)paintEvent(object, /)paintingActive(/)palette(/)parent(/)parentWidget(/)physicalDpiX(/)physicalDpiY(/)pos(/)previousInFocusChain(/)property(object, /)raise_(/)receivers(object, /)rect(/)redirected(object, /)releaseKeyboard(/)releaseMouse(/)releaseShortcut(object, /)removeAction(object, /)removeDockWidget(object, /)removeEventFilter(object, /)removeToolBar(object, /)removeToolBarBreak(object, /)render(, sourceRegion, renderFlags, renderFlags)repaint(-> None -> None -> None)resize(-> None)resizeDocks(self, docks, sizes, orientation, /)resizeEvent(object, /)restoreDockWidget(object, /)restoreGeometry(object, /)restoreState(self, state, /[, version])saveGeometry(/)saveState(self, /[, version])screen(/)scroll(-> None)sender(/)senderSignalIndex(/)setAcceptDrops(object, /)setAccessibleDescription(object, /)setAccessibleIdentifier(object, /)setAccessibleName(object, /)setAnimated(object, /)setAttribute(self, arg__1, /[, on])setAutoFillBackground(object, /)setBackgroundRole(object, /)setBaseSize(-> None)setCentralWidget(object, /)setContentsMargins(-> None)setContextMenuPolicy(object, /)setCorner(self, corner, area, /)setCursor(object, /)setDisabled(object, /)setDockNestingEnabled(object, /)setDockOptions(object, /)setDocumentMode(object, /)setEnabled(object, /)setFixedHeight(object, /)setFixedSize(-> None)setFixedWidth(object, /)setFocus(-> None)setFocusPolicy(object, /)setFocusProxy(object, /)setFont(object, /)setForegroundRole(object, /)setGeometry(-> None)setGraphicsEffect(object, /)setHidden(object, /)setIconSize(object, /)setInputMethodHints(object, /)setLayout(object, /)setLayoutDirection(object, /)setLocale(object, /)setMask()setMaximumHeight(object, /)setMaximumSize(-> None)setMaximumWidth(object, /)setMenuBar(object, /)setMenuWidget(object, /)setMinimumHeight(object, /)setMinimumSize(-> None)setMinimumWidth(object, /)setMouseTracking(object, /)setObjectName(object, /)setPalette(object, /)setParent(-> None)setProperty(self, name, value, /)setScreen(object, /)setShortcutAutoRepeat(self, id, /[, enable])setShortcutEnabled(self, id, /[, enable])setSizeIncrement(-> None)setSizePolicy(-> None)setStatusBar(object, /)setStatusTip(object, /)setStyle(object, /)setStyleSheet(object, /)setTabOrder(arg__1, arg__2, /)setTabPosition(self, areas, tabPosition, /)setTabShape(object, /)setTabletTracking(object, /)setToolButtonStyle(object, /)setToolTip(object, /)setToolTipDuration(object, /)setUnifiedTitleAndToolBarOnMac(object, /)setUpdatesEnabled(object, /)setVisible(object, /)setWhatsThis(object, /)setWindowFilePath(object, /)setWindowFlag(self, arg__1, /[, on])setWindowFlags(object, /)setWindowIcon(object, /)setWindowIconText(object, /)setWindowModality(object, /)setWindowModified(object, /)setWindowOpacity(object, /)setWindowRole(object, /)setWindowState(object, /)setWindowTitle(object, /)sharedPainter(/)Launch the external ShelXle application.
show(/)showEvent(object, /)showFullScreen(/)showMaximized(/)showMinimized(/)showNormal(/)Display the "About NeuXtalViz" information dialog.
signalsBlocked(/)size(/)sizeHint(/)sizeIncrement(/)sizePolicy(/)splitDockWidget(self, after, dockwidget, ...)stackUnder(object, /)startTimer(self, interval, /[, timerType])statusBar(/)statusTip(/)Launch the command browser interface as a separate process.
style(/)styleSheet(/)tabPosition(object, /)tabShape(/)tabifiedDockWidgets(object, /)tabifyDockWidget(self, first, second, /)tabletEvent(object, /)takeCentralWidget(/)testAttribute(object, /)thread(/)timerEvent(object, /)toolBarArea(object, /)toolBarBreak(object, /)toolButtonStyle(/)toolTip(/)toolTipDuration(/)topLevelWidget(/)Prompt for a TOPAZ reduction directory and launch its main.py.
tr(self, sourceText, /[, disambiguation, n])underMouse(/)ungrabGesture(object, /)unifiedTitleAndToolBarOnMac(/)unsetCursor(/)unsetLayoutDirection(/)unsetLocale(/)update(-> None -> None -> None)updateGeometry(/)updateMicroFocus(self, /[, query])updatesEnabled(/)Launch the external VESTA application.
visibleRegion(/)whatsThis(/)wheelEvent(object, /)width(/)widthMM(/)winId(/)window(/)windowFilePath(/)windowFlags(/)windowHandle(/)windowIcon(/)windowIconText(/)windowModality(/)windowOpacity(/)windowRole(/)windowState(/)windowTitle(/)windowType(/)x(/)y(/)DockOption
PaintDeviceMetric
RenderFlag
customContextMenuRequested
destroyed
iconSizeChanged
objectNameChanged
tabifiedDockWidgetActivated
toolButtonStyleChanged
windowIconChanged
windowIconTextChanged
windowTitleChanged
- closeEvent(event)[source]#
Stop any running live-data listener and close each tool’s PyVista plotter before the window and its child widgets are destroyed.
A running
StartLiveData/MonitorLiveDatalistener is a background Mantid algorithm independent of the Qt event loop; it would otherwise keep polling (and holding its DAQ connection open) after the window closes, so it must be cancelled explicitly here.BasePlotter.__del__callsclose()on garbage collection if a plotter was never explicitly closed. If that happens after Qt has already destroyed the underlying C++QtInteractorobject (e.g. as part of normal window teardown), it raises a shiboken “already deleted”RuntimeError. Closing each plotter here, while the widgets are still alive, avoids that.
- experiment_browser_GUI()[source]#
Launch the external SNS experiment browser script.
Shows a critical error dialog if
/SNS/software/scd/experiment.shcannot be launched.
- fullprof_GUI()[source]#
Launch the external FullProf application.
Shows a critical error dialog if the
fullprofexecutable cannot be launched.
- garnet_reduction_GUI()[source]#
Launch the external garnet reduction script.
Shows a critical error dialog if
/SNS/software/scd/garnet.shcannot be launched.
- olex2_GUI()[source]#
Launch the external Olex2 application.
Shows a critical error dialog if
/SNS/software/scd/olex2/olex2cannot be launched.
- shelxle_GUI()[source]#
Launch the external ShelXle application.
Shows a critical error dialog if the
shelxleexecutable cannot be launched.
- structdiff_GUI()[source]#
Launch the command browser interface as a separate process.
Runs
views/command_browser.py(located next to this module) with thepythoninterpreter. Shows a critical error dialog if the script cannot be launched.
- topaz_reduction_GUI()[source]#
Prompt for a TOPAZ reduction directory and launch its main.py.
Opens a directory selection dialog (starting from the last used TOPAZ path), and if the chosen directory contains a
main.pyscript, launches it withmantidpython. Shows a warning ifmain.pyis missing, or a critical error dialog if launching fails.
- gui()[source]#
Create and run the NeuXtalViz Qt application.
Installs a global exception handler, creates the
QApplication, detects whether the system palette is dark or light to select a matchingqdarkstyletheme (and PyVista plot theme), then creates and shows the mainNeuXtalVizwindow and starts the Qt event loop. This is the console-script entry point installed asneuxtalviz.
- handle_exception(exc_type, exc_value, exc_traceback)[source]#
Display an uncaught exception in a critical message dialog.
Intended to be installed as
sys.excepthookso that unhandled exceptions are shown to the user in a Qt dialog with the full traceback available as detailed text, instead of only being printed to the console.- Parameters:
- exc_typetype
The class of the raised exception.
- exc_valueBaseException
The exception instance that was raised.
- exc_tracebacktraceback
The traceback object associated with the exception.
Module contents#
Module to load the version created by versioningit
Will fall back to a default if NeuXtalViz is not installed