populse_mia.data_manager.data_loader

Module to handle the importation from MRIFileManager and its progress.

Contains:
Class:
  • ImportProgress: Inherit from QProgressDialog and handle the

    progress bar

  • ImportWorker: Inherit from QThread and manage the threads

Functions:
  • read_log: Show the evolution of the progress bar and returns its

    feedback

  • tags_from_file: Returns a list of [tag, value] contained in a Json

    file

  • verify_scans: Check if the project’s scans have been modified

Functions

read_log(project, main_window)

Display a progress bar for data loading and return loaded file paths.

tags_from_file(file_path, path)

Returns a list of [tag, value] pairs from a JSON file.

verify_scans(project)

Check if the project's scans have been modified.

Classes

ImportProgress(project)

Displays a progress bar for the import process.

ImportWorker(project, progress)

Worker thread for importing scans into the project database.

class populse_mia.data_manager.data_loader.datetime(year, month, day[, hour[, minute[, second[, microsecond[, tzinfo]]]]])

Bases: date

The year, month and day arguments are required. tzinfo may be None, or an instance of a tzinfo subclass. The remaining arguments may be ints.

astimezone()

tz -> convert to local time in new timezone tz

combine()

date, time -> datetime with same date and time fields

ctime()

Return ctime() style string.

date()

Return date object with same year, month and day.

dst()

Return self.tzinfo.dst(self).

fold
fromisoformat()

string -> datetime from a string in most ISO 8601 formats

fromtimestamp()

timestamp[, tz] -> tz’s local time from POSIX timestamp.

hour
isoformat()

[sep] -> string in ISO 8601 format, YYYY-MM-DDT[HH[:MM[:SS[.mmm[uuu]]]]][+HH:MM]. sep is used to separate the year from the time, and defaults to ‘T’. The optional argument timespec specifies the number of additional terms of the time to include. Valid options are ‘auto’, ‘hours’, ‘minutes’, ‘seconds’, ‘milliseconds’ and ‘microseconds’.

max = datetime.datetime(9999, 12, 31, 23, 59, 59, 999999)
microsecond
min = datetime.datetime(1, 1, 1, 0, 0)
minute
now()

Returns new datetime object representing current time local to tz.

tz

Timezone object.

If no tz is specified, uses local timezone.

replace()

Return datetime with new specified fields.

resolution = datetime.timedelta(microseconds=1)
second
strptime()

string, format -> new datetime parsed from a string (like time.strptime()).

time()

Return time object with same time but with tzinfo=None.

timestamp()

Return POSIX timestamp as float.

timetuple()

Return time tuple, compatible with time.localtime().

timetz()

Return time object with same time and tzinfo.

tzinfo
tzname()

Return self.tzinfo.tzname(self).

utcfromtimestamp()

Construct a naive UTC datetime from a POSIX timestamp.

utcnow()

Return a new datetime representing UTC day and time.

utcoffset()

Return self.tzinfo.utcoffset(self).

utctimetuple()

Return UTC time tuple, compatible with time.localtime().

populse_mia.data_manager.data_loader.sleep(seconds)

Delay execution for a given number of seconds. The argument may be a floating-point number for subsecond precision.

populse_mia.data_manager.data_loader.time_time()

time() -> floating-point number

Return the current time in seconds since the Epoch. Fractions of a second may be present if the system clock provides them.

class populse_mia.data_manager.data_loader.Qt

Bases: simplewrapper

AA_CompressHighFrequencyEvents = 25
AA_CompressTabletEvents = 29
AA_DisableHighDpiScaling = 21
AA_DisableNativeVirtualKeyboard = 9
AA_DisableSessionManager = 31
AA_DisableShaderDiskCache = 27
AA_DisableWindowContextHelpButton = 30
AA_DontCheckOpenGLContextThreadAffinity = 26
AA_DontCreateNativeWidgetSiblings = 4
AA_DontShowIconsInMenus = 2
AA_DontShowShortcutsInContextMenus = 28
AA_DontUseNativeDialogs = 23
AA_DontUseNativeMenuBar = 6
AA_EnableHighDpiScaling = 20
AA_ForceRasterWidgets = 14
AA_ImmediateWidgetCreation = 0
AA_MSWindowsUseDirect3DByDefault = 1
AA_MacDontSwapCtrlAndMeta = 7
AA_MacPluginApplication = 5
AA_NativeWindows = 3
AA_PluginApplication = 5
AA_SetPalette = 19
AA_ShareOpenGLContexts = 18
AA_SynthesizeMouseForUnhandledTabletEvents = 24
AA_SynthesizeMouseForUnhandledTouchEvents = 12
AA_SynthesizeTouchForUnhandledMouseEvents = 11
AA_Use96Dpi = 8
AA_UseDesktopOpenGL = 15
AA_UseHighDpiPixmaps = 13
AA_UseOpenGLES = 16
AA_UseSoftwareOpenGL = 17
AA_UseStyleSheetPropagationInWidgetStyles = 22
AA_X11InitThreads = 10
ALT = 134217728
AbsoluteSize = 0
AccessibleDescriptionRole = 12
AccessibleTextRole = 11
ActionMask = 255
ActionsContextMenu = 2
ActiveWindowFocusReason = 3
AddToSelection = 1
AlignAbsolute = 16
AlignBaseline = 256
AlignBottom = 64
AlignCenter = 132
AlignHCenter = 4
AlignHorizontal_Mask = 31
AlignJustify = 8
AlignLeading = 1
AlignLeft = 1
AlignRight = 2
AlignTop = 32
AlignTrailing = 2
AlignVCenter = 128
AlignVertical_Mask = 480
class Alignment
class Alignment(f: Qt.Alignment | Qt.AlignmentFlag)
class Alignment(a0: Qt.Alignment)

Bases: simplewrapper

class AlignmentFlag

Bases: int

AllButtons = 134217727
AllDockWidgetAreas = 15
AllToolBarAreas = 15
AltModifier = 134217728
AnchorBottom = 5
AnchorHorizontalCenter = 1
AnchorLeft = 0
class AnchorPoint

Bases: int

AnchorRight = 2
AnchorTop = 3
AnchorVerticalCenter = 4
ApplicationActive = 4
class ApplicationAttribute

Bases: int

ApplicationHidden = 1
ApplicationInactive = 2
ApplicationModal = 2
ApplicationShortcut = 2
class ApplicationState

Bases: int

class ApplicationStates
class ApplicationStates(f: Qt.ApplicationStates | Qt.ApplicationState)
class ApplicationStates(a0: Qt.ApplicationStates)

Bases: simplewrapper

ApplicationSuspended = 0
ArrowCursor = 0
class ArrowType

Bases: int

AscendingOrder = 0
class AspectRatioMode

Bases: int

AutoColor = 0
AutoConnection = 0
AutoDither = 0
AutoText = 2
AvoidDither = 128
class Axis

Bases: int

BDiagPattern = 12
class BGMode

Bases: int

BackButton = 8
BackgroundColorRole = 8
BackgroundRole = 8
BacktabFocusReason = 2
BeginNativeGesture = 0
BevelJoin = 64
BitmapCursor = 24
BlankCursor = 10
BlockingQueuedConnection = 3
BottomDockWidgetArea = 8
BottomEdge = 8
BottomLeftCorner = 2
BottomLeftSection = 8
BottomRightCorner = 3
BottomRightSection = 6
BottomSection = 7
BottomToolBarArea = 8
class BrushStyle

Bases: int

