Skip to content
GitLab
  • Menu
Projects Groups 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
    • Contributors
    • Graph
    • Compare
  • Issues 146
    • Issues 146
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 27
    • Merge requests 27
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & 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-lab
  • nomad-FAIRnomad-FAIR
  • Issues
  • #410
Closed
Open
Created Sep 01, 2020 by Luca Massimiliano Ghiringhelli@lucamghiOwner

atom lists in "show API code" - Python

When searching in https://nomad-lab.eu/prod/rae/gui/search
for multiple atoms, e.g., C, Li, Si the search result and the URL behave as one would expect, i.e.:
https://nomad-lab.eu/prod/rae/gui/search?visualization=elements&only_atoms=Li&only_atoms=Si&only_atoms=C
and the listed results indeed have formulas containing Li, Si, C (only).

However, the 'show API code' python contains only the last selected atomic species:

from nomad import client, config 
config.client.url = 'http://nomad-lab.eu/prod/rae/api' 
results = client.query_archive(query={ 
    'only_atoms': ['Li']}) 
print(results) 

I would have expected something like 'only_atoms': ['C','Si','Li']})

This happens also when "only_atoms" isn't selected

Edited Sep 02, 2020 by Luca Massimiliano Ghiringhelli
Assignee
Assign to
Time tracking