Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
fleur
fleur
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 52
    • Issues 52
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • fleur
  • fleurfleur
  • Issues
  • #518

Closed
Open
Opened Nov 02, 2020 by Henning Janssen@janssenDeveloper

Improve float types in the inputschema

Summary

I am currently experimenting with automatic extraction of information from the inputSchema, like valid simple xpaths or attribute types.

Doing this I noticed, that many float attributes in the inputSchema are set to the type xsd:string. This is probably for the usage of constants in these attributes, but this makes it impossible to distinguish them from real string attributes.

I would like to change the types of these to make them clearly visible as float attributes from the outside

Why is this feature needed?

This is extremely useful for determining, which attributes can be treated as float in aiida-fleur for example or other external tools. Outside tools will probably never use the constant definitions, when they have them available in python for example.

Implementation ideas

I would like either to replace all xsd:double and xsd:string (which refer to float attributes) with an alias type like FleurDouble. Alternatively one could just use this alias type for the attributes, where constants should be allowed and use xsd:double for the rest

Edited Nov 02, 2020 by Henning Janssen
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: fleur/fleur#518