WindowBasic

ccpnmr.analysis.core.WindowBasic.assignPeak(argServer=None, event=None)

Assign peak at location (if any nearby).

Input

ArgumentServer, Tk.Event

None

ccpnmr.analysis.core.WindowBasic.autoPeakLabelPos(argServer)

Automatically tidy the annotation labels of selected peaks.

Input

ArgumentServer

None

ccpnmr.analysis.core.WindowBasic.calculateNoise(argServer=None, canvas=None)

Calculate noise of spectra visible in window

Input

ArgumentServer

None

ccpnmr.analysis.core.WindowBasic.centerAxisRegion(axisRegion, center)

Move and axis region so that it is centred on the input value

Input

Analysis.AsisRegion, Float

None

ccpnmr.analysis.core.WindowBasic.centerWindow(argServer=None, event=None)

Center window at location.

Input

ArgumentServer, TkEvent

None

ccpnmr.analysis.core.WindowBasic.cloneSpectrumWindow(window, name=None)

Clone an existing spectrum window to make a new one

Input

Analysis.SpectrumWindow

Analysis.SpectrumWindow

ccpnmr.analysis.core.WindowBasic.contourLevelsDown(argServer=None, windowPopup=None)
Input
ccpnmr.analysis.core.WindowBasic.contourLevelsUp(argServer=None, windowPopup=None)
Input
ccpnmr.analysis.core.WindowBasic.copySpectrumWindowRegions(oldWindow, newWindow)

Copy regions from one window to another (pane and region numbers must match or else)

Input

Analysis.SpectrumWindow, Analysis.SpectrumWindow

None

ccpnmr.analysis.core.WindowBasic.copySpectrumWindowViewProperties(oldWindow, newWindow)

Copy view visibility properties from one window to another

Input

Analysis.SpectrumWindow, Analysis.SpectrumWindow

None

ccpnmr.analysis.core.WindowBasic.createHorizontalRuler(argServer=None, event=None)

Create horizontal ruler at location.

Input

ArgumentServer, TkEvent

None

ccpnmr.analysis.core.WindowBasic.createMark(argServer=None, event=None)

Create mark at location.

Input

ArgumentServer, TkEvent

None

ccpnmr.analysis.core.WindowBasic.createSidebandHorizontalRulers(argServer=None, event=None)

Create horizontal ruler at location and sideband copies.

Input

ArgumentServer, TkEvent

None

ccpnmr.analysis.core.WindowBasic.createSidebandMarks(argServer=None, event=None)

Create mark at location and sideband copies.

Input

ArgumentServer, TkEvent

None

ccpnmr.analysis.core.WindowBasic.createSidebandVerticalRulers(argServer=None, event=None)

Create vertical ruler at location and sideband copies.

Input

ArgumentServer, TkEvent

None

ccpnmr.analysis.core.WindowBasic.createSpectrumWindow(project, name, axisTypes, spectrum=None, sizes=None, ncols=1, nrows=1, regions=None, **kw)

Make a new spectrum window

Input

Project, String,List of List of Analysis.AxisTypes, Nmr.DataSource, RgbColor, List of 2-List of List of Floats, Int, Int, List of List of List of Floats

Analysis.SpectrumWindow

ccpnmr.analysis.core.WindowBasic.createVerticalRuler(argServer=None, event=None)

Create vertical ruler at location.

Input

ArgumentServer, TkEvent

None

ccpnmr.analysis.core.WindowBasic.defaultWindowName(project)

Determine a default window name.

Input

Project

Window name

ccpnmr.analysis.core.WindowBasic.deleteSelected(argServer=None, analysisPopup=None)

Delete selected objects.

Input

ArgumentServer, AnalysisPopup

None

ccpnmr.analysis.core.WindowBasic.displayPeakStrips(analysis, peaks, windowPane)

Create a number of strips at peak locations along a given strip axis. The ortho value of the strips will be the mean peak position for the orthogonal axis. A new window may be created if needed.

Input