BusyCursor = 16
BypassGraphicsProxyWidget = 536870912
BypassWindowManagerHint = 1024
CTRL = 67108864
CaseInsensitive = 0
CaseSensitive = 1
class CaseSensitivity

Bases: int

Ceil = 2
class CheckState

Bases: int

CheckStateRole = 10
Checked = 2
ChecksumIso3309 = 0
ChecksumItuV41 = 1
class ChecksumType

Bases: int

ClickFocus = 2
class ClipOperation

Bases: int

ClosedHandCursor = 18
CoarseTimer = 1
ColorOnly = 3
ConicalGradientPattern = 17
class ConnectionType

Bases: int

ContainsItemBoundingRect = 2
ContainsItemShape = 0
class ContextMenuPolicy

Bases: int

ControlModifier = 67108864
class CoordinateSystem

Bases: int

CopyAction = 1
class Corner

Bases: int

CoverWindow = 65
CrossCursor = 2
CrossPattern = 11
class CursorMoveStyle

Bases: int

class CursorShape

Bases: int

CustomContextMenu = 3
CustomCursor = 25
CustomDashLine = 6
CustomGesture = 256
CustomizeWindowHint = 33554432
DashDotDotLine = 5
DashDotLine = 4
DashLine = 2
class DateFormat

Bases: int

class DayOfWeek

Bases: int

DecorationRole = 1
DefaultContextMenu = 1
DefaultLocaleLongDate = 7
DefaultLocaleShortDate = 6
Dense1Pattern = 2
Dense2Pattern = 3
Dense3Pattern = 4
Dense4Pattern = 5
Dense5Pattern = 6
Dense6Pattern = 7
Dense7Pattern = 8
DescendingOrder = 1
Desktop = 17
DeviceCoordinates = 0
DiagCrossPattern = 14
Dialog = 3
DiffuseAlphaDither = 8
DiffuseDither = 0
DirectConnection = 1
DisplayRole = 0
class DockWidgetArea

Bases: int

DockWidgetArea_Mask = 15
class DockWidgetAreas
class DockWidgetAreas(f: Qt.DockWidgetAreas | Qt.DockWidgetArea)
class DockWidgetAreas(a0: Qt.DockWidgetAreas)

Bases: simplewrapper

DontStartGestureOnChildren = 1
DotLine = 3
DownArrow = 2
DragCopyCursor = 19
DragLinkCursor = 21
DragMoveCursor = 20
Drawer = 7
class DropAction

Bases: int

class DropActions
class DropActions(f: Qt.DropActions | Qt.DropAction)
class DropActions(a0: Qt.DropActions)

Bases: simplewrapper

class Edge

Bases: int

class Edges
class Edges(f: Qt.Edges | Qt.Edge)
class Edges(a0: Qt.Edges)

Bases: simplewrapper

EditRole = 2
ElideLeft = 0
ElideMiddle = 2
ElideNone = 3
ElideRight = 1
EndNativeGesture = 1
EnterKeyDefault = 0
EnterKeyDone = 2
EnterKeyGo = 3
EnterKeyNext = 6
EnterKeyPrevious = 7
EnterKeyReturn = 1
EnterKeySearch = 5
EnterKeySend = 4
class EnterKeyType

Bases: int

class EventPriority

Bases: int

ExactHit = 0
ExtraButton1 = 8
ExtraButton10 = 4096
ExtraButton11 = 8192
ExtraButton12 = 16384
ExtraButton13 = 32768
ExtraButton14 = 65536
ExtraButton15 = 131072
ExtraButton16 = 262144
ExtraButton17 = 524288
ExtraButton18 = 1048576
ExtraButton19 = 2097152
ExtraButton2 = 16
ExtraButton20 = 4194304
ExtraButton21 = 8388608
ExtraButton22 = 16777216
ExtraButton23 = 33554432
ExtraButton24 = 67108864
ExtraButton3 = 32
ExtraButton4 = 64
ExtraButton5 = 128
ExtraButton6 = 256
ExtraButton7 = 512
ExtraButton8 = 1024
ExtraButton9 = 2048
FDiagPattern = 13
FastTransformation = 0
class FillRule

Bases: int

class FindChildOption

Bases: int

class FindChildOptions
class FindChildOptions(f: Qt.FindChildOptions | Qt.FindChildOption)
class FindChildOptions(a0: Qt.FindChildOptions)

Bases: simplewrapper

FindChildrenRecursively = 1
FindDirectChildrenOnly = 0
FlatCap = 0
Floor = 3
class FocusPolicy

Bases: int

class FocusReason

Bases: int

FontRole = 6
ForbiddenCursor = 14
ForegroundRole = 9
ForeignWindow = 33
ForwardButton = 16
FramelessWindowHint = 2048
Friday = 5
FuzzyHit = 1
GestureCanceled = 4
GestureFinished = 3
class GestureFlag

Bases: int

class GestureFlags
class GestureFlags(f: Qt.GestureFlags | Qt.GestureFlag)
class GestureFlags(a0: Qt.GestureFlags)

Bases: simplewrapper

GestureStarted = 1
class GestureState

Bases: int

class GestureType

Bases: int

GestureUpdated = 2
class GlobalColor

Bases: int

