Skip to content

Enhanced download error handling #208

Enhanced download error handling

Enhanced download error handling #208

GitHub Actions / Petals / Unit Test Results (3.11) failed Oct 28, 2024 in 0s

3 fail, 2 skipped, 198 pass in 3m 59s

203 tests  ±0   198 ✅  - 1   3m 59s ⏱️ -24s
  1 suites ±0     2 💤 ±0 
  1 files   ±0     3 ❌ +1 

Results for commit 21c6c0a. ± Comparison against earlier commit aa5bda3.

Annotations

Check warning on line 0 in climada_petals.entity.exposures.test.test_crop_production.TestCropProduction

See this annotation in the file changed.

@github-actions github-actions / Petals / Unit Test Results (3.11)

test_normalize_with_fao_cp (climada_petals.entity.exposures.test.test_crop_production.TestCropProduction) failed

climada_petals/tests_xml/tests.xml [took 0s]
Raw output
TypeError: Exposures.__init__() got an unexpected keyword argument 'crop'
self = <climada_petals.entity.exposures.test.test_crop_production.TestCropProduction testMethod=test_normalize_with_fao_cp>

    def test_normalize_with_fao_cp(self):
        """ Test normalizing of two given exposures countrywise (usually firr + norr)
        with the mean crop production quantity"""
        exp = cp.CropProduction.from_isimip_netcdf(input_dir=INPUT_DIR, filename=FILENAME, hist_mean=FILENAME_MEAN,
                                          bbox=[-5, 42, 16, 55], yearrange=np.array([2001, 2005]),
                                          scenario='flexible', crop = 'mai', unit='t/y', irr='firr')
        country_list, ratio, exp_firr_norm, exp_noirr_norm, fao_crop_production, _exp_tot_production = \
>            cp.normalize_with_fao_cp(exp, exp, input_dir=INPUT_DIR,
                              yearrange=np.array([2009, 2018]), unit='t/y', return_data=True)

climada_petals/entity/exposures/test/test_crop_production.py:183: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
climada_petals/entity/exposures/crop_production.py:1001: in normalize_with_fao_cp
    exp_firr_norm = exp_firr.copy(deep=True)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <climada_petals.entity.exposures.crop_production.CropProduction object at 0x7f5e32c7cc90>
deep = True

    def copy(self, deep=True):
        """Make a copy of this Exposures object.
    
        Parameters
        ----------
        deep (bool): Make a deep copy, i.e. also copy data. Default True.
    
        Returns
        -------
            Exposures
        """
        gdf = self.gdf.copy(deep=deep)
        metadata = dict(
            [(md, copy.deepcopy(self.__dict__[md])) for md in type(self)._metadata]
        )
        metadata["crs"] = self.crs
>       return type(self)(gdf, **metadata)
E       TypeError: Exposures.__init__() got an unexpected keyword argument 'crop'

../../../../micromamba/envs/climada_env_3.11/lib/python3.11/site-packages/climada/entity/exposures/base.py:1279: TypeError

Check warning on line 0 in climada_petals.entity.exposures.test.test_gdp_asset.TestGDP2AssetFunctions

See this annotation in the file changed.

@github-actions github-actions / Petals / Unit Test Results (3.11)

test_set_one_country (climada_petals.entity.exposures.test.test_gdp_asset.TestGDP2AssetFunctions) failed

climada_petals/tests_xml/tests.xml [took 2s]
Raw output
AssertionError: 47.062247399999976 != 9.5206968 within 7 places (37.54155059999998 difference)
self = <climada_petals.entity.exposures.test.test_gdp_asset.TestGDP2AssetFunctions testMethod=test_set_one_country>

    def test_set_one_country(self):
        with self.assertRaises(KeyError):
            ga.GDP2Asset._set_one_country('LIE', 2001, path=DEMO_GDP2ASSET)
    
        exp_test = ga.GDP2Asset._set_one_country('LIE', 2000, path=DEMO_GDP2ASSET).gdf
    
>       self.assertAlmostEqual(exp_test.iloc[0, 2], 9.5206968)
E       AssertionError: 47.062247399999976 != 9.5206968 within 7 places (37.54155059999998 difference)

climada_petals/entity/exposures/test/test_gdp_asset.py:58: AssertionError

Check warning on line 0 in climada_petals.hazard.test.test_drought.TestReader

See this annotation in the file changed.

@github-actions github-actions / Petals / Unit Test Results (3.11)

test (climada_petals.hazard.test.test_drought.TestReader) failed

