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

Return original format from convert and layout function #1303

Closed
AliaksandrDziarkach opened this issue Oct 4, 2023 · 0 comments · Fixed by #1315
Closed

Return original format from convert and layout function #1303

AliaksandrDziarkach opened this issue Oct 4, 2023 · 0 comments · Fixed by #1315
Assignees
Projects

Comments

@AliaksandrDziarkach
Copy link
Collaborator

AliaksandrDziarkach commented Oct 4, 2023

According to epam/ketcher#3393 backend should return original format by using "original_format": "$format" (where $format is one of the currently support content types)

Add two new options in "options":

  1. input-format - set input format to load from. same values as used in output-format
  2. output-content-type - if set to 'application/json' - functions will return json with next format:
    {
    "struct": output_molecule,
    "format": output_format,
    "original_format": original_format,
    }
    Where 'output_molecule' - molecule in output format, 'output_format' - output format name like 'chemical/x-daylight-smiles', 'original_format' - format used to load molecule.
@AliaksandrDziarkach AliaksandrDziarkach added this to Product Backlog in Indigo via automation Oct 4, 2023
@AliaksandrDziarkach AliaksandrDziarkach self-assigned this Oct 4, 2023
@AliaksandrDziarkach AliaksandrDziarkach moved this from Product Backlog to In progress in Indigo Oct 4, 2023
@AliaksandrDziarkach AliaksandrDziarkach changed the title Return original format. Return original format from convert and allign function. Oct 9, 2023
@AliaksandrDziarkach AliaksandrDziarkach changed the title Return original format from convert and allign function. Return original format from convert and layout function Oct 9, 2023
@AlexanderSavelyev AlexanderSavelyev linked a pull request Oct 10, 2023 that will close this issue
@AlexanderSavelyev AlexanderSavelyev added this to the Indigo-1.15.0-rc.1 milestone Oct 12, 2023
Indigo automation moved this from In progress to Done Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Indigo
  
Done
Development

Successfully merging a pull request may close this issue.

2 participants