Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • nomad-FAIR nomad-FAIR
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 240
    • Issues 240
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 43
    • Merge requests 43
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • nomad-labnomad-lab
  • nomad-FAIRnomad-FAIR
  • Issues
  • #609
Closed
Open
Issue created Sep 21, 2021 by Lauri Himanen@himanel1Maintainer

Material API: incorrect statistics count

The material API is reporting at least partially incorrect values in the statistics. Maybe it is sometimes counting entries instead of materials?

After investigating this a bit, it seems the problem happens when a material has more than one entry. So e.g. if you upload two entries that have the same material, you should end up with a material index with one material containing two entries. Then if you run a material aggregation e.g. to get the number of materials with method_name=DFT (in the GUI you can just up open the "Method" filters and look at the statistics for DFT)

The problem can be reproduced e.g. by creating a material index which has one material with multiple entries. There is, however, a small problem caused by #608 (closed): Due to a race condition in the materials indexing, the indexing will sometimes drop one of the entries from the materials index. But you should be able to reproduce after uploading the attached file twice. Here are the exact steps:

  1. Start from the current v1.0.0 branch (206e1e82)
  2. Clean index, upload the attached test upload twice.
  3. After processing is complete, go to materials search, open the method panel, see statistics for method_name see the number of DFT entries, which says more than one, although there is only one material.

two_entries_one_material.zip

Edited Nov 08, 2021 by Lauri Himanen
Assignee
Assign to
Time tracking