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

✨ metadata: remove line breaks #3401

Merged
merged 4 commits into from
Oct 14, 2024
Merged

✨ metadata: remove line breaks #3401

merged 4 commits into from
Oct 14, 2024

Conversation

lucasrodes
Copy link
Member

@lucasrodes lucasrodes commented Oct 14, 2024

Removes unwanted linebreaks, addressing https://owid.slack.com/archives/C0193RW5E2J/p1728654442125059.

@owidbot
Copy link
Contributor

owidbot commented Oct 14, 2024

Quick links (staging server):

Site Admin Wizard

Login: ssh owid@staging-site-remove-eol

chart-diff: ✅ No charts for review.
data-diff:
= Dataset garden/democracy/2024-03-07/bmr
  = Table population_regime_years
    ~ Column population_years_in_democracy_consec (changed metadata)
-       -   <% if category == '91+' %>
+       +   <%- if category == '91+' -%>
        ?     +                      +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
-       -   <% if category == '91+' %>
+       +   <%- if category == '91+' -%>
        ?     +                      +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column population_years_in_democracy_ws_consec (changed metadata)
-       -   <% if category == '91+' %>
+       +   <%- if category == '91+' -%>
        ?     +                      +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
-       -   <% if category == '91+' %>
+       +   <%- if category == '91+' -%>
        ?     +                      +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
  = Table num_countries_regime_years
    ~ Column num_countries_years_in_democracy_consec (changed metadata)
-       -   <% if category == '91+' %>
+       +   <%- if category == '91+' -%>
        ?     +                      +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
-       -   <% if category == '91+' %>
+       +   <%- if category == '91+' -%>
        ?     +                      +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column num_countries_years_in_democracy_ws_consec (changed metadata)
-       -   <% if category == '91+' %>
+       +   <%- if category == '91+' -%>
        ?     +                      +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
-       -   <% if category == '91+' %>
+       +   <%- if category == '91+' -%>
        ?     +                      +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
  = Table num_countries_regime
    ~ Column num_countries_regime (changed metadata)
-       -   <% if category == 0 %>
+       +   <%- if category == 0 -%>
        ?     +                  +
-       -   <% elif category == 1 %>
+       +   <%- elif category == 1 -%>
        ?     +                    +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
-       -   <% if category == 0 %>
+       +   <%- if category == 0 -%>
        ?     +                  +
-       -   <% elif category == 1 %>
+       +   <%- elif category == 1 -%>
        ?     +                    +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column num_countries_regime_ws (changed metadata)
-       -   <% if category == 0 %>
+       +   <%- if category == 0 -%>
        ?     +                  +
-       -   <% elif category == 1 %>
+       +   <%- elif category == 1 -%>
        ?     +                    +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
-       -   <% if category == 0 %>
+       +   <%- if category == 0 -%>
        ?     +                  +
-       -   <% elif category == 1 %>
+       +   <%- elif category == 1 -%>
        ?     +                    +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
  = Table bmr
  = Table population_regime
    ~ Column population_regime (changed metadata)
-       -   <% if category == 0 %>
+       +   <%- if category == 0 -%>
        ?     +                  +
-       -   <% elif category == 1 %>
+       +   <%- elif category == 1 -%>
        ?     +                    +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
-       -   <% if category == 0 %>
+       +   <%- if category == 0 -%>
        ?     +                  +
-       -   <% elif category == 1 %>
+       +   <%- elif category == 1 -%>
        ?     +                    +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column population_regime_ws (changed metadata)
-       -   <% if category == 0 %>
+       +   <%- if category == 0 -%>
        ?     +                  +
-       -   <% elif category == 1 %>
+       +   <%- elif category == 1 -%>
        ?     +                    +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
-       -   <% if category == 0 %>
+       +   <%- if category == 0 -%>
        ?     +                  +
-       -   <% elif category == 1 %>
+       +   <%- elif category == 1 -%>
        ?     +                    +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
= Dataset garden/democracy/2024-03-07/eiu
  = Table num_countries
    ~ Column num_regime_eiu (changed metadata)
-       -   <% if category == '-1' %>
+       +   <%- if category == '-1' -%>
        ?     +                     +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
  = Table eiu
  = Table num_people
    ~ Column pop_regime_eiu (changed metadata)
-       -   <% if category == '-1' %>
+       +   <%- if category == '-1' -%>
        ?     +                     +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
  = Table avg_pop
= Dataset garden/democracy/2024-03-07/fh
  = Table fh
  = Table fh_regions
    ~ Column num_electdem_fh (changed metadata)
-       -   <% if category == '-1' %>
+       +   <%- if category == '-1' -%>
        ?     +                     +
-       -   <% elif category == 'Non-electoral democracy' %>
+       +   <%- elif category == 'Non-electoral democracy' -%>
        ?     +                                            +
-       -   <% elif category == 'Electoral democracy' %>
+       +   <%- elif category == 'Electoral democracy' -%>
        ?     +                                        +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column num_regime_fh (changed metadata)
-       -   <% if category == '-1' %>
+       +   <%- if category == '-1' -%>
        ?     +                     +
-       -   <% elif category == 'Not free' %>
+       +   <%- elif category == 'Not free' -%>
        ?     +                             +
-       -   <% elif category == 'Partly free' %>
+       +   <%- elif category == 'Partly free' -%>
        ?     +                                +
-       -   <% elif category == 'Free' %>
+       +   <%- elif category == 'Free' -%>
        ?     +                         +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column pop_electdem_fh (changed metadata)
-       -   <% if category == '-1' %>
+       +   <%- if category == '-1' -%>
        ?     +                     +
-       -   <% elif category == 'Non-electoral democracy' %>
+       +   <%- elif category == 'Non-electoral democracy' -%>
        ?     +                                            +
-       -   <% elif category == 'Electoral democracy' %>
+       +   <%- elif category == 'Electoral democracy' -%>
        ?     +                                        +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column pop_regime_fh (changed metadata)
