Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: rename all the accessors #195

Merged
merged 1 commit into from
Feb 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
180 changes: 90 additions & 90 deletions docs/usage/layout.rst

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions geetools/Array/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

.. code-block:: python

from geetools.Array import Array
from geetools.Array import ArrayAccessor
"""
from __future__ import annotations

Expand All @@ -22,7 +22,7 @@


@register_class_accessor(ee.Array, "geetools")
class Array:
class ArrayAccessor:
"""Toolbox for the ``ee.Array`` class."""

def __init__(self, obj: ee.Array):
Expand Down
2 changes: 1 addition & 1 deletion geetools/Date/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


@register_class_accessor(ee.Date, "geetools")
class Date:
class DateAccessor:
"""Toolbox for the ``ee.Date`` class."""

def __init__(self, obj: ee.Date):
Expand Down
2 changes: 1 addition & 1 deletion geetools/DateRange/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


@register_class_accessor(ee.DateRange, "geetools")
class DateRange:
class DateRangeAccessor:
"""Toolbox for the ``ee.DateRange`` class."""

def __init__(self, obj: ee.DateRange):
Expand Down
2 changes: 1 addition & 1 deletion geetools/Dictionary/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


@register_class_accessor(ee.Dictionary, "geetools")
class Dictionary:
class DictionaryAccessor:
"""Toolbox for the ``ee.Dictionary`` class."""

def __init__(self, obj: ee.Dictionary):
Expand Down
2 changes: 1 addition & 1 deletion geetools/Feature/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


@register_class_accessor(ee.Feature, "geetools")
class Feature:
class FeatureAccessor:
"""Toolbox for the ``ee.Feature`` class."""

def __init__(self, obj: ee.Feature):
Expand Down
2 changes: 1 addition & 1 deletion geetools/FeatureCollection/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


@register_class_accessor(ee.FeatureCollection, "geetools")
class FeatureCollection:
class FeatureCollectionAccessor:
"""Toolbox for the `ee.FeatureCollection` class."""

def __init__(self, obj: ee.FeatureCollection):
Expand Down
2 changes: 1 addition & 1 deletion geetools/Filter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


@register_class_accessor(ee.Filter, "geetools")
class Filter:
class FilterAccessor:
"""Toolbox for the ``ee.Filter`` class."""

def __init__(self, obj: ee.Filter):
Expand Down
2 changes: 1 addition & 1 deletion geetools/Geometry/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


@register_class_accessor(ee.Geometry, "geetools")
class Geometry:
class GeometryAccessor:
"""Toolbox for the ``ee.Geometry`` class."""

def __init__(self, obj: ee.Geometry):
Expand Down
2 changes: 1 addition & 1 deletion geetools/Image/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@


@register_class_accessor(ee.Image, "geetools")
class Image:
class ImageAccessor:
"""Toolbox for the ``ee.Image`` class."""

def __init__(self, obj: ee.Image):
Expand Down
2 changes: 1 addition & 1 deletion geetools/ImageCollection/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


@register_class_accessor(ee.ImageCollection, "geetools")
class ImageCollection:
class ImageCollectionAccessor:
"""Toolbox for the ``ee.ImageCollection`` class."""

def __init__(self, obj: ee.ImageCollection):
Expand Down
2 changes: 1 addition & 1 deletion geetools/Join/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


@register_class_accessor(ee.Join, "geetools")
class Join:
class JoinAccessor:
"""Toolbox for the ``ee.Join`` class."""

def __init__(self, obj: ee.join):
Expand Down
2 changes: 1 addition & 1 deletion geetools/List/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


@register_class_accessor(ee.List, "geetools")
class List:
class ListAccessor:
"""Toolbox for the ``ee.List`` class."""

def __init__(self, obj: ee.List):
Expand Down
2 changes: 1 addition & 1 deletion geetools/Number/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


@register_class_accessor(ee.Number, "geetools")
class Number:
class NumberAccessor:
"""toolbox for the ``ee.Number`` class."""

def __init__(self, obj: ee.Number):
Expand Down
2 changes: 1 addition & 1 deletion geetools/String/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


@register_class_accessor(ee.String, "geetools")
class String:
class StringAccessor:
"""Toolbox for the ``ee.String`` class."""

def __init__(self, obj: ee.String):
Expand Down
26 changes: 13 additions & 13 deletions geetools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,21 @@
from .tools import imagecollection

# then we extend all the other classes
from .Date import Date
from .DateRange import DateRange
from .Dictionary import Dictionary
from .Feature import Feature
from .FeatureCollection import FeatureCollection
from .Filter import Filter
from .Date import DateAccessor
from .DateRange import DateRangeAccessor
from .Dictionary import DictionaryAccessor
from .Feature import FeatureAccessor
from .FeatureCollection import FeatureCollectionAccessor
from .Filter import FilterAccessor
from .ComputedObject import Float
from .Geometry import Geometry
from .Geometry import GeometryAccessor
from .ComputedObject import Integer
from .Image import Image
from .Join import Join
from .List import List
from .Number import Number
from .String import String
from .ImageCollection import ImageCollection
from .Image import ImageAccessor
from .Join import JoinAccessor
from .List import ListAccessor
from .Number import NumberAccessor
from .String import StringAccessor
from .ImageCollection import ImageCollectionAccessor
from .Initialize import InitializeAccessor
from .Authenticate import AuthenticateAccessor

Expand Down
2 changes: 1 addition & 1 deletion tests/test_Array.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import pytest

import geetools
from geetools.Array import Array # noqa: F401
from geetools.Array import ArrayAccessor # noqa: F401


class TestFull:
Expand Down
1,163 changes: 1,163 additions & 0 deletions warnings.txt

Large diffs are not rendered by default.