Skip to content

Commit

Permalink
v0.1.403
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 632474175
  • Loading branch information
Google Earth Engine Authors authored and bengalin committed May 15, 2024
1 parent 5322d7c commit e9cc342
Show file tree
Hide file tree
Showing 51 changed files with 15,291 additions and 14,036 deletions.
4 changes: 2 additions & 2 deletions demos/wmts/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
import flask
from flask import request
from flask_wtf import csrf
import requests

from google.appengine.api import app_identity
from google.appengine.api import urlfetch
from google.auth import app_engine
from google.cloud import storage
import requests

import ee
import config

Expand Down
1,105 changes: 552 additions & 553 deletions javascript/build/ee_api_js.js

Large diffs are not rendered by default.

13,357 changes: 6,673 additions & 6,684 deletions javascript/build/ee_api_js_debug.js

Large diffs are not rendered by default.

13,403 changes: 6,696 additions & 6,707 deletions javascript/build/ee_api_js_npm.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion javascript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@google/earthengine",
"version": "0.1.402",
"version": "0.1.403",
"description": "JavaScript client for Google Earth Engine API.",
"author": "Google LLC",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion javascript/src/apiclient.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const {trustedResourceUrl} = goog.require('safevalues');
/** @namespace */
const apiclient = {};

const API_CLIENT_VERSION = '0.1.402';
const API_CLIENT_VERSION = '0.1.403';

exports.VERSION = apiVersion.VERSION;
exports.API_CLIENT_VERSION = API_CLIENT_VERSION;
Expand Down
2 changes: 1 addition & 1 deletion python/ee/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""The EE Python library."""

__version__ = '0.1.402'
__version__ = '0.1.403'

# Using lowercase function naming to match the JavaScript names.
# pylint: disable=g-bad-name
Expand Down
2 changes: 1 addition & 1 deletion python/ee/apitestcase.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

from googleapiclient import discovery

import unittest
import ee
from ee import _cloud_api_utils
import unittest


# Cached algorithms list
Expand Down
2 changes: 1 addition & 1 deletion python/ee/tests/_cloud_api_utils_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
from googleapiclient import discovery
import requests

import unittest
from ee import _cloud_api_utils
from ee import ee_exception
import unittest


class CloudApiUtilsTest(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion python/ee/tests/_helpers_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@

import io

import unittest
import ee
from ee import apifunction
from ee import apitestcase
from ee import computedobject
import unittest


class ProfilingTest(apitestcase.ApiTestCase):
Expand Down
2 changes: 1 addition & 1 deletion python/ee/tests/_utils_test.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env python3
"""Tests for _utils decorators."""

from ee import _utils
import unittest
from ee import _utils


class EeElementStub:
Expand Down
2 changes: 1 addition & 1 deletion python/ee/tests/apifunction_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

import types

import unittest
import ee
from ee import apitestcase
import unittest


class ApiFunctionTest(apitestcase.ApiTestCase):
Expand Down
2 changes: 1 addition & 1 deletion python/ee/tests/batch_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
import unittest
from unittest import mock

import unittest
import ee
from ee import apitestcase
from ee import batch
from ee import data
import unittest

RUNNING_OPERATION = {
'metadata': {
Expand Down
2 changes: 1 addition & 1 deletion python/ee/tests/blob_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

import json

import unittest
import ee
from ee import apitestcase
import unittest


class BlobTest(apitestcase.ApiTestCase):
Expand Down
2 changes: 1 addition & 1 deletion python/ee/tests/classifier_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

import json

import unittest
import ee
from ee import apitestcase
import unittest


_CLASSIFIER_JSON = {
Expand Down
2 changes: 1 addition & 1 deletion python/ee/tests/clusterer_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

import json

import unittest
import ee
from ee import apitestcase
import unittest

_WEKA_COBWEB_SERIALIZED = {
'result': '0',
Expand Down
2 changes: 1 addition & 1 deletion python/ee/tests/collection_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
import datetime
import re

import unittest
import ee
from ee import apitestcase
import unittest


class CollectionTestCase(apitestcase.ApiTestCase):
Expand Down
2 changes: 1 addition & 1 deletion python/ee/tests/computedobject_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
import json
from unittest import mock

import unittest
import ee
from ee import apitestcase
from ee import computedobject
import unittest


class ComputedObjectTest(apitestcase.ApiTestCase):
Expand Down
2 changes: 1 addition & 1 deletion python/ee/tests/confusionmatrix_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
import json
from typing import Any, Dict

import unittest
import ee
from ee import apitestcase
import unittest


MATRIX = {
Expand Down
2 changes: 1 addition & 1 deletion python/ee/tests/data_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
import httplib2
import requests

import unittest
import ee
from ee import _cloud_api_utils
from ee import apitestcase
from ee import featurecollection
from ee import image
import unittest


class DataTest(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion python/ee/tests/daterange_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
import json
from typing import Any, Dict

import unittest
import ee
from ee import apitestcase
import unittest

START = 'start'
END = 'end'
Expand Down
2 changes: 1 addition & 1 deletion python/ee/tests/deprecation_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@

from absl.testing import parameterized

import unittest
from ee import apitestcase
from ee import deprecation
from ee import ee_string
from ee import image
from ee import imagecollection
import unittest


_STAC_JSON = {
Expand Down
2 changes: 1 addition & 1 deletion python/ee/tests/deserializer_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

import json

import unittest
import ee
from ee import apitestcase
from ee import deserializer
from ee import serializer
import unittest


class DeserializerTest(apitestcase.ApiTestCase):
Expand Down
2 changes: 1 addition & 1 deletion python/ee/tests/dictionary_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
from typing import Any, Dict
import unittest

import unittest
import ee
from ee import apitestcase
import unittest


def make_expression_graph(
Expand Down
2 changes: 1 addition & 1 deletion python/ee/tests/ee_array_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
import json
from typing import Any, Dict

import unittest
import ee
from ee import apitestcase
import unittest

ARRAY_ONE = {
'functionInvocationValue': {
Expand Down
2 changes: 1 addition & 1 deletion python/ee/tests/ee_date_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
import json
from typing import Any, Dict

import unittest
import ee
from ee import apitestcase
import unittest

DAY = 'day'
WEEK = 'week'
Expand Down
18 changes: 14 additions & 4 deletions python/ee/tests/ee_list_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
import json
from typing import Any, Dict

import unittest
import ee
from ee import apitestcase
import unittest


def make_expression_graph(
Expand All @@ -19,7 +19,7 @@ def make_expression_graph(

class ListTest(apitestcase.ApiTestCase):

def testList(self):
def test_list(self):
"""Verifies basic behavior of ee.List."""
l = ee.List([1, 2, 3])
self.assertEqual([1, 2, 3], ee.Serializer(False)._encode(l))
Expand All @@ -37,7 +37,17 @@ def testList(self):
computed.args,
)

def testMapping(self):
def test_empty(self):
expect = {'result': '0', 'values': {'0': {'constantValue': []}}}
self.assertEqual(expect, json.loads(ee.List(tuple()).serialize()))
self.assertEqual(expect, json.loads(ee.List([]).serialize()))

def test_single(self):
expect = {'result': '0', 'values': {'0': {'constantValue': [42]}}}
self.assertEqual(expect, json.loads(ee.List(tuple([42])).serialize()))
self.assertEqual(expect, json.loads(ee.List([42]).serialize()))

def test_mapping(self):
lst = ee.List(['foo', 'bar'])
body = lambda s: ee.String(s).cat('bar')
mapped = lst.map(body)
Expand All @@ -60,7 +70,7 @@ def testMapping(self):
expected_function.serialize(for_cloud_api=True),
mapped.args['baseAlgorithm'].serialize(for_cloud_api=True))

def testInternals(self):
def test_internals(self):
"""Test eq(), ne() and hash()."""
a = ee.List([1, 2])
b = ee.List([2, 1])
Expand Down
2 changes: 1 addition & 1 deletion python/ee/tests/ee_number_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
from typing import Any, Dict
import unittest

import unittest
import ee
from ee import apitestcase
import unittest


def make_expression_graph(
Expand Down
2 changes: 1 addition & 1 deletion python/ee/tests/ee_string_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
from typing import Any, Dict
import unittest

import unittest
import ee
from ee import apitestcase
import unittest


def make_expression_graph(
Expand Down
2 changes: 1 addition & 1 deletion python/ee/tests/ee_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
import google.auth
from google.oauth2 import credentials

import unittest
import ee
from ee import apitestcase
import unittest


class EETestCase(apitestcase.ApiTestCase):
Expand Down
2 changes: 1 addition & 1 deletion python/ee/tests/ee_types_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@

import datetime

import unittest
from ee import ee_list
from ee import ee_number
from ee import ee_types
import unittest


class EeTypesTest(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion python/ee/tests/element_test.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/env python3
"""Test for the ee.element module."""

import unittest
import ee
from ee import apitestcase
import unittest


class ElementTestCase(apitestcase.ApiTestCase):
Expand Down
2 changes: 1 addition & 1 deletion python/ee/tests/errormargin_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

import json

import unittest
import ee
from ee import apitestcase
import unittest

VALUE = 'value'
UNIT = 'unit'
Expand Down
2 changes: 1 addition & 1 deletion python/ee/tests/feature_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
from typing import Any, Dict
from unittest import mock

import unittest
import ee
from ee import apitestcase
import unittest


EPSG_4326 = 'EPSG:4326'
Expand Down
Loading

0 comments on commit e9cc342

Please sign in to comment.