Solved

Isolated calculations in Charts

  • 13 December 2023
  • 5 replies
  • 60 views

Badge

Are the calculations provided in Charts (originating from `indsl` python library) available for all CDF projects? I’m wondering if it’s possible to contribute with new calculations to Charts that are written in `indsl` but only deployed to the specific CDF project you’re working on (i.e., not accessible for people outside this project)?

I want to write new calculations using indsl that SMEs in my team can use in Charts for specific time series analysis, but I think it would be best to keep them isolated within our CDF project to not “overflow” the global Charts with potentially lots of new calculations that may mostly be relevant for my team/company.

Any response is appreciated, thanks :)

icon

Best answer by kelvin 14 December 2023, 10:47

View original

5 replies

Userlevel 3

Hello @Vetle Nevland!

Thanks for reaching out! For now, calculations in Charts, coming from InDSL are globally available. We are looking into alternatives for how to let you have custom functions. How would you imagine the workflow? Your own company’s InDSL extension? Building the calculations through the UI, or anything else?

Generally, I agree that we want to make sure what we add to Charts globally is applicable to many, but we do appreciate contributions to InDSL. Curious to hear what kind of function you would like to add -- could definitely be a candidate for becoming a global function.

Badge

Thanks for your reply @kelvin.

I definitely think that our own company’s InDSL extension would be most valuable. I imagine a workflow where contributions to our InDSL version is governed internally through pull requests towards a (forked) Github repository dedicated for this version. The hope is to facilitate a simpler and faster deployment process of new calculations (testing, validation, permission, etc, ...).

Relevant functions span from basic to more advanced, for instance:

Basic functions:

  • Calculate datetime-specific aggregate of time series (e.g., mean for each date, rather than mean for 1-day period)
  • Replace all values that falls outside an interval with a fixed value (reminds of clip function, but possibility to replace with arbitrary value, not just boundary values of interval)

Advanced functions:

  • Lowess filtering (e.g., from statsmodels package)
  • Multivariate analysis (e.g., vector autoregression)

By having a dedicated Charts environment for our company, I think it would make it easier to quickly add small utility functions (e.g., grouping/aggregating by datetime properties). If custom Charts is looked into, when should one expect this to be deployed and ready for use?

Badge +2

I support this, this would be a really nice feature and also would enable to us to both use the same calculations on the same data different places in our company. And it would enable us to replace other more cumbersome calculation tools which is not that easily available for citizens like it would be if we had it available in charts with point and click functionality.

Userlevel 3

@Vetle Nevland Ok, thanks! These mostly sound relevant across multiple customers, so a contribution to InDSL, which was recently open sourced, is most welcome!

Custom functions in Charts is currently at the stage of gathering ideas, and does not yet have a concrete roadmap. Would it be possible for us to reach out and schedule a meeting either/both of you sometime early next year, to understand the problem in more detail?

Badge

@kelvin Absolutely, it would be great to have a discussion about the problem and the potential. Sent you a PM 😊 

Reply