Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Cordex extension and trying to build on higher level abstractions #64
base: master
Are you sure you want to change the base?
Cordex extension and trying to build on higher level abstractions #64
Changes from 18 commits
3c85233
f1c5683
c0bdeb2
3a4b6ef
b7d9b75
98c6420
33d78b9
0212008
04d94df
ac0cec2
03e5738
8cceeab
8b583bb
8db0847
df35431
c6e68e8
d76fdd8
adb1065
fd49161
08ccd42
2fb0eb6
312694c
a847c3f
72a8271
4817d66
2b43022
118810c
d1d838e
6c1c809
763151a
8b65fec
74f0ffb
069ef71
bdb23ed
9888645
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why
dumps
and thenloads
? Do we not trust thatto_dict
will be correct?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exactly, I remember I had issues with serialization, and this solved it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But if there's problems with serialization won't
dumps
fail?Or is pystac using a different (worse?) serialization library than json?
I'm only balking at this because this seems like a hacky solution to something that should be handled properly by the pystac library....
Do you remember what values couldn't be serialized? If so, can we add an issue on pystac and add a comment here about it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I recall this as well.
I think it was due to some string-like nested objects (
href
ormedia_type
in links/assets, not sure, it's been a while...) not getting converted to valid JSON withto_dict
directly, and those were not nicely handled by the code receiving them (likerequests
not liking the items to POST or similar).It's definitely been a while and many
pystac
updates since, so might be worth a revisit.