-       -   <% if category == '-1' %>
+       +   <%- if category == '-1' -%>
        ?     +                     +
-       -   <% elif category == 'Not free' %>
+       +   <%- elif category == 'Not free' -%>
        ?     +                             +
-       -   <% elif category == 'Partly free' %>
+       +   <%- elif category == 'Partly free' -%>
        ?     +                                +
-       -   <% elif category == 'Free' %>
+       +   <%- elif category == 'Free' -%>
        ?     +                         +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
= Dataset garden/democracy/2024-03-07/lexical_index
  = Table region_aggregates
    ~ Column num_democracy_lied (changed metadata)
-       -   <% if category == '-1' %>
+       +   <%- if category == '-1' -%>
        ?     +                     +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column num_group_age_electdem_lied (changed metadata)
-       -   <% if 'years' in category %>
+       +   <%- if 'years' in category -%>
        ?     +                        +
-       -   <% elif category == '-1' %>
+       +   <%- elif category == '-1' -%>
        ?     +                       +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column num_group_age_polyarchy_lied (changed metadata)
-       -   <% if 'years' in category %>
+       +   <%- if 'years' in category -%>
        ?     +                        +
-       -   <% elif category == '-1' %>
+       +   <%- elif category == '-1' -%>
        ?     +                       +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column num_regime_lied (changed metadata)
-       -   <% if category == '-1' %>
+       +   <%- if category == '-1' -%>
        ?     +                     +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column num_suffrage_lied (changed metadata)
-       -   <% if category == '-1' %>
+       +   <%- if category == '-1' -%>
        ?     +                     +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column pop_democracy_lied (changed metadata)
-       -   <% if category == '-1' %>
+       +   <%- if category == '-1' -%>
        ?     +                     +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column pop_group_age_electdem_lied (changed metadata)
-       -   <% if 'years' in category %>
+       +   <%- if 'years' in category -%>
        ?     +                        +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column pop_group_age_polyarchy_lied (changed metadata)
-       -   <% if 'years' in category %>
+       +   <%- if 'years' in category -%>
        ?     +                        +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column pop_regime_lied (changed metadata)
-       -   <% if category == '-1' %>
+       +   <%- if category == '-1' -%>
        ?     +                     +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column pop_suffrage_lied (changed metadata)
-       -   <% if category == '-1' %>
+       +   <%- if category == '-1' -%>
        ?     +                     +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
  = Table lexical_index
= Dataset garden/democracy/2024-03-07/polity
  = Table num_countries
    ~ Column num_group_age_dem_polity (changed metadata)
-       -   <% if 'years' in category %>
+       +   <%- if 'years' in category -%>
        ?     +                        +
-       -   <% elif category == '-1' %>
+       +   <%- elif category == '-1' -%>
        ?     +                       +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column num_regime_polity (changed metadata)
-       -   <% if category == '-1' %>
+       +   <%- if category == '-1' -%>
        ?     +                     +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
  = Table polity
  = Table num_people
    ~ Column pop_group_age_dem_polity (changed metadata)
-       -   <% if 'years' in category %>
+       +   <%- if 'years' in category -%>
        ?     +                        +
-       -   <% elif category == '-1' %>
+       +   <%- elif category == '-1' -%>
        ?     +                       +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column pop_regime_polity (changed metadata)
-       -   <% if category == '-1' %>
+       +   <%- if category == '-1' -%>
        ?     +                     +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
  = Table avg_pop
= Dataset garden/democracy/2024-03-07/vdem
  = Table vdem_num_countries
    ~ Column num_countries_hoe (changed metadata)
-       -   <% if category == '-1' %>
+       +   <%- if category == '-1' -%>
        ?     +                     +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column num_countries_hog (changed metadata)
-       -   <% if category == '-1' %>
+       +   <%- if category == '-1' -%>
        ?     +                     +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column num_countries_hos (changed metadata)
-       -   <% if category == '-1' %>
+       +   <%- if category == '-1' -%>
        ?     +                     +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column num_countries_regime (changed metadata)
-       -   <% if category == '-1' %>
+       +   <%- if category == '-1' -%>
        ?     +                     +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column num_countries_regime_amb (changed metadata)
-       -   <% if category == '-1' %>
+       +   <%- if category == '-1' -%>
        ?     +                     +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column num_countries_wom_parl (changed metadata)
-       -   <% if category == '-1' %>
+       +   <%- if category == '-1' -%>
        ?     +                     +
-       -   <% elif category == '0% women' %>
+       +   <%- elif category == '0% women' -%>
        ?     +                             +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column num_countries_years_in_electdem (changed metadata)
-       -   <% if category == '-1' %>
+       +   <%- if category == '-1' -%>
        ?     +                     +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column num_countries_years_in_libdem (changed metadata)
-       -   <% if category == '-1' %>
+       +   <%- if category == '-1' -%>
        ?     +                     +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
  = Table vdem
  = Table vdem_population
    ~ Column population_hoe (changed metadata)
-       -   <% if category == '-1' %>
+       +   <%- if category == '-1' -%>
        ?     +                     +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column population_hog (changed metadata)
-       -   <% if category == '-1' %>
+       +   <%- if category == '-1' -%>
        ?     +                     +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column population_hos (changed metadata)
-       -   <% if category == '-1' %>
+       +   <%- if category == '-1' -%>
        ?     +                     +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column population_regime (changed metadata)
-       -   <% if category == '-1' %>
+       +   <%- if category == '-1' -%>
        ?     +                     +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column population_regime_amb (changed metadata)
-       -   <% if category == '-1' %>
+       +   <%- if category == '-1' -%>
        ?     +                     +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column population_wom_parl (changed metadata)
-       -   <% if category == '-1' %>
+       +   <%- if category == '-1' -%>
        ?     +                     +
-       -   <% elif category == '0% women' %>
+       +   <%- elif category == '0% women' -%>
        ?     +                             +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column population_years_in_electdem (changed metadata)
-       -   <% if category == '-1' %>
+       +   <%- if category == '-1' -%>
        ?     +                     +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column population_years_in_libdem (changed metadata)
-       -   <% if category == '-1' %>
+       +   <%- if category == '-1' -%>
        ?     +                     +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
  = Table vdem_multi_with_regions
    ~ Column civ_libs_vdem (changed metadata)
-       -   <% if aggregate_method == 'average' %>
+       +   <%- if aggregate_method == 'average' -%>
        ?     +                                  +
-       -   <% elif aggregate_method < 'population-weighted average' %>
+       +   <%- elif aggregate_method < 'population-weighted average' -%>
        ?     +                                                       +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column civ_soc_str_vdem (changed metadata)
-       -   <% if aggregate_method == 'average' %>
+       +   <%- if aggregate_method == 'average' -%>
        ?     +                                  +
-       -   <% elif aggregate_method < 'population-weighted average' %>
+       +   <%- elif aggregate_method < 'population-weighted average' -%>
        ?     +                                                       +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column corr_exec_vdem (changed metadata)
-       -   <% if aggregate_method == 'average' %>
+       +   <%- if aggregate_method == 'average' -%>
        ?     +                                  +
-       -   <% elif aggregate_method < 'population-weighted average' %>
+       +   <%- elif aggregate_method < 'population-weighted average' -%>
        ?     +                                                       +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column corr_jud_vdem (changed metadata)
-       -   <% if aggregate_method == 'average' %>
+       +   <%- if aggregate_method == 'average' -%>
        ?     +                                  +
-       -   <% elif aggregate_method < 'population-weighted average' %>
+       +   <%- elif aggregate_method < 'population-weighted average' -%>
        ?     +                                                       +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column corr_leg_vdem (changed metadata)
-       -   <% if aggregate_method == 'average' %>
+       +   <%- if aggregate_method == 'average' -%>
        ?     +                                  +
-       -   <% elif aggregate_method < 'population-weighted average' %>
+       +   <%- elif aggregate_method < 'population-weighted average' -%>
        ?     +                                                       +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column corr_publsec_vdem (changed metadata)
-       -   <% if aggregate_method == 'average' %>
+       +   <%- if aggregate_method == 'average' -%>
        ?     +                                  +
-       -   <% elif aggregate_method < 'population-weighted average' %>
+       +   <%- elif aggregate_method < 'population-weighted average' -%>
        ?     +                                                       +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column corruption_vdem (changed metadata)
-       -   <% if aggregate_method == 'average' %>
+       +   <%- if aggregate_method == 'average' -%>
        ?     +                                  +
-       -   <% elif aggregate_method < 'population-weighted average' %>
+       +   <%- elif aggregate_method < 'population-weighted average' -%>
        ?     +                                                       +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column delibdem_vdem (changed metadata)
-       -   <% if aggregate_method == 'average' %>
+       +   <%- if aggregate_method == 'average' -%>
        ?     +                                  +
-       -   <% elif aggregate_method < 'population-weighted average' %>
+       +   <%- elif aggregate_method < 'population-weighted average' -%>
        ?     +                                                       +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column dom_auton_vdem (changed metadata)
-       -   <% if aggregate_method == 'average' %>
+       +   <%- if aggregate_method == 'average' -%>
        ?     +                                  +
-       -   <% elif aggregate_method < 'population-weighted average' %>
+       +   <%- elif aggregate_method < 'population-weighted average' -%>
        ?     +                                                       +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column egaldem_vdem (changed metadata)
-       -   <% if aggregate_method == 'average' %>
+       +   <%- if aggregate_method == 'average' -%>
        ?     +                                  +
-       -   <% elif aggregate_method < 'population-weighted average' %>
+       +   <%- elif aggregate_method < 'population-weighted average' -%>
        ?     +                                                       +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column electdem_vdem (changed metadata)
-       -   <% if aggregate_method == 'average' %>
+       +   <%- if aggregate_method == 'average' -%>
        ?     +                                  +
-       -   <% elif aggregate_method < 'population-weighted average' %>
+       +   <%- elif aggregate_method < 'population-weighted average' -%>
        ?     +                                                       +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column int_auton_vdem (changed metadata)
-       -   <% if aggregate_method == 'average' %>
+       +   <%- if aggregate_method == 'average' -%>
        ?     +                                  +
-       -   <% elif aggregate_method < 'population-weighted average' %>
+       +   <%- elif aggregate_method < 'population-weighted average' -%>
        ?     +                                                       +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column libdem_vdem (changed metadata)
-       -   <% if aggregate_method == 'average' %>
+       +   <%- if aggregate_method == 'average' -%>
        ?     +                                  +
-       -   <% elif aggregate_method < 'population-weighted average' %>
+       +   <%- elif aggregate_method < 'population-weighted average' -%>
        ?     +                                                       +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column participdem_vdem (changed metadata)
-       -   <% if aggregate_method == 'average' %>
+       +   <%- if aggregate_method == 'average' -%>
        ?     +                                  +
-       -   <% elif aggregate_method < 'population-weighted average' %>
+       +   <%- elif aggregate_method < 'population-weighted average' -%>
        ?     +                                                       +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column personalism_vdem (changed metadata)
-       -   <% if aggregate_method == 'average' %>
+       +   <%- if aggregate_method == 'average' -%>
        ?     +                                  +
-       -   <% elif aggregate_method < 'population-weighted average' %>
+       +   <%- elif aggregate_method < 'population-weighted average' -%>
        ?     +                                                       +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column phys_integr_libs_vdem (changed metadata)
-       -   <% if aggregate_method == 'average' %>
+       +   <%- if aggregate_method == 'average' -%>
        ?     +                                  +
-       -   <% elif aggregate_method < 'population-weighted average' %>
+       +   <%- elif aggregate_method < 'population-weighted average' -%>
        ?     +                                                       +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column pol_libs_vdem (changed metadata)
-       -   <% if aggregate_method == 'average' %>
+       +   <%- if aggregate_method == 'average' -%>
        ?     +                                  +
-       -   <% elif aggregate_method < 'population-weighted average' %>
+       +   <%- elif aggregate_method < 'population-weighted average' -%>
        ?     +                                                       +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column priv_libs_vdem (changed metadata)
-       -   <% if aggregate_method == 'average' %>
+       +   <%- if aggregate_method == 'average' -%>
        ?     +                                  +
-       -   <% elif aggregate_method < 'population-weighted average' %>
+       +   <%- elif aggregate_method < 'population-weighted average' -%>
        ?     +                                                       +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column public_admin_vdem (changed metadata)
-       -   <% if aggregate_method == 'average' %>
+       +   <%- if aggregate_method == 'average' -%>
        ?     +                                  +
-       -   <% elif aggregate_method < 'population-weighted average' %>
+       +   <%- elif aggregate_method < 'population-weighted average' -%>
        ?     +                                                       +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column rule_of_law_vdem (changed metadata)
-       -   <% if aggregate_method == 'average' %>
+       +   <%- if aggregate_method == 'average' -%>
        ?     +                                  +
-       -   <% elif aggregate_method < 'population-weighted average' %>
+       +   <%- elif aggregate_method < 'population-weighted average' -%>
        ?     +                                                       +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column socgr_civ_libs_vdem (changed metadata)
-       -   <% if aggregate_method == 'average' %>
+       +   <%- if aggregate_method == 'average' -%>
        ?     +                                  +
-       -   <% elif aggregate_method < 'population-weighted average' %>
+       +   <%- elif aggregate_method < 'population-weighted average' -%>
        ?     +                                                       +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column socgr_pow_vdem (changed metadata)
-       -   <% if aggregate_method == 'average' %>
+       +   <%- if aggregate_method == 'average' -%>
        ?     +                                  +
-       -   <% elif aggregate_method < 'population-weighted average' %>
+       +   <%- elif aggregate_method < 'population-weighted average' -%>
        ?     +                                                       +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column terr_contr_vdem (changed metadata)
-       -   <% if aggregate_method == 'average' %>
+       +   <%- if aggregate_method == 'average' -%>
        ?     +                                  +
-       -   <% elif aggregate_method < 'population-weighted average' %>
+       +   <%- elif aggregate_method < 'population-weighted average' -%>
        ?     +                                                       +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column wom_civ_libs_vdem (changed metadata)
-       -   <% if aggregate_method == 'average' %>
+       +   <%- if aggregate_method == 'average' -%>
        ?     +                                  +
-       -   <% elif aggregate_method < 'population-weighted average' %>
+       +   <%- elif aggregate_method < 'population-weighted average' -%>
        ?     +                                                       +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column wom_civ_soc_vdem (changed metadata)
-       -   <% if aggregate_method == 'average' %>
+       +   <%- if aggregate_method == 'average' -%>
        ?     +                                  +
-       -   <% elif aggregate_method < 'population-weighted average' %>
+       +   <%- elif aggregate_method < 'population-weighted average' -%>
        ?     +                                                       +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column wom_emp_vdem (changed metadata)
-       -   <% if aggregate_method == 'average' %>
+       +   <%- if aggregate_method == 'average' -%>
        ?     +                                  +
-       -   <% elif aggregate_method < 'population-weighted average' %>
+       +   <%- elif aggregate_method < 'population-weighted average' -%>
        ?     +                                                       +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column wom_parl_vdem (changed metadata)
-       -   <% if aggregate_method == 'average' %>
+       +   <%- if aggregate_method == 'average' -%>
        ?     +                                  +
-       -   <% elif aggregate_method < 'population-weighted average' %>
+       +   <%- elif aggregate_method < 'population-weighted average' -%>
        ?     +                                                       +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column wom_pol_par_vdem (changed metadata)
-       -   <% if aggregate_method == 'average' %>
+       +   <%- if aggregate_method == 'average' -%>
        ?     +                                  +
-       -   <% elif aggregate_method < 'population-weighted average' %>
+       +   <%- elif aggregate_method < 'population-weighted average' -%>
        ?     +                                                       +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
  = Table vdem_multi_without_regions
= Dataset garden/demography/2023-09-27/survivor_percentiles
  = Table survivor_percentiles
    ~ Column age (changed metadata)
-       -   <% if percentile == 1 %>
+       +   <%- if percentile == 1 -%>
        ?     +                    +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
= Dataset garden/demography/2023-10-03/life_tables
  = Table life_tables
    ~ Column central_death_rate_mf_ratio (changed metadata)
-       -   <% if type == "cohort" %>
+       +   <%- if type == "cohort" -%>
        ?     +                     +
-       -   <% elif type == "period" %>
+       +   <%- elif type == "period" -%>
        ?     +                       +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column life_expectancy (changed metadata)
-       -   <% if age == '0' %>
+       +   <%- if age == '0' -%>
        ?     +               +
-       -   <% if sex == 'both' %>
+       +   <%- if sex == 'both' -%>
        ?     +                  +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% if sex == 'both' %>
+       +   <%- if sex == 'both' -%>
        ?     +                  +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
-       -     <% if type == "period" %>
+       +     <%- if type == "period" -%>
        ?       +                     +
-       -     <% else %>
+       +     <%- else -%>
        ?       +      +
-       -     <% endif %>
+       +     <%- endif -%>
        ?       +       +
-       -     <% if type == "period" %>
+       +     <%- if type == "period" -%>
        ?       +                     +
-       -     <% if age == '0' %>
+       +     <%- if age == '0' -%>
        ?       +               +
-       -     <% else %>
+       +     <%- else -%>
        ?       +      +
-       -     <% endif %>
+       +     <%- endif -%>
        ?       +       +
-       -     <% else %>
+       +     <%- else -%>
        ?       +      +
-       -     <% if age == '0' %>
+       +     <%- if age == '0' -%>
        ?       +               +
-       -     <% else %>
+       +     <%- else -%>
        ?       +      +
-       -     <% endif %>
+       +     <%- endif -%>
        ?       +       +
-       -     <% endif %>
+       +     <%- endif -%>
        ?       +       +
-       -     <% if age != '0' %>
+       +     <%- if age != '0' -%>
        ?       +               +
-       -     <% if type == "period" %>
+       +     <%- if type == "period" -%>
        ?       +                     +
-       -     <% else %>
+       +     <%- else -%>
        ?       +      +
-       -     <% endif %>
+       +     <%- endif -%>
        ?       +       +
-       -     <% endif %>
+       +     <%- endif -%>
        ?       +       +
    ~ Column life_expectancy_fm_diff (changed metadata)
-       -     <% if type == "period" %>
+       +     <%- if type == "period" -%>
        ?       +                     +
-       -     <% else %>
+       +     <%- else -%>
        ?       +      +
-       -     <% endif %>
+       +     <%- endif -%>
        ?       +       +
-       -     <% if type == "period" %>
+       +     <%- if type == "period" -%>
        ?       +                     +
-       -     <% if age == '0' %>
+       +     <%- if age == '0' -%>
        ?       +               +
-       -     <% else %>
+       +     <%- else -%>
        ?       +      +
-       -     <% endif %>
+       +     <%- endif -%>
        ?       +       +
-       -     <% else %>
+       +     <%- else -%>
        ?       +      +
-       -     <% if age == '0' %>
+       +     <%- if age == '0' -%>
        ?       +               +
-       -     <% else %>
+       +     <%- else -%>
        ?       +      +
-       -     <% endif %>
+       +     <%- endif -%>
        ?       +       +
-       -     <% endif %>
+       +     <%- endif -%>
        ?       +       +
    ~ Column life_expectancy_fm_ratio (changed metadata)
-       -     <% if type == "period" %>
+       +     <%- if type == "period" -%>
        ?       +                     +
-       -     <% else %>
+       +     <%- else -%>
        ?       +      +
-       -     <% endif %>
+       +     <%- endif -%>
        ?       +       +
-       -     <% if type == "period" %>
+       +     <%- if type == "period" -%>
        ?       +                     +
-       -     <% if age == '0' %>
+       +     <%- if age == '0' -%>
        ?       +               +
-       -     <% else %>
+       +     <%- else -%>
        ?       +      +
-       -     <% endif %>
+       +     <%- endif -%>
        ?       +       +
-       -     <% else %>
+       +     <%- else -%>
        ?       +      +
-       -     <% if age == '0' %>
+       +     <%- if age == '0' -%>
        ?       +               +
-       -     <% else %>
+       +     <%- else -%>
        ?       +      +
-       -     <% endif %>
+       +     <%- endif -%>
        ?       +       +
-       -     <% endif %>
+       +     <%- endif -%>
        ?       +       +
= Dataset garden/demography/2023-10-09/life_expectancy
  = Table life_expectancy
    ~ Column life_expectancy (changed metadata)
-       -   <% if age == 0 %>
+       +   <%- if age == 0 -%>
        ?     +             +
-       -   <% if sex == 'all' %>
+       +   <%- if sex == 'all' -%>
        ?     +                 +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% if sex == 'all' %>
+       +   <%- if sex == 'all' -%>
        ?     +                 +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
-       -     <% if age == '0' %>
+       +     <%- if age == '0' -%>
        ?       +               +
-       -     <% else %>
+       +     <%- else -%>
        ?       +      +
-       -     <% endif %>
+       +     <%- endif -%>
        ?       +       +
-       -     <% if (age == 0) and (sex == 'all') %>
+       +     <%- if (age == 0) and (sex == 'all') -%>
        ?       +                                  +
-       -     <% else %>
+       +     <%- else -%>
        ?       +      +
-       -     <% endif %>
+       +     <%- endif -%>
        ?       +       +
    ~ Column life_expectancy_0 (changed metadata)
-       -   <% if age == 0 %>
+       +   <%- if age == 0 -%>
        ?     +             +
-       -   <% if sex == 'all' %>
+       +   <%- if sex == 'all' -%>
        ?     +                 +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% if sex == 'all' %>
+       +   <%- if sex == 'all' -%>
        ?     +                 +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
-       -     <% if age == '0' %>
+       +     <%- if age == '0' -%>
        ?       +               +
-       -     <% else %>
+       +     <%- else -%>
        ?       +      +
-       -     <% endif %>
+       +     <%- endif -%>
        ?       +       +
-       -     <% if (age == 0) and (sex == 'all') %>
+       +     <%- if (age == 0) and (sex == 'all') -%>
        ?       +                                  +
-       -     <% else %>
+       +     <%- else -%>
        ?       +      +
-       -     <% endif %>
+       +     <%- endif -%>
        ?       +       +
  = Table life_expectancy_with_proj
    ~ Column life_expectancy_0_with_proj (changed metadata)
-       -   <% if age == 0 %>
+       +   <%- if age == 0 -%>
        ?     +             +
-       -   <% if sex == 'all' %>
+       +   <%- if sex == 'all' -%>
        ?     +                 +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% if sex == 'all' %>
+       +   <%- if sex == 'all' -%>
        ?     +                 +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
-       -     <% if age == '0' %>
+       +     <%- if age == '0' -%>
        ?       +               +
-       -     <% else %>
+       +     <%- else -%>
        ?       +      +
-       -     <% endif %>
+       +     <%- endif -%>
        ?       +       +
-       -     <% if (age == 0) and (sex == 'all') %>
+       +     <%- if (age == 0) and (sex == 'all') -%>
        ?       +                                  +
-       -     <% else %>
+       +     <%- else -%>
        ?       +      +
-       -     <% endif %>
+       +     <%- endif -%>
        ?       +       +
    ~ Column life_expectancy_with_proj (changed metadata)
-       -   <% if age == 0 %>
+       +   <%- if age == 0 -%>
        ?     +             +
-       -   <% if sex == 'all' %>
+       +   <%- if sex == 'all' -%>
        ?     +                 +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% if sex == 'all' %>
+       +   <%- if sex == 'all' -%>
        ?     +                 +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
-       -     <% if age == '0' %>
+       +     <%- if age == '0' -%>
        ?       +               +
-       -     <% else %>
+       +     <%- else -%>
        ?       +      +
-       -     <% endif %>
+       +     <%- endif -%>
        ?       +       +
-       -     <% if (age == 0) and (sex == 'all') %>
+       +     <%- if (age == 0) and (sex == 'all') -%>
        ?       +                                  +
-       -     <% else %>
+       +     <%- else -%>
        ?       +      +
-       -     <% endif %>
+       +     <%- endif -%>
        ?       +       +
  = Table life_expectancy_only_proj
    ~ Column life_expectancy_0_only_proj (changed metadata)
-       -   <% if age == 0 %>
+       +   <%- if age == 0 -%>
        ?     +             +
-       -   <% if sex == 'all' %>
+       +   <%- if sex == 'all' -%>
        ?     +                 +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% if sex == 'all' %>
+       +   <%- if sex == 'all' -%>
        ?     +                 +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
-       -     <% if age == '0' %>
+       +     <%- if age == '0' -%>
        ?       +               +
-       -     <% else %>
+       +     <%- else -%>
        ?       +      +
-       -     <% endif %>
+       +     <%- endif -%>
        ?       +       +
    ~ Column life_expectancy_only_proj (changed metadata)
-       -   <% if age == 0 %>
+       +   <%- if age == 0 -%>
        ?     +             +
-       -   <% if sex == 'all' %>
+       +   <%- if sex == 'all' -%>
        ?     +                 +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% if sex == 'all' %>
+       +   <%- if sex == 'all' -%>
        ?     +                 +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
-       -     <% if age == '0' %>
+       +     <%- if age == '0' -%>
        ?       +               +
-       -     <% else %>
+       +     <%- else -%>
        ?       +      +
-       -     <% endif %>
+       +     <%- endif -%>
        ?       +       +
= Dataset garden/demography/2023-10-20/broken_limits_le
  = Table broken_limits_le
    ~ Column country_with_max_le (changed metadata)
-       -   Name of the country with the yearly maximum life expectancy registered<% if (sex == 'female') %> among females<% elif (sex == 'male') %> among males<% endif %>.
+       +   Name of the country with the yearly maximum life expectancy registered<%- if (sex == 'female') %> among females<% elif (sex == 'male') %> among males<% endif -%>.
        ?                                                                           +                                                                                     +
    ~ Column life_expectancy (changed metadata)
-       -   <% if (sex == 'female') %>
+       +   <%- if (sex == 'female') -%>
        ?     +                      +
-       -   <% elif (sex == 'male') %>
+       +   <%- elif (sex == 'male') -%>
        ?     +                      +
-       -   <% elif (sex == 'all') %>
+       +   <%- elif (sex == 'all') -%>
        ?     +                     +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
= Dataset garden/demography/2024-07-12/un_wpp_historical
  = Table estimates
    ~ Column population_estimates (changed metadata)
-       -       <%- if variant != 'estimates' %> Projections from 2024 onwards are based on the UN's << variant >> scenario. <%- endif %>
+       +       <%- if variant != 'estimates' -%> Projections from 2024 onwards are based on the UN's << variant >> scenario. <%- endif -%>
        ?                                     +                                                                                         +
  = Table projections
    ~ Column population (changed metadata)
-       -       <%- if variant != 'estimates' %> Projections from 2024 onwards are based on the UN's << variant >> scenario. <%- endif %>
+       +       <%- if variant != 'estimates' -%> Projections from 2024 onwards are based on the UN's << variant >> scenario. <%- endif -%>
        ?                                     +                                                                                         +
= Dataset garden/harvard/2024-07-22/global_military_spending_dataset
  = Table global_military_spending_dataset
2024-10-14 16:17:10 [error    ] Traceback (most recent call last):

  File "/home/owid/etl/.venv/lib/python3.10/site-packages/requests/models.py", line 974, in json
    return complexjson.loads(self.text, **kwargs)

  File "/home/owid/etl/.venv/lib/python3.10/site-packages/simplejson/__init__.py", line 514, in loads
    return _default_decoder.decode(s)

  File "/home/owid/etl/.venv/lib/python3.10/site-packages/simplejson/decoder.py", line 386, in decode
    obj, end = self.raw_decode(s)

  File "/home/owid/etl/.venv/lib/python3.10/site-packages/simplejson/decoder.py", line 416, in raw_decode
    return self.scan_once(s, idx=_w(s, idx).end())

simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "/home/owid/etl/etl/datadiff.py", line 429, in cli
    lines = future.result()

  File "/usr/lib/python3.10/concurrent/futures/_base.py", line 451, in result
    return self.__get_result()

  File "/usr/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
    raise self._exception

  File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)

  File "/home/owid/etl/etl/datadiff.py", line 422, in func
    differ.summary()

  File "/home/owid/etl/etl/datadiff.py", line 260, in summary
    self._diff_tables(self.ds_a, self.ds_b, table_name)

  File "/home/owid/etl/etl/datadiff.py", line 122, in _diff_tables
    table_a = future_a.result()

  File "/usr/lib/python3.10/concurrent/futures/_base.py", line 458, in result
    return self.__get_result()

  File "/usr/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
    raise self._exception

  File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)

  File "/home/owid/etl/.venv/lib/python3.10/site-packages/tenacity/__init__.py", line 336, in wrapped_f
    return copy(f, *args, **kw)

  File "/home/owid/etl/.venv/lib/python3.10/site-packages/tenacity/__init__.py", line 475, in __call__
    do = self.iter(retry_state=retry_state)

  File "/home/owid/etl/.venv/lib/python3.10/site-packages/tenacity/__init__.py", line 376, in iter
    result = action(retry_state)

  File "/home/owid/etl/.venv/lib/python3.10/site-packages/tenacity/__init__.py", line 398, in <lambda>
    self._add_action_func(lambda rs: rs.outcome.result())

  File "/usr/lib/python3.10/concurrent/futures/_base.py", line 451, in result
    return self.__get_result()

  File "/usr/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
    raise self._exception

  File "/home/owid/etl/.venv/lib/python3.10/site-packages/tenacity/__init__.py", line 478, in __call__
    result = fn(*args, **kwargs)

  File "/home/owid/etl/etl/datadiff.py", line 843, in get_table_with_retry
    return ds[table_name]

  File "/home/owid/etl/etl/datadiff.py", line 284, in __getitem__
    return tables.load()

  File "/home/owid/etl/lib/catalog/owid/catalog/catalogs.py", line 312, in load
    return self.iloc[0].load()  # type: ignore

  File "/home/owid/etl/lib/catalog/owid/catalog/catalogs.py", line 363, in load
    return Table.read(uri)

  File "/home/owid/etl/lib/catalog/owid/catalog/tables.py", line 179, in read
    table = cls.read_feather(path, **kwargs)

  File "/home/owid/etl/lib/catalog/owid/catalog/tables.py", line 365, in read_feather
    cls._add_metadata(df, path, **kwargs)

  File "/home/owid/etl/lib/catalog/owid/catalog/tables.py", line 337, in _add_metadata
    metadata = cls._read_metadata(path)

  File "/home/owid/etl/lib/catalog/owid/catalog/tables.py", line 399, in _read_metadata
    return cast(Dict[str, Any], requests.get(metadata_path).json())

  File "/home/owid/etl/.venv/lib/python3.10/site-packages/requests/models.py", line 978, in json
    raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)

requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

= Dataset garden/health/2024-06-11/isaps_plastic_surgery
  = Table isaps_plastic_surgery
    ~ Column num_procedures (changed metadata)
-       -   <% if (category_1 == 'all') %>
+       +   <%- if (category_1 == 'all') -%>
        ?     +                          +
-       -   <% elif (category_1 != 'all') and (category_2 == 'all') %>
+       +   <%- elif (category_1 != 'all') and (category_2 == 'all') -%>
        ?     +                                                      +
-       -   <% elif (category_1 != 'all') and (category_2 != 'all') and (procedure_name == 'all') %>
+       +   <%- elif (category_1 != 'all') and (category_2 != 'all') and (procedure_name == 'all') -%>
        ?     +                                                                                    +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
= Dataset garden/health/2024-09-05/seattle_pathogens
  = Table seattle_pathogens
    ~ Column percentage (changed metadata)
-       -   The share of specimens detected with respiratory pathogen << organism >>. <% if organism == 'RSV' %>
+       +   The share of specimens detected with respiratory pathogen << organism >>. <%- if organism == 'RSV' -%>
        ?                                                                               +                      +
-       -   <% elif organism == 'Influenza A' %>
+       +   <%- elif organism == 'Influenza A' -%>
        ?     +                                +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column present (changed metadata)
-       -   The number of specimens detected with respiratory pathogen << organism >>. <% if organism == 'RSV' %>
+       +   The number of specimens detected with respiratory pathogen << organism >>. <%- if organism == 'RSV' -%>
        ?                                                                                +                      +
-       -   <% elif organism == 'Influenza A' %>
+       +   <%- elif organism == 'Influenza A' -%>
        ?     +                                +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column tested (changed metadata)
-       -   The number of specimens tested to detect the respiratory pathogen << organism >>. Some of these specimens may have tested positive for the pathogen, while others (or all of them) may have tested negative. <% if organism == 'RSV' %>
        ?                                                                                                                                                                                                                  ^^^^^^^^^^^^
+       +   The number of specimens tested to detect the respiratory pathogen << organism >>. Some of these specimens may have tested positive for the pathogen, while others (or all of them) may have tested negative. <%- if organism == 'RSV' -%>
        ?                                                                                                                                                                                                                  ^^^^^^^^^^^^^          +
-       -   <% elif organism == 'Influenza A' %>
+       +   <%- elif organism == 'Influenza A' -%>
        ?     +                                +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
  = Table seattle_pathogens_month
    ~ Column percentage_month (changed metadata)
-       -   The share of specimens detected with respiratory pathogen << organism >>. <% if organism == 'RSV' %>
+       +   The share of specimens detected with respiratory pathogen << organism >>. <%- if organism == 'RSV' -%>
        ?                                                                               +                      +
-       -   <% elif organism == 'Influenza A' %>
+       +   <%- elif organism == 'Influenza A' -%>
        ?     +                                +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column present_month (changed metadata)
-       -   The number of specimens detected with respiratory pathogen << organism >>. <% if organism == 'RSV' %>
+       +   The number of specimens detected with respiratory pathogen << organism >>. <%- if organism == 'RSV' -%>
        ?                                                                                +                      +
-       -   <% elif organism == 'Influenza A' %>
+       +   <%- elif organism == 'Influenza A' -%>
        ?     +                                +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column tested_month (changed metadata)
-       -   The number of specimens tested to detect the respiratory pathogen << organism >>. Some of these specimens may have tested positive for the pathogen, while others (or all of them) may have tested negative. <% if organism == 'RSV' %>
        ?                                                                                                                                                                                                                  ^^^^^^^^^^^^
+       +   The number of specimens tested to detect the respiratory pathogen << organism >>. Some of these specimens may have tested positive for the pathogen, while others (or all of them) may have tested negative. <%- if organism == 'RSV' -%>
        ?                                                                                                                                                                                                                  ^^^^^^^^^^^^^          +
-       -   <% elif organism == 'Influenza A' %>
+       +   <%- elif organism == 'Influenza A' -%>
        ?     +                                +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
= Dataset garden/hmd/2023-09-19/hmd
  = Table hmd
    ~ Column central_death_rate_mf_ratio (changed metadata)
-       -   <% if type == "cohort" %>
+       +   <%- if type == "cohort" -%>
        ?     +                     +
-       -   <% elif type == "period" %>
+       +   <%- elif type == "period" -%>
        ?     +                       +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
    ~ Column life_expectancy (changed metadata)
-       -   <% if age == '0' %>
+       +   <%- if age == '0' -%>
        ?     +               +
-       -   <% if sex == 'both' %>
+       +   <%- if sex == 'both' -%>
        ?     +                  +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% if sex == 'both' %>
+       +   <%- if sex == 'both' -%>
        ?     +                  +
-       -   <% else %>
+       +   <%- else -%>
        ?     +      +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
-       -   <% endif %>
+       +   <%- endif -%>
        ?     +       +
-       -     <% if type == "period" %>
+       +     <%- if type == "period" -%>
        ?       +                     +
-       -     <% else %>
+       +     <%- else -%>
        ?       +      +
-       -     <% endif %>
+       +     <%- endif -%>
        ?       +       +
-       -     <% if type == "period" %>
+       +     <%- if type == "period" -%>
        ?       +                     +
-       -     <% if age == '0' %>
+       +     <%- if age == '0' -%>
        ?       +               +
-       -     <% else %>
+       +     <%- else -%>
        ?       +      +
-       -     <% endif %>
+       +     <%- endif -%>
        ?       +       +
-       -     <% else %>
+       +     <%- else -%>
        ?       +      +
-       -     <% if age == '0' %>
+       +     <%- if age == '0' -%>
        ?       +               +
-       -     <% else %>
+       +     <%- else -%>
        ?       +      +
-       -     <% endif %>
+       +     <%- endif -%>
        ?       +       +
-       -     <% endif %>
+       +     <%- endif -%>
        ?       +       +
-       -     <% if age != '0' %>
+       +     <%- if age != '0' -%>
        ?       +               +
-       -     <% if type == "period" %>
+       +     <%- if type == "period" -%>
        ?       +                     +
-       -     <% else %>
+       +     <%- else -%>
        ?       +      +
-       -     <% endif %>
+       +     <%- endif -%>
        ?       +       +
-       -     <% endif %>
+       +     <%- endif -%>
        ?       +       +
    ~ Column life_expectancy_fm_diff (changed metadata)
-       -     <% if type == "period" %>
+       +     <%- if type == "period" -%>
        ?       +                     +
-       -     <% else %>
+       +     <%- else -%>
        ?       +      +
-       -     <% endif %>
+       +     <%- endif -%>
        ?       +       +
-       -     <% if type == "period" %>
+       +     <%- if type == "period" -%>
        ?       +                     +
-       -     <% if age == '0' %>
+       +     <%- if age == '0' -%>
        ?       +               +
-       -     <% else %>
+       +     <%- else -%>
        ?       +      +
-       -     <% endif %>
+       +     <%- endif -%>
        ?       +       +
-       -     <% else %>
+       +     <%- else -%>
        ?       +      +
-       -     <% if age == '0' %>
+       +     <%- if age == '0' -%>
        ?       +               +
-       -     <% else %>
+       +     <%- else -%>
        ?       +      +
-       -     <% endif %>
+       +     <%- endif -%>
        ?       +       +
-       -     <% endif %>
+       +     <%- endif -%>
        ?       +       +
    ~ Column life_expectancy_fm_ratio (changed metadata)
-       -     <% if type == "period" %>
+       +     <%- if type == "period" -%>
        ?       +                     +
-       -     <% else %>
+       +     <%- else -%>
        ?       +      +
-       -     <% endif %>
+       +     <%- endif -%>
        ?       +       +
-       -     <% if type == "period" %>
+       +     <%- if type == "period" -%>
        ?       +                     +
-       -     <% if age == '0' %>
+       +     <%- if age == '0' -%>
        ?       +               +
-       -     <% else %>
+       +     <%- else -%>
        ?       +      +
-       -     <% endif %>
+       +     <%- endif -%>
        ?       +       +
-       -     <% else %>
+       +     <%- else -%>
        ?       +      +
-       -     <% if age == '0' %>
+       +     <%- if age == '0' -%>
        ?       +               +
-       -     <% else %>
+       +     <%- else -%>
        ?       +      +
-       -     <% endif %>
+       +     <%- endif -%>
        ?       +       +
-       -     <% endif %>
+       +     <%- endif -%>
        ?       +       +
= Dataset garden/oecd/2023-10-11/life_expectancy_birth
  = Table life_expectancy_birth
    ~ Column life_expectancy_birth (changed metadata)
-       -   <% if sex == 'all' %>
+       +   <%- if sex == 'all' -%>
        ?     +                 +
- 

...diff too long, truncated...

Automatically updated datasets matching weekly_wildfires|excess_mortality|covid|fluid|flunet|country_profile|garden/ihme_gbd/2019/gbd_risk are not included

Edited: 2024-10-14 16:35:17 UTC
Execution time: 1358.90 seconds

@lucasrodes lucasrodes marked this pull request as ready for review October 14, 2024 23:19
@lucasrodes lucasrodes merged commit 9e4a2a6 into master Oct 14, 2024
9 checks passed
@lucasrodes lucasrodes deleted the remove-eol branch October 14, 2024 23:19
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

Successfully merging this pull request may close these issues.

2 participants