@zacharyDez I'm. not sure if there's a better way to PR just the relevant changes to the ipnyb file, since a lot of the diff here is not really related to the changes I made.
The relevant changes I made are just:
"print(f\"{collection_info['title'] if 'title' in collection_info else 'NA'}: {collection_info['description']}\")" <-- added the if "title" ... since I think some of the newer collection imports are missing the title field.
for bbox in collection_info[\"extent\"][\"spatial\"][\"bbox\"] if \"extent\" in collection_info\n <-- again added the if "extent"... since it seems like that was failing for some collections.
I made those two changes on the notebook, re-ran to verify things worked, and then downloaded the notebook. Ofcourse, the ipnyb has added a bunch of things not related to my changes. Not sure of the best practice to diff / make changes here?
@zacharyDez I'm. not sure if there's a better way to PR just the relevant changes to the
ipnyb
file, since a lot of the diff here is not really related to the changes I made.The relevant changes I made are just:
"print(f\"{collection_info['title'] if 'title' in collection_info else 'NA'}: {collection_info['description']}\")"
<-- added theif "title" ...
since I think some of the newer collection imports are missing thetitle
field.for bbox in collection_info[\"extent\"][\"spatial\"][\"bbox\"] if \"extent\" in collection_info\n
<-- again added theif "extent"...
since it seems like that was failing for some collections.I made those two changes on the notebook, re-ran to verify things worked, and then downloaded the notebook. Ofcourse, the
ipnyb
has added a bunch of things not related to my changes. Not sure of the best practice to diff / make changes here?cc @geohacker