Skip to content

tilePairClient: add support for more parameters and multi-file support#151

Merged
RussTorres merged 2 commits intoAllenInstitute:developfrom
RussTorres:update_tilePairClient
Jan 25, 2021
Merged

tilePairClient: add support for more parameters and multi-file support#151
RussTorres merged 2 commits intoAllenInstitute:developfrom
RussTorres:update_tilePairClient

Conversation

@RussTorres
Copy link
Copy Markdown
Collaborator

resolves #150 and related to saalfeldlab/render#113

for jsonfile in jsonfiles:
os.remove(jsonfile)

return ((jsondata, jsonfiles) if return_jsonfiles and return_jsondata
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in the case of delete_json does it make sense to return paths to files that aren't there?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Practically speaking I don't think so, but since return_jsonfiles defaults to False it seems like we should keep the outputs explicit. Returning an empty list (i.e. just return the files you can expect to find) might work too, and I don't have a strong preference.

@RussTorres RussTorres merged commit 4f0137d into AllenInstitute:develop Jan 25, 2021
@RussTorres RussTorres mentioned this pull request Jul 11, 2022
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