Skip to content

Feature list ValueWizard #16

Description

@Splines

What we wish to have as features:

  • Res object to give our results: numerical value, error, unit,
  • Output customizable via global options (no TOML file instead global export config)
  • Multiple error values: systematic, statistical, and further
  • unit in siunitx
  • significant digits: if multiple errors are present: take the biggest error, let this one determine the number of digits of the main result, and display the other errors according to their own precision
  • manually specify number of significant digits (sigfigs), this overrides the logic of the program: usually it determines the number of decimal places based on the "error value", but with sigfigs specified, it will base this decision off the "main value"
  • globally import just like plt interface from matplotlib
  • allow pm in qty and arbitrary string such that we can do things like (1.0 +- 0.1) \cdot 10^2 -> outsource as much as possible to siunitx, use \num{..}; if we have to implement this on our own: allow internationalization for the $\cdot$ sign, e.g. use $\times$ in AE
  • resint, e.g. wiz.resint("i", i)
  • wizLaengeValueOnly, see Add option to additionally export variable without unit #11
  • Easily print results in python script #5 wiz.printByDefault() or wiz.res("laenge", 5, 0.01).print()
  • Allow easy disabling of rounding for one variable #7 turn rounding off for a variable -> current problem with this: we pass in values as floats and don't know how many digits they have; workaround: if user specifies number as string, then don't round that number, also for any number, e.g. errors
  • at first, we don't implement any tables at all
  • Possibility to use the generated string in the Python code #15 on result object: get_latex()
  • Add option to additionally export variable without unit #11 variable without unit: value only
  • wiz.export()
  • wiz.clear() as workaround for Cached globals in Jupyter notebook [low prio] #6
  • user faulty values -> output exception directly

Edit:

  • export a variable as latex code directly (e.g. copy to clipboard)
  • "no unit" usecase
  • do we assume usage of variable in math mode in latex?
  • \qty vs. \SI, especially assert compatibility with the physics package
  • Config options: automatic print with every res call. AND: option to automatically recreate the results.tex upon every res call.

TODO

  • publishing to pip
  • naming of lib
  • CI/CD, branch flow

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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