Skip to content

[Feature Request]: units #85

@computron

Description

@computron

Email (Optional)

No response

Problem

It's often difficult to know the units returned by matcalc, particularly for beginners.

  • Some calculators like ElasticityCalc seem to mix units - with bulk and shear moduli returning eV/A^3 whereas Young's moduli in a unit I'm still unsure about.
  • Furthermore, some properties are in atomic units (e.g., eV, A) whereas others like heat capacity are in SI units (J/mol*K), so one can't also just assume everything is in atomic units.

Proposed Solution

The easiest solution is probably to just include unit information in docstrings

Alternatives

Alternatives may include creating pydantic models with documentation on units for returned data or including units information in returned quantities

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions