Skip to content

Commit

Permalink
Lint .reporting.computations
Browse files Browse the repository at this point in the history
  • Loading branch information
khaeru committed Aug 30, 2023
1 parent 9583394 commit e52c72a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions message_ix_models/report/computations.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
"""Atomic reporting computations for MESSAGEix-GLOBIOM."""
import itertools
import logging
from typing import List, Optional, Union
from typing import Any, List, Optional, Set, Union

import ixmp
import message_ix
import pandas as pd
from iam_units import convert_gwp
from iam_units.emissions import SPECIES
Expand Down Expand Up @@ -131,7 +130,7 @@ def remove_ts(


# Non-weak references to objects to keep them alive
_FROM_URL_REF = set()
_FROM_URL_REF: Set[Any] = set()

# def from_url(url: str) -> message_ix.Scenario:
# """Return a :class:`message_ix.Scenario` given its `url`.
Expand All @@ -146,6 +145,7 @@ def remove_ts(
# _FROM_URL_REF.add(mp)
# return s


def from_url(url: str) -> ixmp.TimeSeries:
"""Return a :class:`ixmp.TimeSeries` given its `url`."""
ts, mp = ixmp.TimeSeries.from_url(url)
Expand Down

0 comments on commit e52c72a

Please sign in to comment.