Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions leafmap/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -6296,17 +6296,17 @@ def datasets_full(self) -> list:
return []

@property
def prodFormats(self) -> list:
def prodFormats(self) -> set:
"""
Return all datatypes available in any of the collections.
Note that "All" is only peculiar to one dataset.
"""
return set(i["displayName"] for ds in self.DS for i in ds["formats"])
return {i["displayName"] for ds in self.DS for i in ds.get("formats", [])}

@property
def datasets(self) -> list:
def datasets(self) -> set:
"""
Returns a list of dataset tags (most common human readable self description for specific datasets).
Returns a set of dataset tags (most common human readable self description for specific datasets).
"""
return set(y["sbDatasetTag"] for x in self.DS for y in x["tags"])

Expand Down
2 changes: 1 addition & 1 deletion leafmap/leafmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -5585,7 +5585,7 @@ def _find_widget_of_type(
return None

def remove(self, widget: Any) -> None:
"""Removes a widget to the map."""
"""Removes a widget from the map."""

basic_controls: Dict[str, ipyleaflet.Control] = {
"layer_editor": map_widgets.LayerEditor,
Expand Down
Loading