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

Should we split target_market_share() into target_production() and target_technology_share()? #320

Open
maurolepore opened this issue Jun 24, 2021 · 7 comments
Labels
breaking change ☠️ API change likely to affect existing code feature a feature request or enhancement help wanted ❤️ we'd love your help! upkeep maintenance, infrastructure, and similar wontfix

Comments

@maurolepore
Copy link
Contributor

market_share() outputs two different results: technology_share and produciton.
Should we have a dedicated function for each kind of output?

This is not an urgent matter but an invitation to reflect on the design of the
package.

@jdhoffa jdhoffa added feature a feature request or enhancement and removed enhancement labels Apr 14, 2023
@jdhoffa
Copy link
Member

jdhoffa commented Feb 6, 2024

This is an interesting discussion that I would like to bring back to the fore. I'm curious what @cjyetman's thoughts are here too.

In general, I think I would favour this. I can imagine that "1 metric, 1 function" may be a useful design pattern. Splitting these apart may allow us to more easily document each "metric", and what/ why it is useful, providing a unique vignette for each.

However, that would depend on us adequately defining "what a metric is" which as it stands is a totally ambiguous definition.

In the case above, the values of technology_share and target_technology_share are dependent entirely on the values of production and target_production. In that sense, are they different views of the same metric? Are they different metrics? It's pretty ambiguous.

@jdhoffa jdhoffa added documentation upkeep maintenance, infrastructure, and similar help wanted ❤️ we'd love your help! labels Feb 6, 2024
@jdhoffa jdhoffa removed their assignment Feb 6, 2024
@cjyetman
Copy link
Member

cjyetman commented Feb 6, 2024

I'm in favor of "1 metric, 1 function"

I believe technology_share and target_technology_share are 1 metric applied to two different production trajectories, one expected production and one target production

edit: Since target_technology_share also likely requires the first year expected production, then yeah I understand how this is possibly a separate metric

@jdhoffa
Copy link
Member

jdhoffa commented Feb 6, 2024

The question more precisely is:
are the production (+ trajectories) a separate or unique metric from the technology_share/technology_mix (+ trajectories)

@cjyetman
Copy link
Member

cjyetman commented Feb 6, 2024

The question more precisely is: are the production (+ trajectories) a separate or unique metric from the technology_share/technology_mix (+ trajectories)

I would say yes, technology_share/technology_mix needs more information right, so they can't possibly be the same formula? Like if a piece of pie is X radians wide and it's Y percent of the pie... I'd say X and Y are different metrics.

@jdhoffa
Copy link
Member

jdhoffa commented Feb 6, 2024

I agree! Just wanted a second opinion/ sanity check.

Then all that said, I would think this issue represents a reasonable and desirable feature.

@jdhoffa jdhoffa added breaking change ☠️ API change likely to affect existing code and removed documentation labels Mar 11, 2024
@jdhoffa
Copy link
Member

jdhoffa commented Mar 11, 2024

Status update:
Since this is a breaking change, and not considered a priority ATM so will likely not be worked on for the upcoming 2024Q1 release.

@jdhoffa
Copy link
Member

jdhoffa commented Mar 18, 2024

George and I believe that this may be a valuable architecture for a future iteration of these packages, but not something to work on in the existing r2dii suite.

Tagging as "wontfix"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change ☠️ API change likely to affect existing code feature a feature request or enhancement help wanted ❤️ we'd love your help! upkeep maintenance, infrastructure, and similar wontfix
Projects
None yet
Development

No branches or pull requests

3 participants