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

Backmerge: #2654 - Arrow size become 2 bonds length after indigo changed default arrow size to 1 #2695

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/c/indigo/src/indigo_product_enumerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ CEXPORT int indigoReactionProductEnumerate(int reaction, int monomers)
Reaction& out_reaction = out_reactions[k];
if (has_coord && self.rpe_params.is_layout)
{
ReactionLayout layout(out_reaction, self.smart_layout);
ReactionLayout layout(out_reaction, self.smart_layout, self.layout_options);
layout.setLayoutOrientation((LAYOUT_ORIENTATION)self.layout_orientation);
layout.make();
out_reaction.markStereocenterBonds();
Expand Down
5 changes: 4 additions & 1 deletion api/c/tests/unit/tests/formats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,10 @@ TEST_F(IndigoApiFormatsTest, idt_to_ket)
obj = indigoLoadIdtFromString("ARAS", library);
indigoSetOptionBool("json-saving-pretty", true);
const char* res = indigoJson(obj);
// printf("res=%s", res);
// std::ofstream os(dataPath("molecules/basic/idt_mixed_std.ket"), std::ios::out | std::ios::binary);
// os.write(res, std::strlen(res));
// os.close();

std::ifstream is(dataPath("molecules/basic/idt_mixed_std.ket"), std::ios::binary | std::ios::ate);
auto size = is.tellg();
std::string str(size, '\0'); // construct string to stream size
Expand Down
Loading
Loading