nomad-hzb / nomad-chemical-energy

Apache License 2.0
1 stars 1 forks source link

Add voila schema to CE-Nome #2

Closed carla-terboven closed 7 months ago

carla-terboven commented 7 months ago

Adds a schema to CE-Nome

Open question:

RoteKekse commented 7 months ago

Hey Carla,

in principle it looks good like that.

Have you loaded and tested it locally? What kind of quantities and subsections do you see?

If there is anything we donot need you can do https://nomad-lab.eu/prod/v1/staging/docs/reference/annotations.html#filter to exclude some quantities from being displayed in the GUI. Else there is no need to add sth.

class CE_NOME_Equipment(Equipment, EntryData):
    m_def = Section(
        a_eln=dict(hide=['users', 'origin', "elemental_composition", "components"],
                   properties=dict(
            order=[
                "name", "lab_id",
                "producer", "location"
            ]))
    )

The hide is deprecated but i still use it. YOu can specify also the order of the quantities :).