Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • bob.db.mobio bob.db.mobio
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 4
    • Issues 4
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • bobbob
  • bob.db.mobiobob.db.mobio
  • Issues
  • #6
Closed
Open
Issue created Oct 13, 2016 by Tiago de Freitas Pereira@tiago.pereiraOwner

The method objects has an unpleasant randomness

Despite having explicitly an order_by instruction here https://gitlab.idiap.ch/bob/bob.db.mobio/blob/master/bob/db/mobio/query.py#L439 , its output is completely random.

The code below does create two instances of the mobio database, does the same search, but the output is different.

import bob.db.mobio

db_mobio = bob.db.mobio.Database()
train_objects = db_mobio.objects(protocol="male", groups="dev")
print train_objects[0]

db_mobio = bob.db.mobio.Database()
train_objects = db_mobio.objects(protocol="male", groups="dev")
print train_objects[0]
Assignee
Assign to
Time tracking