GroupSwitchModifier = 1073741824
class HighDpiScaleFactorRoundingPolicy(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: IntEnum

Ceil = 2
Floor = 3
PassThrough = 5
Round = 1
RoundPreferFloor = 4
HighDpiScaleFactorRoundingPolicys

alias of HighDpiScaleFactorRoundingPolicy

HighEventPriority = 1
class HitTestAccuracy

Bases: int

HorPattern = 9
Horizontal = 1
IBeamCursor = 4
ISODate = 1
ISODateWithMs = 9
IgnoreAction = 0
IgnoreAspectRatio = 0
IgnoredGesturesPropagateToParent = 4
ImAbsolutePosition = 1024
ImAnchorPosition = 128
ImAnchorRectangle = 16384
ImCurrentSelection = 32
ImCursorPosition = 8
ImCursorRectangle = 2
ImEnabled = 1
ImEnterKeyType = 8192
ImFont = 4
ImHints = 256
ImInputItemClipRectangle = 32768
ImMaximumTextLength = 64
ImMicroFocus = 2
ImPlatformData = -2147483648
ImPreferredLanguage = 512
ImQueryAll = -1
ImQueryInput = 16570
ImSurroundingText = 16
ImTextAfterCursor = 4096
ImTextBeforeCursor = 2048
class ImageConversionFlag

Bases: int

class ImageConversionFlags
class ImageConversionFlags(f: Qt.ImageConversionFlags | Qt.ImageConversionFlag)
class ImageConversionFlags(a0: Qt.ImageConversionFlags)

Bases: simplewrapper

ImhDate = 128
ImhDialableCharactersOnly = 1048576
ImhDigitsOnly = 65536
ImhEmailCharactersOnly = 2097152
ImhExclusiveInputMask = -65536
ImhFormattedNumbersOnly = 131072
ImhHiddenText = 1
ImhLatinOnly = 8388608
ImhLowercaseOnly = 524288
ImhMultiLine = 1024
ImhNoAutoUppercase = 4
ImhNoEditMenu = 2048
ImhNoPredictiveText = 64
ImhNoTextHandles = 4096
ImhNone = 0
ImhPreferLatin = 512
ImhPreferLowercase = 32
ImhPreferNumbers = 8
ImhPreferUppercase = 16
ImhSensitiveData = 2
ImhTime = 256
ImhUppercaseOnly = 262144
ImhUrlCharactersOnly = 4194304
InitialSortOrderRole = 14
class InputMethodHint

Bases: int

class InputMethodHints
class InputMethodHints(f: Qt.InputMethodHints | Qt.InputMethodHint)
class InputMethodHints(a0: Qt.InputMethodHints)

Bases: simplewrapper

class InputMethodQueries
class InputMethodQueries(f: Qt.InputMethodQueries | Qt.InputMethodQuery)
class InputMethodQueries(a0: Qt.InputMethodQueries)

Bases: simplewrapper

class InputMethodQuery

Bases: int

IntersectClip = 2
IntersectsItemBoundingRect = 3
IntersectsItemShape = 1
InvertedLandscapeOrientation = 8
InvertedPortraitOrientation = 4
class ItemDataRole

Bases: int

class ItemFlag

Bases: int

class ItemFlags
class ItemFlags(f: Qt.ItemFlags | Qt.ItemFlag)
class ItemFlags(a0: Qt.ItemFlags)

Bases: simplewrapper

ItemIsAutoTristate = 64
ItemIsDragEnabled = 4
ItemIsDropEnabled = 8
ItemIsEditable = 2
ItemIsEnabled = 32
ItemIsSelectable = 1
ItemIsTristate = 64
ItemIsUserCheckable = 16
ItemIsUserTristate = 256
ItemNeverHasChildren = 128
class ItemSelectionMode

Bases: int

class ItemSelectionOperation

Bases: int

KeepAspectRatio = 1
KeepAspectRatioByExpanding = 2
class Key

Bases: int

Key_0 = 48
Key_1 = 49
Key_2 = 50
Key_3 = 51
Key_4 = 52
Key_5 = 53
Key_6 = 54
Key_7 = 55
Key_8 = 56
Key_9 = 57
Key_A = 65
Key_AE = 198
Key_Aacute = 193
Key_Acircumflex = 194
Key_AddFavorite = 16777408
Key_Adiaeresis = 196
Key_Agrave = 192
Key_Alt = 16777251
Key_AltGr = 16781571
Key_Ampersand = 38
Key_Any = 32
Key_Apostrophe = 39
Key_ApplicationLeft = 16777415
Key_ApplicationRight = 16777416
Key_Aring = 197
Key_AsciiCircum = 94
Key_AsciiTilde = 126
Key_Asterisk = 42
Key_At = 64
Key_Atilde = 195
Key_AudioCycleTrack = 16777478
Key_AudioForward = 16777474
Key_AudioRandomPlay = 16777476
Key_AudioRepeat = 16777475
Key_AudioRewind = 16777413
Key_Away = 16777464
Key_B = 66
Key_Back = 16777313
Key_BackForward = 16777414
Key_Backslash = 92
Key_Backspace = 16777219
Key_Backtab = 16777218
Key_Bar = 124
Key_BassBoost = 16777331
Key_BassDown = 16777333
Key_BassUp = 16777332
Key_Battery = 16777470
Key_Blue = 16777495
Key_Bluetooth = 16777471
Key_Book = 16777417
Key_BraceLeft = 123
Key_BraceRight = 125
Key_BracketLeft = 91
Key_BracketRight = 93
Key_BrightnessAdjust = 16777410
Key_C = 67
Key_CD = 16777418
Key_Calculator = 16777419
Key_Calendar = 16777444
Key_Call = 17825796
Key_Camera = 17825824
Key_CameraFocus = 17825825
Key_Cancel = 16908289
Key_CapsLock = 16777252
Key_Ccedilla = 199
Key_ChannelDown = 16777497
Key_ChannelUp = 16777496
Key_Clear = 16777227
Key_ClearGrab = 16777421
Key_Close = 16777422
Key_Codeinput = 16781623
Key_Colon = 58
Key_Comma = 44
Key_Community = 16777412
Key_Context1 = 17825792
Key_Context2 = 17825793
Key_Context3 = 17825794
Key_Context4 = 17825795
Key_ContrastAdjust = 16777485
Key_Control = 16777249
Key_Copy = 16777423
Key_Cut = 16777424
Key_D = 68
Key_DOS = 16777426
Key_Dead_A = 16781953
Key_Dead_Abovecomma = 16781924
Key_Dead_Abovedot = 16781910
Key_Dead_Abovereversedcomma = 16781925
Key_Dead_Abovering = 16781912
Key_Dead_Aboveverticalline = 16781969
Key_Dead_Acute = 16781905
Key_Dead_Belowbreve = 16781931
Key_Dead_Belowcircumflex = 16781929
Key_Dead_Belowcomma = 16781934
Key_Dead_Belowdiaeresis = 16781932
Key_Dead_Belowdot = 16781920
Key_Dead_Belowmacron = 16781928
Key_Dead_Belowring = 16781927
Key_Dead_Belowtilde = 16781930
Key_Dead_Belowverticalline = 16781970
Key_Dead_Breve = 16781909
Key_Dead_Capital_Schwa = 16781963
Key_Dead_Caron = 16781914
Key_Dead_Cedilla = 16781915
Key_Dead_Circumflex = 16781906
Key_Dead_Currency = 16781935
Key_Dead_Diaeresis = 16781911
Key_Dead_Doubleacute = 16781913
Key_Dead_Doublegrave = 16781926
Key_Dead_E = 16781955
Key_Dead_Grave = 16781904
Key_Dead_Greek = 16781964
Key_Dead_Hook = 16781921
Key_Dead_Horn = 16781922
Key_Dead_I = 16781957
Key_Dead_Invertedbreve = 16781933
Key_Dead_Iota = 16781917
Key_Dead_Longsolidusoverlay = 16781971
Key_Dead_Lowline = 16781968
Key_Dead_Macron = 16781908
Key_Dead_O = 16781959
Key_Dead_Ogonek = 16781916
Key_Dead_Semivoiced_Sound = 16781919
Key_Dead_Small_Schwa = 16781962
Key_Dead_Stroke = 16781923
Key_Dead_Tilde = 16781907
Key_Dead_U = 16781961
Key_Dead_Voiced_Sound = 16781918
Key_Dead_a = 16781952
Key_Dead_e = 16781954
Key_Dead_i = 16781956
Key_Dead_o = 16781958
Key_Dead_u = 16781960
Key_Delete = 16777223
Key_Direction_L = 16777305
Key_Direction_R = 16777312
Key_Display = 16777425
Key_Documents = 16777427
Key_Dollar = 36
Key_Down = 16777237
Key_E = 69
Key_ETH = 208
Key_Eacute = 201
Key_Ecircumflex = 202
Key_Ediaeresis = 203
Key_Egrave = 200
Key_Eisu_Shift = 16781615
Key_Eisu_toggle = 16781616
Key_Eject = 16777401
Key_End = 16777233
Key_Enter = 16777221
Key_Equal = 61
Key_Escape = 16777216
Key_Excel = 16777428
Key_Exclam = 33
Key_Execute = 16908291
Key_Exit = 16908298
Key_Explorer = 16777429
Key_F = 70
Key_F1 = 16777264
Key_F10 = 16777273
Key_F11 = 16777274
Key_F12 = 16777275
Key_F13 = 16777276
Key_F14 = 16777277
Key_F15 = 16777278
Key_F16 = 16777279
Key_F17 = 16777280
Key_F18 = 16777281
Key_F19 = 16777282
Key_F2 = 16777265
Key_F20 = 16777283
Key_F21 = 16777284
Key_F22 = 16777285
Key_F23 = 16777286
Key_F24 = 16777287
Key_F25 = 16777288
Key_F26 = 16777289
Key_F27 = 16777290
Key_F28 = 16777291
Key_F29 = 16777292
Key_F3 = 16777266
Key_F30 = 16777293
Key_F31 = 16777294
Key_F32 = 16777295
Key_F33 = 16777296
Key_F34 = 16777297
Key_F35 = 16777298
Key_F4 = 16777267
Key_F5 = 16777268
Key_F6 = 16777269
Key_F7 = 16777270
Key_F8 = 16777271
Key_F9 = 16777272
Key_Favorites = 16777361
Key_Finance = 16777411
Key_Find = 16777506
Key_Flip = 17825798
Key_Forward = 16777314
Key_G = 71
Key_Game = 16777430
Key_Go = 16777431
Key_Greater = 62
Key_Green = 16777493
Key_Guide = 16777498
Key_H = 72
Key_Hangul = 16781617
Key_Hangul_Banja = 16781625
Key_Hangul_End = 16781619
Key_Hangul_Hanja = 16781620
Key_Hangul_Jamo = 16781621
Key_Hangul_Jeonja = 16781624
Key_Hangul_PostHanja = 16781627
Key_Hangul_PreHanja = 16781626
Key_Hangul_Romaja = 16781622
Key_Hangul_Special = 16781631
Key_Hangul_Start = 16781618
Key_Hangup = 17825797
Key_Hankaku = 16781609
Key_Help = 16777304
Key_Henkan = 16781603
Key_Hibernate = 16777480
Key_Hiragana = 16781605
Key_Hiragana_Katakana = 16781607
Key_History = 16777407
Key_Home = 16777232
Key_HomePage = 16777360
Key_Hyper_L = 16777302
Key_Hyper_R = 16777303
Key_I = 73
Key_Iacute = 205
Key_Icircumflex = 206
Key_Idiaeresis = 207
Key_Igrave = 204
Key_Info = 16777499
Key_Insert = 16777222
Key_J = 74
Key_K = 75
Key_Kana_Lock = 16781613
Key_Kana_Shift = 16781614
Key_Kanji = 16781601
Key_Katakana = 16781606
Key_KeyboardBrightnessDown = 16777398
Key_KeyboardBrightnessUp = 16777397
Key_KeyboardLightOnOff = 16777396
Key_L = 76
Key_LastNumberRedial = 17825801
Key_Launch0 = 16777378
Key_Launch1 = 16777379
Key_Launch2 = 16777380
Key_Launch3 = 16777381
Key_Launch4 = 16777382
Key_Launch5 = 16777383
Key_Launch6 = 16777384
Key_Launch7 = 16777385
Key_Launch8 = 16777386
Key_Launch9 = 16777387
Key_LaunchA = 16777388
Key_LaunchB = 16777389
Key_LaunchC = 16777390
Key_LaunchD = 16777391
Key_LaunchE = 16777392
Key_LaunchF = 16777393
Key_LaunchG = 16777486
Key_LaunchH = 16777487
Key_LaunchMail = 16777376
Key_LaunchMedia = 16777377
Key_Left = 16777234
Key_Less = 60
Key_LightBulb = 16777405
Key_LogOff = 16777433
Key_M = 77
Key_MailForward = 16777467
Key_Market = 16777434
Key_Massyo = 16781612
Key_MediaLast = 16842751
Key_MediaNext = 16777347
Key_MediaPause = 16777349
Key_MediaPlay = 16777344
Key_MediaPrevious = 16777346
Key_MediaRecord = 16777348
Key_MediaStop = 16777345
Key_MediaTogglePlayPause = 16777350
Key_Meeting = 16777435
Key_Memo = 16777404
Key_Menu = 16777301
Key_MenuKB = 16777436
Key_MenuPB = 16777437
Key_Messenger = 16777465
Key_Meta = 16777250
Key_MicMute = 16777491
Key_MicVolumeDown = 16777502
Key_MicVolumeUp = 16777501
Key_Minus = 45
Key_Mode_switch = 16781694
Key_MonBrightnessDown = 16777395
Key_MonBrightnessUp = 16777394
Key_Muhenkan = 16781602
Key_Multi_key = 16781600
Key_MultipleCandidate = 16781629
Key_Music = 16777469
Key_MySites = 16777438
Key_N = 78
Key_New = 16777504
Key_News = 16777439
Key_No = 16842754
Key_Ntilde = 209
Key_NumLock = 16777253
Key_NumberSign = 35
Key_O = 79
Key_Oacute = 211
Key_Ocircumflex = 212
Key_Odiaeresis = 214
Key_OfficeHome = 16777440
Key_Ograve = 210
Key_Ooblique = 216
Key_Open = 16777505
Key_OpenUrl = 16777364
Key_Option = 16777441
Key_Otilde = 213
Key_P = 80
Key_PageDown = 16777239
Key_PageUp = 16777238
Key_ParenLeft = 40
Key_ParenRight = 41
Key_Paste = 16777442
Key_Pause = 16777224
Key_Percent = 37
Key_Period = 46
Key_Phone = 16777443
Key_Pictures = 16777468
Key_Play = 16908293
Key_Plus = 43
Key_PowerDown = 16777483
Key_PowerOff = 16777399
Key_PreviousCandidate = 16781630
Key_Print = 16777225
Key_Printer = 16908290
Key_Q = 81
Key_Question = 63
Key_QuoteDbl = 34
Key_QuoteLeft = 96
Key_R = 82
Key_Red = 16777492
Key_Redo = 16777508
Key_Refresh = 16777316
Key_Reload = 16777446
Key_Reply = 16777445
Key_Return = 16777220
Key_Right = 16777236
Key_Romaji = 16781604
Key_RotateWindows = 16777447
Key_RotationKB = 16777449
Key_RotationPB = 16777448
Key_S = 83
Key_Save = 16777450
Key_ScreenSaver = 16777402
Key_ScrollLock = 16777254
Key_Select = 16842752
Key_Semicolon = 59
Key_Send = 16777451
Key_Settings = 16777500
Key_Shift = 16777248
Key_Shop = 16777406
Key_SingleCandidate = 16781628
Key_Slash = 47
Key_Sleep = 16908292
Key_Space = 32
Key_Spell = 16777452
Key_SplitScreen = 16777453
Key_Standby = 16777363
Key_Stop = 16777315
Key_Subtitle = 16777477
Key_Super_L = 16777299
Key_Super_R = 16777300
Key_Support = 16777454
Key_Suspend = 16777484
Key_SysReq = 16777226
Key_T = 84
Key_THORN = 222
Key_Tab = 16777217
Key_TaskPane = 16777455
Key_Terminal = 16777456
Key_Time = 16777479
Key_ToDoList = 16777420
Key_ToggleCallHangup = 17825799
Key_Tools = 16777457
Key_TopMenu = 16777482
Key_TouchpadOff = 16777490
Key_TouchpadOn = 16777489
Key_TouchpadToggle = 16777488
Key_Touroku = 16781611
Key_Travel = 16777458
Key_TrebleDown = 16777335
Key_TrebleUp = 16777334
Key_U = 85
Key_UWB = 16777473
Key_Uacute = 218
Key_Ucircumflex = 219
Key_Udiaeresis = 220
Key_Ugrave = 217
Key_Underscore = 95
Key_Undo = 16777507
Key_Up = 16777235
Key_V = 86
Key_Video = 16777459
Key_View = 16777481
Key_VoiceDial = 17825800
Key_VolumeDown = 16777328
Key_VolumeMute = 16777329
Key_VolumeUp = 16777330
Key_W = 87
Key_WLAN = 16777472
Key_WWW = 16777403
Key_WakeUp = 16777400
Key_WebCam = 16777466
Key_Word = 16777460
Key_X = 88
Key_Xfer = 16777461
Key_Y = 89
Key_Yacute = 221
Key_Yellow = 16777494
Key_Yes = 16842753
Key_Z = 90
Key_Zenkaku = 16781608
Key_Zenkaku_Hankaku = 16781610
Key_Zoom = 16908294
Key_ZoomIn = 16777462
Key_ZoomOut = 16777463
Key_acute = 180
Key_brokenbar = 166
Key_cedilla = 184
Key_cent = 162
Key_currency = 164
Key_degree = 176
Key_diaeresis = 168
Key_division = 247
Key_exclamdown = 161
Key_guillemotleft = 171
Key_guillemotright = 187
Key_hyphen = 173
Key_iTouch = 16777432
Key_macron = 175
Key_masculine = 186
Key_mu = 181
Key_multiply = 215
Key_nobreakspace = 160
Key_notsign = 172
Key_onehalf = 189
Key_onequarter = 188
Key_onesuperior = 185
Key_ordfeminine = 170
Key_paragraph = 182
Key_periodcentered = 183
Key_plusminus = 177
Key_questiondown = 191
Key_registered = 174
Key_section = 167
Key_ssharp = 223
Key_sterling = 163
Key_threequarters = 190
Key_threesuperior = 179
Key_twosuperior = 178
Key_unknown = 33554431
Key_ydiaeresis = 255
Key_yen = 165
class KeyboardModifier

Bases: int

KeyboardModifierMask = -33554432
class KeyboardModifiers
class KeyboardModifiers(f: Qt.KeyboardModifiers | Qt.KeyboardModifier)
class KeyboardModifiers(a0: Qt.KeyboardModifiers)

Bases: simplewrapper

KeypadModifier = 536870912
LandscapeOrientation = 2
LastCursor = 21
class LayoutDirection

Bases: int

LayoutDirectionAuto = 2
LeftArrow = 3
LeftButton = 1
LeftDockWidgetArea = 1
LeftEdge = 2
LeftSection = 1
LeftToRight = 0
LeftToolBarArea = 1
LinearGradientPattern = 15
LinkAction = 4
LinksAccessibleByKeyboard = 8
LinksAccessibleByMouse = 4
LocalDate = 2
LocalTime = 0
LocaleDate = 3
LogicalCoordinates = 1
LogicalMoveStyle = 0
LowEventPriority = -1
META = 268435456
MODIFIER_MASK = -33554432
MPenCapStyle = 48
MPenJoinStyle = 448
MPenStyle = 15
MSWindowsFixedSizeDialogHint = 256
MSWindowsOwnDC = 512
MacWindowToolBarButtonHint = 268435456
MarkdownText = 3
MaskInColor = 0
class MaskMode

Bases: int

MaskOutColor = 1
MatchCaseSensitive = 16
MatchContains = 1
MatchEndsWith = 3
MatchExactly = 0
MatchFixedString = 8
class MatchFlag

Bases: int

class MatchFlags
class MatchFlags(f: Qt.MatchFlags | Qt.MatchFlag)
class MatchFlags(a0: Qt.MatchFlags)

Bases: simplewrapper

MatchRecursive = 64
MatchRegExp = 4
MatchRegularExpression = 9
MatchStartsWith = 2
MatchWildcard = 5
MatchWrap = 32
MaximizeUsingFullscreenGeometryHint = 4194304
MaximumSize = 2
MenuBarFocusReason = 6
MetaModifier = 268435456
MidButton = 4
MiddleButton = 4
MinimumDescent = 3
MinimumSize = 0
MiterJoin = 0
class Modifier

Bases: int

Monday = 1
MonoOnly = 2
class MouseButton

Bases: int

class MouseButtons
class MouseButtons(f: Qt.MouseButtons | Qt.MouseButton)
class MouseButtons(a0: Qt.MouseButtons)

Bases: simplewrapper

MouseEventCreatedDoubleClick = 1
class MouseEventFlag

Bases: int

class MouseEventFlags
class MouseEventFlags(f: Qt.MouseEventFlags | Qt.MouseEventFlag)
class MouseEventFlags(a0: Qt.MouseEventFlags)

Bases: simplewrapper

MouseEventNotSynthesized = 0
class MouseEventSource

Bases: int

MouseEventSynthesizedByApplication = 3
MouseEventSynthesizedByQt = 2
MouseEventSynthesizedBySystem = 1
MouseFocusReason = 0
MoveAction = 2
class NativeGestureType

Bases: int

class NavigationMode

Bases: int

NavigationModeCursorAuto = 3
NavigationModeCursorForceVisible = 4
NavigationModeKeypadDirectional = 2
NavigationModeKeypadTabOrder = 1
NavigationModeNone = 0
NoArrow = 0
NoBrush = 0
NoButton = 0
NoClip = 0
NoContextMenu = 0
NoDockWidgetArea = 0
NoDropShadowWindowHint = 1073741824
NoFocus = 0
NoFocusReason = 8
NoFormatConversion = 512
NoItemFlags = 0
NoModifier = 0
NoOpaqueDetection = 256
NoPen = 0
NoScrollPhase = 0
NoSection = 0
NoTabFocus = 0
NoTextInteraction = 0
NoToolBarArea = 0
NonModal = 0
NormalEventPriority = 0
OddEvenFill = 0
OffsetFromUTC = 2
OpaqueMode = 1
OpenHandCursor = 17
OrderedAlphaDither = 4
OrderedDither = 16
class Orientation

Bases: int

class Orientations
class Orientations(f: Qt.Orientations | Qt.Orientation)
class Orientations(a0: Qt.Orientations)

Bases: simplewrapper

OtherFocusReason = 7
PanGesture = 3
PanNativeGesture = 2
PartiallyChecked = 1
PassThrough = 5
class PenCapStyle

Bases: int

class PenJoinStyle

Bases: int

class PenStyle

Bases: int

PinchGesture = 4
PlainText = 0
PointingHandCursor = 13
Popup = 9
PopupFocusReason = 4
PortraitOrientation = 1
PreciseTimer = 0
PreferDither = 64
PreferredSize = 1
PreventContextMenu = 4
PrimaryOrientation = 0
QueuedConnection = 2
RFC2822Date = 8
RadialGradientPattern = 16
ReceivePartialGestures = 2
RelativeSize = 1
RepeatTile = 1
ReplaceClip = 1
ReplaceSelection = 0
RichText = 1
RightArrow = 4
RightButton = 2
RightDockWidgetArea = 2
RightEdge = 4
RightSection = 5
RightToLeft = 1
RightToolBarArea = 2
RotateNativeGesture = 5
Round = 1
RoundCap = 32
RoundJoin = 128
RoundPreferFloor = 4
RoundTile = 2
SHIFT = 33554432
Saturday = 6
class ScreenOrientation

Bases: int

class ScreenOrientations
class ScreenOrientations(f: Qt.ScreenOrientations | Qt.ScreenOrientation)
class ScreenOrientations(a0: Qt.ScreenOrientations)

Bases: simplewrapper

ScrollBarAlwaysOff = 1
ScrollBarAlwaysOn = 2
ScrollBarAsNeeded = 0
class ScrollBarPolicy

Bases: int

ScrollBegin = 1
ScrollEnd = 3
ScrollMomentum = 4
class ScrollPhase

Bases: int

ScrollUpdate = 2
Sheet = 5
ShiftModifier = 33554432
class ShortcutContext

Bases: int

ShortcutFocusReason = 5
SizeAllCursor = 9
SizeBDiagCursor = 7
SizeFDiagCursor = 8
class SizeHint

Bases: int

SizeHintRole = 13
SizeHorCursor = 6
class SizeMode

Bases: int

SizeVerCursor = 5
SmartZoomNativeGesture = 4
SmoothTransformation = 1
SolidLine = 1
SolidPattern = 1
class SortOrder

Bases: int

SplashScreen = 15
SplitHCursor = 12
SplitVCursor = 11
SquareCap = 16
StatusTipRole = 4
StretchTile = 0
StrongFocus = 11
SubWindow = 18
Sunday = 7
SvgMiterJoin = 256
SwipeGesture = 5
SwipeNativeGesture = 6
SystemLocaleDate = 2
SystemLocaleLongDate = 5
SystemLocaleShortDate = 4
TabFocus = 1
TabFocusAllControls = 255
class TabFocusBehavior

Bases: int

TabFocusListControls = 2
TabFocusReason = 1
TabFocusTextControls = 1
TapAndHoldGesture = 2
TapGesture = 1
TargetMoveAction = 32770
TaskButton = 32
TextAlignmentRole = 7
TextBrowserInteraction = 13
TextColorRole = 9
TextDate = 0
TextDontClip = 512
TextDontPrint = 16384
TextEditable = 16
TextEditorInteraction = 19
class TextElideMode

Bases: int

TextExpandTabs = 1024
class TextFlag

Bases: int

class TextFormat

Bases: int

TextHideMnemonic = 32768
TextIncludeTrailingSpaces = 134217728
class TextInteractionFlag

Bases: int

class TextInteractionFlags
class TextInteractionFlags(f: Qt.TextInteractionFlags | Qt.TextInteractionFlag)
class TextInteractionFlags(a0: Qt.TextInteractionFlags)

Bases: simplewrapper

TextJustificationForced = 65536
TextSelectableByKeyboard = 2
TextSelectableByMouse = 1
TextShowMnemonic = 2048
TextSingleLine = 256
TextWordWrap = 4096
TextWrapAnywhere = 8192
TexturePattern = 24
ThresholdAlphaDither = 0
ThresholdDither = 32
Thursday = 4
class TileRule

Bases: int

class TimeSpec

Bases: int

TimeZone = 3
class TimerType

Bases: int

TitleBarArea = 9
Tool = 11
class ToolBarArea

Bases: int

ToolBarArea_Mask = 15
class ToolBarAreas
class ToolBarAreas(f: Qt.ToolBarAreas | Qt.ToolBarArea)
class ToolBarAreas(a0: Qt.ToolBarAreas)

Bases: simplewrapper

ToolButtonFollowStyle = 4
ToolButtonIconOnly = 0
class ToolButtonStyle

Bases: int

ToolButtonTextBesideIcon = 2
ToolButtonTextOnly = 1
ToolButtonTextUnderIcon = 3
ToolTip = 13
ToolTipRole = 3
TopDockWidgetArea = 4
TopEdge = 1
TopLeftCorner = 0
TopLeftSection = 2
TopRightCorner = 1
TopRightSection = 4
TopSection = 3
TopToolBarArea = 4
TouchPointMoved = 2
TouchPointPressed = 1
TouchPointReleased = 8
class TouchPointState

Bases: int

class TouchPointStates
class TouchPointStates(f: Qt.TouchPointStates | Qt.TouchPointState)
class TouchPointStates(a0: Qt.TouchPointStates)

Bases: simplewrapper

TouchPointStationary = 4
class TransformationMode

Bases: int

TransparentMode = 0
Tuesday = 2
class UIEffect

Bases: int

UI_AnimateCombo = 3
UI_AnimateMenu = 1
UI_AnimateToolBox = 6
UI_AnimateTooltip = 4
UI_FadeMenu = 2
UI_FadeTooltip = 5
UI_General = 0
UNICODE_ACCEL = 0
UTC = 1
Unchecked = 0
UniqueConnection = 128
UpArrow = 1
UpArrowCursor = 1
UserRole = 256
VerPattern = 10
Vertical = 2
VeryCoarseTimer = 2
VisualMoveStyle = 1
WA_AcceptDrops = 78
WA_AcceptTouchEvents = 121
WA_AlwaysShowToolTips = 84
WA_AlwaysStackOnTop = 128
WA_AttributeCount = 132
WA_ContentsMarginsRespectsSafeArea = 130
WA_CustomWhatsThis = 47
WA_DeleteOnClose = 55
WA_Disabled = 0
WA_DontCreateNativeAncestors = 101
WA_DontShowOnScreen = 103
WA_ForceDisabled = 32
WA_ForceUpdatesDisabled = 59
WA_GrabbedShortcut = 50
WA_GroupLeader = 72
WA_Hover = 74
WA_InputMethodEnabled = 14
WA_InputMethodTransparent = 75
WA_InvalidSize = 45
WA_KeyCompression = 33
WA_KeyboardFocusChange = 77
WA_LaidOut = 7
WA_LayoutOnEntireRect = 48
WA_LayoutUsesWidgetRect = 92
WA_MSWindowsUseDirect3D = 94
WA_MacAlwaysShowToolWindow = 96
WA_MacBrushedMetal = 46
WA_MacFrameworkScaled = 117
WA_MacMetalStyle = 46
WA_MacMiniSize = 91
WA_MacNoClickThrough = 12
WA_MacNoShadow = 127
WA_MacNormalSize = 89
WA_MacOpaqueSizeGrip = 85
WA_MacShowFocusRect = 88
WA_MacSmallSize = 90
WA_MacVariableSize = 102
WA_Mapped = 11
WA_MouseNoMask = 71
WA_MouseTracking = 2
WA_Moved = 43
WA_NativeWindow = 100
WA_NoChildEventsForParent = 58
WA_NoChildEventsFromChildren = 39
WA_NoMousePropagation = 73
WA_NoMouseReplay = 54
WA_NoSystemBackground = 9
WA_NoX11EventCompression = 81
WA_OpaquePaintEvent = 4
WA_OutsideWSRange = 49
WA_PaintOnScreen = 8
WA_PaintUnclipped = 52
WA_PendingMoveEvent = 34
WA_PendingResizeEvent = 35
WA_PendingUpdate = 44
WA_QuitOnClose = 76
WA_Resized = 42
WA_RightToLeft = 56
WA_SetCursor = 38
WA_SetFont = 37
WA_SetLayoutDirection = 57
WA_SetLocale = 87
WA_SetPalette = 36
WA_SetStyle = 86
WA_SetWindowIcon = 53
WA_ShowWithoutActivating = 98
WA_StaticContents = 5
WA_StyleSheet = 97
WA_StyleSheetTarget = 131
WA_StyledBackground = 93
WA_TabletTracking = 129
WA_TintedBackground = 82
WA_TouchPadAcceptSingleTouchEvents = 123
WA_TranslucentBackground = 120
WA_TransparentForMouseEvents = 51
WA_UnderMouse = 1
WA_UpdatesDisabled = 10
WA_WState_CompressKeys = 61
WA_WState_ConfigPending = 64
WA_WState_Created = 60
WA_WState_ExplicitShowHide = 69
WA_WState_Hidden = 16
WA_WState_InPaintEvent = 62
WA_WState_OwnSizePolicy = 68
WA_WState_Polished = 66
WA_WState_Reparented = 63
WA_WState_Visible = 15
WA_WindowModified = 41
WA_WindowPropagation = 80
WA_X11DoNotAcceptFocus = 126
WA_X11NetWmWindowTypeCombo = 115
WA_X11NetWmWindowTypeDND = 116
WA_X11NetWmWindowTypeDesktop = 104
WA_X11NetWmWindowTypeDialog = 110
WA_X11NetWmWindowTypeDock = 105
WA_X11NetWmWindowTypeDropDownMenu = 111
WA_X11NetWmWindowTypeMenu = 107
WA_X11NetWmWindowTypeNotification = 114
WA_X11NetWmWindowTypePopupMenu = 112
WA_X11NetWmWindowTypeSplash = 109
WA_X11NetWmWindowTypeToolBar = 106
WA_X11NetWmWindowTypeToolTip = 113
WA_X11NetWmWindowTypeUtility = 108
WA_X11OpenGLOverlay = 83
WaitCursor = 3
Wednesday = 3
WhatsThisCursor = 15
WhatsThisRole = 5
WheelFocus = 15
class WhiteSpaceMode

Bases: int

WhiteSpaceModeUndefined = -1
WhiteSpaceNoWrap = 2
WhiteSpaceNormal = 0
WhiteSpacePre = 1
Widget = 0
class WidgetAttribute

Bases: int

WidgetShortcut = 0
WidgetWithChildrenShortcut = 3
WindingFill = 1
Window = 1
WindowActive = 8
WindowCloseButtonHint = 134217728
WindowContextHelpButtonHint = 65536
WindowDoesNotAcceptFocus = 2097152
class WindowFlags
class WindowFlags(f: Qt.WindowFlags | Qt.WindowType)
class WindowFlags(a0: Qt.WindowFlags)

Bases: simplewrapper

class WindowFrameSection

Bases: int

WindowFullScreen = 4
WindowFullscreenButtonHint = -2147483648
WindowMaximizeButtonHint = 32768
WindowMaximized = 2
WindowMinMaxButtonsHint = 49152
WindowMinimizeButtonHint = 16384
WindowMinimized = 1
WindowModal = 1
class WindowModality

Bases: int

WindowNoState = 0
WindowOverridesSystemGestures = 1048576
WindowShadeButtonHint = 131072
WindowShortcut = 1
class WindowState

Bases: int

class WindowStates
class WindowStates(f: Qt.WindowStates | Qt.WindowState)
class WindowStates(a0: Qt.WindowStates)

Bases: simplewrapper

WindowStaysOnBottomHint = 67108864
WindowStaysOnTopHint = 262144
WindowSystemMenuHint = 8192
WindowTitleHint = 4096
WindowTransparentForInput = 524288
class WindowType

Bases: int

WindowType_Mask = 255
X11BypassWindowManagerHint = 1024
XAxis = 0
XButton1 = 8
XButton2 = 16
YAxis = 1
ZAxis = 2
ZoomNativeGesture = 3
black = 2
blue = 9
color0 = 0
color1 = 1
convertFromPlainText(plain: str | None, mode: Qt.WhiteSpaceMode = Qt.WhiteSpacePre) str
cyan = 10
darkBlue = 15
darkCyan = 16
darkGray = 4
darkGreen = 14
darkMagenta = 17
darkRed = 13
darkYellow = 18
gray = 5
green = 8
lightGray = 6
magenta = 11
mightBeRichText(a0: str | None) bool
red = 7
transparent = 19
white = 3
yellow = 12
class populse_mia.data_manager.data_loader.QThread(parent: QObject | None = None)

Bases: QObject

HighPriority = 4
HighestPriority = 5
IdlePriority = 0
InheritPriority = 7
LowPriority = 2
LowestPriority = 1
NormalPriority = 3
class Priority

Bases: int

TimeCriticalPriority = 6
currentThread() QThread | None
currentThreadId() PyQt5.sip.voidptr | None
event(self, event: QEvent | None) bool
eventDispatcher(self) QAbstractEventDispatcher | None
exec(self) int
exec_(self) int
exit(self, returnCode: int = 0)
finished

int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Type:

pyqtSignal(*types, name

Type:

str = …, revision

idealThreadCount() int
isFinished(self) bool
isInterruptionRequested(self) bool
isRunning(self) bool
loopLevel(self) int
msleep(a0: int)
priority(self) QThread.Priority
quit(self)
requestInterruption(self)
run(self)
setEventDispatcher(self, eventDispatcher: QAbstractEventDispatcher | None)
setPriority(self, priority: QThread.Priority)
setStackSize(self, stackSize: int)
setTerminationEnabled(enabled: bool = True)
sleep(a0: int)
stackSize(self) int
start(self, priority: QThread.Priority = QThread.InheritPriority)
started

int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Type:

pyqtSignal(*types, name

Type:

str = …, revision

terminate(self)
usleep(a0: int)
wait(self, msecs: int = ULONG_MAX) bool
wait(self, deadline: QDeadlineTimer) bool
yieldCurrentThread()
class populse_mia.data_manager.data_loader.pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...)

Bases: object

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

__init__(*args, **kwargs)
signatures

The signatures of each of the overloaded signals

class populse_mia.data_manager.data_loader.QProgressDialog(parent: QWidget | None = None, flags: Qt.WindowFlags | Qt.WindowType = Qt.WindowFlags())
class populse_mia.data_manager.data_loader.QProgressDialog(labelText: str | None, cancelButtonText: str | None, minimum: int, maximum: int, parent: QWidget | None = None, flags: Qt.WindowFlags | Qt.WindowType = Qt.WindowFlags())

Bases: QDialog

autoClose(self) bool
autoReset(self) bool
cancel(self)
canceled

int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Type:

pyqtSignal(*types, name

Type:

str = …, revision

changeEvent(self, a0: QEvent | None)
closeEvent(self, a0: QCloseEvent | None)
forceShow(self)
labelText(self) str
maximum(self) int
minimum(self) int
minimumDuration(self) int
open(self)
open(self, slot: PYQT_SLOT) None
reset(self)
resizeEvent(self, a0: QResizeEvent | None)
setAutoClose(self, b: bool)
setAutoReset(self, b: bool)
setBar(self, bar: QProgressBar | None)
setCancelButton(self, button: QPushButton | None)
setCancelButtonText(self, a0: str | None)
setLabel(self, label: QLabel | None)
setLabelText(self, a0: str | None)
setMaximum(self, maximum: int)
setMinimum(self, minimum: int)
setMinimumDuration(self, ms: int)
setRange(self, minimum: int, maximum: int)
setValue(self, progress: int)
showEvent(self, e: QShowEvent | None)
sizeHint(self) QSize
value(self) int
wasCanceled(self) bool
populse_mia.data_manager.data_loader.FIELD_TYPE_BOOLEAN

alias of bool

populse_mia.data_manager.data_loader.FIELD_TYPE_DATE

alias of date

populse_mia.data_manager.data_loader.FIELD_TYPE_DATETIME

alias of datetime

populse_mia.data_manager.data_loader.FIELD_TYPE_FLOAT

alias of float

populse_mia.data_manager.data_loader.FIELD_TYPE_INTEGER

alias of int

populse_mia.data_manager.data_loader.FIELD_TYPE_STRING

alias of str

populse_mia.data_manager.data_loader.FIELD_TYPE_TIME

alias of time

class populse_mia.data_manager.data_loader.ImportProgress(project)[source]

Bases: QProgressDialog

Displays a progress bar for the import process.

Parameters:

(Project) (project) – The project object being imported.

- onProgress

Updates the progress bar value.

__init__(project)[source]
onProgress(value)[source]

Updates the progress bar value.

Parameters:

(int) (value) – The current progress value.

class populse_mia.data_manager.data_loader.ImportWorker(project, progress)[source]

Bases: QThread

Worker thread for importing scans into the project database.

This class manages the import process, reading from export logs, processing scan files, and updating the database accordingly.

project

A Project object

progress

An ImportProgress object

notifyProgress

Signal emitted to update the progress bar

notifyProgress

int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Type:

pyqtSignal(*types, name

Type:

str = …, revision

__init__(project, progress)[source]
run()[source]

Execute the import process.

This method overrides the QThread run method and is executed when the worker is started. It processes the export logs, imports scans, and updates the database.

property scans_added

Get a copy of the scans_added list in a thread-safe manner.

_add_tag_to_database(tag_info, tags_added, tags_names_added)[source]

Add a new tag to the database.

Parameters:
  • (dict) (tag_info) – Tag information dictionary

  • (list) (tags_names_added) – List to track added tags

  • (list) – List to track added tag names

_apply_default_values(documents, values_added)[source]

Apply default values for user-defined tags.

Parameters:
  • (dict) (documents) – Dictionary containing document information

  • (list) (values_added) – List to track added values

_convert_datetime_values(tag_info)[source]

Convert string values to datetime objects.

Parameters:

(dict) (tag_info) – Tag information dictionary

Return (dict):

Updated tag information dictionary

_ensure_associated_file_tag_exists(database_data, tag_name, tags_added, tags_names_added)[source]

Ensure the associated file tag exists in the database.

Parameters:
  • database_data – Context-Managed database

  • (str) (tag_name) – Name of the tag

  • (list) (tags_names_added) – List to track added tags

  • (list) – List to track added tag names

_extract_tag_info(tag_name, properties)[source]

Extract tag information from properties.

Parameters:
  • (str) (tag_name) – Name of the tag

  • (any) (properties) – Properties of the tag

Return (dict):

Dictionary containing tag information

_get_export_logs(raw_data_folder)[source]

Get the export logs from the raw data folder.

Parameters:

(str) (raw_data_folder) – Path to the raw data folder

Return (list): Log entries

_process_associated_file(database_data, file_database_path, checksum, file_type, associated_file_path, tag_name, documents, values_added)[source]

Process an associated file.

Parameters:
  • database_data – Context-Managed database

  • (str) (tag_name) – Relative path of the file

  • (str) – MD5 checksum of the file

  • (Type) (file_type) – Type of the file

  • (str) – Path of the associated main file

  • (str) – Name of the association tag

  • (dict) (documents) – Dictionary to store document information

  • (list) (values_added) – List to track added values

_process_associated_files(database_data, file_name, raw_data_folder, file_database_path, documents, values_added, tags_added, tags_names_added)[source]

Process associated bvec/bval files.

Parameters:
  • database_data – Context-Managed database

  • (str) (file_database_path) – Base name of the file

  • (str) – Path to the raw data folder

  • (str) – Relative path of the main file

  • (dict) (documents) – Dictionary to store document information

  • (list) (tags_names_added) – List to track added values

  • (list) – List to track added tags

  • (list) – List to track added tag names

_process_datetime_format(tag_info)[source]

Process datetime format strings.

Parameters:

(dict) (tag_info) – Tag information dictionary

Return (dict):

Updated tag information dictionary

_process_file_tags(database_data, file_name, path_name, file_database_path, document_not_existing, documents, values_added, tags_added, tags_names_added, tags_to_exclude)[source]

Process tags from a file.

Parameters:
  • database_data – Context-Managed database

  • (str) (file_database_path) – Base name of the file

  • (str) – Path to the file directory

  • (str) – Relative path in the database

  • (bool) (document_not_existing) – Whether the document is new

  • (dict) (documents) – Dictionary to store document information

  • (list) (tags_to_exclude) – List to track added values

  • (list) – List to track added tags

  • (list) – List to track added tag names

  • (list) – List of tags to exclude

_process_fsl_format_files(database_data, bvec_path, bval_path, file_database_path, tag_name, documents, values_added)[source]

Process FSL format bvec/bval files.

Parameters:
  • database_data – Context-Managed database

  • (str) (tag_name) – Path to the bvec file

  • (str) – Path to the bval file

  • (str) – Relative path of the main file

  • (str) – Name of the association tag

  • (dict) (documents) – Dictionary to store document information

  • (list) (values_added) – List to track added values

_process_list_values(tag_info)[source]

Process list values.

Parameters:

(dict) (tag_info) – Tag information dictionary

return (dict): Updated tag information dictionary

_process_log_entries(list_dict_log, raw_data_folder, documents, values_added, tags_added, tags_names_added)[source]

Process each log entry to import scans.

Parameters:
  • (list) (tags_names_added) – Log entries

  • (str) (raw_data_folder) – Path to the raw data folder

  • (dict) (documents) – Dictionary to store document information

  • (list) – List to track added values

  • (list) – List to track added tags

  • (list) – List to track added tag names

_process_mrtrix_format_file(database_data, bvec_bval_path, file_database_path, tag_name, documents, values_added)[source]

Process MRtrix format bvec/bval file.

Parameters:
  • database_data – Context-Managed database

  • (str) (tag_name) – Path to the MRtrix format file

  • (str) – Relative path of the main file

  • (str) – Name of the association tag

  • (dict) (documents) – Dictionary to store document information

  • (list) (values_added) – List to track added values

_process_scan_file(database_data, file_name, raw_data_folder, dict_log, documents, values_added, tags_added, tags_names_added, tags_to_exclude)[source]

Process a single scan file and its associated files.:

Parameters:
  • database_data – Context-Managed database

  • (str) (raw_data_folder) – Base name of the scan file

  • (str) – Path to the raw data folder

  • (dict) (documents) – Log entry for this scan

  • (dict) – Dictionary to store document information

  • (list) (tags_to_exclude) – List to track added values

  • (list) – List to track added tags

  • (list) – List to track added tag names

  • (list) – List of tags to exclude

_update_database(documents, tags_added, values_added, historyMaker)[source]

Update the database with the processed documents.

Parameters:
  • (dict) (documents) – Dictionary containing document information

  • (list) (historyMaker) – List of tags to add

  • (list) – List of values to add

  • (list) – List for history tracking

populse_mia.data_manager.data_loader.read_log(project, main_window)[source]

Display a progress bar for data loading and return loaded file paths.

This function shows the evolution of the progress bar while loading data files and returns a list of paths to each data file that was successfully loaded.

Parameters:
  • (Project) (project) – The current project instance in the software

  • (MainWindow) (main_window) – The software’s main window instance used to display the progress bar.

Return (list):

A list of paths to the data files (scans) that were successfully added.

populse_mia.data_manager.data_loader.tags_from_file(file_path, path)[source]

Returns a list of [tag, value] pairs from a JSON file.

Parameters:
  • (str) (path) – File path of the Json file (without the extension)

  • (str) – Project path

Return (List[List[Union[str, dict]]]:

A list of the Json tags of the file

populse_mia.data_manager.data_loader.verify_scans(project)[source]

Check if the project’s scans have been modified.

Parameters:

(Project) (project) – Current project in the software

Return (List[str]):

The list of scans that have been modified or are missing.