PYME.Acquire.sampleInformation module

class PYME.Acquire.sampleInformation.AutoWidthListCtrl(parent, ID, pos=<MagicMock name='mock.DefaultPosition' id='139772460241680'>, size=<MagicMock name='mock.DefaultSize' id='139772224099088'>, style=0)

Bases: mClass, mClass2

class PYME.Acquire.sampleInformation.LimitedSizeDict(*args, **kwds)

Bases: OrderedDict

class PYME.Acquire.sampleInformation.SampleInfoDialog(parent, init_filter=('', '', ''), acquiring=True)

Bases: mClass

OnAddSlide(event)
OnFilterChange(event)
OnSelectSlide(event)
PopulateMetadata(mdh, acquiring=True)
setCreatorChoices()
setDyeChoices()
setSlideChoices()
setStructureChoices()
class PYME.Acquire.sampleInformation.SimpleSampleInfoPanel(parent)

Bases: mClass

Simple sample info panel to tide over until the SampleInfoDialog is

refactored to work independently of a sampleDB database.

TODOS/LIMITATIONS: potentially better addressed by the full refactor rather than by modifying this class, but included here for information / to reinforce that this should ideally be replaced at some point in the future.

  • auto-populate and/or hide acquiring user using logon name on multi-user systems (preference would be to have a config option which can be set on a single user system, but which defaults to false)

  • include info on what is labelled (i.e. Sample.Labelling entries). This is super,super useful to have in the metadata

  • because there is no sanity checking / database backend etc … you will likely get subtly differing values for acquiring user and creator which will make it hard to search on these if the data ever gets ingested into a database in the future.

Parameters
parentwx parent
GenStartMetadata(mdh)

Collects the metadata we want to record at the start of a sequence

Parameters
mdhPYME.IO.MetaDataHandler.MDHandlerBase

The metadata handler to which we should write our metadata

class PYME.Acquire.sampleInformation.VirtList(parent, ID, pos=<MagicMock name='mock.DefaultPosition' id='139772460241680'>, size=(480, 300), style=<MagicMock name='mock.LC_REPORT.__or__()' id='139772224169488'>)

Bases: mClass

OnGetItemText(item, col)
SetFilter(creator='', reference='', structure='')
PYME.Acquire.sampleInformation.createImage(mdh, slide, comments='')
PYME.Acquire.sampleInformation.getSampleData(parent, mdh)
PYME.Acquire.sampleInformation.getSampleDataFailsafe(parent, mdh)
PYME.Acquire.sampleInformation.prefillSampleData(parent)
class PYME.Acquire.sampleInformation.slidePanel(*args, **kwargs)

Bases: mClass

OnSetSlide(event)
update()