climada_petals/tests_xml/tests.xml [took 2s]
Raw output
ValueError: Importing the SPEI data file failed: Error loading page https://digital.csic.es/bitstream/10261/153475/8/spei06.nc
 Status: 500
 Content: b'\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n<!DOCTYPE html>\n<html>\n    <head>\n        <title>Error interno del sistema  | DIGITAL.CSIC</title>\n        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />\n        <meta http-equiv="X-UA-Compatible" content="IE=edge"/>\n        <meta name="Generator" content="DSpace CRIS-5.10.0-SNAPSHOT" />\n        <meta name="viewport" content="width=device-width, initial-scale=1.0">\n\t\t\n\t\t\t<meta name="language" content="Spanish"/>\n\t\t        \t\t\n        <link rel="resourcesync sitemap" href="https://digital.csic.es/rs/resourcesync.xml" type="application/xml"/>\n        <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>\n\t    <link rel="stylesheet" href="/static/css/jquery-ui/redmond/jquery-ui-1.12.1.min.css" type="text/css" />\n\t    <link href="/css/researcher.css" type="text/css" rel="stylesheet" />\n       <link href="/css/jdyna.css" type="text/css" rel="stylesheet" />\n\t    <link rel="stylesheet" href="/static/css/bootstrap/bootstrap.min.css" type="text/css" />\n\t    <link rel="stylesheet" href="/static/css/bootstrap/bootstrap-theme.min.css" type="text/css" />\n\t    <link href="/static/css/font-awesome/css/font-awesome.min.css" rel="stylesheet">\n\t\t<link href="/static/css/jstree/themes/default/style.min.css" rel="stylesheet"/>\n\t    <link rel="stylesheet" href="/static/css/bootstrap/dspace-theme.css" type="text/css" />\n\t    <link rel="stylesheet" href="/css/orcid.css" type="text/css" />\n\t    <link rel="stylesheet" type="text/css" href="/static/css/dataTables.bootstrap.min.css"/>\n\t\t<link rel="stylesheet" type="text/css" href="/static/css/buttons.bootstrap.min.css"/>\n\t\t<link rel="stylesheet" type="text/css" href="/static/css/responsive.bootstrap.min.css"/>\n\t\t<link rel="stylesheet" href="/static/css/bootstrap/dspace-theme.css" type="text/css" />\n\t\t<link rel="stylesheet" type="text/css" href="/css/bootstrap-datetimepicker.min.css" />\n\t\t\t<link rel="stylesheet" type="text/css" href="/static/css/select.dataTables.min.css" />\n        <link rel="stylesheet" href="/css/digitalCSIC.css" type="text/css" />\n\n        <link rel="search" type="application/opensearchdescription+xml" href="/open-search/description.xml" title="DSpace"/>\n\n        \n   \t<script type=\'text/javascript\' src="/static/js/jquery/jquery-3.6.0.min.js"></script>\n\t<script type=\'text/javascript\' src=\'/static/js/jquery/jquery-ui-1.12.1.min.js\'></script>\n\t<script type="text/javascript" src="/js/moment-2.24.0.js"></script>\n\t<script type=\'text/javascript\' src=\'/static/js/bootstrap/bootstrap.min.js\'></script>\n\t<script type=\'text/javascript\' src=\'/static/js/holder.js\'></script>\n\t<script type="text/javascript" src="/utils.js"></script>\n\t<script type=\'text/javascript\' src=\'/static/js/custom-functions.js\'></script>\n    <script type="text/javascript" src="/static/js/choice-support.js"> </script>\n    <script type="text/javascript" src="/js/jdyna/jdyna.js"></script>    \n    <script type="text/javascript" src="/js/jquery.dataTables.min.js"></script>\n\t<script type="text/javascript" src="/js/dataTables.bootstrap.min.js"></script>\n\t<script type="text/javascript" src="/js/dataTables.buttons.min.js"></script>\n\t<script type="text/javascript" src="/js/buttons.bootstrap.min.js"></script>\n\t<script type="text/javascript" src="/js/buttons.html5.min.js"></script>\n\t<script type="text/javascript" src="/js/dataTables.responsive.min.js"></script>\t\n\t<script type="text/javascript" src="/js/bootstrap-datetimepicker.min.js"></script>\n\t<script type="text/javascript" src="/static/js/dataTables.select.min.js"></script>\n\t<script type="text/javascript" src="/js/jszip.min.js"></script>\n\t<script type=\'text/javascript\'>\n\t\tvar j = jQuery.noConflict();\n\t\tvar $ = jQuery.noConflict();\n\t\tvar JQ = j;\n\t\tdspaceContextPath = "";\n\t\tjQuery(document).ready(function ($) {\n\t\t\t  $(\'span[data-toggle="tooltip"]\').tooltip();\n\t\t\t  $(\'i[data-toggle="tooltip"]\').tooltip();\n\t\t});\n\t</script>\n\t\n    \n    \n        <script type="text/plain" data-type="text/javascript" data-name="google-analytics">\n            var _gaq = _gaq || [];\n            _gaq.push([\'_setAccount\', \'UA-21397014-39\']);\n            _gaq.push([\'_trackPageview\']);\n\n            (function() {\n                var ga = document.createElement(\'script\'); ga.type = \'text/javascript\'; ga.async = true;\n                ga.src = (\'https:\' == document.location.protocol ? \'https://ssl\' : \'http://www\') + \'.google-analytics.com/ga.js\';\n                var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(ga, s);\n            })();\n        </script>\n    \n    \n<!-- Matomo -->\n    <script>\n      var _paq = window._paq = window._paq || [];\n      /* tracker methods like "setCustomDimension" should be called before "trackPageView" */\n      _paq.push([\'trackPageView\']);\n      _paq.push([\'enableLinkTracking\']);\n      (function() {\n        var u="https://stats.sgai.csic.es/";\n        _paq.push([\'setTrackerUrl\', u+\'matomo.php\']);\n        _paq.push([\'setSiteId\', \'121\']);\n        var d=document, g=d.createElement(\'script\'), s=d.getElementsByTagName(\'script\')[0];\n        g.async=true; g.src=u+\'matomo.js\'; s.parentNode.insertBefore(g,s);\n      })();\n    </script>\n<!-- End Matomo Code -->\n\n    <!-- CORE Discovery repository plugin -->\n    <script type=\'text/javascript\' async src=\'https://discovery.core.ac.uk/plugin.js?id=yvWZxYEbXCohzPFdG1KQ9wSUHVtLjiuO\'></script>    \n    <!-- -->\n\n\n    \n    <script type=\'text/javascript\' src=\'https://platform-api.sharethis.com/js/sharethis.js#property=656eff357ff7d60012c38287&product=sticky-share-buttons\' async=\'async\'></script> \n\n\n\n    \n\t<!-- HTML5 shiv and Respond.js IE8 support of HTML5 elements and media queries -->\n\t<!--[if lt IE 9]>  \n\t  <script src="/static/js/html5shiv.js"></script>\n\t  <script src="/static/js/selectivizr-min.js"></script>\n\t  <script src="/static/js/respond.min.js"></script>\n\t  <link rel="stylesheet" href="/static/css/bootstrap/dspace-theme-IElte9.css" type="text/css" />\n\t<![endif]-->\n    </head>\n\n    \n    \n    <body class="undernavigation" dir="ltr">\n<a class="sr-only" href="#content">Skip navigation</a>\n<header class="navbar navbar-inverse navbar-fixed-top">    \n    \n            <div class="container">\n                \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n<script type=\'text/javascript\'>\n    function hover(element) {\n        element.className = "dropdown open";\n    }\n    function out(element) {\n        element.className = "dropdown";\n    }\n</script>\n\n<div class="navbar-header">\n    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">\n        <span class="icon-bar"></span>\n        <span class="icon-bar"></span>\n        <span class="icon-bar"></span>\n    </button>\n    <a class="navbar-brand" href="/"><img  src="/imagenes/logo_DC_peque.png" alt="Logo peque\xc3\xb1o DigitalCISC"/></a>\n</div>\n\n<nav class="collapse navbar-collapse bs-navbar-collapse" role="navigation">\n    <ul class="nav navbar-nav">\n\n        <li class="dropdown" onmouseover="hover(this);" onmouseout="out(this);">\n            <a href="#" class="dropdown-toggle" data-toggle="dropdown">Producci\xc3\xb3n CSIC  <b class="caret"></b></a>\n            <ul class="dropdown-menu">\n                <li><a href="/community-list">\xc3\x81reas e Institutos</a></li>\n                <li class="divider"></li>\n                <li class="dropdown-header">???jsp.layout.navbar-default.browse-by???</li>\n                \n                \n                <li><a href="/browse?type=dateissued">Issue Date</a></li>\n                    \n                <li><a href="/browse?type=author">Author</a></li>\n                    \n                <li><a href="/browse?type=title">Title</a></li>\n                    \n                <li><a href="/browse?type=subject">Subject</a></li>\n                    \n                <li><a href="/browse?type=rpname">Name</a></li>\n                    \n                <li><a href="/browse?type=pjtitle">Title</a></li>\n                    \n                <li><a href="/browse?type=ouname">Name</a></li>\n                    \n                <li><a href="/browse?type=agenciaFinanciadora">???browse.menu.agenciaFinanciadora???</a></li>\n                    \n                <li><a href="/browse?type=fechaEnvio">???browse.menu.fechaEnvio???</a></li>\n                    \n\n                \n\n            </ul>\n        </li>\n\n        <li><a href="/dc/pasarela.jsp">Pasarela</a></li>\n        <li><a href="/dc/estadisticas/estadisticasGenerales.jsp">???jsp.home.estadisticas???</a></li>\n        <li><a href="/dc/contacto.jsp">???jsp.home.contacto???</a></li>\n\n    </ul>\n\n\n\n    <div class="nav navbar-nav navbar-right">\n        <ul class="nav navbar-nav navbar-right">\n            <li class="dropdown" onmouseover="hover(this);" onmouseout="out(this);">\n                \n                <a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-user"></span> Servicios  <b class="caret"></b></a>\n                                 \n                <ul class="dropdown-menu">\n               <li><a href="/mydspace">Mi DIGITAL.CSIC </a></li>\n               <li><a href="/subscribe">Suscripciones </a></li>\n               <li><a href="/profile">Editar perfil </a></li>\n\n                    \n                </ul>\n            </li>\n        </ul>\n\n        \n        <form id="searchcsicprocessor" name="searchcsicprocessor" method="get" action="/simple-search" class="navbar-form navbar-right" scope="search">\t\t\n\n            \n            \n            \n            \n            \n            \n            \n\n                <div class="input-group">    \n                <input type="text" class="form-control" placeholder="Buscar en&nbsp;DSpace " name="query" id="tequery" size="20"/>\n                <div class="input-group-btn search-panel">\n                    <select id="selectGlobalProcessor" class="form-control">\n                        <option value="All">???jsp.search.filter.home.searchcsic</option>\n                        <option value="Items">???jsp.search.filter.home.searchcsic</option>\n                        <option value="RpAuthors">???jsp.search.filter.home.searchcsic</option>\n                        <option value="Projects">???jsp.search.filter.home.searchcsic</option>\n                        <option value="OrgUnits">???jsp.search.filter.home.searchcsic</option>\n                        <option value="Communities">Institutes</option>\n                        <option value="Collections">???jsp.search.filter.home.searchcsic</option>\n                    </select>\n                </div>\n                <span class="input-group-btn">\n                    <button id ="navbarGlobalSearch" class="btn btn-primary" type="submit"><span class="fa fa-search"></span></button>\n                </span>\n                <input type="hidden" name="filterquery" value="" id="search_param1">\n                <input type="hidden" name="location" value="" id="search_param2">\n                <input type="hidden" name="sort_by" value="" id="search_param3">\n                <input type="hidden" name="filtername" value="resourcetype" id="search_param4">\n                <input type="hidden" name="filtertype" value="equals" id="search_param5">\n                <input type="hidden" name="order" value="" id="search_param6">\n                \n                \n                <script type="text/javascript">\n                    <!--\n                    jQuery(document).ready(function(){\n\n                        jQuery("#navbarGlobalSearch").click(function(){\n                            var selecteditem= jQuery(\'#selectGlobalProcessor\').find("option:selected").val();  \n                            if(selecteditem==\'All\') {\n                                jQuery(\'#search_param1\').prop("disabled", true);\n                                jQuery(\'#search_param2\').val(\'global\');\n                                jQuery(\'#search_param3\').prop("disabled", true); \n                                jQuery(\'#search_param4\').prop("disabled", true);\n                                jQuery(\'#search_param5\').prop("disabled", true);\n                            }else if(selecteditem==\'Items\'){\n                                jQuery(\'#search_param1\').prop("disabled", true); \n                                jQuery(\'#search_param2\').val(\'publications\');\n                                jQuery(\'#search_param3\').val(\'bi_sort_1_sort\');\n                                jQuery(\'#search_param4\').prop("disabled", true);\n                                jQuery(\'#search_param5\').prop("disabled", true);\n                                jQuery(\'#search_param6\').val(\'ASC\');\n                            }else if(selecteditem==\'RpAuthors\'){\n                                jQuery(\'#search_param1\').prop("disabled", true); \n                                jQuery(\'#search_param2\').val(\'researcherprofiles\');\n                                jQuery(\'#search_param3\').val(\'bi_sort_4_sort\');\n                                jQuery(\'#search_param4\').prop("disabled", true);\n                                jQuery(\'#search_param5\').prop("disabled", true);\n                                jQuery(\'#search_param6\').val(\'ASC\');\n                            }else if(selecteditem==\'Projects\'){\n                                jQuery(\'#search_param1\').prop("disabled", true); \n                                jQuery(\'#search_param2\').val(\'fundings\');\n                                jQuery(\'#search_param3\').val(\'crisauthoritylookup_sort\');\n                                jQuery(\'#search_param4\').prop("disabled", true);\n                                jQuery(\'#search_param5\').prop("disabled", true);\n                                jQuery(\'#search_param6\').val(\'ASC\');\n                            }else if(selecteditem==\'OrgUnits\') {\n                                jQuery(\'#search_param1\').prop("disabled", true); \n                                jQuery(\'#search_param2\').val(\'orgunits\');\n                                jQuery(\'#search_param3\').val(\'crisauthoritylookup_sort\');\n                                jQuery(\'#search_param4\').prop("disabled", true);\n                                jQuery(\'#search_param5\').prop("disabled", true);\n                                jQuery(\'#search_param6\').val(\'ASC\');\n                            }else if(selecteditem==\'Communities\'){\n                                jQuery(\'#search_param1\').prop("disabled", true); \n                                jQuery(\'#search_param2\').val(\'subcommunity\');\n                                jQuery(\'#search_param3\').val(\'dc.title_sort\');\n                                jQuery(\'#search_param4\').prop("disabled", true);\n                                jQuery(\'#search_param5\').prop("disabled", true);\n                                jQuery(\'#search_param6\').val(\'ASC\');\n                            }else if(selecteditem==\'Collections\') {\n                                jQuery(\'#search_param1\').prop("disabled", true); \n                                jQuery(\'#search_param2\').val(\'collection\');\n                                jQuery(\'#search_param3\').val(\'dc.title_sort\');\n                                jQuery(\'#search_param4\').prop("disabled", true);\n                                jQuery(\'#search_param5\').prop("disabled", true);\n                                jQuery(\'#search_param6\').val(\'ASC\');\n                            }\n                            return jQuery(\'#searchcsicprocessor\').submit();\n                        });\n                    });\t\n                    -->\n                </script>\n            </div>\n        </form></div>\n</nav>\n\n            </div>\n\n\n\n    \n\n\n\n\n\n<script>\n    var klaroConfig = {\n        storageMethod: \'cookie\',\n        storageName: \'klaro-anonymous\',\n        cookieExpiresAfterDays: 365,\n        privacyPolicy: \'/cookiespolicy.jsp\',\n        htmlTexts: true,\n        acceptAll: true,\n        hideLearnMore: false,\n        translations: {\n            en: {\n              acceptAll: \'Accept all\',\n              acceptSelected: \'Accept selected\',\n              app: {\n                optOut: {\n                  description: \'This app is loaded by default (but you can opt out)\',\n                  title: \'(opt-out)\'\n                },\n                purpose: \'purpose\',\n                purposes: \'purposes\',\n                required: {\n                  description: \'This application is always required\',\n                  title: \'(always required)\'\n                }\n              },\n              close: \'Close\',\n              decline: \'Decline\',\n              changeDescription: \'There were changes since your last visit, please update your consent.\',\n              consentNotice: {\n                description: \'We collect and process your personal information for the following purposes: <strong>Authentication, Preferences, Acknowledgement and Statistics</strong>. <br/> To learn more, please read our <a target="_blank" href="/cookiespolicy.jsp">privacy policy</a>.\',\n                learnMore: \'Customize\'\n              },\n              consentModal: {\n                description: \'Here you can see and customize the information that we collect about you.\',\n                privacyPolicy: {\n                  name: \'privacy policy\',\n                  text: \'To learn more, please read our <a target="_blank" href="{0}/privacypolicy.jsp">privacy policy</a>.\'\n                },\n                title: \'Information that we collect\'\n              },\n              purposes: {\n                  functional: {\n                      title: \'Functional\'\n                  },\n                  statistical: {\n                      title: \'Statistical\'\n                  },\n                  sharing: {\n                      title: \'Sharing\'\n                  }\n              }\n            }\n        },\n        services: [\n            {\n                name: \'authentication\',\n                purposes: [\'functional\'],\n                required: true,\n                cookies: [],\n                translations: {\n                    // default translation\n                    zz: {\n                        title: \'Authentication\',\n                        description: \'Required for signing you in\'\n                    }\n                }\n            },\n            {\n                name: \'preferences\',\n                purposes: [\'functional\'],\n                required: true,\n                cookies: [],\n                translations: {\n                    // default translation\n                    zz: {\n                        title: \'Preferences\',\n                        description: \'Required for saving your preferences\'\n                    }\n                }\n            },\n            {\n                name: \'acknowledgement\',\n                purposes: [\'functional\'],\n                required: true,\n                cookies: [\n                  [/^klaro-.+$/],\n                ],\n                translations: {\n                    // default translation\n                    zz: {\n                        title: \'Acknowledgement\',\n                        description: \'Required for saving your acknowledgements and consents\'\n                    }\n                }\n            },\n            \n            {\n                name: \'google-analytics\',\n                purposes: [\'statistical\'],\n                required: false,\n                cookies: [\n                    [/^_ga.?$/],\n                    [/^_gid$/]\n                ],\n                onlyOnce: true,\n                translations: {\n                    // default translation\n                    zz: {\n                        title: \'Google Analytics\',\n                        description: \'Allows us to track statistical data\'\n                    }\n                }\n            },\n            \n            \n            {\n                name: \'add-this\',\n                purposes: [\'sharing\'],\n                required: false,\n                cookies: [/^.*$/, \'/\', \'.addthis.com\'],\n                onlyOnce: true,\n                translations: {\n                    // default translation\n                    zz: {\n                        title: \'Add This\',\n                        description: \'Allows to enable AddThis tool to share contents via social\'\n                    }\n                }\n            },\n            \n        ]\n    };\n</script>\n<script defer data-config="klaroConfig" type="application/javascript" src="/static/js/klaro/klaro.js"></script>\n\n\n</header>\n\n<main id="content" role="main">\n    \n\n\n\n\n    <div class="container">\n        \n\n\n\n  \n\n<ol class="breadcrumb btn-primary">\n\n  <li><a href="/">DIGITAL.CSIC</a></li>\n\n</ol>\n\n    </div>                \n\n\n\n        \n<div class="container">\n\t\t\n\n\n\n\n\n\n\t\n\n\n\n\n\n\n\n\n\n    \n    <h1>Error interno del sistema </h1>\n    \n    <p>El sistema ha experimentado un error interno. Por favor, vuelva a intentarlo de nuevo, y si el problema persiste, por favor, cont\xc3\xa1ctese con nosotros para poder arreglarlo. </p>\n    \n\n    \n\n  \n  \n  \n\n\n\n<center>\n  <p><a href="/feedback">DIGITAL.CSIC Contactar con el administrador: </a></p>\n</center>\n\n\n    <p align="center">\n        \n        <a href="/">Ir a la p\xc3\xa1gina de inicio de DSpace </a>\n    </p>\n        <!--\n    No stack trace available<br/>\n\n      -->\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n            \n\n</div>\n<br/>\n</main>\n         \n\t\t <footer class="navbar navbar-inverse navbar-bottom">\n                 \n             <div id="designedby" class="container text-muted">\n            <table class = "Tablaw">\n                <tr>\n                    <td>\n                        &nbsp;&nbsp; \n                        <a href="https://www.ciencia.gob.es/" target="_blank"><img src="/imagenes/logo_ministerio.png" alt="Logo Ministerio"/></a>\n                        <a href="http://www.csic.es/" target="_blank"><img src="/imagenes/logo_CSIC.gif" alt="Logo CSIC"/></a>\n                        <a href="http://bibliotecas.csic.es/" target="_blank"><img src="/imagenes/logo_red_50.jpg" alt="RED Bibliotecas CSIC"/></a>\n                    </td>\n                    <td align="right">\n                        <p>\n                            <a href="/dspace-oai/request">OAI</a> |\n                            <a href="/dc/accesibilidad.jsp">???jsp.home.footer.accesibilidad???</a> |\n                            <a href="/dc/mapa-web.jsp">???jsp.home.footer.mapaWeb???</a> |\n                            <a href="http://sede.csic.gob.es/quejas-y-sugerencias">???jsp.home.footer.quejas???</a>\n                            </br>\n                            <a href="http://www.dspace.org/" target="_blank">DSpace</a> |              \t \tExtension maintained and optimized by \n\n                            <a href="https://www.4science.it/en/" target="_blank">\n\n            \t \t\t<img src="/image/logo-4science-small.png"\n                                    alt="Logo 4SCIENCE" height="32px"/></a>                        \n                        </p>\n                        <p><a href="/htmlmap"></a></p>                 \n                    </td>            \n                </tr>\n            </table>\n            </div>\n        </footer>   \n\t\t\n\t\t\t<script type="text/plain" data-type="text/javascript"\n\t\t\t\tdata-src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-618e6d7588640373"\n\t\t\t\tdata-name="add-this"></script>\n\t\t\n    </body>\n</html>\n\n'
self = <climada_petals.hazard.drought.Drought object at 0x7f5e3489c050>

    def setup(self):
        """Set up the hazard drought"""
        try:
    
            if not self.file_path.is_file():
>               download_file(SPEI_FILE_URL, download_dir=SPEI_FILE_DIR)

climada_petals/hazard/drought.py:134: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

url = 'https://digital.csic.es/bitstream/10261/153475/8/spei06.nc'
download_dir = PosixPath('/home/runner/climada/data'), overwrite = True

    def download_file(url, download_dir=None, overwrite=True):
        """Download file from url to given target folder and provide full path of the downloaded file.
    
        Parameters
        ----------
        url : str
            url containing data to download
        download_dir : Path or str, optional
            the parent directory of the eventually downloaded file
            default: local_data.save_dir as defined in climada.conf
        overwrite : bool, optional
            whether or not an already existing file at the target location should be overwritten,
            by default True
    
        Returns
        -------
        str
            the full path to the eventually downloaded file
        """
        file_name = url.split("/")[-1]
        if file_name.strip() == "":
            raise ValueError(f"cannot download {url} as a file")
        download_path = (
            CONFIG.local_data.save_dir.dir() if download_dir is None else Path(download_dir)
        )
        file_path = download_path.absolute().joinpath(file_name)
        if file_path.exists():
            if not file_path.is_file() or not overwrite:
                raise FileExistsError(f"cannot download to {file_path}")
    
        try:
            req_file = requests.get(url, stream=True)
        except IOError as ioe:
            raise type(ioe)("Check URL and internet connection: " + str(ioe)) from ioe
        if req_file.status_code < 200 or req_file.status_code > 299:
>           raise ValueError(
                f"Error loading page {url}\n"
                f" Status: {req_file.status_code}\n"
                f" Content: {req_file.content}"
            )
E           ValueError: Error loading page https://digital.csic.es/bitstream/10261/153475/8/spei06.nc
E            Status: 500
E            Content: b'\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n<!DOCTYPE html>\n<html>\n    <head>\n        <title>Error interno del sistema  | DIGITAL.CSIC</title>\n        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />\n        <meta http-equiv="X-UA-Compatible" content="IE=edge"/>\n        <meta name="Generator" content="DSpace CRIS-5.10.0-SNAPSHOT" />\n        <meta name="viewport" content="width=device-width, initial-scale=1.0">\n\t\t\n\t\t\t<meta name="language" content="Spanish"/>\n\t\t        \t\t\n        <link rel="resourcesync sitemap" href="https://digital.csic.es/rs/resourcesync.xml" type="application/xml"/>\n        <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>\n\t    <link rel="stylesheet" href="/static/css/jquery-ui/redmond/jquery-ui-1.12.1.min.css" type="text/css" />\n\t    <link href="/css/researcher.css" type="text/css" rel="stylesheet" />\n       <link href="/css/jdyna.css" type="text/css" rel="stylesheet" />\n\t    <link rel="stylesheet" href="/static/css/bootstrap/bootstrap.min.css" type="text/css" />\n\t    <link rel="stylesheet" href="/static/css/bootstrap/bootstrap-theme.min.css" type="text/css" />\n\t    <link href="/static/css/font-awesome/css/font-awesome.min.css" rel="stylesheet">\n\t\t<link href="/static/css/jstree/themes/default/style.min.css" rel="stylesheet"/>\n\t    <link rel="stylesheet" href="/static/css/bootstrap/dspace-theme.css" type="text/css" />\n\t    <link rel="stylesheet" href="/css/orcid.css" type="text/css" />\n\t    <link rel="stylesheet" type="text/css" href="/static/css/dataTables.bootstrap.min.css"/>\n\t\t<link rel="stylesheet" type="text/css" href="/static/css/buttons.bootstrap.min.css"/>\n\t\t<link rel="stylesheet" type="text/css" href="/static/css/responsive.bootstrap.min.css"/>\n\t\t<link rel="stylesheet" href="/static/css/bootstrap/dspace-theme.css" type="text/css" />\n\t\t<link rel="stylesheet" type="text/css" href="/css/bootstrap-datetimepicker.min.css" />\n\t\t\t<link rel="stylesheet" type="text/css" href="/static/css/select.dataTables.min.css" />\n        <link rel="stylesheet" href="/css/digitalCSIC.css" type="text/css" />\n\n        <link rel="search" type="application/opensearchdescription+xml" href="/open-search/description.xml" title="DSpace"/>\n\n        \n   \t<script type=\'text/javascript\' src="/static/js/jquery/jquery-3.6.0.min.js"></script>\n\t<script type=\'text/javascript\' src=\'/static/js/jquery/jquery-ui-1.12.1.min.js\'></script>\n\t<script type="text/javascript" src="/js/moment-2.24.0.js"></script>\n\t<script type=\'text/javascript\' src=\'/static/js/bootstrap/bootstrap.min.js\'></script>\n\t<script type=\'text/javascript\' src=\'/static/js/holder.js\'></script>\n\t<script type="text/javascript" src="/utils.js"></script>\n\t<script type=\'text/javascript\' src=\'/static/js/custom-functions.js\'></script>\n    <script type="text/javascript" src="/static/js/choice-support.js"> </script>\n    <script type="text/javascript" src="/js/jdyna/jdyna.js"></script>    \n    <script type="text/javascript" src="/js/jquery.dataTables.min.js"></script>\n\t<script type="text/javascript" src="/js/dataTables.bootstrap.min.js"></script>\n\t<script type="text/javascript" src="/js/dataTables.buttons.min.js"></script>\n\t<script type="text/javascript" src="/js/buttons.bootstrap.min.js"></script>\n\t<script type="text/javascript" src="/js/buttons.html5.min.js"></script>\n\t<script type="text/javascript" src="/js/dataTables.responsive.min.js"></script>\t\n\t<script type="text/javascript" src="/js/bootstrap-datetimepicker.min.js"></script>\n\t<script type="text/javascript" src="/static/js/dataTables.select.min.js"></script>\n\t<script type="text/javascript" src="/js/jszip.min.js"></script>\n\t<script type=\'text/javascript\'>\n\t\tvar j = jQuery.noConflict();\n\t\tvar $ = jQuery.noConflict();\n\t\tvar JQ = j;\n\t\tdspaceContextPath = "";\n\t\tjQuery(document).ready(function ($) {\n\t\t\t  $(\'span[data-toggle="tooltip"]\').tooltip();\n\t\t\t  $(\'i[data-toggle="tooltip"]\').tooltip();\n\t\t});\n\t</script>\n\t\n    \n    \n        <script type="text/plain" data-type="text/javascript" data-name="google-analytics">\n            var _gaq = _gaq || [];\n            _gaq.push([\'_setAccount\', \'UA-21397014-39\']);\n            _gaq.push([\'_trackPageview\']);\n\n            (function() {\n                var ga = document.createElement(\'script\'); ga.type = \'text/javascript\'; ga.async = true;\n                ga.src = (\'https:\' == document.location.protocol ? \'https://ssl\' : \'http://www\') + \'.google-analytics.com/ga.js\';\n                var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(ga, s);\n            })();\n        </script>\n    \n    \n<!-- Matomo -->\n    <script>\n      var _paq = window._paq = window._paq || [];\n      /* tracker methods like "setCustomDimension" should be called before "trackPageView" */\n      _paq.push([\'trackPageView\']);\n      _paq.push([\'enableLinkTracking\']);\n      (function() {\n        var u="https://stats.sgai.csic.es/";\n        _paq.push([\'setTrackerUrl\', u+\'matomo.php\']);\n        _paq.push([\'setSiteId\', \'121\']);\n        var d=document, g=d.createElement(\'script\'), s=d.getElementsByTagName(\'scrip… that we collect about you.\',\n                privacyPolicy: {\n                  name: \'privacy policy\',\n                  text: \'To learn more, please read our <a target="_blank" href="{0}/privacypolicy.jsp">privacy policy</a>.\'\n                },\n                title: \'Information that we collect\'\n              },\n              purposes: {\n                  functional: {\n                      title: \'Functional\'\n                  },\n                  statistical: {\n                      title: \'Statistical\'\n                  },\n                  sharing: {\n                      title: \'Sharing\'\n                  }\n              }\n            }\n        },\n        services: [\n            {\n                name: \'authentication\',\n                purposes: [\'functional\'],\n                required: true,\n                cookies: [],\n                translations: {\n                    // default translation\n                    zz: {\n                        title: \'Authentication\',\n                        description: \'Required for signing you in\'\n                    }\n                }\n            },\n            {\n                name: \'preferences\',\n                purposes: [\'functional\'],\n                required: true,\n                cookies: [],\n                translations: {\n                    // default translation\n                    zz: {\n                        title: \'Preferences\',\n                        description: \'Required for saving your preferences\'\n                    }\n                }\n            },\n            {\n                name: \'acknowledgement\',\n                purposes: [\'functional\'],\n                required: true,\n                cookies: [\n                  [/^klaro-.+$/],\n                ],\n                translations: {\n                    // default translation\n                    zz: {\n                        title: \'Acknowledgement\',\n                        description: \'Required for saving your acknowledgements and consents\'\n                    }\n                }\n            },\n            \n            {\n                name: \'google-analytics\',\n                purposes: [\'statistical\'],\n                required: false,\n                cookies: [\n                    [/^_ga.?$/],\n                    [/^_gid$/]\n                ],\n                onlyOnce: true,\n                translations: {\n                    // default translation\n                    zz: {\n                        title: \'Google Analytics\',\n                        description: \'Allows us to track statistical data\'\n                    }\n                }\n            },\n            \n            \n            {\n                name: \'add-this\',\n                purposes: [\'sharing\'],\n                required: false,\n                cookies: [/^.*$/, \'/\', \'.addthis.com\'],\n                onlyOnce: true,\n                translations: {\n                    // default translation\n                    zz: {\n                        title: \'Add This\',\n                        description: \'Allows to enable AddThis tool to share contents via social\'\n                    }\n                }\n            },\n            \n        ]\n    };\n</script>\n<script defer data-config="klaroConfig" type="application/javascript" src="/static/js/klaro/klaro.js"></script>\n\n\n</header>\n\n<main id="content" role="main">\n    \n\n\n\n\n    <div class="container">\n        \n\n\n\n  \n\n<ol class="breadcrumb btn-primary">\n\n  <li><a href="/">DIGITAL.CSIC</a></li>\n\n</ol>\n\n    </div>                \n\n\n\n        \n<div class="container">\n\t\t\n\n\n\n\n\n\n\t\n\n\n\n\n\n\n\n\n\n    \n    <h1>Error interno del sistema </h1>\n    \n    <p>El sistema ha experimentado un error interno. Por favor, vuelva a intentarlo de nuevo, y si el problema persiste, por favor, cont\xc3\xa1ctese con nosotros para poder arreglarlo. </p>\n    \n\n    \n\n  \n  \n  \n\n\n\n<center>\n  <p><a href="/feedback">DIGITAL.CSIC Contactar con el administrador: </a></p>\n</center>\n\n\n    <p align="center">\n        \n        <a href="/">Ir a la p\xc3\xa1gina de inicio de DSpace </a>\n    </p>\n        <!--\n    No stack trace available<br/>\n\n      -->\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n            \n\n</div>\n<br/>\n</main>\n         \n\t\t <footer class="navbar navbar-inverse navbar-bottom">\n                 \n             <div id="designedby" class="container text-muted">\n            <table class = "Tablaw">\n                <tr>\n                    <td>\n                        &nbsp;&nbsp; \n                        <a href="https://www.ciencia.gob.es/" target="_blank"><img src="/imagenes/logo_ministerio.png" alt="Logo Ministerio"/></a>\n                        <a href="http://www.csic.es/" target="_blank"><img src="/imagenes/logo_CSIC.gif" alt="Logo CSIC"/></a>\n                        <a href="http://bibliotecas.csic.es/" target="_blank"><img src="/imagenes/logo_red_50.jpg" alt="RED Bibliotecas CSIC"/></a>\n                    </td>\n                    <td align="right">\n                        <p>\n                            <a href="/dspace-oai/request">OAI</a> |\n                            <a href="/dc/accesibilidad.jsp">???jsp.home.footer.accesibilidad???</a> |\n                            <a href="/dc/mapa-web.jsp">???jsp.home.footer.mapaWeb???</a> |\n                            <a href="http://sede.csic.gob.es/quejas-y-sugerencias">???jsp.home.footer.quejas???</a>\n                            </br>\n                            <a href="http://www.dspace.org/" target="_blank">DSpace</a> |              \t \tExtension maintained and optimized by \n\n                            <a href="https://www.4science.it/en/" target="_blank">\n\n            \t \t\t<img src="/image/logo-4science-small.png"\n                                    alt="Logo 4SCIENCE" height="32px"/></a>                        \n                        </p>\n                        <p><a href="/htmlmap"></a></p>                 \n                    </td>            \n                </tr>\n            </table>\n            </div>\n        </footer>   \n\t\t\n\t\t\t<script type="text/plain" data-type="text/javascript"\n\t\t\t\tdata-src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-618e6d7588640373"\n\t\t\t\tdata-name="add-this"></script>\n\t\t\n    </body>\n</html>\n\n'