Analysis (Tkinter top level), List of Nmr.Peaks, Analysis.SpectrumWindow

Analysis.SpectrumWindow

ccpnmr.analysis.core.WindowBasic.displaySpinSystemStrips(analysis, spinSystems, windowPane, shiftList=None, splitIntoCells=False)

For a given window pane, display the strips appropriate for a given spin system. Option to further divide the strips along the y axis according to spin system shifts.

Input

Analysis (Tkinter top level), Nmr.ResonanceGroup, Analysis.SpectrumWindowPane, Nmr.ShiftList, Boolean

None

ccpnmr.analysis.core.WindowBasic.displayStrips(analysis, positions, orthoPositions=None, spectrum=None, windowPane=None)

Create a number of strips at specified positions in a new or existing spectrum window panel. bPositions are specified in dictionary form. e.g. {‘x’: 7.43, ‘y’: 4.21, ‘z1’: 121.96} Orthogonal positions may be specified to further divide strips nto cells. A spectrum is specified so that the appropriate type of window can be made if needed.

Input

Analysis (Tkinter top level), List of Dicts (axis:location), List of Floats, Nmr,DataSource, Analysis.SpectrumWindowPanel

Analysis.SpectrumWindow

ccpnmr.analysis.core.WindowBasic.endPositionDelta(argServer=None, event=None)

Stop using marker to display delta for x, y positions.

Input

ArgumentServer, TkEvent

None

ccpnmr.analysis.core.WindowBasic.findDataDimAxisMapping(spectrumWindowView, dataDim)

Get the AxisMapping object for a given dataDim in a given spectrumWindowView.

Input

Analysis.SpectrumWindowView, Nmr.AbstractDataDim

Analysis.AxisMapping

ccpnmr.analysis.core.WindowBasic.findOrthogonalWindows(queryWindowPane, positions, excludeQuery=True, minDims=3)

Given positions in the input query window, find all equivalent points in all spectrum windows which have either a) a Z dimension that matches any one of the dimensions of the query window or b) two dimemsions that match the query window. Returns a list of mappings for each target window, comprising a mapping name (e.g. for GUIs) the target spectrum window and the target position. There is boolean option, to say whether the query window mapping is to be excluded form the output, this is usually true for searches originating from windows, but may not be so if the query comes from a table. The minDims optional argument determines the minimum number of dimensions that a target window must have to be considered.

Input

Analysis.SpectrumWindowPane, List of List of Floats (position), Boolean, Int

List of Lists [String (Mapping Name), Analysis.SpectrumWindow, List of Floats (position)]

ccpnmr.analysis.core.WindowBasic.findWindowTransposes(queryWindowPane, xyz)

Given a position in the input query window, find all equivalent points in the window which represent a swapping of coordinates for similarly types axes. Returns a list of mappings for each target window, comprising a mapping name (e.g. for GUIs) the target spectrum window and the target position.

Input

Analysis.SpectrumWindowPane, List of Floats (position)

List of Lists [String (Mapping Name), Analysis.SpectrumWindow, List of Floats (position)]

ccpnmr.analysis.core.WindowBasic.getActiveWindows(project)

Get the currently active windows in a project

Input

Implementation.Project

List of Analysis.SpectrumWindows

ccpnmr.analysis.core.WindowBasic.getAxisRegionRegion(axisRegion)
Input
ccpnmr.analysis.core.WindowBasic.getDataDimAxisMapping(spectrum, windowPane)

Find a mapping between axes in a spectrum window pane and the data dimensions of a spectrum: Works initially with dataDim matches.

Input

Nmr.DataSource, Analysis.SpectrumWindow

Dictionary of Nmr.DataDims keyed by ‘x’,’y’,’z1’ etc

ccpnmr.analysis.core.WindowBasic.getEquivalentWindows(queryWindow)

Get a list of windows with the same axis types as the query window

Input

Analysis.SpectrumWindow

List of Analysis.SpectrumWindows

ccpnmr.analysis.core.WindowBasic.getPeakDimAxisMapping(peak, windowPane)

Find a mapping between axes in a spectrum window pane and the dimensions of a peak: Works initially with dataDim matches.

Input

Nmr.Peak, Analysis.SpectrumWindowPane

Dictionary of Nmr.PeakDims keyed by ‘x’,’y’,’z1’ etc

ccpnmr.analysis.core.WindowBasic.getPeakWindowPosition(peak, windowPane, default=None, useDefault=True)

Find the position of a peak in a given window’s coordinates Copes with peakDims ordering being different to window axis order. If peaks do not match a window axis a default position may be used otherwise the default position is the current window location. If useDefault is False None will be entered instead of a default location.

Input

Nmr.Peak, Analysis.SpectrumWindowPane

List of Floats

ccpnmr.analysis.core.WindowBasic.getRepeatingAxes(windowPane)

For a spectrum window pane, gets a list of pairs of axis panels that are of the same type.

Input

Analysis.SpectrumWindowPane

List of Tuple of Analysis.AxisPanels (pairs of same type)

ccpnmr.analysis.core.WindowBasic.getSpectrumViews(spectrum)

Get a list of all the window views of a spectrum.

Input

Nmr.DataSource

List of Analysis.SpectrumWindowViews

ccpnmr.analysis.core.WindowBasic.getSpectrumWindowView(windowPane, spectrum)

Get the SpectrumWindowView object for a given spectrum in a given window pane.

Input

Analysis.SpectrumWindowPane, Nmr.DataSource

Analysis.SpectrumWindowView

ccpnmr.analysis.core.WindowBasic.getSpinSystemWindowShifts(spinSystems, windowPane, shiftList=None)

Get the shifts (linked to primary/z axes) visible in a given window pane that are represented by the resonances of a spin system. Also returns a list of orthogonal axis shifts.

Input

List of Nmr.ResonanceGroups, Analysis.SpectrumWindowPane, Nmr.ShiftList

List of Dict of Word:Nmr.Shift (dimName:position eg ‘z1’:Shift), List of Nmr.Shifts

ccpnmr.analysis.core.WindowBasic.getViewMinMaxValues(view)

Get the minimum and maximum spectrum data values in this view. Returns (None, None) if there is no data file for this spectrum.

Input

SpectrumWindowView

(minValue, maxValue)

ccpnmr.analysis.core.WindowBasic.getWindowAxisTypes(window)

Get a list of names representing the axis types of a window.

Input

Analysis.SpectrumWindow

List of Strings (Analysis.AxisType.name)

ccpnmr.analysis.core.WindowBasic.getWindowFrameCanvas(argServer, canvas=None)

Get the popup, and canvas if None passed in, for this argServer.

Input

ArgumentServer, WindowCanvas

(WindowFrame, WindowCanvas)

ccpnmr.analysis.core.WindowBasic.getWindowFrameCanvasLocation(argServer, event=None)

Get the popup, canvas and event location, for this argServer.

Input

ArgumentServer, ‘e’vent

(WindowFrame, WindowCanvas)

ccpnmr.analysis.core.WindowBasic.getWindowPaneName(windowPane)

Get a name which identifies a window pane and its parent spectrum window

Input

Analysis.SpectrumWindowPane

Word

ccpnmr.analysis.core.WindowBasic.gotoResonancePosition(analysis, resonance, windowPane, shiftList)

Go to the position of a given resonance (according to the input shiftlist) in a given window. Note currently only goes to first available axis not all.

Input

Analysis (Tkinter top level), Nmr.Resonance, Analysis.SpectrumWindowPane, Nmr.ShiftList

None

ccpnmr.analysis.core.WindowBasic.initWindowMacros(project)

Initialise window macros, adding default ones that not already included

Input

Implementation.Project (the project)

None

ccpnmr.analysis.core.WindowBasic.isActiveWindow(window)

Determine if a window is active within its project

Input

Analysis.SpectrumWindow

Boolean

ccpnmr.analysis.core.WindowBasic.isSpectrumInWindowPane(spectrumWindowPane, spectrum)

Determine if a spectrum is displayable in a given window.

Input

Analysis.SpectrumWindowPane, Nmr.DataSource

Boolean

ccpnmr.analysis.core.WindowBasic.movePeak(argServer=None, event=None)

Move peak to location.

Input

ArgumentServer, TkEvent

None

ccpnmr.analysis.core.WindowBasic.movePeakAnnotation(argServer=None, event=None)

Move peak to location.

Input

ArgumentServer, TkEvent

None

ccpnmr.analysis.core.WindowBasic.ncontoursDecr(argServer=None, windowPopup=None)
Input
ccpnmr.analysis.core.WindowBasic.ncontoursIncr(argServer=None, windowPopup=None)
Input
ccpnmr.analysis.core.WindowBasic.orthogScrollLeft(argServer=None, canvas=None)

Scroll to left in orthogonal (z1) dimension in window.

Input

ArgumentServer, WindowCanvas

None

ccpnmr.analysis.core.WindowBasic.orthogScrollRight(argServer=None, canvas=None)

Scroll to right in orthogonal (z1) dimension in window.

Input

ArgumentServer, WindowCanvas

None

ccpnmr.analysis.core.WindowBasic.popupMenu(argServer=None, event=None)

Popup right mouse menu

Input

ArgumentServer, TkEvent

None

ccpnmr.analysis.core.WindowBasic.refinePeakLabelPositions(peaks, windowPane, analysis)

Automatically tidy the peak annotation labels in the x-y plane of a window for a given list of peaks.

Input

List of nmr.Nmr,peaks, Analysis.SpectrumWindow, Analysis GUI

None

ccpnmr.analysis.core.WindowBasic.resetPeakLabelPositions(peaks, windowPane)

Reset the peak annotation labels in the x-y plane of a window for a given list of peaks.

Input

List of nmr.Nmr,peaks, Analysis.SpectrumWindow

None

ccpnmr.analysis.core.WindowBasic.resetPeakLabelsPos(argServer)

Automatically tidy the annotation labels of selected peaks.

Input

ArgumentServer

None

ccpnmr.analysis.core.WindowBasic.resetWindowSliceRange(argServer=None)

Reset the window sliceRange based on the spectra data values

Input

ArgumentServer

None

ccpnmr.analysis.core.WindowBasic.saveProjectShortcut(argServer)

Save the modified parts of the current project

Input

Implementation.Project

None

ccpnmr.analysis.core.WindowBasic.setWindowPeakListState(winPeakList, state)

Set the view state for a peak list in a window. This will set the drawing state of the annotation and the crosspeak symbol.

Input

Analysis.WindowPeakList, Boolean

None

ccpnmr.analysis.core.WindowBasic.showSelectedPeaks(argServer=None, analysisPopup=None)

Show selected peaks.

Input

ArgumentServer, AnalysisPopup

None

ccpnmr.analysis.core.WindowBasic.snapPeaks(argServer=None, windowPane=None)

Move peak to location.

Input

ArgumentServer, TkEvent

None

ccpnmr.analysis.core.WindowBasic.startPositionDelta(argServer=None, event=None)

Create marker at location and start to display delta for x, y positions.

Input

ArgumentServer, TkEvent

None

ccpnmr.analysis.core.WindowBasic.swapStripAxis(analysis, window)

Swap vertical strips for horizontal ones and vice versa. Preserves number active index and z positions

Input

Analysis (Tkinter top level), Analysis.SpectrumWindow

None

ccpnmr.analysis.core.WindowBasic.togglePeakList(window, peakList)

Toggle whether the picked peaks of a peak list are displayed in a spectrum window.

Input

Analysis.SpectrumWindow, Nmr.PeakList

None

ccpnmr.analysis.core.WindowBasic.toggleSpectrum(window, shortcut=None, spectrum=None, isGlobal=False)

Toggle whether a spectrum is diaplayed in a spectrum window.

Input

Analysis.SpectrumWindow, Int, Nmr.DataSource, Boolean

None

ccpnmr.analysis.core.WindowBasic.translateWindowDown(argServer=None, canvas=None, fraction=0.25)

Translate window down by fraction (default 0.25)

Input

ArgumentServer, WindowCanvas, fraction

None

ccpnmr.analysis.core.WindowBasic.translateWindowLeft(argServer=None, canvas=None, fraction=0.25)

Translate window left by fraction (default 0.25)

Input

ArgumentServer, WindowCanvas, fraction

None

ccpnmr.analysis.core.WindowBasic.translateWindowRight(argServer=None, canvas=None, fraction=0.25)

Translate window right by fraction (default 0.25)

Input

ArgumentServer, WindowCanvas, fraction

None

ccpnmr.analysis.core.WindowBasic.translateWindowUp(argServer=None, canvas=None, fraction=0.25)

Translate window up by fraction (default 0.25)

Input

ArgumentServer, WindowCanvas, fraction

None

ccpnmr.analysis.core.WindowBasic.translationFraction(argServer, fraction)

Translate window by fraction, with up/down choice determined by pan mode

Input

ArgumentServer, fraction

None

ccpnmr.analysis.core.WindowBasic.unitePeakPositions(argServer=None, event=None, allowMultiplePeaks=False)

Move peak to current cursor location and coordinate positions of other peaks in same peak list assigned to same resonances. If allowMultiplePeaks then allow multiple peaks to be moved.

Input

ArgumentServer, Nmr.Peaks, Bool

None

ccpnmr.analysis.core.WindowBasic.unitePeakPositionsMulti(argServer=None, event=None)

Move peak to current cursor location and coordinate positions of other peaks in same peak list assigned to same resonances.

Input

ArgumentServer, Nmr.Peaks

None

ccpnmr.analysis.core.WindowBasic.updateWindowPaneSliceRange(windowPane)

Update the windowPane sliceRange based on the window spectrum values

Input

SpectrumWindowPane

None

ccpnmr.analysis.core.WindowBasic.updateWindowPaneSliceRangeByView(view)

Update the view.windowPane sliceRange based on the spectrum values

Input

SpectrumWindowView

None

ccpnmr.analysis.core.WindowBasic.windowPaneHasValueAxis(windowPane)

Determine if a window has a value axis

Input

Analysis.SpectrumWindow

Boolean

ccpnmr.analysis.core.WindowBasic.zoomSliceRangeDown(argServer=None, windowPane=None, factor=2.0)

Zoom slice range by factor (default 2).

Input

ArgumentServer, Analysis.WindowPane, float

None

ccpnmr.analysis.core.WindowBasic.zoomSliceRangeUp(argServer=None, windowPane=None, factor=2.0)

Zoom slice range by factor (default 2).

Input

ArgumentServer, Analysis.WindowPane, float

None

ccpnmr.analysis.core.WindowBasic.zoomToShowPeaks(peaks, windowPane, row=None, col=None)

Zoom in a given row and column a given window so that all of the input peaks are visible.

Input

List of Nmr.Peaks, Analysis.SpectrumWindowPane, Int (AxisPanel.axisRegion index)

None

ccpnmr.analysis.core.WindowBasic.zoomWindowIn(argServer=None, canvas=None, factor=2.0)

Zoom in window by factor (default 2).

Input

ArgumentServer, WindowCanvas, factor

None

ccpnmr.analysis.core.WindowBasic.zoomWindowOut(argServer=None, canvas=None, factor=2.0)

Zoom out window by factor (default 2).

Input

ArgumentServer, WindowCanvas, factor

None

ccpnmr.analysis.core.WindowBasic.zoomWindowToSpectra(argServer=None, canvas=None)

Zoom window to just contain the visible spectra regions.

Input

ArgumentServer, WindowCanvas

None

Previous topic

ValidationBasic

This Page