Skip to content

Commit

Permalink
Backmerge: #2654 - Arrow size become 2 bonds length after indigo chan…
Browse files Browse the repository at this point in the history
…ged default arrow size to 1 (#2655)

backmerge to 1.26
  • Loading branch information
AliaksandrDziarkach committed Dec 19, 2024
1 parent 743a58c commit 0304132
Show file tree
Hide file tree
Showing 88 changed files with 3,671 additions and 3,666 deletions.
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

0 comments on commit 0304132

Please sign in to comment.