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 140
    • Issues 140
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • 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
  • #552

Closed
Open
Created Jun 03, 2021 by Markus Scheidgen@mscheidgOwner

Allow to modify sub-sections via python fields.

We want to extend the metainfo to allow something like this:

parent.energy_total = Energy(value=1.0)

This would replace:

parent.m_add_sub_section(ParentClass.energy_total, Energy(value=1.0))

This would be possible, but its quite some work to make it work with repeating sub-sections. Here you want something like:

run.section_single_configuration_calculation.append(SCC())

Remember that we need to hook into the process and modify both parent and sub-section. To implement this, python properties are not enough, because for repeating sub-sections we need a special metainfo list class to hook into append (and other modifying methods). Possible, but quite some work.

Assignee
Assign to
Time tracking