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

add config.schema.json #167

Closed
wants to merge 26 commits into from
Closed
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
66f5856
add `config.schema.json`
cjyetman Feb 25, 2024
73ab755
add validator action
cjyetman Feb 25, 2024
2130470
add definitions
cjyetman Feb 26, 2024
d83f8e3
Merge branch 'main' into config.schema.json
cjyetman Feb 26, 2024
67a921c
Merge branch 'main' into config.schema.json
cjyetman Feb 26, 2024
c9a9364
Merge branch 'main' into config.schema.json
cjyetman Feb 27, 2024
bc470e1
Merge branch 'main' into config.schema.json
cjyetman Feb 29, 2024
2c4b0a2
Merge branch 'main' into config.schema.json
cjyetman Mar 1, 2024
44034cc
Delete .github/workflows/json-yaml-validate.yml
cjyetman Mar 1, 2024
4c9561d
Merge branch 'main' into config.schema.json
cjyetman Mar 9, 2024
3315ae8
Merge branch 'main' into config.schema.json
cjyetman Mar 11, 2024
90413e2
Merge branch 'main' into config.schema.json
cjyetman Mar 15, 2024
71fbd90
Merge branch 'main' into config.schema.json
cjyetman Mar 15, 2024
ddae739
Merge branch 'main' into config.schema.json
cjyetman Mar 15, 2024
745a205
Merge branch 'main' into config.schema.json
cjyetman Mar 25, 2024
f4293bb
Merge branch 'main' into config.schema.json
cjyetman Apr 1, 2024
b6a0855
Merge branch 'main' into config.schema.json
cjyetman Apr 3, 2024
f3ea3b3
Merge branch 'main' into config.schema.json
cjyetman Apr 4, 2024
716831f
Merge branch 'main' into config.schema.json
cjyetman Apr 5, 2024
01c85c0
Merge branch 'main' into config.schema.json
cjyetman Apr 5, 2024
e3b14b0
Merge branch 'main' into config.schema.json
cjyetman Apr 11, 2024
576e0ac
Merge branch 'main' into config.schema.json
cjyetman Apr 16, 2024
b70bbaf
Merge branch 'main' into config.schema.json
cjyetman Apr 17, 2024
1eb79f8
Merge branch 'main' into config.schema.json
cjyetman Apr 18, 2024
a108376
Merge branch 'main' into config.schema.json
cjyetman Apr 26, 2024
b293b74
Merge branch 'main' into config.schema.json
cjyetman Apr 30, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
195 changes: 195 additions & 0 deletions config.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,195 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "XXXXXX",
"title": "XXXXXXX",
"description": "XXXXXXXX",
"type": "object",
"properties": {
"data_prep_outputs_path": {
"description": "a single, absolute or relative path to a directory where the outputs will be saved",
"type": "string"
},
"asset_impact_data_path": {
"description": "a single, absolute or relative path to a directory that contains the AI inputs (can be the same as `factset_data_path`)",
"type": "string"
},
"factset_data_path": {
"description": "a single, absolute or relative path to a directory that contains the FactSet inputs (can be the same as `asset_impact_data_path`)",
"type": "string"
},
"preflight_data_path": {
"description": "a single, absolute or relative path to a directory that contains a previous \"currencies.rds\" file and/or will be used to save a copy of pre-flight data files generated on-the-fly (by default [\"\"], this is set the same path as `data_prep_outputs_path`)",
"type": "string"
},
"masterdata_ownership_filename": {
"description": "a single filename of the intended masterdata_ownership CSV (must exist in the `asset_impact_data_path` directory)",
"type": "string"
},
"masterdata_debt_filename": {
"description": "a single filename of the intended masterdata_debt CSV (must exist in the `asset_impact_data_path` directory)",
"type": "string"
},
"ar_company_id__factset_entity_id_filename": {
"description": "a single filename of the intended ar_company_id__factset_entity_id CSV (must exist in the `asset_impact_data_path` directory)",
"type": "string"
},
"factset_financial_data_filename": {
"description": "a single filename of the intended factset_financial_data RDS (must exist in the `factset_data_path` directory)",
"type": "string"
},
"factset_entity_info_filename": {
"description": "a single filename of the intended factset_entity_info RDS (must exist in the `factset_data_path` directory)",
"type": "string"
},
"factset_entity_financing_data_filename": {
"description": "a single filename of the intended factset_entity_financing_data RDS (must exist in the `factset_data_path` directory)",
"type": "string"
},
"factset_fund_data_filename": {
"description": "a single filename of the intended factset_fund_data RDS (must exist in the `factset_data_path` directory)",
"type": "string"
},
"factset_isin_to_fund_table_filename": {
"description": "a single filename of the intended factset_isin_to_fund_table RDS (must exist in the `factset_data_path` directory)",
"type": "string"
},
"factset_iss_emissions_data_filename": {
"description": "a single filename of the intended factset_iss_emissions_data RDS (must exist in the `factset_data_path` directory)",
"type": "string"
},
"factset_issue_code_bridge_filename": {
"description": "a single filename of the intended factset_issue_code_bridge RDS (must exist in the `factset_data_path` directory)",
"type": "string"
},
"factset_industry_map_bridge_filename": {
"description": "a single filename of the intended factset_industry_map_bridge RDS (must exist in the `factset_data_path` directory)",
"type": "string"
},
"factset_manual_pacta_sector_override_filename": {
"description": "a single filename of the intended factset_manual_pacta_sector_override RDS (must exist in the `factset_data_path` directory)",
"type": "string"
},
"update_currencies": {
"description": "a single `TRUE` or `FALSE` specifying whether currency data should be pulled on-the-fly (or a previously pulled version should be used)",
"type": "boolean"
},
"export_sqlite_files": {
"description": "a single `TRUE` or `FALSE` specifying whether sqlite versions of some output files should be included in the outputs",
"type": "boolean"
},
"export_archives": {
"description": "Boolean: Export zip archives of input files and output files?",
"type": "boolean"
},
"imf_quarter_timestamp": {
"description": "a single string specifying the IMF quarter timestamp (for pulling of currency data) in the form \"YYYY-QX\", e.g. \"2021-Q4\"",
"type": "string",
"pattern": "^20[2-5][0-9]-Q[1-4]$"
},
"pacta_financial_timestamp": {
"description": "a single string specifying the PACTA quarter timestamp in the form \"YYYYQX\", e.g. \"2021Q4\"",
"type": "string",
"pattern": "^20[2-5][0-9]Q[1-4]$"
},
"market_share_target_reference_year": {
"description": "a single integer specifying the market share target reference year in the form YYYY, e.g. 2021",
"type": "integer",
"minimum": 2020,
"maximum": 2050
},
"time_horizon": {
"description": "a single integer specifying the time horizon (number of forward looking years) in years in the form N, e.g. 5",
"type": "integer",
"minimum": 1,
"maximum": 30
},
"scenario_sources_list": {
"description": "an array of strings specifying the scenario sources to be included, e.g. [\"ETP2020\", \"GECO2021\"]",
"items": {
"$ref": "#/definitions/scenario_sources"
},
"uniqueItems": true,
"minItems": 1
},
"sector_list": {
"description": "an array of strings specifying the primary PACTA sectors to be included, e.g. [\"Automotive\", \"Power\"]",
"items": {
"$ref": "#/definitions/sectors"
},
"uniqueItems": true,
"minItems": 1
},
"other_sector_list": {
"description": "an array of strings specifying the additional PACTA sectors to be included, e.g. [\"Steel\", \"Aviation\"]",
"items": {
"$ref": "#/definitions/sectors"
},
"uniqueItems": true,
"minItems": 1
},
"zero_emission_factor_techs": {
"description": "an array of strings specifying the technologies to be considered as zero emission, e.g. [\"Electric\", \"HydroCap\"]",
"items": {
"$ref": "#/definitions/technologies"
},
"uniqueItems": true,
"minItems": 1
},
"green_techs": {
"description": "an array of strings specifying the technologies to be considered \"green\", e.g. [\"FuelCell\", \"Hybrid\"]",
"items": {
"$ref": "#/definitions/technologies"
},
"uniqueItems": true,
"minItems": 1
},
"scenario_raw_data_to_include": {
"description": "an array of strings specifying the raw scenario data from pacta.scenario.preparation to be included, e.g. [\"etp_2020\", \"geco_2021\"]",
"items": {
"$ref": "#/definitions/scenarios_raw"
},
"uniqueItems": true,
"minItems": 1
},
"tech_exclude": {
"description": "an array of strings specifying the technologies to be excluded, e.g. [\"OtherCap\", \"OtherFF\"]",
"items": {
"$ref": "#/definitions/technologies"
},
"uniqueItems": true,
"minItems": 1
},
"scenario_geographies_list": {
"description": "an array of strings specifying the scenario geographies to be included, e.g. [\"Global\", \"NonOECD\"]",
"items": {
"$ref": "#/definitions/scenario_geographies"
},
"uniqueItems": true,
"minItems": 1
},
"global_aggregate_scenario_sources_list": {
"description": "an array of strings specifying the scenarios to be used in the global aggregates, e.g. [\"ETP2020\", \"GECO2021\"]",
"items": {
"$ref": "#/definitions/scenario_sources"
},
"uniqueItems": true,
"minItems": 1
},
"global_aggregate_sector_list": {
"description": "an array of strings specifying the sectors to be included in the global aggregates, e.g. [\"Power\"]",
"items": {
"$ref": "#/definitions/sectors"
},
"uniqueItems": true,
"minItems": 1
}
},
"required": [ "data_prep_outputs_path", "asset_impact_data_path", "factset_data_path", "preflight_data_path", "masterdata_ownership_filename", "masterdata_debt_filename", "ar_company_id__factset_entity_id_filename", "factset_financial_data_filename", "factset_entity_info_filename", "factset_entity_financing_data_filename", "factset_fund_data_filename", "factset_isin_to_fund_table_filename", "factset_iss_emissions_data_filename", "factset_issue_code_bridge_filename", "factset_industry_map_bridge_filename", "factset_manual_pacta_sector_override_filename", "update_currencies", "export_sqlite_files", "export_archives", "imf_quarter_timestamp", "pacta_financial_timestamp", "market_share_target_reference_year", "time_horizon", "scenario_sources_list", "sector_list", "other_sector_list", "zero_emission_factor_techs", "green_techs", "scenario_raw_data_to_include", "tech_exclude", "scenario_geographies_list", "global_aggregate_scenario_sources_list", "global_aggregate_sector_list" ],
"definitions": {
"sectors": { "enum": ["Aviation", "Cement", "Coal", "HDV", "LDV", "Oil&Gas", "Power", "Shipping", "Steel", "Automotive", "Fossil Fuels"] },
"technologies": { "enum": ["Anthracite Metallurgical", "Anthracite Thermal", "Basic Oxygen Furnace", "Bituminous Metallurgical", "Bituminous Thermal", "CoalCap", "Electric", "Electric Arc Furnace", "Freight", "Fuel Cell", "Gas", "GasCap", "Hybrid No-Plug", "Hybrid Plug-In", "HydroCap", "ICE CNG", "ICE Diesel", "ICE E85+", "ICE Gasoline", "ICE Hydrogen", "ICE Propane", "Integrated facility", "Lignite Thermal", "Natural Gas Liquids", "NuclearCap", "Oil and Condensate", "OilCap", "Open Hearth Furnace", "Passenger", "RenewablesCap", "Sub-Bituminous Thermal", "Coking Plant", "Direct Or Smelting Reduction Plant", "Electric_HDV", "FuelCell", "FuelCell_HDV", "Grinding Plant", "Hybrid", "Hybrid_HDV", "OtherCap", "OtherFF", "Passenger / Freight", "Pelletizing Plant", "Sintering Plant"] },
"scenario_sources": { "enum": ["ETP2020", "GECO2021", "GECO2022", "IPR2021", "ISF2021", "WEO2021", "WEO2022"] },
"scenarios_raw": { "enum": ["etp_2020", "geco_2021", "geco_2022", "ipr_2021", "isf_2021", "weo_2021", "weo_2022"] },
"scenario_geographies": { "enum": ["Global", "NonOECD", "OECD"] }
}
}
Loading