Skip to content

error pyet.jensen_haise using method=1 #87

@bombilator

Description

@bombilator

Describe the bug
Calling pyet.jensen_haise() with method=1 gives TypeError: extraterrestrial_r() takes 2 positional arguments but 3 were given.

To Reproduce
Steps to reproduce the behavior:

  1. Call pyet.jensen_haise(), provide necessary variables tmean and lat, with method=1
  2. run the code
  3. See TypeError: extraterrestrial_r() takes 2 positional arguments but 3 were given

Expected behavior
Get a pandas.Series or xarray.DataArray containing the calculated potential evapotranspiration [mm d-1]

Screenshots
From file radiation.py:

Image

Additional context
In file radiation.py on line 107, an additional variable is given in the function extraterrestrial_r() like so; extraterrestrial_r(index, lat, tmean). The variable tmean should be removed for the method to work properly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions