Skip to content

ModelChain.prepare_inputs press_temp can be unbound #1135

Closed
@wholmgren

Description

@wholmgren

The except block should set press_temp = {}. The kwarg should also be called as a kwarg.

try:
press_temp = _build_kwargs(['pressure', 'temp_air'],
weather[0] if isinstance(weather, tuple)
else weather)
press_temp['temperature'] = press_temp.pop('temp_air')
except KeyError:
pass
self._prep_inputs_solar_pos(press_temp)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions