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

Error during predictdemand(...) #12

Open
euronion opened this issue Aug 11, 2021 · 0 comments
Open

Error during predictdemand(...) #12

euronion opened this issue Aug 11, 2021 · 0 comments

Comments

@euronion
Copy link

When using predictdemand(region="Oceania",era_year=2011,sspyear=2050,ssp_scenario="ssp2-2.6") I encounter the following error:

ERROR: LoadError: ArgumentError: The time zone "Australia/Currie" is of class `TimeZones.Class(:LEGACY)` which is currently not allowed by the mask: `TimeZones.Class(:FIXED) | TimeZones.Class(:STANDARD)`
Stacktrace:
|  ETA: 0:00:29Dates.TimeZone(str::String, mask::TimeZones.Class)
   @ TimeZones ~/.julia/packages/TimeZones/hCVio/src/types/timezone.jl:65
 [2] Dates.TimeZone(str::String)
   @ TimeZones ~/.julia/packages/TimeZones/hCVio/src/types/timezone.jl:46
 [3] regional_timezone_offsets_Jan1(; gisregion::String, scenarioyear::String, era_year::Int64)
   @ GlobalEnergyGIS ~/.julia/packages/GlobalEnergyGIS/W3ICK/src/syntheticdemand_inputdata.jl:238
 [4] buildtrainingdata(; gisregion::String, sspscenario::String, sspyear::Int64, era_year::Int64, numcenters::Int64, mindist::Float64)
   @ GlobalEnergyGIS ~/.julia/packages/GlobalEnergyGIS/W3ICK/src/syntheticdemand_inputdata.jl:151
 [5] predictdemand(; variables::Vector{Symbol}, gisregion::String, sspscenario::String, sspyear::Int64, era_year::Int64, numcenters::Int64, mindist::Float64, nrounds::Int64, max_depth::Int64, eta::Float64, subsample::Float64, metrics::Vector{String}, more_xgoptions::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})                                                                                            
   @ GlobalEnergyGIS ~/.julia/packages/GlobalEnergyGIS/W3ICK/src/syntheticdemand_training.jl:11
 [6] top-level scope
   @ ~/share/GitHub/SynDe/.snakemake/scripts/tmp79idtcpl.synthesize_demand.jl:46
in expression starting at /home/pypsa/share/GitHub/SynDe/.snakemake/scripts/tmp79idtcpl.synthesize_demand.jl:46

The region used includes Australia and is based on the following GADM subregions:

Oceania:
    - "Australia"
    - "Fiji"
    - "Guam"
    - "Kiribati"
    - "Northern Mariana Islands"
    - "New Caledonia"
    - "New Zealand"
    - "Palau"
    - "Papua New Guinea"
    - "French Polynesia"
    - "Solomon Islands"
    - "Tonga"
    - "Vanuatu"
    - "Samoa"
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