class OrbitDataFetcher(object):
    def __init__(self, object_catalog):
        super(OrbitDataFetcher, self).__init__()
        self._object_catalog = object_catalog
        self._downloader = DataDownloader()

    def fetch(self, objects):
        vecs = []
        for obj in list(objects):
            vecs = self._downloader.download_state_vectors(obj)
            if len(vecs) < 1:
                print("No data found! Skipping.")
                continue
            self._object_catalog.add(obj, vecs[-1])
Beispiel #2
0
class OrbitDataFetcher(object):

    def __init__(self, object_catalog):
        super(OrbitDataFetcher, self).__init__()
        self._object_catalog = object_catalog
        self._downloader = DataDownloader()

    def fetch(self, objects):
        vecs = []
        for obj in list(objects):
            vecs = self._downloader.download_state_vectors(obj)
            if len(vecs) < 1:
                print("No data found! Skipping.")
                continue
            self._object_catalog.add(obj, vecs[-1])
Beispiel #3
0
 def __init__(self, object_catalog):
     super(OrbitDataFetcher, self).__init__()
     self._object_catalog = object_catalog
     self._downloader = DataDownloader()
 def __init__(self, object_catalog):
     super(OrbitDataFetcher, self).__init__()
     self._object_catalog = object_catalog
     self._downloader = DataDownloader()