../../../../micromamba/envs/climada_env_3.11/lib/python3.11/site-packages/climada/util/files_handler.py:97: ValueError

The above exception was the direct cause of the following exception:

self = <climada_petals.hazard.test.test_drought.TestReader testMethod=test>

    def test(self):
    
        drought = Drought()
        drought.set_area(44.5, 5, 50, 12)
    
>       hazard_set = drought.setup()

climada_petals/hazard/test/test_drought.py:34: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <climada_petals.hazard.drought.Drought object at 0x7f5e3489c050>

    def setup(self):
        """Set up the hazard drought"""
        try:
    
            if not self.file_path.is_file():
                download_file(SPEI_FILE_URL, download_dir=SPEI_FILE_DIR)
    
            LOGGER.debug('Importing %s', str(SPEI_FILE_NAME))
            dataset = xr.open_dataset(self.file_path)
    
        except Exception as err:
>           raise type(err)('Importing the SPEI data file failed: ' + str(err)) from err
E           ValueError: Importing the SPEI data file failed: Error loading page https://digital.csic.es/bitstream/10261/153475/8/spei06.nc
E            Status: 500
E            Content: b'\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n<!DOCTYPE html>\n<html>\n    <head>\n        <title>Error interno del sistema  | DIGITAL.CSIC</title>\n        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />\n        <meta http-equiv="X-UA-Compatible" content="IE=edge"/>\n        <meta name="Generator" content="DSpace CRIS-5.10.0-SNAPSHOT" />\n        <meta name="viewport" content="width=device-width, initial-scale=1.0">\n\t\t\n\t\t\t<meta name="language" content="Spanish"/>\n\t\t        \t\t\n        <link rel="resourcesync sitemap" href="https://digital.csic.es/rs/resourcesync.xml" type="application/xml"/>\n        <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>\n\t    <link rel="stylesheet" href="/static/css/jquery-ui/redmond/jquery-ui-1.12.1.min.css" type="text/css" />\n\t    <link href="/css/researcher.css" type="text/css" rel="stylesheet" />\n       <link href="/css/jdyna.css" type="text/css" rel="stylesheet" />\n\t    <link rel="stylesheet" href="/static/css/bootstrap/bootstrap.min.css" type="text/css" />\n\t    <link rel="stylesheet" href="/static/css/bootstrap/bootstrap-theme.min.css" type="text/css" />\n\t    <link href="/static/css/font-awesome/css/font-awesome.min.css" rel="stylesheet">\n\t\t<link href="/static/css/jstree/themes/default/style.min.css" rel="stylesheet"/>\n\t    <link rel="stylesheet" href="/static/css/bootstrap/dspace-theme.css" type="text/css" />\n\t    <link rel="stylesheet" href="/css/orcid.css" type="text/css" />\n\t    <link rel="stylesheet" type="text/css" href="/static/css/dataTables.bootstrap.min.css"/>\n\t\t<link rel="stylesheet" type="text/css" href="/static/css/buttons.bootstrap.min.css"/>\n\t\t<link rel="stylesheet" type="text/css" href="/static/css/responsive.bootstrap.min.css"/>\n\t\t<link rel="stylesheet" href="/static/css/bootstrap/dspace-theme.css" type="text/css" />\n\t\t<link rel="stylesheet" type="text/css" href="/css/bootstrap-datetimepicker.min.css" />\n\t\t\t<link rel="stylesheet" type="text/css" href="/static/css/select.dataTables.min.css" />\n        <link rel="stylesheet" href="/css/digitalCSIC.css" type="text/css" />\n\n        <link rel="search" type="application/opensearchdescription+xml" href="/open-search/description.xml" title="DSpace"/>\n\n        \n   \t<script type=\'text/javascript\' src="/static/js/jquery/jquery-3.6.0.min.js"></script>\n\t<script type=\'text/javascript\' src=\'/static/js/jquery/jquery-ui-1.12.1.min.js\'></script>\n\t<script type="text/javascript" src="/js/moment-2.24.0.js"></script>\n\t<script type=\'text/javascript\' src=\'/static/js/bootstrap/bootstrap.min.js\'></script>\n\t<script type=\'text/javascript\' src=\'/static/js/holder.js\'></script>\n\t<script type="text/javascript" src="/utils.js"></script>\n\t<script type=\'text/javascript\' src=\'/static/js/custom-functions.js\'></script>\n    <script type="text/javascript" src="/static/js/choice-support.js"> </script>\n    <script type="text/javascript" src="/js/jdyna/jdyna.js"></script>    \n    <script type="text/javascript" src="/js/jquery.dataTables.min.js"></script>\n\t<script type="text/javascript" src="/js/dataTables.bootstrap.min.js"></script>\n\t<script type="text/javascript" src="/js/dataTables.buttons.min.js"></script>\n\t<script type="text/javascript" src="/js/buttons.bootstrap.min.js"></script>\n\t<script type="text/javascript" src="/js/buttons.html5.min.js"></script>\n\t<script type="text/javascript" src="/js/dataTables.responsive.min.js"></script>\t\n\t<script type="text/javascript" src="/js/bootstrap-datetimepicker.min.js"></script>\n\t<script type="text/javascript" src="/static/js/dataTables.select.min.js"></script>\n\t<script type="text/javascript" src="/js/jszip.min.js"></script>\n\t<script type=\'text/javascript\'>\n\t\tvar j = jQuery.noConflict();\n\t\tvar $ = jQuery.noConflict();\n\t\tvar JQ = j;\n\t\tdspaceContextPath = "";\n\t\tjQuery(document).ready(function ($) {\n\t\t\t  $(\'span[data-toggle="tooltip"]\').tooltip();\n\t\t\t  $(\'i[data-toggle="tooltip"]\').tooltip();\n\t\t});\n\t</script>\n\t\n    \n    \n        <script type="text/plain" data-type="text/javascript" data-name="google-analytics">\n            var _gaq = _gaq || [];\n            _gaq.push([\'_setAccount\', \'UA-21397014-39\']);\n            _gaq.push([\'_trackPageview\']);\n\n            (function() {\n                var ga = document.createElement(\'script\'); ga.type = \'text/javascript\'; ga.async = true;\n                ga.src = (\'https:\' == document.location.protocol ? \'https://ssl\' : \'http://www\') + \'.google-analytics.com/ga.js\';\n                var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(ga, s);\n            })();\n        </script>\n    \n    \n<!-- Matomo -->\n    <script>\n      var _paq = window._paq = window._paq || [];\n      /* tracker methods like "setCustomDimension" should be called before "trackPageView" */\n      _paq.push([\'trackPageView\']);\n      _paq.push([\'enableLinkTracking\']);\n      (function() {\n        var u="https://stats.sgai.csic.es/";\n        _paq.push([\'setTrackerUrl\', u+\'matomo.php\']);\n        _paq.push([\'setSiteId\', \'121\']);\n        var d=document, g=d.createElement(\'script\'), s=d.getElementsByTagName(\'script\')[0];\n        g.async=true; g.src=u+\'matomo.js\'; s.parentNode.insertBefore(g,s);\n      })();\n    </script>\n<!-- End Matomo Code -->\n\n    <!-- CORE Discovery repository plugin -->\n    <script type=\'text/javascript\' async src=\'https://discovery.core.ac.uk/plugin.js?id=yvWZxYEbXCohzPFdG1KQ9wSUHVtLjiuO\'></script>    \n    <!-- -->\n\n\n    \n    <script type=\'text/javascript\' src=\'https://platform-api.sharethis.com/js/sharethis.js#property=656eff357ff7d60012c38287&product=sticky-share-buttons\' async=\'async\'></script> \n\n\n\n    \n\t<!-- HTML5 shiv and Respond.js IE8 support of HTML5 elements and media queries -->\n\t<!--[if lt IE 9]>  \n\t  <script src="/static/js/html5shiv.js"></script>\n\t  <script src="/static/js/selectivizr-min.js"></script>\n\t  <script src="/static/js/respond.min.js"></script>\n\t  <link rel="stylesheet" href="/static/css/bootstrap/dspace-theme-IElte9.css" type="text/css" />\n\t<![endif]-->\n    </head>\n\n    \n    \n    <body class="undernavigation" dir="ltr">\n<a class="sr-only" href="#content">Skip navigation</a>\n<header class="navbar navbar-inverse navbar-fixed-top">    \n    \n            <div class="container">\n                \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n<script type=\'text/javascript\'>\n    function hover(element) {\n        element.className = "dropdown open";\n    }\n    function out(element) {\n        element.className = "dropdown";\n    }\n</script>\n\n<div class="navbar-header">\n    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">\n        <span class="icon-bar"></span>\n        <span class="icon-bar"></span>\n        <span class="icon-bar"></span>\n    </button>\n    <a class="navbar-brand" href="/"><img  src="/imagenes/logo_DC_peque.png" alt="Logo peque\xc3\xb1o DigitalCISC"/></a>\n</div>\n\n<nav class="collapse navbar-collapse bs-navbar-collapse" role="navigation">\n    <ul class="nav navbar-nav">\n\n        <li class="dropdown" onmouseover="hover(this);" onmouseout="out(this);">\n            <a href="#" class="dropdown-toggle" data-toggle="dropdown">Producci\xc3\xb3n CSIC  <b class="caret"></b></a>\n            <ul class="dropdown-menu">\n                <li><a href="/community-list">\xc3\x81reas e Institutos</a></li>\n                <li class="divider"></li>\n                <li class="dropdown-header">???jsp.layout.navbar-default.browse-by???</li>\n                \n                \n                <li><a href="/browse?type=dateissued">Issue Date</a></li>\n                    \n                <li><a href="/browse?type=author">Author</a></li>\n                    \n                <li><a href="/browse?type=title">Title</a></li>\n                    \n                <li><a href="/browse?type=subject">Subject</a></li>\n                    \n                <li><a href="/browse?type=rpname">Name</a></li>\n                    \n                <li><a href="/browse?type=pjtitle">Title</a></li>\n                    \n                <li><a href="/browse?type=ouname">Name</a></li>\n                    \n                <li><a href="/browse?type=agenciaFinanciadora">???browse.menu.agenciaFinanciadora???</a></li>\n                    \n                <li><a href="/browse?type=fechaEnvio">???browse.menu.fechaEnvio???</a></li>\n                    \n\n                \n\n            </ul>\n        </li>\n\n        <li><a href="/dc/pasarela.jsp">Pasarela</a></li>\n        <li><a href="/dc/estadisticas/estadisticasGenerales.jsp">???jsp.home.estadisticas???</a></li>\n        <li><a href="/dc/contacto.jsp">???jsp.home.contacto???</a></li>\n\n    </ul>\n\n\n\n    <div class="nav navbar-nav navbar-right">\n        <ul class="nav navbar-nav navbar-right">\n            <li class="dropdown" onmouseover="hover(this);" onmouseout="out(this);">\n                \n                <a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-user"></span> Servicios  <b class="caret"></b></a>\n                                 \n                <ul class="dropdown-menu">\n               <li><a href="/mydspace">Mi DIGITAL.CSIC </a></li>\n               <li><a href="/subscribe">Suscripciones </a></li>\n               <li><a href="/profile">Editar perfil </a></li>\n\n                    \n                </ul>\n            </li>\n        </ul>\n\n        \n        <form id="searchcsicprocessor" name="searchcsicprocessor" method="get" action="/simple-search" class="navbar-form navbar-right" scope="search">\t\t\n\n            \n            \n            \n            \n            \n            \n            \n\n                <div class="input-group">    \n                <input type="text" class="form-control" placeholder="Buscar en&nbsp;DSpace " name="query" id="tequery" size="20"/>\n                <div class="input-group-btn search-panel">\n                    <select id="selectGlobalProcessor" class="form-control">\n                        <option value="All">???jsp.search.filter.home.searchcsic</option>\n                        <option value="Items">???jsp.search.filter.home.searchcsic</option>\n                        <option value="RpAuthors">???jsp.search.filter.home.searchcsic</option>\n                        <option value="Projects">???jsp.search.filter.home.searchcsic</option>\n                        <option value="OrgUnits">???jsp.search.filter.home.searchcsic</option>\n                        <option value="Communities">Institutes</option>\n                        <option value="Collections">???jsp.search.filter.home.searchcsic</option>\n                    </select>\n                </div>\n                <span class="input-group-btn">\n                    <button id ="navbarGlobalSearch" class="btn btn-primary" type="submit"><span class="fa fa-search"></span></button>\n                </span>\n                <input type="hidden" name="filterquery" value="" id="search_param1">\n                <input type="hidden" name="location" value="" id="search_param2">\n                <input type="hidden" name="sort_by" value="" id="search_param3">\n                <input type="hidden" name="filtername" value="resourcetype" id="search_param4">\n                <input type="hidden" name="filtertype" value="equals" id="search_param5">\n                <input type="hidden" name="order" value="" id="search_param6">\n                \n                \n                <script type="text/javascript">\n                    <!--\n                    jQuery(document).ready(function(){\n\n                        jQuery("#navbarGlobalSearch").click(function(){\n                            var selecteditem= jQuery(\'#selectGlobalProcessor\').find("option:selected").val();  \n                            if(selecteditem==\'All\') {\n                                jQuery(\'#search_param1\').prop("disabled", true);\n                                jQuery(\'#search_param2\').val(\'global\');\n                                jQuery(\'#search_param3\').prop("disabled", true); \n                                jQuery(\'#search_param4\').prop("disabled", true);\n                                jQuery(\'#search_param5\').prop("disabled", true);\n                            }else if(selecteditem==\'Items\'){\n                                jQuery(\'#search_param1\').prop("disabled", true); \n                                jQuery(\'#search_param2\').val(\'publications\');\n                                jQuery(\'#search_param3\').val(\'bi_sort_1_sort\');\n                                jQuery(\'#search_param4\').prop("disabled", true);\n                                jQuery(\'#search_param5\').prop("disabled", true);\n                                jQuery(\'#search_param6\').val(\'ASC\');\n                            }else if(selecteditem==\'RpAuthors\'){\n                                jQuery(\'#search_param1\').prop("disabled", true); \n                                jQuery(\'#search_param2\').val(\'researcherprofiles\');\n                                jQuery(\'#search_param3\').val(\'bi_sort_4_sort\');\n                                jQuery(\'#search_param4\').prop("disabled", true);\n                                jQuery(\'#search_param5\').prop("disabled", true);\n                                jQuery(\'#search_param6\').val(\'ASC\');\n                            }else if(selecteditem==\'Projects\'){\n                                jQuery(\'#search_param1\').prop("disabled", true); \n                                jQuery(\'#search_param2\').val(\'fundings\');\n                                jQuery(\'#search_param3\').val(\'crisauthoritylookup_sort\');\n                                jQuery(\'#search_param4\').prop("disabled", true);\n                                jQuery(\'#search_param5\').prop("disabled", true);\n                                jQuery(\'#search_param6\').val(\'ASC\');\n                            }else if(selecteditem==\'OrgUnits\') {\n                                jQuery(\'#search_param1\').prop("disabled", true); \n                                jQuery(\'#search_param2\').val(\'orgunits\');\n                                jQuery(\'#search_param3\').val(\'crisauthoritylookup_sort\');\n                                jQuery(\'#search_param4\').prop("disabled", true);\n                                jQuery(\'#search_param5\').prop("disabled", true);\n                                jQuery(\'#search_param6\').val(\'ASC\');\n                            }else if(selecteditem==\'Communities\'){\n                                jQuery(\'#search_param1\').prop("disabled", true); \n                                jQuery(\'#search_param2\').val(\'subcommunity\');\n                                jQuery(\'#search_param3\').val(\'dc.title_sort\');\n                                jQuery(\'#search_param4\').prop("disabled", true);\n                                jQuery(\'#search_param5\').prop("disabled", true);\n                                jQuery(\'#search_param6\').val(\'ASC\');\n                            }else if(selecteditem==\'Collections\') {\n                                jQuery(\'#search_param1\').prop("disabled", true); \n                                jQuery(\'#search_param2\').val(\'collection\');\n                                jQuery(\'#search_param3\').val(\'dc.title_sort\');\n                                jQuery(\'#search_param4\').prop("disabled", true);\n                                jQuery(\'#search_param5\').prop("disabled", true);\n                                jQuery(\'#search_param6\').val(\'ASC\');\n                            }\n                            return jQuery(\'#searchcsicprocessor\').submit();\n                        });\n                    });\t\n                    -->\n                </script>\n            </div>\n        </form></div>\n</nav>\n\n            </div>\n\n\n\n    \n\n\n\n\n\n<script>\n    var klaroConfig = {\n        storageMethod: \'cookie\',\n        storageName: \'klaro-anonymous\',\n        cookieExpiresAfterDays: 365,\n        privacyPolicy: \'/cookiespolicy.jsp\',\n        htmlTexts: true,\n        acceptAll: true,\n        hideLearnMore: false,\n        translations: {\n            en: {\n              acceptAll: \'Accept all\',\n              acceptSelected: \'Accept selected\',\n              app: {\n                optOut: {\n                  description: \'This app is loaded by default (but you can opt out)\',\n                  title: \'(opt-out)\'\n                },\n                purpose: \'purpose\',\n                purposes: \'purposes\',\n                required: {\n                  description: \'This application is always required\',\n                  title: \'(always required)\'\n                }\n              },\n              close: \'Close\',\n              decline: \'Decline\',\n              changeDescription: \'There were changes since your last visit, please update your consent.\',\n              consentNotice: {\n                description: \'We collect and process your personal information for the following purposes: <strong>Authentication, Preferences, Acknowledgement and Statistics</strong>. <br/> To learn more, please read our <a target="_blank" href="/cookiespolicy.jsp">privacy policy</a>.\',\n                learnMore: \'Customize\'\n              },\n              consentModal: {\n                description: \'Here you can see and customize the information that we collect about you.\',\n                privacyPolicy: {\n                  name: \'privacy policy\',\n                  text: \'To learn more, please read our <a target="_blank" href="{0}/privacypolicy.jsp">privacy policy</a>.\'\n                },\n                title: \'Information that we collect\'\n              },\n              purposes: {\n                  functional: {\n                      title: \'Functional\'\n                  },\n                  statistical: {\n                      title: \'Statistical\'\n                  },\n                  sharing: {\n                      title: \'Sharing\'\n                  }\n              }\n            }\n        },\n        services: [\n            {\n                name: \'authentication\',\n                purposes: [\'functional\'],\n                required: true,\n                cookies: [],\n                translations: {\n                    // default translation\n                    zz: {\n                        title: \'Authentication\',\n                        description: \'Required for signing you in\'\n                    }\n                }\n            },\n            {\n                name: \'preferences\',\n                purposes: [\'functional\'],\n                required: true,\n                cookies: [],\n                translations: {\n                    // default translation\n                    zz: {\n                        title: \'Preferences\',\n                        description: \'Required for saving your preferences\'\n                    }\n                }\n            },\n            {\n                name: \'acknowledgement\',\n                purposes: [\'functional\'],\n                required: true,\n                cookies: [\n                  [/^klaro-.+$/],\n                ],\n                translations: {\n                    // default translation\n                    zz: {\n                        title: \'Acknowledgement\',\n                        description: \'Required for saving your acknowledgements and consents\'\n                    }\n                }\n            },\n            \n            {\n                name: \'google-analytics\',\n                purposes: [\'statistical\'],\n                required: false,\n                cookies: [\n                    [/^_ga.?$/],\n                    [/^_gid$/]\n                ],\n                onlyOnce: true,\n                translations: {\n                    // default translation\n                    zz: {\n                        title: \'Google Analytics\',\n                        description: \'Allows us to track statistical data\'\n                    }\n                }\n            },\n            \n            \n            {\n                name: \'add-this\',\n                purposes: [\'sharing\'],\n                required: false,\n                cookies: [/^.*$/, \'/\', \'.addthis.com\'],\n                onlyOnce: true,\n                translations: {\n                    // default translation\n                    zz: {\n                        title: \'Add This\',\n                        description: \'Allows to enable AddThis tool to share contents via social\'\n                    }\n                }\n            },\n            \n        ]\n    };\n</script>\n<script defer data-config="klaroConfig" type="application/javascript" src="/static/js/klaro/klaro.js"></script>\n\n\n</header>\n\n<main id="content" role="main">\n    \n\n\n\n\n    <div class="container">\n        \n\n\n\n  \n\n<ol class="breadcrumb btn-primary">\n\n  <li><a href="/">DIGITAL.CSIC</a></li>\n\n</ol>\n\n    </div>                \n\n\n\n        \n<div class="container">\n\t\t\n\n\n\n\n\n\n\t\n\n\n\n\n\n\n\n\n\n    \n    <h1>Error interno del sistema </h1>\n    \n    <p>El sistema ha experimentado un error interno. Por favor, vuelva a intentarlo de nuevo, y si el problema persiste, por favor, cont\xc3\xa1ctese con nosotros para poder arreglarlo. </p>\n    \n\n    \n\n  \n  \n  \n\n\n\n<center>\n  <p><a href="/feedback">DIGITAL.CSIC Contactar con el administrador: </a></p>\n</center>\n\n\n    <p align="center">\n        \n        <a href="/">Ir a la p\xc3\xa1gina de inicio de DSpace </a>\n    </p>\n        <!--\n    No stack trace available<br/>\n\n      -->\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n            \n\n</div>\n<br/>\n</main>\n         \n\t\t <footer class="navbar navbar-inverse navbar-bottom">\n                 \n             <div id="designedby" class="container text-muted">\n            <table class = "Tablaw">\n                <tr>\n                    <td>\n                        &nbsp;&nbsp; \n                        <a href="https://www.ciencia.gob.es/" target="_blank"><img src="/imagenes/logo_ministerio.png" alt="Logo Ministerio"/></a>\n                        <a href="http://www.csic.es/" target="_blank"><img src="/imagenes/logo_CSIC.gif" alt="Logo CSIC"/></a>\n                        <a href="http://bibliotecas.csic.es/" target="_blank"><img src="/imagenes/logo_red_50.jpg" alt="RED Bibliotecas CSIC"/></a>\n                    </td>\n                    <td align="right">\n                        <p>\n                            <a href="/dspace-oai/request">OAI</a> |\n                            <a href="/dc/accesibilidad.jsp">???jsp.home.footer.accesibilidad???</a> |\n                            <a href="/dc/mapa-web.jsp">???jsp.home.footer.mapaWeb???</a> |\n                            <a href="http://sede.csic.gob.es/quejas-y-sugerencias">???jsp.home.footer.quejas???</a>\n                            </br>\n                            <a href="http://www.dspace.org/" target="_blank">DSpace</a> |              \t \tExtension maintained and optimized by \n\n                            <a href="https://www.4science.it/en/" target="_blank">\n\n            \t \t\t<img src="/image/logo-4science-small.png"\n                                    alt="Logo 4SCIENCE" height="32px"/></a>                        \n                        </p>\n                        <p><a href="/htmlmap"></a></p>                 \n                    </td>            \n                </tr>\n            </table>\n            </div>\n        </footer>   \n\t\t\n\t\t\t<script type="text/plain" data-type="text/javascript"\n\t\t\t\tdata-src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-618e6d7588640373"\n\t\t\t\tdata-name="add-this"></script>\n\t\t\n    </body>\n</html>\n\n'

climada_petals/hazard/drought.py:140: ValueError