Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: tiles search #212

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Bumped ingress timeout in Helm chart to reflect AWS gateway timeout
- SDAP-399: Updated quickstart guide for standalone docker deployment of SDAP.
- SDAP-399: Updated quickstart Jupyter notebook
- fix: enable tile_search endpoint + fix: Object of type is not JSON serializable
### Deprecated
### Removed
- removed dropdown from matchup doms endpoint secondary param
Expand Down
3 changes: 2 additions & 1 deletion analysis/webservice/algorithms/TileSearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@
# limitations under the License.


from webservice.NexusHandler import nexus_handler
from webservice.algorithms.NexusCalcHandler import NexusCalcHandler
from webservice.webmodel import NexusResults


# @nexus_handler
@nexus_handler
class ChunkSearchCalcHandlerImpl(NexusCalcHandler):
name = "Data Tile Search"
path = "/tiles"
Expand Down
9 changes: 9 additions & 0 deletions data-access/nexustiles/model/nexusmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,15 @@ class TileVariable:
variable_name: str = None
standard_name: str = None

def __str__(self) -> str:
return str({
'variable_name': self.variable_name,
'standard_name': self.standard_name,
})

def __repr__(self) -> str:
return self.__str__()


@dataclass
class Tile(object):
Expand Down