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

add processToJSON for convenience #114

Merged
merged 39 commits into from
Apr 28, 2022
Merged

add processToJSON for convenience #114

merged 39 commits into from
Apr 28, 2022

Conversation

m-mohr
Copy link
Member

@m-mohr m-mohr commented Feb 22, 2022

For context see Open-EO/openeo.org#56

* download.file() was replaced by httr2 methods
* parameter job can also be AssetList or ResultList and not NULL
* compute_results has now parameters 'as_stars' and 'format' to open the
data as stars object
* 'output_file' can be omitted, if so a temporary file will be created
@m-mohr m-mohr added this to the v1.2.0 milestone Feb 22, 2022
@m-mohr m-mohr requested a review from flahn February 22, 2022 10:34
@flahn
Copy link
Member

flahn commented Feb 22, 2022

I am not sure if we need this. Printing a process to console should already give you a JSON. If you want it printed to a file, I would suggest to overload as.list(x) somehow, where you handle the serialization. Depending on the json package the user has installed, they can use it as they like. Probably all json packages know how to deal with lists.

@m-mohr
Copy link
Member Author

m-mohr commented Feb 23, 2022

Open for alternatives, but it seems to be an issue though as you can see in the PR. 3 persons had a hard time figuring out how to solve the issue, it took me like 20mins to figure out what to use so help is needed in some shape or form.

@flahn flahn merged commit 6295f7d into develop Apr 28, 2022
@flahn
Copy link
Member

flahn commented Apr 28, 2022

updated/merged the PR, processToJSON is now also available, but will be immediately marked as deprecated - as is graphToJSON. Use for this purpose openeos toJSON function (implemented for objects Process and Graph)

@m-mohr m-mohr deleted the processToJSON branch April 28, 2022 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants