Skip to content

Error writing monthly export series outputs in ElectricTariff.jl #582

@jbrauch

Description

@jbrauch

I am seeing an error when trying to write outputs related to hourly and monthly series for grid electricity exports in ElectricTariff. It seems to be in lines 236-237 of results/electric_tariff.jl (https://github.com/NatLabRockies/REopt.jl/blob/master/src/results/electric_tariff.jl#L236):
push!(r[string(binmap[bin], "_monthly_export_series_kwh")], sum(r[export_series][idx]) / p.s.time_steps_per_hour) push!(r[string(binmap[bin], "_monthly_export_cost_benefit_before_tax")], sum((r[rate_series].*r[export_series])[idx]) / p.s.time_steps_per_hour)

There is an error trying to retrieve the time_steps_per_hour variable, since that variable looks like it is contained in p.s.settings, not p.s directly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions