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

Harmonize filter signatures #72

Open
danielhuppmann opened this issue Mar 20, 2024 · 0 comments
Open

Harmonize filter signatures #72

danielhuppmann opened this issue Mar 20, 2024 · 0 comments

Comments

@danielhuppmann
Copy link
Member

danielhuppmann commented Mar 20, 2024

This issue provides background on an inconsistency (in my opinion) of the current "nestedness" of filters.

model/scenario
  name, id - columns of this table

unit
  name - a column of this table  
  [id - a column of this table not allowed as filter]

region
  name - a column of this table  
  [id - a column of this table not allowed as filter]
  
run
  default_only - a function of `is_default`
  is_default, id, version - columns of this table
  model -> filters of `model`
  scenario -> filters of `scenario`
  iamc
    variable -> filters of `variable`
    unit -> filters of `unit`
  [meta - not implemented]

iamc.variable
  name - a column of this table  
  [id - a column of this table not allowed as filter]

iamc (= iamc.datapoints & iamc.timeseries & iamc.measurand)
  run  
    default_only
    is_default, id, version - columns of this table
    [model & scenario filter not allowed as filter, compare `runs`]
    [meta - not implemented]
  model -> filters of `model`
  scenario -> filters of `scenario`
  variable -> filters of `variable`
  unit -> filters of `unit`
  
meta
  run  
    default_only
    is_default, id, version - columns of this table
    model -> filters of `model`
    scenario  -> filters of `scenario`
    [iamc - not implemented]
  key - a column of this table
  [value - a column of this table not allowed as filter]

My main concern is that model and scenario are top-level filters in the iamc repository but are nested within the "run"-filter for the meta repository.

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

No branches or pull requests

1 participant