diff --git a/ixmp4/data/abstract/docs.py b/ixmp4/data/abstract/docs.py index 2fc01a29..626fec46 100644 --- a/ixmp4/data/abstract/docs.py +++ b/ixmp4/data/abstract/docs.py @@ -42,7 +42,6 @@ def get(self, dimension_id: int) -> Docs: :class:`ixmp4.data.abstract.Docs` The object's documentation. """ - ... def set(self, dimension_id: int, description: str) -> Docs: """Sets the documentation for an object of any dimension. @@ -59,7 +58,6 @@ def set(self, dimension_id: int, description: str) -> Docs: :class:`ixmp4.data.abstract.Docs` The object's documentation. """ - ... def delete(self, dimension_id: int) -> None: """Deletes a dimension object's documentation. @@ -77,7 +75,6 @@ def delete(self, dimension_id: int) -> None: :class:`ixmp4.data.abstract.Docs.NotFound`: If the documentation for the object with `dimension_id` does not exist. """ - ... def list(self, *, dimension_id: int | None = None) -> list[Docs]: """Lists documentations. @@ -92,4 +89,3 @@ def list(self, *, dimension_id: int | None = None) -> list[Docs]: ------- Iterable[:class:`ixmp4.data.abstract.Docs`] : List of documentations. """ - ... diff --git a/ixmp4/data/abstract/iamc/datapoint.py b/ixmp4/data/abstract/iamc/datapoint.py index c193fe01..2a4eb3ab 100644 --- a/ixmp4/data/abstract/iamc/datapoint.py +++ b/ixmp4/data/abstract/iamc/datapoint.py @@ -104,7 +104,6 @@ def list( Iterable[:class:`ixmp4.data.abstract.iamc.datapoint.DataPoint`]: List of data points. """ - ... def tabulate( self, @@ -142,7 +141,6 @@ def tabulate( if it contains data points of type `DATETIME` - ... misc parameter columns if `join_parameters` is set to `True` """ - ... def bulk_upsert(self, df: pd.DataFrame) -> None: """Looks which data points in the supplied data frame already exists, @@ -162,7 +160,6 @@ def bulk_upsert(self, df: pd.DataFrame) -> None: - step_datetime if it contains data points of type `DATETIME` """ - ... def bulk_delete(self, df: pd.DataFrame) -> None: """Deletes data points which match criteria in the supplied data frame. @@ -180,4 +177,3 @@ def bulk_delete(self, df: pd.DataFrame) -> None: - step_datetime if it contains data points of type `DATETIME` """ - ... diff --git a/ixmp4/data/abstract/iamc/timeseries.py b/ixmp4/data/abstract/iamc/timeseries.py index 43ae8403..1155bac7 100644 --- a/ixmp4/data/abstract/iamc/timeseries.py +++ b/ixmp4/data/abstract/iamc/timeseries.py @@ -70,7 +70,6 @@ def create(self, **kwargs: Unpack["CreateKwargs"]) -> ModelType: :class:`ixmp4.data.abstract.iamc.timeseries.TimeSeries`: The retrieved time series. """ - ... # NOTE this seems unused, so I'm guessing at the parameters type def get(self, run_id: int, parameters: Mapping[str, Any]) -> ModelType: @@ -93,7 +92,6 @@ def get(self, run_id: int, parameters: Mapping[str, Any]) -> ModelType: :class:`ixmp4.data.base.TimeSeries`: The retrieved time series. """ - ... def get_by_id(self, id: int) -> ModelType: """Retrieves a time series by it's id. @@ -113,7 +111,6 @@ def get_by_id(self, id: int) -> ModelType: :class:`ixmp4.data.base.TimeSeries`: The retrieved time series. """ - ... def get_or_create(self, run_id: int, parameters: Mapping[str, Any]) -> ModelType: """Tries to retrieve a time series and creates it if it was not found. @@ -149,7 +146,6 @@ def list(self, **kwargs: Unpack[EnumerateKwargs]) -> list[ModelType]: Iterable[:class:`ixmp4.data.base.TimeSeries`]: List of time series. """ - ... def tabulate( self, *, join_parameters: bool | None = False, **kwargs: Unpack[EnumerateKwargs] @@ -175,7 +171,6 @@ def tabulate( Or: - ... parameter value columns """ - ... def bulk_upsert( self, df: pd.DataFrame, create_related: bool | None = False @@ -200,4 +195,3 @@ def bulk_upsert( create_related : bool Creates related database entries with value data supplied in `df`. """ - ... diff --git a/ixmp4/data/abstract/iamc/variable.py b/ixmp4/data/abstract/iamc/variable.py index d05fee48..3b1550ba 100644 --- a/ixmp4/data/abstract/iamc/variable.py +++ b/ixmp4/data/abstract/iamc/variable.py @@ -65,7 +65,6 @@ def create(self, name: str) -> Variable: :class:`ixmp4.data.abstract.Variable`: The created variable. """ - ... def get(self, name: str) -> Variable: """Retrieves a variable. @@ -85,7 +84,6 @@ def get(self, name: str) -> Variable: :class:`ixmp4.data.abstract.Variable`: The retrieved variable. """ - ... def list(self, **kwargs: Unpack[EnumerateKwargs]) -> list[Variable]: r"""Lists variables by specified criteria. @@ -101,7 +99,6 @@ def list(self, **kwargs: Unpack[EnumerateKwargs]) -> list[Variable]: Iterable[:class:`ixmp4.data.abstract.Variable`]: List of variables. """ - ... def tabulate(self, **kwargs: Unpack[EnumerateKwargs]) -> pd.DataFrame: r"""Tabulate variables by specified criteria. @@ -119,4 +116,3 @@ def tabulate(self, **kwargs: Unpack[EnumerateKwargs]) -> pd.DataFrame: - id - name """ - ... diff --git a/ixmp4/data/abstract/meta.py b/ixmp4/data/abstract/meta.py index 7cb2a702..8e761864 100644 --- a/ixmp4/data/abstract/meta.py +++ b/ixmp4/data/abstract/meta.py @@ -118,7 +118,6 @@ def create(self, run__id: int, key: str, value: MetaValue) -> RunMetaEntry: :class:`ixmp4.data.base.RunMetaEntry`: The created entry. """ - ... def get(self, run__id: int, key: str) -> RunMetaEntry: """Retrieves a run's meta indicator entry. @@ -140,7 +139,6 @@ def get(self, run__id: int, key: str) -> RunMetaEntry: :class:`ixmp4.data.base.Run`: The retrieved entry. """ - ... def delete(self, id: int) -> None: """Deletes a run's meta indicator entry. @@ -157,7 +155,6 @@ def delete(self, id: int) -> None: :class:`ixmp4.data.abstract.RunMetaEntry.NotFound`: If the entry with `id` does not exist. """ - ... def list( self, join_run_index: bool = False, **kwargs: Unpack[EnumerateKwargs] @@ -177,7 +174,6 @@ def list( Iterable[:class:`ixmp4.data.abstract.RunMetaEntry`]: List of run meta indicator entries. """ - ... def tabulate( self, join_run_index: bool = False, **kwargs: Unpack[EnumerateKwargs] @@ -202,7 +198,6 @@ def tabulate( - type - value """ - ... def bulk_upsert(self, df: pd.DataFrame) -> None: """Upserts a dataframe of run meta indicator entries. @@ -216,7 +211,6 @@ def bulk_upsert(self, df: pd.DataFrame) -> None: - value - type """ - ... def bulk_delete(self, df: pd.DataFrame) -> None: """Deletes run meta indicator entries as specified per dataframe. @@ -231,4 +225,3 @@ def bulk_delete(self, df: pd.DataFrame) -> None: - key """ - ... diff --git a/ixmp4/data/abstract/model.py b/ixmp4/data/abstract/model.py index 653611a7..672db1b0 100644 --- a/ixmp4/data/abstract/model.py +++ b/ixmp4/data/abstract/model.py @@ -59,7 +59,6 @@ def create(self, name: str) -> Model: :class:`ixmp4.data.abstract.Model`: The created model. """ - ... def get(self, name: str) -> Model: """Retrieves a model. @@ -79,7 +78,6 @@ def get(self, name: str) -> Model: :class:`ixmp4.data.abstract.Model`: The retrieved model. """ - ... def list(self, **kwargs: Unpack[EnumerateKwargs]) -> list[Model]: r"""Lists models by specified criteria. @@ -95,7 +93,6 @@ def list(self, **kwargs: Unpack[EnumerateKwargs]) -> list[Model]: Iterable[:class:`ixmp4.data.abstract.Model`]: List of Model. """ - ... def tabulate(self, **kwargs: Unpack[EnumerateKwargs]) -> pd.DataFrame: r"""Tabulate models by specified criteria. @@ -114,7 +111,6 @@ def tabulate(self, **kwargs: Unpack[EnumerateKwargs]) -> pd.DataFrame: - name """ - ... def map(self, **kwargs: Unpack[EnumerateKwargs]) -> dict[int, str]: """Return a mapping of model-id to model-name. diff --git a/ixmp4/data/abstract/optimization/equation.py b/ixmp4/data/abstract/optimization/equation.py index ee66c4eb..9a3c0467 100644 --- a/ixmp4/data/abstract/optimization/equation.py +++ b/ixmp4/data/abstract/optimization/equation.py @@ -88,7 +88,6 @@ def create( :class:`ixmp4.data.abstract.optimization.Equation`: The created Equation. """ - ... def get(self, run_id: int, name: str) -> Equation: """Retrieves an Equation. @@ -111,7 +110,6 @@ def get(self, run_id: int, name: str) -> Equation: :class:`ixmp4.data.abstract.optimization.Equation`: The retrieved Equation. """ - ... def get_by_id(self, id: int) -> Equation: """Retrieves an Equation by its id. @@ -131,7 +129,6 @@ def get_by_id(self, id: int) -> Equation: :class:`ixmp4.data.abstract.optimization.Equation`: The retrieved Equation. """ - ... def list(self, **kwargs: Unpack["EnumerateKwargs"]) -> Iterable[Equation]: r"""Lists Equations by specified criteria. @@ -147,7 +144,6 @@ def list(self, **kwargs: Unpack["EnumerateKwargs"]) -> Iterable[Equation]: Iterable[:class:`ixmp4.data.abstract.optimization.Equation`]: List of Equations. """ - ... def tabulate(self, **kwargs: Unpack["EnumerateKwargs"]) -> pd.DataFrame: r"""Tabulate Equations by specified criteria. @@ -169,7 +165,6 @@ def tabulate(self, **kwargs: Unpack["EnumerateKwargs"]) -> pd.DataFrame: - created_at - created_by """ - ... # TODO Question for Daniel: do equations need to allow adding data manually? # TODO Once present, state how to check which IndexSets are linked and which values @@ -203,7 +198,6 @@ def add_data(self, equation_id: int, data: dict[str, Any] | pd.DataFrame) -> Non ------- None """ - ... def remove_data(self, equation_id: int) -> None: """Removes data from an Equation. @@ -217,4 +211,3 @@ def remove_data(self, equation_id: int) -> None: ------- None """ - ... diff --git a/ixmp4/data/abstract/optimization/indexset.py b/ixmp4/data/abstract/optimization/indexset.py index 3a68c483..1ab7b3e9 100644 --- a/ixmp4/data/abstract/optimization/indexset.py +++ b/ixmp4/data/abstract/optimization/indexset.py @@ -66,7 +66,6 @@ def create(self, run_id: int, name: str) -> IndexSet: :class:`ixmp4.data.abstract.IndexSet`: The created IndexSet. """ - ... def get(self, run_id: int, name: str) -> IndexSet: """Retrieves an IndexSet. @@ -89,7 +88,6 @@ def get(self, run_id: int, name: str) -> IndexSet: :class:`ixmp4.data.abstract.IndexSet`: The retrieved IndexSet. """ - ... def list(self, **kwargs: Unpack["EnumerateKwargs"]) -> list[IndexSet]: r"""Lists IndexSets by specified criteria. @@ -105,7 +103,6 @@ def list(self, **kwargs: Unpack["EnumerateKwargs"]) -> list[IndexSet]: Iterable[:class:`ixmp4.data.abstract.IndexSet`]: List of IndexSets. """ - ... def tabulate(self, **kwargs: Unpack["EnumerateKwargs"]) -> pd.DataFrame: r"""Tabulate IndexSets by specified criteria. @@ -127,7 +124,6 @@ def tabulate(self, **kwargs: Unpack["EnumerateKwargs"]) -> pd.DataFrame: - created_at - created_by """ - ... def add_data( self, @@ -148,4 +144,3 @@ def add_data( None: Due to compatibility with ixmp. """ - ... diff --git a/ixmp4/data/abstract/optimization/parameter.py b/ixmp4/data/abstract/optimization/parameter.py index ec6025d6..eddfa8b6 100644 --- a/ixmp4/data/abstract/optimization/parameter.py +++ b/ixmp4/data/abstract/optimization/parameter.py @@ -88,7 +88,6 @@ def create( :class:`ixmp4.data.abstract.optimization.Parameter`: The created Parameter. """ - ... def get(self, run_id: int, name: str) -> Parameter: """Retrieves a Parameter. @@ -111,7 +110,6 @@ def get(self, run_id: int, name: str) -> Parameter: :class:`ixmp4.data.abstract.optimization.Parameter`: The retrieved Parameter. """ - ... def get_by_id(self, id: int) -> Parameter: """Retrieves a Parameter by its id. @@ -131,7 +129,6 @@ def get_by_id(self, id: int) -> Parameter: :class:`ixmp4.data.abstract.optimization.Parameter`: The retrieved Parameter. """ - ... def list(self, **kwargs: Unpack["EnumerateKwargs"]) -> Iterable[Parameter]: r"""Lists Parameters by specified criteria. @@ -147,7 +144,6 @@ def list(self, **kwargs: Unpack["EnumerateKwargs"]) -> Iterable[Parameter]: Iterable[:class:`ixmp4.data.abstract.optimization.Parameter`]: List of Parameters. """ - ... def tabulate(self, **kwargs: Unpack["EnumerateKwargs"]) -> pd.DataFrame: r"""Tabulate Parameters by specified criteria. @@ -169,7 +165,6 @@ def tabulate(self, **kwargs: Unpack["EnumerateKwargs"]) -> pd.DataFrame: - created_at - created_by """ - ... # TODO Once present, state how to check which IndexSets are linked and which values # they permit @@ -202,4 +197,3 @@ def add_data(self, parameter_id: int, data: dict[str, Any] | pd.DataFrame) -> No ------- None """ - ... diff --git a/ixmp4/data/abstract/optimization/scalar.py b/ixmp4/data/abstract/optimization/scalar.py index 7533c690..68655ab4 100644 --- a/ixmp4/data/abstract/optimization/scalar.py +++ b/ixmp4/data/abstract/optimization/scalar.py @@ -80,7 +80,6 @@ def create(self, run_id: int, name: str, value: float, unit_name: str) -> Scalar :class:`ixmp4.data.abstract.optimization.Scalar`: The created Scalar. """ - ... def update( self, id: int, value: float | None = None, unit_id: int | None = None @@ -102,7 +101,6 @@ def update( :class:`ixmp4.data.abstract.optimization.Scalar`: The updated Scalar. """ - ... def get(self, run_id: int, name: str) -> Scalar: """Retrieves a Scalar. @@ -125,7 +123,6 @@ def get(self, run_id: int, name: str) -> Scalar: :class:`ixmp4.data.abstract.optimization.Scalar`: The retrieved Scalar. """ - ... def get_by_id(self, id: int) -> Scalar: """Retrieves a Scalar by its id. @@ -145,7 +142,6 @@ def get_by_id(self, id: int) -> Scalar: :class:`ixmp4.data.abstract.optimization.Scalar`: The retrieved Scalar. """ - ... def list(self, **kwargs: Unpack["EnumerateKwargs"]) -> Iterable[Scalar]: r"""Lists Scalars by specified criteria. @@ -161,7 +157,6 @@ def list(self, **kwargs: Unpack["EnumerateKwargs"]) -> Iterable[Scalar]: Iterable[:class:`ixmp4.data.abstract.optimization.Scalar`]: List of Scalars. """ - ... def tabulate(self, **kwargs: Unpack["EnumerateKwargs"]) -> pd.DataFrame: r"""Tabulate Scalars by specified criteria. @@ -184,4 +179,3 @@ def tabulate(self, **kwargs: Unpack["EnumerateKwargs"]) -> pd.DataFrame: - created_at - created_by """ - ... diff --git a/ixmp4/data/abstract/optimization/table.py b/ixmp4/data/abstract/optimization/table.py index d6721d2b..005b723e 100644 --- a/ixmp4/data/abstract/optimization/table.py +++ b/ixmp4/data/abstract/optimization/table.py @@ -88,7 +88,6 @@ def create( :class:`ixmp4.data.abstract.optimization.Table`: The created Table. """ - ... def get(self, run_id: int, name: str) -> Table: """Retrieves a Table. @@ -111,7 +110,6 @@ def get(self, run_id: int, name: str) -> Table: :class:`ixmp4.data.abstract.optimization.Table`: The retrieved Table. """ - ... def get_by_id(self, id: int) -> Table: """Retrieves a Table by its id. @@ -131,7 +129,6 @@ def get_by_id(self, id: int) -> Table: :class:`ixmp4.data.abstract.optimization.Table`: The retrieved Table. """ - ... def list(self, **kwargs: Unpack["EnumerateKwargs"]) -> Iterable[Table]: r"""Lists Tables by specified criteria. @@ -147,7 +144,6 @@ def list(self, **kwargs: Unpack["EnumerateKwargs"]) -> Iterable[Table]: Iterable[:class:`ixmp4.data.abstract.optimization.Table`]: List of Tables. """ - ... def tabulate(self, **kwargs: Unpack["EnumerateKwargs"]) -> pd.DataFrame: r"""Tabulate Tables by specified criteria. @@ -169,7 +165,6 @@ def tabulate(self, **kwargs: Unpack["EnumerateKwargs"]) -> pd.DataFrame: - created_at - created_by """ - ... # TODO Once present, state how to check which IndexSets are linked and which values # they permit @@ -202,4 +197,3 @@ def add_data(self, table_id: int, data: dict[str, Any] | pd.DataFrame) -> None: ------- None """ - ... diff --git a/ixmp4/data/abstract/optimization/variable.py b/ixmp4/data/abstract/optimization/variable.py index 9a50b9fb..930cc04f 100644 --- a/ixmp4/data/abstract/optimization/variable.py +++ b/ixmp4/data/abstract/optimization/variable.py @@ -88,7 +88,6 @@ def create( :class:`ixmp4.data.abstract.optimization.Variable`: The created Variable. """ - ... def get(self, run_id: int, name: str) -> Variable: """Retrieves a Variable. @@ -111,7 +110,6 @@ def get(self, run_id: int, name: str) -> Variable: :class:`ixmp4.data.abstract.optimization.Variable`: The retrieved Variable. """ - ... def get_by_id(self, id: int) -> Variable: """Retrieves a Variable by its id. @@ -131,7 +129,6 @@ def get_by_id(self, id: int) -> Variable: :class:`ixmp4.data.abstract.optimization.Variable`: The retrieved Variable. """ - ... def list(self, **kwargs: Unpack["EnumerateKwargs"]) -> Iterable[Variable]: r"""Lists Variables by specified criteria. @@ -147,7 +144,6 @@ def list(self, **kwargs: Unpack["EnumerateKwargs"]) -> Iterable[Variable]: Iterable[:class:`ixmp4.data.abstract.optimization.Variable`]: List of Variables. """ - ... def tabulate(self, **kwargs: Unpack["EnumerateKwargs"]) -> pd.DataFrame: r"""Tabulate Variables by specified criteria. @@ -169,7 +165,6 @@ def tabulate(self, **kwargs: Unpack["EnumerateKwargs"]) -> pd.DataFrame: - created_at - created_by """ - ... # TODO Question for Daniel: do variables need to allow adding data manually? # TODO Once present, state how to check which IndexSets are linked and which values @@ -204,7 +199,6 @@ def add_data(self, variable_id: int, data: dict[str, Any] | pd.DataFrame) -> Non ------- None """ - ... def remove_data(self, variable_id: int) -> None: """Removes data from a Variable. @@ -218,4 +212,3 @@ def remove_data(self, variable_id: int) -> None: ------- None """ - ... diff --git a/ixmp4/data/abstract/region.py b/ixmp4/data/abstract/region.py index d474ca47..0536b84b 100644 --- a/ixmp4/data/abstract/region.py +++ b/ixmp4/data/abstract/region.py @@ -68,7 +68,6 @@ def create(self, name: str, hierarchy: str) -> Region: :class:`ixmp4.ata.base.iamc.Region`: The created region. """ - ... def delete(self, id: int) -> None: """Deletes a region. @@ -85,7 +84,6 @@ def delete(self, id: int) -> None: :class:`ixmp4.data.abstract.Region.DeletionPrevented`: If the region with `id` is used in the database, preventing it's deletion. """ - ... def get(self, name: str) -> Region: """Retrieves a region. @@ -105,7 +103,6 @@ def get(self, name: str) -> Region: :class:`ixmp4.data.base.iamc.Region`: The retrieved region. """ - ... def get_or_create(self, name: str, hierarchy: str | None = None) -> Region: try: @@ -137,7 +134,6 @@ def list(self, **kwargs: Unpack[EnumerateKwargs]) -> list[Region]: Iterable[:class:`ixmp4.data.abstract.Region`]: List of regions. """ - ... def tabulate(self, **kwargs: Unpack[EnumerateKwargs]) -> pd.DataFrame: r"""Tabulate regions by specified criteria. @@ -155,4 +151,3 @@ def tabulate(self, **kwargs: Unpack[EnumerateKwargs]) -> pd.DataFrame: - id - name """ - ... diff --git a/ixmp4/data/abstract/run.py b/ixmp4/data/abstract/run.py index cfacde9d..f1309f3b 100644 --- a/ixmp4/data/abstract/run.py +++ b/ixmp4/data/abstract/run.py @@ -68,7 +68,6 @@ def create(self, model_name: str, scenario_name: str) -> Run: :class:`ixmp4.data.abstract.Run`: The created run. """ - ... def get(self, model_name: str, scenario_name: str, version: int) -> Run: """Retrieves a run. @@ -92,7 +91,6 @@ def get(self, model_name: str, scenario_name: str, version: int) -> Run: :class:`ixmp4.data.abstract.Run`: The retrieved run. """ - ... def get_or_create(self, model_name: str, scenario_name: str) -> Run: """Tries to retrieve a run's default version @@ -135,7 +133,6 @@ def get_default_version(self, model_name: str, scenario_name: str) -> Run: :class:`ixmp4.data.abstract.Run`: The retrieved run. """ - ... def get_by_id(self, id: int) -> Run: """Retrieves a Run by its id. @@ -155,7 +152,6 @@ def get_by_id(self, id: int) -> Run: :class:`ixmp4.data.abstract.Run`: The retrieved Run. """ - ... def list(self, **kwargs: Unpack[EnumerateKwargs]) -> list[Run]: r"""Lists runs by specified criteria. @@ -171,7 +167,6 @@ def list(self, **kwargs: Unpack[EnumerateKwargs]) -> list[Run]: Iterable[:class:`ixmp4.data.abstract.Run`]: List of runs. """ - ... def tabulate(self, **kwargs: Unpack[EnumerateKwargs]) -> pd.DataFrame: r"""Tabulate runs by specified criteria. @@ -190,7 +185,6 @@ def tabulate(self, **kwargs: Unpack[EnumerateKwargs]) -> pd.DataFrame: - model__id - scenario__id """ - ... def set_as_default_version(self, id: int) -> None: """Sets a run as the default version for a (model, scenario) combination. @@ -206,7 +200,6 @@ def set_as_default_version(self, id: int) -> None: If no run with the `id` exists. """ - ... def unset_as_default_version(self, id: int) -> None: """Unsets a run as the default version leaving no @@ -225,7 +218,6 @@ def unset_as_default_version(self, id: int) -> None: If the run is not set as a default version. """ - ... def clone( self, @@ -253,4 +245,3 @@ def clone( :class:`ixmp4.data.abstract.Run`: The clone of the base run. """ - ... diff --git a/ixmp4/data/abstract/scenario.py b/ixmp4/data/abstract/scenario.py index 341ebf23..5f87a79a 100644 --- a/ixmp4/data/abstract/scenario.py +++ b/ixmp4/data/abstract/scenario.py @@ -52,7 +52,6 @@ def create(self, name: str) -> Scenario: :class:`ixmp4.data.abstract.Scenario`: The created scenario. """ - ... def get(self, name: str) -> Scenario: """Retrieves a scenario. @@ -72,7 +71,6 @@ def get(self, name: str) -> Scenario: :class:`ixmp4.data.abstract.Scenario`: The retrieved scenario. """ - ... def list(self, **kwargs: Unpack[EnumerateKwargs]) -> list[Scenario]: r"""Lists scenarios by specified criteria. @@ -88,7 +86,6 @@ def list(self, **kwargs: Unpack[EnumerateKwargs]) -> list[Scenario]: Iterable[:class:`ixmp4.data.abstract.Scenario`]: List of scenarios. """ - ... def tabulate(self, **kwargs: Unpack[EnumerateKwargs]) -> pd.DataFrame: r"""Tabulate scenarios by specified criteria. @@ -106,7 +103,6 @@ def tabulate(self, **kwargs: Unpack[EnumerateKwargs]) -> pd.DataFrame: - id - name """ - ... def map(self, **kwargs: Unpack[EnumerateKwargs]) -> dict[int, str]: """Return a mapping of scenario-id to scenario-name. diff --git a/ixmp4/data/abstract/unit.py b/ixmp4/data/abstract/unit.py index 27e2e561..b1d32e31 100644 --- a/ixmp4/data/abstract/unit.py +++ b/ixmp4/data/abstract/unit.py @@ -57,7 +57,6 @@ def create(self, name: str) -> Unit: :class:`ixmp4.data.abstract.Unit`: The created unit. """ - ... def get(self, name: str) -> Unit: """Retrieves a unit. @@ -77,7 +76,6 @@ def get(self, name: str) -> Unit: :class:`ixmp4.data.abstract.Unit`: The retrieved unit. """ - ... def get_by_id(self, id: int) -> Unit: """Retrieves a Unit by it's id. @@ -97,7 +95,6 @@ def get_by_id(self, id: int) -> Unit: :class:`ixmp4.data.abstract.Unit`: The retrieved Unit. """ - ... def get_or_create(self, name: str) -> Unit: try: @@ -120,7 +117,6 @@ def delete(self, id: int) -> None: :class:`ixmp4.data.abstract.Unit.DeletionPrevented`: If the unit with `id` is used in the database, preventing it's deletion. """ - ... def list(self, **kwargs: Unpack[EnumerateKwargs]) -> list[Unit]: r"""Lists units by specified criteria. @@ -136,7 +132,6 @@ def list(self, **kwargs: Unpack[EnumerateKwargs]) -> list[Unit]: Iterable[:class:`ixmp4.data.base.iamc.Unit`]: List of units. """ - ... def tabulate(self, **kwargs: Unpack[EnumerateKwargs]) -> pd.DataFrame: r"""Tabulate units by specified criteria. @@ -154,4 +149,3 @@ def tabulate(self, **kwargs: Unpack[EnumerateKwargs]) -> pd.DataFrame: - id - name """ - ... diff --git a/ixmp4/data/backend/base.py b/ixmp4/data/backend/base.py index 15fb689c..41a8af55 100644 --- a/ixmp4/data/backend/base.py +++ b/ixmp4/data/backend/base.py @@ -52,7 +52,6 @@ def __init__(self, info: PlatformInfo) -> None: def close(self) -> None: """Closes the connection to the database.""" - ... def __str__(self) -> str: return f""