Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugins can import most commonly used FlexMeasures classes from a central place #350

Closed
Flix6x opened this issue Feb 2, 2022 · 0 comments · Fixed by #354
Closed

Plugins can import most commonly used FlexMeasures classes from a central place #350

Flix6x opened this issue Feb 2, 2022 · 0 comments · Fixed by #354
Assignees
Labels

Comments

@Flix6x
Copy link
Contributor

Flix6x commented Feb 2, 2022

Expose our most commonly used classes in a more central place, like: from flexmeasures import Sensor, similar to how we do it in https://github.com/SeitaBV/timely-beliefs/blob/main/timely_beliefs/__init__.py. We can then recommend plugins to import classes like that, and give ourselves some more flexibility in refactoring the location of each class (or even its name, which may be useful for renaming the GenericAsset class later).

Originally posted by @Flix6x in #343 (comment)

What are the crucial models?

  • Sensor
  • Asset (-> GenericAsset)
  • DataSource
  • User
  • Account

Originally posted by @nhoening in #343 (comment)

I'd add AccountRole to that list, for service plugins.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant