ASF GitHub Bot commented on SDAP-40:

fgreg commented on a change in pull request #8: SDAP-40 Update Spark Time 
Series algorithm to handle multiple time steps per tile
URL: https://github.com/apache/incubator-sdap-nexus/pull/8#discussion_r174330935

 File path: analysis/webservice/algorithms_spark/TimeSeriesSpark.py
 @@ -178,27 +178,10 @@ def calc(self, request, **args):
         for shortName in ds:
             the_time = datetime.now()
-            daysinrange = 
-                                                                    shortName,
-            self.log.info("Finding days in range took %s for dataset %s" % 
(str(datetime.now() - the_time), shortName))
-            ndays = len(daysinrange)
-            if ndays == 0:
-                raise NoDataException(reason="No data found for selected 
-            self.log.debug('Found {0} days in range'.format(ndays))
-            for i, d in enumerate(daysinrange):
-                self.log.debug('{0}, {1}'.format(i, 
-            spark_nparts_needed = min(spark_nparts, ndays)
-            the_time = datetime.now()
-            results, meta = spark_driver(daysinrange, bounding_polygon, 
spark_nparts_needed=spark_nparts_needed, sc=self._sc)
+            results, meta = spark_driver(start_seconds_from_epoch,
 Review comment:
   This is good, but I'm thinking we should run a sanity check query to make 
sure there are at least some tiles in the search domain before passing off to 
Spark. Otherwise we incur the cost of spinning up a bunch of spark tasks for no 

This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

> Update Spark Time Series algorithm to handle multiple time steps per tile
> -------------------------------------------------------------------------
>                 Key: SDAP-40
>                 URL: https://issues.apache.org/jira/browse/SDAP-40
>             Project: Apache Science Data Analytics Platform
>          Issue Type: Improvement
>            Reporter: Joseph Jacob
>            Assignee: Joseph Jacob
>            Priority: Major
> To date, NEXUS has partitioned data to have 1 time step per tile.  For SWOT 
> we want to have multiple time steps per tile for efficiency of the 
> computations.

This message was sent by Atlassian JIRA

Reply via email to