You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sdap.apache.org by sk...@apache.org on 2023/11/16 17:23:39 UTC

(incubator-sdap-nexus) 01/01: add page number to default filename for matchup output

This is an automated email from the ASF dual-hosted git repository.

skperez pushed a commit to branch SDAP-499
in repository https://gitbox.apache.org/repos/asf/incubator-sdap-nexus.git

commit 831ca37b4d4b524cfd6804edcc3aa5d874a39271
Author: skorper <st...@gmail.com>
AuthorDate: Thu Nov 16 09:23:30 2023 -0800

    add page number to default filename for matchup output
---
 CHANGELOG.md                                           | 1 +
 analysis/webservice/algorithms/doms/BaseDomsHandler.py | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4e0a4e9..64e65c9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -27,6 +27,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 - SDAP-493: 
   - Updated /job endpoint to use `executionId` terminology for consistency with existing `/cdmsresults` endpoint
   - Updated /job endpoint with details about number of primary and secondary tiles.
+- SDAP-499: Added page number to default filename for matchup output
 ### Deprecated
 ### Removed
 - SDAP-465: Removed `climatology` directory. 
diff --git a/analysis/webservice/algorithms/doms/BaseDomsHandler.py b/analysis/webservice/algorithms/doms/BaseDomsHandler.py
index 84c9163..d4dcd51 100644
--- a/analysis/webservice/algorithms/doms/BaseDomsHandler.py
+++ b/analysis/webservice/algorithms/doms/BaseDomsHandler.py
@@ -114,7 +114,7 @@ class DomsQueryResults(NexusResults):
         return DomsNetCDFFormatter.create(self.__executionId, self.results(), self.__args, self.__details)
 
     def filename(self):
-        return f'CDMS_{self.__executionId}'
+        return f'CDMS_{self.__executionId}_page{self.__details["pageNum"]}'
 
 
 class DomsCSVFormatter: