yunruse / Noether

Just another units package
MIT License
9 stars 0 forks source link

`conf` does not indicate if options are realtime or at-import #15

Closed yunruse closed 1 year ago

yunruse commented 1 year ago

Some conf options affect display functions and such. Some, however, are only used at import, and should be marked as such.

Some ideas:

  1. the category could be UPPERCASE to indicate this
  2. an at_import: bool = False argument in conf.register()
  3. some UserWarning when changing at-import options
  4. some UserWarning when doing conf.save() or conf.load()
yunruse commented 1 year ago

Fixed by 31a35328333d7a89871f7cf64307aca1bd903afd, 28ebcb33883a0087d1cdfc2ed6f9a93c134b750a for v1.0 release.