Skip to content

Commit

Permalink
update package
Browse files Browse the repository at this point in the history
  • Loading branch information
debpal committed Sep 15, 2024
1 parent 7b14ce9 commit 295e5d0
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ name: flake8
on:
push:
branches:
- master # Your branch name
- main # Your branch name
paths:
- '**/*.py' # Trigger only for changes in Python files
pull_request:
branches:
- master # Your branch name
- main # Your branch name
paths:
- '**/*.py' # Trigger only for changes in Python files

Expand Down
21 changes: 21 additions & 0 deletions SuomiGeoData/paituli.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,27 @@ def dem_labels(

return output

def is_valid_label_dem(
self,
label: str
) -> bool:

'''
Returns whether the label exists in the DEM index map.
Parameters
----------
label : str
Name of the label.
Returns
-------
bool
True if the label exists, False otherwise.
'''

return label in self.dem_labels

@property
def tdb_labels(
self
Expand Down

0 comments on commit 295e5d0

Please sign in to comment.