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

#2176: add ACS style reaction layout #2307

Merged
merged 19 commits into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from 4 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
18 changes: 8 additions & 10 deletions api/c/indigo-renderer/src/indigo_render2d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,6 @@ IndigoRenderer::~IndigoRenderer()
{
}

#define SET_POSITIVE_FLOAT_OPTION(option, error) \
[](float value) { \
if (value <= 0.0f) \
throw IndigoError(error); \
option = value; \
}, \
[](float& value) { value = option; }

#define CHECK_AND_SETTER_GETTER_COLOR_OPTION(option) \
[](float r, float g, float b) { \
CHECKRGB(r, g, b); \
Expand Down Expand Up @@ -689,9 +681,17 @@ void IndigoRenderer::setOptionsHandlers()
if (!options_set)
{
auto mgr = sf::xlock_safe_ptr(indigoGetOptionManager(indigo_id));
options_set = true;

#define rp indigoRendererGetInstance().renderParams
#define cdxmlContext getCdxmlContext()
#define indigo indigoGetInstance()

rp.cnvOpt.bondLength = indigo.layout_options.bondLength;
rp.cnvOpt.bondLengthUnit = indigo.layout_options.bondLengthUnit;
rp.rOpt.reactionComponentMarginSize = indigo.layout_options.reactionComponentMarginSize;
rp.rOpt.reactionComponentMarginSizeUnit = indigo.layout_options.reactionComponentMarginSizeUnit;
rp.rOpt.ppi = indigo.layout_options.ppi;

mgr->setOptionHandlerInt("render-comment-offset", SETTER_GETTER_INT_OPTION(rp.cnvOpt.commentOffset));
mgr->setOptionHandlerInt("render-image-width", SETTER_GETTER_INT_OPTION(rp.cnvOpt.width));
Expand Down Expand Up @@ -757,7 +757,5 @@ void IndigoRenderer::setOptionsHandlers()
mgr->setOptionHandlerString("render-cdxml-title-face", SETTER_GETTER_STR_OPTION(cdxmlContext.titleFace));

mgr->setOptionHandlerVoid("reset-render-options", indigoRenderResetOptions);

options_set = true;
}
}
2 changes: 1 addition & 1 deletion api/c/indigo-renderer/src/indigo_renderer_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class IndigoRenderer : public IndigoPluginContext
private:
void setOptionsHandlers();

bool options_set = false;
std::atomic<bool> options_set = false;
};

class IndigoHDCOutput : public IndigoObject
Expand Down
3 changes: 2 additions & 1 deletion api/c/indigo/src/indigo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,11 @@ void Indigo::initMoleculeJsonSaver(MoleculeJsonSaver& saver)
saver.use_native_precision = json_use_native_precision;
}

void Indigo::initReactionJsonSaver(ReactionJsonSaver& saver)
void Indigo::initReactionJsonSaver(ReactionJsonSaver& saver) const
{
saver.add_stereo_desc = json_saving_add_stereo_desc;
saver.pretty_json = json_saving_pretty;
saver.layout_options = layout_options;
}

void Indigo::initReactionJsonSaver(PathwayReactionJsonSaver& saver)
Expand Down
6 changes: 4 additions & 2 deletions api/c/indigo/src/indigo_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ class DLLEXPORT Indigo
bool embedding_edges_uniqueness, find_unique_embeddings;
int max_embeddings;

int layout_max_iterations; // default is zero -- no limit
int layout_max_iterations = 0; // default is zero -- no limit
bool smart_layout = false;
float layout_horintervalfactor = ReactionLayout::DEFAULT_HOR_INTERVAL_FACTOR;
bool layout_preserve_existing = false;
Expand All @@ -351,7 +351,7 @@ class DLLEXPORT Indigo
void initMolfileSaver(MolfileSaver& saver);
void initRxnfileSaver(RxnfileSaver& saver);
void initMoleculeJsonSaver(MoleculeJsonSaver& saver);
void initReactionJsonSaver(ReactionJsonSaver& saver);
void initReactionJsonSaver(ReactionJsonSaver& saver) const;
void initReactionJsonSaver(PathwayReactionJsonSaver& saver);

bool preserve_ordering_in_serialize;
Expand All @@ -366,6 +366,8 @@ class DLLEXPORT Indigo

bool scsr_ignore_chem_templates;

indigo::LayoutOptions layout_options;

static const Array<char>& getErrorMessage();
static void clearErrorMessage();
static void setErrorMessage(const char* message);
Expand Down
6 changes: 2 additions & 4 deletions api/c/indigo/src/indigo_layout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ CEXPORT int indigoLayout(int object)
}

ml.max_iterations = self.layout_max_iterations;
ml.bond_length = MoleculeLayout::DEFAULT_BOND_LENGTH;
ml.bond_length = LayoutOptions::DEFAULT_BOND_LENGTH;
ml.layout_orientation = (layout_orientation_value)self.layout_orientation;
if (self.layout_preserve_existing || mol->hasAtropoStereoBonds())
ml.respect_existing_layout = true;
Expand Down Expand Up @@ -104,11 +104,9 @@ CEXPORT int indigoLayout(int object)
bool no_layout = rxn.intermediateCount() || rxn.specialConditionsCount() || rxn.meta().getNonChemicalMetaCount();
if (!no_layout)
{
ReactionLayout rl(rxn, self.smart_layout);
ReactionLayout rl(rxn, self.smart_layout, self.layout_options);
rl.max_iterations = self.layout_max_iterations;
rl.layout_orientation = (layout_orientation_value)self.layout_orientation;
rl.bond_length = MoleculeLayout::DEFAULT_BOND_LENGTH;
rl.horizontal_interval_factor = self.layout_horintervalfactor;
AliaksandrDziarkach marked this conversation as resolved.
Show resolved Hide resolved
if (self.layout_preserve_existing)
rl.preserve_molecule_layout = true;
rl.make();
Expand Down
64 changes: 64 additions & 0 deletions api/c/indigo/src/indigo_options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,62 @@ void indigoProductEnumeratorGetOneTubeMode(Array<char>& value)
value.readString("grid", true);
}

bool isEqual(const char* l, const char* r)
{
return strcmp(l, r) != 0;
}

IndigoOptionManager::optf_string_t indigoSetUnitsOfMeasure(UnitsOfMeasure::TYPE& result)
{
static auto func = [&result](const char* mode) {
if (isEqual(mode, "pt"))
{
result = UnitsOfMeasure::TYPE::PT;
}
else if (isEqual(mode, "px"))
{
result = UnitsOfMeasure::TYPE::PX;
}
else if (isEqual(mode, "inches"))
AliaksandrDziarkach marked this conversation as resolved.
Show resolved Hide resolved
{
result = UnitsOfMeasure::TYPE::INCHES;
}
else if (isEqual(mode, "cm"))
{
result = UnitsOfMeasure::TYPE::CM;
}
else
{
throw IndigoError("Invalid label mode, should be 'none', 'hetero', 'terminal-hetero' or 'all'");
}
};

return [](const char* mode) -> void { return func(mode); };
}

IndigoOptionManager::get_optf_string_t indigoGetUnitsOfMeasure(const UnitsOfMeasure::TYPE input)
{
static auto func = [input](Array<char>& result) {
switch (input)
{
case UnitsOfMeasure::TYPE::PT:
result.readString("pt", true);
break;
case UnitsOfMeasure::TYPE::PX:
result.readString("px", true);
break;
case UnitsOfMeasure::TYPE::INCHES:
result.readString("inches", true);
AliaksandrDziarkach marked this conversation as resolved.
Show resolved Hide resolved
break;
case UnitsOfMeasure::TYPE::CM:
result.readString("cm", true);
break;
}
};

return [](Array<char>& res) -> void { return func(res); };
}

void IndigoOptionHandlerSetter::setBasicOptionHandlers(const qword id)
{
auto mgr = sf::xlock_safe_ptr(indigoGetOptionManager(id));
Expand Down Expand Up @@ -384,4 +440,12 @@ void IndigoOptionHandlerSetter::setBasicOptionHandlers(const qword id)
mgr->setOptionHandlerInt("rpe-max-products-count", SETTER_GETTER_INT_OPTION(indigo.rpe_params.max_product_count));
mgr->setOptionHandlerBool("rpe-layout", SETTER_GETTER_BOOL_OPTION(indigo.rpe_params.is_layout));
mgr->setOptionHandlerBool("transform-layout", SETTER_GETTER_BOOL_OPTION(indigo.rpe_params.transform_is_layout));

mgr->setOptionHandlerFloat("bond-length", SET_POSITIVE_FLOAT_OPTION(indigo.layout_options.bondLength, "bond length must be positive"));
mgr->setOptionHandlerString("bond-length-unit", indigoSetUnitsOfMeasure(indigo.layout_options.bondLengthUnit),
indigoGetUnitsOfMeasure(indigo.layout_options.bondLengthUnit));
mgr->setOptionHandlerFloat("reaction-component-margin-size", SETTER_GETTER_FLOAT_OPTION(indigo.layout_options.reactionComponentMarginSize));
mgr->setOptionHandlerString("reaction-component-margin-size-unit", indigoSetUnitsOfMeasure(indigo.layout_options.reactionComponentMarginSizeUnit),
indigoGetUnitsOfMeasure(indigo.layout_options.reactionComponentMarginSizeUnit));
mgr->setOptionHandlerInt("image-resolution", SET_POSITIVE_INT_OPTION(indigo.layout_options.ppi, "image resolution ppi must be positive"));
}
17 changes: 17 additions & 0 deletions api/c/indigo/src/option_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include "base_cpp/red_black.h"

#include <sstream>
#include <stdint.h>
AleksandrParamonoff marked this conversation as resolved.
Show resolved Hide resolved

using namespace indigo;

Expand Down Expand Up @@ -89,6 +90,22 @@ using namespace indigo;
value.push(0); \
}

#define SET_POSITIVE_FLOAT_OPTION(option, error) \
[](float value) { \
if (value <= 0.0f) \
throw IndigoError(error); \
option = value; \
}, \
[](float& value) { value = option; }

#define SET_POSITIVE_INT_OPTION(option, error) \
[](int32_t value) { \
if (value <= 0) \
throw IndigoError(error); \
option = value; \
}, \
[](int32_t& value) { value = option; }

class DLLEXPORT IndigoOptionManager
{
public:
Expand Down
103 changes: 103 additions & 0 deletions api/c/tests/unit/tests/layout.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
/****************************************************************************

Check failure on line 1 in api/c/tests/unit/tests/layout.cpp

View workflow job for this annotation

GitHub Actions / ubuntu-latest-x86_64-python_test_report

layout.basic

[FAILED]
Raw output
Diff:
-   Result: Molecule #0: Success
+   Result: Molecule #0: Error: atom #0 (Cl) contains delta 0.4999999408108949 > 0.001
-    Molecule #1: Success
+    atom #1 (C) contains delta 0.4999997619848992 > 0.001
+    atom #2 (C) contains delta 0.5000000004034781 > 0.001
+    atom #3 (C) contains delta 0.4999589924127094 > 0.001
+    atom #4 (O) contains delta 0.4999589924199682 > 0.001
+    Molecule #1: Error: atom #0 (C) contains delta 0.2999782562634843 > 0.001
+    atom #1 (N) contains delta 0.2999782562546019 > 0.001
+    atom #2 (C) contains delta 0.30001926425578485 > 0.001
+    atom #3 (C) contains delta 0.2999601364553597 > 0.001
+    atom #4 (C) contains delta 0.299958232413864 > 0.001
+    atom #5 (O) contains delta 0.29995822909395925 > 0.001
+    atom #6 (S) contains delta 0.3000373840609327 > 0.001
+    atom #7 (O) contains delta 0.3000373862651897 > 0.001
+    atom #8 (O) contains delta 0.3000354800326307 > 0.001
+    atom #9 (C) contains delta 0.29999542238251947 > 0.001
+    atom #10 (F) contains delta 0.30000495913714026 > 0.001
+    atom #11 (F) contains delta 0.299991607684585 > 0.001
+    atom #12 (C) contains delta 0.2999572754094878 > 0.001
+    atom #13 (F) contains delta 0.30004882833424446 > 0.001
+    atom #14 (F) contains delta 0.29996299763268114 > 0.001
+    atom #15 (C) contains delta 0.30001449586382545 > 0.001
+    atom #16 (F) contains delta 0.300024032630666 > 0.001
+    atom #17 (F) contains delta 0.30001068117091195 > 0.001
+    atom #18 (C) contains delta 0.29997444153455105 > 0.001
+    atom #19 (F) contains delta 0.2999744415336498 > 0.001
+    atom #20 (F) contains delta 0.30003547668628133 > 0.001
+    atom #21 (F) contains delta 0.3000335693383057 > 0.001
-   Result: Molecule #0: Success
+   Result: Molecule #0: Error: atom #0 (C) contains delta 0.5000002400807367 > 0.001
-    Molecule #1: Success
+    atom #1 (C) contains delta 0.5000000016621584 > 0.001
+    atom #2 (C) contains delta 0.49999994039541207 > 0.001
+    atom #3 (C) contains delta 0.5000000016427748 > 0.001
+    atom #4 (C) contains delta 0.5000000016621584 > 0.001
+    atom #5 (C) contains delta 0.499999523162856 > 0.001
+    data sgroup #0 contains delta 0.49999976158142445 > 0.001
+    Molecule #1: Error: atom #0 (C) contains delta 0.3000001935051255 > 0.001
+    atom #1 (C) contains delta 0.29999923983081794 > 0.001
+    atom #2 (C) contains delta 0.29999923706064163 > 0.001
+    atom #3 (C) contains delta 0.29999923979851184 > 0.001
+    atom #4 (C) contains delta 0.29999923983081794 > 0.001
+    atom #5 (C) contains delta 0.2999992370605706 > 0.001
+    data sgroup #0 contains delta 0.3000497817993164 > 0.001

Check failure on line 1 in api/c/tests/unit/tests/layout.cpp

View workflow job for this annotation

GitHub Actions / ubuntu-latest-x86_64-python_test_report

layout.reaction_layout_and_clean2d

[FAILED]
Raw output
Diff:
-   Item #0: Result of layout: Molecule #0: Success
+   Item #0: Result of layout: Molecule #0: Error: atom #0 (C) contains delta 0.49999994039536944 > 0.001
-    Molecule #1: Success
+    atom #1 (C) contains delta 0.49995946884157494 > 0.001
-    Molecule #2: Success
+    atom #2 (C) contains delta 0.5000190734863423 > 0.001
-    Molecule #3: Success
+    atom #3 (C) contains delta 0.49997806549072354 > 0.001
+    atom #4 (C) contains delta 0.500037193298354 > 0.001
+    atom #5 (C) contains delta 0.49999618530299106 > 0.001
+    atom #6 (P) contains delta 0.49995613098180064 > 0.001
+    atom #7 (O) contains delta 0.49997806549073687 > 0.001
+    Molecule #1: Error: atom #0 (C) contains delta 0.7000141143799234 > 0.001
+    atom #1 (C) contains delta 0.6999559402465846 > 0.001
+    atom #2 (C) contains delta 0.6999559402466049 > 0.001
+    atom #3 (C) contains delta 0.7000141143799234 > 0.001
+    atom #4 (C) contains delta 0.6999740600585963 > 0.001
+    atom #5 (C) contains delta 0.6999740600586166 > 0.001
+    Molecule #2: Error: atom #0 (C) contains delta 0.49997711181666293 > 0.001
+    atom #1 (C) contains delta 0.5000362396240376 > 0.001
+    atom #2 (C) contains delta 0.49999427795410245 > 0.001
+    atom #3 (C) contains delta 0.4999542236328267 > 0.001
+    atom #4 (C) contains delta 0.5000133514404519 > 0.001
+    atom #5 (P) contains delta 0.49997329711915484 > 0.001
+    atom #6 (C) contains delta 0.4999942779541158 > 0.001
+    Molecule #3: Error: atom #0 (C) contains delta 0.6999740600585938 > 0.001
+    atom #1 (C) contains delta 0.6999778759501063 > 0.001
+    atom #2 (C) contains delta 0.6999740612528472 > 0.001
+    atom #3 (C) contains delta 0.6999740600585938 > 0.001
+    atom #4 (C) contains delta 0.6999740612528472 > 0.001
+    atom #5 (C) contains delta 0.6999778759501063 > 0.001
+    atom #6 (O) contains delta 0.6999778747558594 > 0.001

Check failure on line 1 in api/c/tests/unit/tests/layout.cpp

View workflow job for this annotation

GitHub Actions / ubuntu-latest-x86_64-python_test_report

layout.smiles_layout

[FAILED]
Raw output
Diff:
- 932-agents.ket:SUCCEED
+ 932-agents.ket:FAILED
+ --- 
+ +++ 
+ @@ -43,7 +43,7 @@
+              {
+                  "type": "plus",
+                  "location": [
+ -                    1.75,
+ +                    4.099999904632568,
+                      0.0,
+                      0.0
+                  ]
+ @@ -51,7 +51,7 @@
+              {
+                  "type": "plus",
+                  "location": [
+ -                    3.25,
+ +                    7.500000476837158,
+                      0.0,
+                      0.0
+                  ]
+ @@ -59,7 +59,7 @@
+              {
+                  "type": "plus",
+                  "location": [
+ -                    14.464101791381836,
+ +                    40.44254302978516,
+                      0.0,
+                      0.0
+                  ]
+ @@ -67,7 +67,7 @@
+              {
+                  "type": "plus",
+                  "location": [
+ -                    17.878314971923829,
+ +                    47.705284118652347,
+                      0.0,
+                      0.0
+                  ]
+ @@ -78,12 +78,12 @@
+                      "mode": "open-angle",
+                      "pos": [
+                          {
+ -                            "x": 5.25,
+ +                            "x": 12.40000057220459,
+                              "y": 0.0,
+                              "z": 0.0
+                          },
+                          {
+ -                            "x": 13.464101791381836,
+ +                            "x": 37.14254760742188,
+                              "y": 0.0,
+                              "z": 0.0
+                          }
+ @@ -98,24 +98,24 @@
+              {
+                  "label": "C",
+                  "location": [
+ -                    0.0,
+ -                    0.4330127239227295,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    1.0,
+ -                    0.4330127239227295,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    0.5,
+ -                    -0.4330127239227295,
+ +                    0.800000011920929,
+ +                    0.6928203105926514,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    2.399999856948853,
+ +                    0.6928203105926514,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    1.5999999046325684,
+ +                    -0.6928203105926514,
+                      0.0
+                  ]
+              }
+ @@ -150,7 +150,7 @@
+              {
+                  "label": "S",
+                  "location": [
+ -                    2.5,
+ +                    5.800000190734863,
+                      0.0,
+                      0.0
+                  ]
+ @@ -164,32 +164,32 @@
+              {
+                  "label": "C",
+                  "location": [
+ -                    4.0,
+ -                    0.5,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    5.0,
+ -                    0.5,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    5.0,
+ -                    -0.5,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    4.0,
+ -                    -0.5,
+ +                    9.200000762939454,
+ +                    0.7999998927116394,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    10.800000190734864,
+ +                    0.7999998927116394,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    10.800000190734864,
+ +                    -0.7999998927116394,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    9.200000762939454,
+ +                    -0.7999998927116394,
+                      0.0
+                  ]
+              }
+ @@ -231,24 +231,24 @@
+              {
+                  "label": "C",
+                  "location": [
+ -                    5.75,
+ -                    1.1830127239227296,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    6.616025447845459,
+ -                    0.6830127239227295,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    7.482050895690918,
+ -                    1.1830127239227296,
+ +                    14.000000953674317,
+ +                    2.692820310592652,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    15.38564109802246,
+ +                    1.8928204774856568,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    16.771282196044927,
+ +                    2.692820310592652,
+                      0.0
+                  ]
+              }
+ @@ -276,8 +276,8 @@
+              {
+                  "label": "C",
+                  "location": [
+ -                    7.982050895690918,
+ -                    0.9330127239227296,
+ +                    19.171279907226564,
+ +                    2.292820453643799,
+                      0.0
+                  ]
+              }
+ @@ -290,8 +290,8 @@
+              {
+                  "label": "P",
+                  "location": [
+ -                    8.482050895690918,
+ -                    0.9330127239227296,
+ +                    21.571277618408204,
+ +                    2.292820453643799,
+                      0.0
+                  ]
+              }
+ @@ -304,24 +304,24 @@
+              {
+                  "label": "C",
+                  "location": [
+ -                    8.982050895690918,
+ -                    1.1830127239227296,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    9.84807586669922,
+ -                    0.6830127239227295,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    10.714101791381836,
+ -                    1.1830127239227296,
+ +                    23.971275329589845,
+ +                    2.692820310592652,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    25.356916427612306,
+ +                    1.8928204774856568,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    26.742555618286138,
+ +                    2.692820310592652,
+                      0.0
+                  ]
+              }
+ @@ -349,24 +349,24 @@
+              {
+                  "label": "C",
+                  "location": [
+ -                    11.214101791381836,
+ -                    1.366025447845459,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    12.214101791381836,
+ -                    1.366025447845459,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    11.714101791381836,
+ -                    0.5,
+ +                    29.142553329467778,
+ +                    2.98564076423645,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    30.7425537109375,
+ +                    2.98564076423645,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    29.94255256652832,
+ +                    1.6000001430511477,
+                      0.0
+                  ]
+              }
+ @@ -401,8 +401,8 @@
+              {
+                  "label": "F",
+                  "location": [
+ -                    12.714101791381836,
+ -                    0.9330127239227296,
+ +                    33.14255142211914,
+ +                    2.292820453643799,
+                      0.0
+                  ]
+              }
+ @@ -415,8 +415,8 @@
+              {
+                  "label": "I",
+                  "location": [
+ -                    13.214101791381836,
+ -                    0.9330127239227296,
+ +                    35.54254913330078,
+ +                    2.292820453643799,
+                      0.0
+                  ]
+              }
+ @@ -429,7 +429,7 @@
+              {
+                  "label": "S",
+                  "location": [
+ -                    13.964101791381836,
+ +                    38.74254608154297,
+                      0.0,
+                      0.0
+                  ]
+ @@ -443,64 +443,64 @@
+              {
+                  "label": "C",
+                  "location": [
+ -                    16.67120933532715,
+ -                    1.2071068286895753,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    15.671208381652832,
+ -                    1.2071068286895753,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    14.964101791381836,
+ -                    0.5,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    14.964101791381836,
+ -                    -0.5,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    15.671208381652832,
+ -                    -1.2071068286895753,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    16.67120933532715,
+ -                    -1.2071068286895753,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    17.378314971923829,
+ -                    -0.5,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    17.378314971923829,
+ -                    0.5,
+ +                    44.8739128112793,
+ +                    1.931370735168457,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    43.2739143371582,
+ +                    1.931370735168457,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    42.14254379272461,
+ +                    0.7999999523162842,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    42.14254379272461,
+ +                    -0.7999998331069946,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    43.2739143371582,
+ +                    -1.931370735168457,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    44.8739128112793,
+ +                    -1.931370735168457,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    46.00528717041016,
+ +                    -0.7999998331069946,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    46.00528335571289,
+ +                    0.7999999523162842,
+                      0.0
+                  ]
+              }
+ @@ -570,7 +570,7 @@
+              {
+                  "label": "O",
+                  "location": [
+ -                    18.378314971923829,
+ +                    49.4052848815918,
+                      0.0,
+                      0.0
+                  ]

Check failure on line 1 in api/c/tests/unit/tests/layout.cpp

View workflow job for this annotation

GitHub Actions / ubuntu-latest-x86_64-java_test_report

layout.basic

[FAILED]
Raw output
Diff:
-   Result: Molecule #0: Success
+   Result: Molecule #0: Error: atom #0 (Cl) contains delta 0.499999940811 > 0.001
-    Molecule #1: Success
+    atom #1 (C) contains delta 0.499999761985 > 0.001
+    atom #2 (C) contains delta 0.500000000403 > 0.001
+    atom #3 (C) contains delta 0.499958992413 > 0.001
+    atom #4 (O) contains delta 0.49995899242 > 0.001
+    Molecule #1: Error: atom #0 (C) contains delta 0.299978256263 > 0.001
+    atom #1 (N) contains delta 0.299978256255 > 0.001
+    atom #2 (C) contains delta 0.300019264256 > 0.001
+    atom #3 (C) contains delta 0.299960136455 > 0.001
+    atom #4 (C) contains delta 0.299958232414 > 0.001
+    atom #5 (O) contains delta 0.299958229094 > 0.001
+    atom #6 (S) contains delta 0.300037384061 > 0.001
+    atom #7 (O) contains delta 0.300037386265 > 0.001
+    atom #8 (O) contains delta 0.300035480033 > 0.001
+    atom #9 (C) contains delta 0.299995422383 > 0.001
+    atom #10 (F) contains delta 0.300004959137 > 0.001
+    atom #11 (F) contains delta 0.299991607685 > 0.001
+    atom #12 (C) contains delta 0.299957275409 > 0.001
+    atom #13 (F) contains delta 0.300048828334 > 0.001
+    atom #14 (F) contains delta 0.299962997633 > 0.001
+    atom #15 (C) contains delta 0.300014495864 > 0.001
+    atom #16 (F) contains delta 0.300024032631 > 0.001
+    atom #17 (F) contains delta 0.300010681171 > 0.001
+    atom #18 (C) contains delta 0.299974441535 > 0.001
+    atom #19 (F) contains delta 0.299974441534 > 0.001
+    atom #20 (F) contains delta 0.300035476686 > 0.001
+    atom #21 (F) contains delta 0.300033569338 > 0.001
-   Result: Molecule #0: Success
+   Result: Molecule #0: Error: atom #0 (C) contains delta 0.500000240081 > 0.001
-    Molecule #1: Success
+    atom #1 (C) contains delta 0.500000001662 > 0.001
+    atom #2 (C) contains delta 0.499999940395 > 0.001
+    atom #3 (C) contains delta 0.500000001643 > 0.001
+    atom #4 (C) contains delta 0.500000001662 > 0.001
+    atom #5 (C) contains delta 0.499999523163 > 0.001
+    data sgroup #0 contains delta 0.499999761581 > 0.001
+    Molecule #1: Error: atom #0 (C) contains delta 0.300000193505 > 0.001
+    atom #1 (C) contains delta 0.299999239831 > 0.001
+    atom #2 (C) contains delta 0.299999237061 > 0.001
+    atom #3 (C) contains delta 0.299999239799 > 0.001
+    atom #4 (C) contains delta 0.299999239831 > 0.001
+    atom #5 (C) contains delta 0.299999237061 > 0.001
+    data sgroup #0 contains delta 0.300049781799 > 0.001

Check failure on line 1 in api/c/tests/unit/tests/layout.cpp

View workflow job for this annotation

GitHub Actions / ubuntu-latest-x86_64-java_test_report

layout.reaction_layout_and_clean2d

[FAILED]
Raw output
Diff:
-   Item #0: Result of layout: Molecule #0: Success
+   Item #0: Result of layout: Molecule #0: Error: atom #0 (C) contains delta 0.499999940395 > 0.001
-    Molecule #1: Success
+    atom #1 (C) contains delta 0.499959468842 > 0.001
-    Molecule #2: Success
+    atom #2 (C) contains delta 0.500019073486 > 0.001
-    Molecule #3: Success
+    atom #3 (C) contains delta 0.499978065491 > 0.001
+    atom #4 (C) contains delta 0.500037193298 > 0.001
+    atom #5 (C) contains delta 0.499996185303 > 0.001
+    atom #6 (P) contains delta 0.499956130982 > 0.001
+    atom #7 (O) contains delta 0.499978065491 > 0.001
+    Molecule #1: Error: atom #0 (C) contains delta 0.70001411438 > 0.001
+    atom #1 (C) contains delta 0.699955940247 > 0.001
+    atom #2 (C) contains delta 0.699955940247 > 0.001
+    atom #3 (C) contains delta 0.70001411438 > 0.001
+    atom #4 (C) contains delta 0.699974060059 > 0.001
+    atom #5 (C) contains delta 0.699974060059 > 0.001
+    Molecule #2: Error: atom #0 (C) contains delta 0.499977111817 > 0.001
+    atom #1 (C) contains delta 0.500036239624 > 0.001
+    atom #2 (C) contains delta 0.499994277954 > 0.001
+    atom #3 (C) contains delta 0.499954223633 > 0.001
+    atom #4 (C) contains delta 0.50001335144 > 0.001
+    atom #5 (P) contains delta 0.499973297119 > 0.001
+    atom #6 (C) contains delta 0.499994277954 > 0.001
+    Molecule #3: Error: atom #0 (C) contains delta 0.699974060059 > 0.001
+    atom #1 (C) contains delta 0.69997787595 > 0.001
+    atom #2 (C) contains delta 0.699974061253 > 0.001
+    atom #3 (C) contains delta 0.699974060059 > 0.001
+    atom #4 (C) contains delta 0.699974061253 > 0.001
+    atom #5 (C) contains delta 0.69997787595 > 0.001
+    atom #6 (O) contains delta 0.699977874756 > 0.001

Check failure on line 1 in api/c/tests/unit/tests/layout.cpp

View workflow job for this annotation

GitHub Actions / ubuntu-latest-x86_64-java_test_report

layout.smiles_layout

[FAILED]
Raw output
Diff:
- 932-agents.ket:SUCCEED
+ 932-agents.ket:FAILED
+ --- 
+ +++ 
+ @@ -43,7 +43,7 @@
+              {
+                  "type": "plus",
+                  "location": [
+ -                    1.75,
+ +                    4.099999904632568,
+                      0.0,
+                      0.0
+                  ]
+ @@ -51,7 +51,7 @@
+              {
+                  "type": "plus",
+                  "location": [
+ -                    3.25,
+ +                    7.500000476837158,
+                      0.0,
+                      0.0
+                  ]
+ @@ -59,7 +59,7 @@
+              {
+                  "type": "plus",
+                  "location": [
+ -                    14.464101791381836,
+ +                    40.44254302978516,
+                      0.0,
+                      0.0
+                  ]
+ @@ -67,7 +67,7 @@
+              {
+                  "type": "plus",
+                  "location": [
+ -                    17.878314971923829,
+ +                    47.705284118652347,
+                      0.0,
+                      0.0
+                  ]
+ @@ -78,12 +78,12 @@
+                      "mode": "open-angle",
+                      "pos": [
+                          {
+ -                            "x": 5.25,
+ +                            "x": 12.40000057220459,
+                              "y": 0.0,
+                              "z": 0.0
+                          },
+                          {
+ -                            "x": 13.464101791381836,
+ +                            "x": 37.14254760742188,
+                              "y": 0.0,
+                              "z": 0.0
+                          }
+ @@ -98,24 +98,24 @@
+              {
+                  "label": "C",
+                  "location": [
+ -                    0.0,
+ -                    0.4330127239227295,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    1.0,
+ -                    0.4330127239227295,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    0.5,
+ -                    -0.4330127239227295,
+ +                    0.800000011920929,
+ +                    0.6928203105926514,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    2.399999856948853,
+ +                    0.6928203105926514,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    1.5999999046325684,
+ +                    -0.6928203105926514,
+                      0.0
+                  ]
+              }
+ @@ -150,7 +150,7 @@
+              {
+                  "label": "S",
+                  "location": [
+ -                    2.5,
+ +                    5.800000190734863,
+                      0.0,
+                      0.0
+                  ]
+ @@ -164,32 +164,32 @@
+              {
+                  "label": "C",
+                  "location": [
+ -                    4.0,
+ -                    0.5,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    5.0,
+ -                    0.5,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    5.0,
+ -                    -0.5,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    4.0,
+ -                    -0.5,
+ +                    9.200000762939454,
+ +                    0.7999998927116394,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    10.800000190734864,
+ +                    0.7999998927116394,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    10.800000190734864,
+ +                    -0.7999998927116394,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    9.200000762939454,
+ +                    -0.7999998927116394,
+                      0.0
+                  ]
+              }
+ @@ -231,24 +231,24 @@
+              {
+                  "label": "C",
+                  "location": [
+ -                    5.75,
+ -                    1.1830127239227296,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    6.616025447845459,
+ -                    0.6830127239227295,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    7.482050895690918,
+ -                    1.1830127239227296,
+ +                    14.000000953674317,
+ +                    2.692820310592652,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    15.38564109802246,
+ +                    1.8928204774856568,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    16.771282196044927,
+ +                    2.692820310592652,
+                      0.0
+                  ]
+              }
+ @@ -276,8 +276,8 @@
+              {
+                  "label": "C",
+                  "location": [
+ -                    7.982050895690918,
+ -                    0.9330127239227296,
+ +                    19.171279907226564,
+ +                    2.292820453643799,
+                      0.0
+                  ]
+              }
+ @@ -290,8 +290,8 @@
+              {
+                  "label": "P",
+                  "location": [
+ -                    8.482050895690918,
+ -                    0.9330127239227296,
+ +                    21.571277618408204,
+ +                    2.292820453643799,
+                      0.0
+                  ]
+              }
+ @@ -304,24 +304,24 @@
+              {
+                  "label": "C",
+                  "location": [
+ -                    8.982050895690918,
+ -                    1.1830127239227296,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    9.84807586669922,
+ -                    0.6830127239227295,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    10.714101791381836,
+ -                    1.1830127239227296,
+ +                    23.971275329589845,
+ +                    2.692820310592652,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    25.356916427612306,
+ +                    1.8928204774856568,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    26.742555618286138,
+ +                    2.692820310592652,
+                      0.0
+                  ]
+              }
+ @@ -349,24 +349,24 @@
+              {
+                  "label": "C",
+                  "location": [
+ -                    11.214101791381836,
+ -                    1.366025447845459,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    12.214101791381836,
+ -                    1.366025447845459,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    11.714101791381836,
+ -                    0.5,
+ +                    29.142553329467778,
+ +                    2.98564076423645,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    30.7425537109375,
+ +                    2.98564076423645,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    29.94255256652832,
+ +                    1.6000001430511477,
+                      0.0
+                  ]
+              }
+ @@ -401,8 +401,8 @@
+              {
+                  "label": "F",
+                  "location": [
+ -                    12.714101791381836,
+ -                    0.9330127239227296,
+ +                    33.14255142211914,
+ +                    2.292820453643799,
+                      0.0
+                  ]
+              }
+ @@ -415,8 +415,8 @@
+              {
+                  "label": "I",
+                  "location": [
+ -                    13.214101791381836,
+ -                    0.9330127239227296,
+ +                    35.54254913330078,
+ +                    2.292820453643799,
+                      0.0
+                  ]
+              }
+ @@ -429,7 +429,7 @@
+              {
+                  "label": "S",
+                  "location": [
+ -                    13.964101791381836,
+ +                    38.74254608154297,
+                      0.0,
+                      0.0
+                  ]
+ @@ -443,64 +443,64 @@
+              {
+                  "label": "C",
+                  "location": [
+ -                    16.67120933532715,
+ -                    1.2071068286895753,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    15.671208381652832,
+ -                    1.2071068286895753,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    14.964101791381836,
+ -                    0.5,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    14.964101791381836,
+ -                    -0.5,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    15.671208381652832,
+ -                    -1.2071068286895753,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    16.67120933532715,
+ -                    -1.2071068286895753,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    17.378314971923829,
+ -                    -0.5,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    17.378314971923829,
+ -                    0.5,
+ +                    44.8739128112793,
+ +                    1.931370735168457,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    43.2739143371582,
+ +                    1.931370735168457,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    42.14254379272461,
+ +                    0.7999999523162842,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    42.14254379272461,
+ +                    -0.7999998331069946,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    43.2739143371582,
+ +                    -1.931370735168457,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    44.8739128112793,
+ +                    -1.931370735168457,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    46.00528717041016,
+ +                    -0.7999998331069946,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    46.00528335571289,
+ +                    0.7999999523162842,
+                      0.0
+                  ]
+              }
+ @@ -570,7 +570,7 @@
+              {
+                  "label": "O",
+                  "location": [
+ -                    18.378314971923829,
+ +                    49.4052848815918,
+                      0.0,
+                      0.0
+                  ]

Check failure on line 1 in api/c/tests/unit/tests/layout.cpp

View workflow job for this annotation

GitHub Actions / ubuntu-latest-x86_64-dotnet_test_report

layout.basic

[FAILED]
Raw output
Diff:
-   Result: Molecule #0: Success
+   Result: Molecule #0: Error: atom #0 (Cl) contains delta 0.49999994081089488 > 0.001
-    Molecule #1: Success
+    atom #1 (C) contains delta 0.4999997619848992 > 0.001
+    atom #2 (C) contains delta 0.50000000040347814 > 0.001
+    atom #3 (C) contains delta 0.49995899241270941 > 0.001
+    atom #4 (O) contains delta 0.49995899241996822 > 0.001
+    Molecule #1: Error: atom #0 (C) contains delta 0.29997825626348429 > 0.001
+    atom #1 (N) contains delta 0.29997825625460189 > 0.001
+    atom #2 (C) contains delta 0.30001926425578485 > 0.001
+    atom #3 (C) contains delta 0.29996013645535968 > 0.001
+    atom #4 (C) contains delta 0.29995823241386399 > 0.001
+    atom #5 (O) contains delta 0.29995822909395925 > 0.001
+    atom #6 (S) contains delta 0.30003738406093272 > 0.001
+    atom #7 (O) contains delta 0.30003738626518972 > 0.001
+    atom #8 (O) contains delta 0.3000354800326307 > 0.001
+    atom #9 (C) contains delta 0.29999542238251947 > 0.001
+    atom #10 (F) contains delta 0.30000495913714026 > 0.001
+    atom #11 (F) contains delta 0.29999160768458499 > 0.001
+    atom #12 (C) contains delta 0.2999572754094878 > 0.001
+    atom #13 (F) contains delta 0.30004882833424446 > 0.001
+    atom #14 (F) contains delta 0.29996299763268114 > 0.001
+    atom #15 (C) contains delta 0.30001449586382545 > 0.001
+    atom #16 (F) contains delta 0.30002403263066602 > 0.001
+    atom #17 (F) contains delta 0.30001068117091195 > 0.001
+    atom #18 (C) contains delta 0.29997444153455105 > 0.001
+    atom #19 (F) contains delta 0.29997444153364983 > 0.001
+    atom #20 (F) contains delta 0.30003547668628133 > 0.001
+    atom #21 (F) contains delta 0.30003356933830572 > 0.001
-   Result: Molecule #0: Success
+   Result: Molecule #0: Error: atom #0 (C) contains delta 0.50000024008073674 > 0.001
-    Molecule #1: Success
+    atom #1 (C) contains delta 0.50000000166215841 > 0.001
+    atom #2 (C) contains delta 0.49999994039541207 > 0.001
+    atom #3 (C) contains delta 0.50000000164277481 > 0.001
+    atom #4 (C) contains delta 0.50000000166215841 > 0.001
+    atom #5 (C) contains delta 0.49999952316285601 > 0.001
+    data sgroup #0 contains delta 0.49999976158142445 > 0.001
+    Molecule #1: Error: atom #0 (C) contains delta 0.30000019350512552 > 0.001
+    atom #1 (C) contains delta 0.29999923983081794 > 0.001
+    atom #2 (C) contains delta 0.29999923706064163 > 0.001
+    atom #3 (C) contains delta 0.29999923979851184 > 0.001
+    atom #4 (C) contains delta 0.29999923983081794 > 0.001
+    atom #5 (C) contains delta 0.29999923706057058 > 0.001
+    data sgroup #0 contains delta 0.30004978179931641 > 0.001

Check failure on line 1 in api/c/tests/unit/tests/layout.cpp

View workflow job for this annotation

GitHub Actions / ubuntu-latest-x86_64-dotnet_test_report

layout.reaction_layout_and_clean2d

[FAILED]
Raw output
Diff:
-   Item #0: Result of layout: Molecule #0: Success
+   Item #0: Result of layout: Molecule #0: Error: atom #0 (C) contains delta 0.49999994039536944 > 0.001
-    Molecule #1: Success
+    atom #1 (C) contains delta 0.49995946884157494 > 0.001
-    Molecule #2: Success
+    atom #2 (C) contains delta 0.50001907348634234 > 0.001
-    Molecule #3: Success
+    atom #3 (C) contains delta 0.49997806549072354 > 0.001
+    atom #4 (C) contains delta 0.50003719329835405 > 0.001
+    atom #5 (C) contains delta 0.49999618530299106 > 0.001
+    atom #6 (P) contains delta 0.49995613098180064 > 0.001
+    atom #7 (O) contains delta 0.49997806549073687 > 0.001
+    Molecule #1: Error: atom #0 (C) contains delta 0.70001411437992345 > 0.001
+    atom #1 (C) contains delta 0.69995594024658458 > 0.001
+    atom #2 (C) contains delta 0.6999559402466049 > 0.001
+    atom #3 (C) contains delta 0.70001411437992345 > 0.001
+    atom #4 (C) contains delta 0.6999740600585963 > 0.001
+    atom #5 (C) contains delta 0.69997406005861662 > 0.001
+    Molecule #2: Error: atom #0 (C) contains delta 0.49997711181666293 > 0.001
+    atom #1 (C) contains delta 0.50003623962403765 > 0.001
+    atom #2 (C) contains delta 0.49999427795410245 > 0.001
+    atom #3 (C) contains delta 0.49995422363282671 > 0.001
+    atom #4 (C) contains delta 0.50001335144045189 > 0.001
+    atom #5 (P) contains delta 0.49997329711915484 > 0.001
+    atom #6 (C) contains delta 0.49999427795411577 > 0.001
+    Molecule #3: Error: atom #0 (C) contains delta 0.69997406005859375 > 0.001
+    atom #1 (C) contains delta 0.6999778759501063 > 0.001
+    atom #2 (C) contains delta 0.69997406125284722 > 0.001
+    atom #3 (C) contains delta 0.69997406005859375 > 0.001
+    atom #4 (C) contains delta 0.69997406125284722 > 0.001
+    atom #5 (C) contains delta 0.6999778759501063 > 0.001
+    atom #6 (O) contains delta 0.69997787475585938 > 0.001

Check failure on line 1 in api/c/tests/unit/tests/layout.cpp

View workflow job for this annotation

GitHub Actions / ubuntu-latest-x86_64-dotnet_test_report

layout.smiles_layout

[FAILED]
Raw output
Diff:
- 932-agents.ket:SUCCEED
+ 932-agents.ket:FAILED
+ --- 
+ +++ 
+ @@ -43,7 +43,7 @@
+              {
+                  "type": "plus",
+                  "location": [
+ -                    1.75,
+ +                    4.099999904632568,
+                      0.0,
+                      0.0
+                  ]
+ @@ -51,7 +51,7 @@
+              {
+                  "type": "plus",
+                  "location": [
+ -                    3.25,
+ +                    7.500000476837158,
+                      0.0,
+                      0.0
+                  ]
+ @@ -59,7 +59,7 @@
+              {
+                  "type": "plus",
+                  "location": [
+ -                    14.464101791381836,
+ +                    40.44254302978516,
+                      0.0,
+                      0.0
+                  ]
+ @@ -67,7 +67,7 @@
+              {
+                  "type": "plus",
+                  "location": [
+ -                    17.878314971923829,
+ +                    47.705284118652347,
+                      0.0,
+                      0.0
+                  ]
+ @@ -78,12 +78,12 @@
+                      "mode": "open-angle",
+                      "pos": [
+                          {
+ -                            "x": 5.25,
+ +                            "x": 12.40000057220459,
+                              "y": 0.0,
+                              "z": 0.0
+                          },
+                          {
+ -                            "x": 13.464101791381836,
+ +                            "x": 37.14254760742188,
+                              "y": 0.0,
+                              "z": 0.0
+                          }
+ @@ -98,24 +98,24 @@
+              {
+                  "label": "C",
+                  "location": [
+ -                    0.0,
+ -                    0.4330127239227295,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    1.0,
+ -                    0.4330127239227295,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    0.5,
+ -                    -0.4330127239227295,
+ +                    0.800000011920929,
+ +                    0.6928203105926514,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    2.399999856948853,
+ +                    0.6928203105926514,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    1.5999999046325684,
+ +                    -0.6928203105926514,
+                      0.0
+                  ]
+              }
+ @@ -150,7 +150,7 @@
+              {
+                  "label": "S",
+                  "location": [
+ -                    2.5,
+ +                    5.800000190734863,
+                      0.0,
+                      0.0
+                  ]
+ @@ -164,32 +164,32 @@
+              {
+                  "label": "C",
+                  "location": [
+ -                    4.0,
+ -                    0.5,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    5.0,
+ -                    0.5,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    5.0,
+ -                    -0.5,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    4.0,
+ -                    -0.5,
+ +                    9.200000762939454,
+ +                    0.7999998927116394,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    10.800000190734864,
+ +                    0.7999998927116394,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    10.800000190734864,
+ +                    -0.7999998927116394,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    9.200000762939454,
+ +                    -0.7999998927116394,
+                      0.0
+                  ]
+              }
+ @@ -231,24 +231,24 @@
+              {
+                  "label": "C",
+                  "location": [
+ -                    5.75,
+ -                    1.1830127239227296,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    6.616025447845459,
+ -                    0.6830127239227295,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    7.482050895690918,
+ -                    1.1830127239227296,
+ +                    14.000000953674317,
+ +                    2.692820310592652,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    15.38564109802246,
+ +                    1.8928204774856568,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    16.771282196044927,
+ +                    2.692820310592652,
+                      0.0
+                  ]
+              }
+ @@ -276,8 +276,8 @@
+              {
+                  "label": "C",
+                  "location": [
+ -                    7.982050895690918,
+ -                    0.9330127239227296,
+ +                    19.171279907226564,
+ +                    2.292820453643799,
+                      0.0
+                  ]
+              }
+ @@ -290,8 +290,8 @@
+              {
+                  "label": "P",
+                  "location": [
+ -                    8.482050895690918,
+ -                    0.9330127239227296,
+ +                    21.571277618408204,
+ +                    2.292820453643799,
+                      0.0
+                  ]
+              }
+ @@ -304,24 +304,24 @@
+              {
+                  "label": "C",
+                  "location": [
+ -                    8.982050895690918,
+ -                    1.1830127239227296,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    9.84807586669922,
+ -                    0.6830127239227295,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    10.714101791381836,
+ -                    1.1830127239227296,
+ +                    23.971275329589845,
+ +                    2.692820310592652,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    25.356916427612306,
+ +                    1.8928204774856568,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    26.742555618286138,
+ +                    2.692820310592652,
+                      0.0
+                  ]
+              }
+ @@ -349,24 +349,24 @@
+              {
+                  "label": "C",
+                  "location": [
+ -                    11.214101791381836,
+ -                    1.366025447845459,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    12.214101791381836,
+ -                    1.366025447845459,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    11.714101791381836,
+ -                    0.5,
+ +                    29.142553329467778,
+ +                    2.98564076423645,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    30.7425537109375,
+ +                    2.98564076423645,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    29.94255256652832,
+ +                    1.6000001430511477,
+                      0.0
+                  ]
+              }
+ @@ -401,8 +401,8 @@
+              {
+                  "label": "F",
+                  "location": [
+ -                    12.714101791381836,
+ -                    0.9330127239227296,
+ +                    33.14255142211914,
+ +                    2.292820453643799,
+                      0.0
+                  ]
+              }
+ @@ -415,8 +415,8 @@
+              {
+                  "label": "I",
+                  "location": [
+ -                    13.214101791381836,
+ -                    0.9330127239227296,
+ +                    35.54254913330078,
+ +                    2.292820453643799,
+                      0.0
+                  ]
+              }
+ @@ -429,7 +429,7 @@
+              {
+                  "label": "S",
+                  "location": [
+ -                    13.964101791381836,
+ +                    38.74254608154297,
+                      0.0,
+                      0.0
+                  ]
+ @@ -443,64 +443,64 @@
+              {
+                  "label": "C",
+                  "location": [
+ -                    16.67120933532715,
+ -                    1.2071068286895753,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    15.671208381652832,
+ -                    1.2071068286895753,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    14.964101791381836,
+ -                    0.5,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    14.964101791381836,
+ -                    -0.5,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    15.671208381652832,
+ -                    -1.2071068286895753,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    16.67120933532715,
+ -                    -1.2071068286895753,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    17.378314971923829,
+ -                    -0.5,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    17.378314971923829,
+ -                    0.5,
+ +                    44.8739128112793,
+ +                    1.931370735168457,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    43.2739143371582,
+ +                    1.931370735168457,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    42.14254379272461,
+ +                    0.7999999523162842,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    42.14254379272461,
+ +                    -0.7999998331069946,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    43.2739143371582,
+ +                    -1.931370735168457,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    44.8739128112793,
+ +                    -1.931370735168457,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    46.00528717041016,
+ +                    -0.7999998331069946,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    46.00528335571289,
+ +                    0.7999999523162842,
+                      0.0
+                  ]
+              }
+ @@ -570,7 +570,7 @@
+              {
+                  "label": "O",
+                  "location": [
+ -                    18.378314971923829,
+ +                    49.4052848815918,
+                      0.0,
+                      0.0
+                  ]

Check failure on line 1 in api/c/tests/unit/tests/layout.cpp

View workflow job for this annotation

GitHub Actions / macos-13-x86_64-dotnet_test_report

layout.basic

[FAILED]
Raw output
Diff:
-   Result: Molecule #0: Success
+   Result: Molecule #0: Error: atom #0 (Cl) contains delta 0.49999994080604898 > 0.001
-    Molecule #1: Success
+    atom #1 (C) contains delta 0.4999998811941887 > 0.001
+    atom #2 (C) contains delta 0.50000023882205702 > 0.001
+    atom #3 (C) contains delta 0.49995946925227974 > 0.001
+    atom #4 (O) contains delta 0.49995946925227974 > 0.001
+    Molecule #1: Error: atom #0 (C) contains delta 0.29997920995002275 > 0.001
+    atom #1 (N) contains delta 0.29997920994369848 > 0.001
+    atom #2 (C) contains delta 0.30001926428091868 > 0.001
+    atom #3 (C) contains delta 0.29995822911726833 > 0.001
+    atom #4 (C) contains delta 0.29995918634219965 > 0.001
+    atom #5 (O) contains delta 0.29995918277715861 > 0.001
+    atom #6 (S) contains delta 0.3000373840929268 > 0.001
+    atom #7 (O) contains delta 0.30003833971291222 > 0.001
+    atom #8 (O) contains delta 0.30003738754343889 > 0.001
+    atom #9 (C) contains delta 0.29999923709939591 > 0.001
+    atom #10 (F) contains delta 0.30000686647639391 > 0.001
+    atom #11 (F) contains delta 0.29999160767368971 > 0.001
+    atom #12 (C) contains delta 0.29995727541836198 > 0.001
+    atom #13 (F) contains delta 0.30004882835243141 > 0.001
+    atom #14 (F) contains delta 0.29996299763701595 > 0.001
+    atom #15 (C) contains delta 0.3000164032124582 > 0.001
+    atom #16 (F) contains delta 0.30002403264288635 > 0.001
+    atom #17 (F) contains delta 0.30001258852229196 > 0.001
+    atom #18 (C) contains delta 0.29997634888174191 > 0.001
+    atom #19 (F) contains delta 0.29997444153118641 > 0.001
+    atom #20 (F) contains delta 0.30003738403453523 > 0.001
+    atom #21 (F) contains delta 0.30003547668459402 > 0.001
-   Result: Molecule #0: Success
+   Result: Molecule #0: Error: atom #0 (C) contains delta 0.50000024008073674 > 0.001
-    Molecule #1: Success
+    atom #1 (C) contains delta 0.50000000166215841 > 0.001
+    atom #2 (C) contains delta 0.49999994039541207 > 0.001
+    atom #3 (C) contains delta 0.50000000164277481 > 0.001
+    atom #4 (C) contains delta 0.50000000166215841 > 0.001
+    atom #5 (C) contains delta 0.49999952316285601 > 0.001
+    data sgroup #0 contains delta 0.49999976158142445 > 0.001
+    Molecule #1: Error: atom #0 (C) contains delta 0.30000019350512552 > 0.001
+    atom #1 (C) contains delta 0.29999923983081794 > 0.001
+    atom #2 (C) contains delta 0.29999923706064163 > 0.001
+    atom #3 (C) contains delta 0.29999923979851184 > 0.001
+    atom #4 (C) contains delta 0.29999923983081794 > 0.001
+    atom #5 (C) contains delta 0.29999923706057058 > 0.001
+    data sgroup #0 contains delta 0.30004978179931641 > 0.001

Check failure on line 1 in api/c/tests/unit/tests/layout.cpp

View workflow job for this annotation

GitHub Actions / macos-13-x86_64-dotnet_test_report

layout.reaction_layout_and_clean2d

[FAILED]
Raw output
Diff:
-   Item #0: Result of layout: Molecule #0: Success
+   Item #0: Result of layout: Molecule #0: Error: atom #0 (C) contains delta 0.49999994039535522 > 0.001
-    Molecule #1: Success
+    atom #1 (C) contains delta 0.49995899200439542 > 0.001
-    Molecule #2: Success
+    atom #2 (C) contains delta 0.50001859664916992 > 0.001
-    Molecule #3: Success
+    atom #3 (C) contains delta 0.49997758865357245 > 0.001
+    atom #4 (C) contains delta 0.50003671646118164 > 0.001
+    atom #5 (C) contains delta 0.49999618530288448 > 0.001
+    atom #6 (P) contains delta 0.49995613098167269 > 0.001
+    atom #7 (O) contains delta 0.49997758865356445 > 0.001
+    Molecule #1: Error: atom #0 (C) contains delta 0.70001411437992345 > 0.001
+    atom #1 (C) contains delta 0.69995594024658458 > 0.001
+    atom #2 (C) contains delta 0.6999559402466049 > 0.001
+    atom #3 (C) contains delta 0.70001411437992345 > 0.001
+    atom #4 (C) contains delta 0.6999740600585963 > 0.001
+    atom #5 (C) contains delta 0.69997406005861662 > 0.001
+    Molecule #2: Error: atom #0 (C) contains delta 0.49997711181655635 > 0.001
+    atom #1 (C) contains delta 0.50003623962402344 > 0.001
+    atom #2 (C) contains delta 0.49999427795410956 > 0.001
+    atom #3 (C) contains delta 0.4999542236328125 > 0.001
+    atom #4 (C) contains delta 0.50001335144043058 > 0.001
+    atom #5 (P) contains delta 0.49997329711914062 > 0.001
+    atom #6 (C) contains delta 0.49999427795410156 > 0.001
+    Molecule #3: Error: atom #0 (C) contains delta 0.69997406005859375 > 0.001
+    atom #1 (C) contains delta 0.6999778759501063 > 0.001
+    atom #2 (C) contains delta 0.69997406125284722 > 0.001
+    atom #3 (C) contains delta 0.69997406005859375 > 0.001
+    atom #4 (C) contains delta 0.69997406125284722 > 0.001
+    atom #5 (C) contains delta 0.6999778759501063 > 0.001
+    atom #6 (O) contains delta 0.69997787475585938 > 0.001

Check failure on line 1 in api/c/tests/unit/tests/layout.cpp

View workflow job for this annotation

GitHub Actions / macos-13-x86_64-dotnet_test_report

layout.smiles_layout

[FAILED]
Raw output
Diff:
- 932-agents.ket:SUCCEED
+ 932-agents.ket:FAILED
+ --- 
+ +++ 
+ @@ -43,7 +43,7 @@
+              {
+                  "type": "plus",
+                  "location": [
+ -                    1.75,
+ +                    4.099999904632568,
+                      0.0,
+                      0.0
+                  ]
+ @@ -51,7 +51,7 @@
+              {
+                  "type": "plus",
+                  "location": [
+ -                    3.25,
+ +                    7.500000476837158,
+                      0.0,
+                      0.0
+                  ]
+ @@ -59,7 +59,7 @@
+              {
+                  "type": "plus",
+                  "location": [
+ -                    14.464101791381836,
+ +                    40.44254302978516,
+                      0.0,
+                      0.0
+                  ]
+ @@ -67,7 +67,7 @@
+              {
+                  "type": "plus",
+                  "location": [
+ -                    17.878314971923829,
+ +                    47.705284118652347,
+                      0.0,
+                      0.0
+                  ]
+ @@ -78,12 +78,12 @@
+                      "mode": "open-angle",
+                      "pos": [
+                          {
+ -                            "x": 5.25,
+ +                            "x": 12.40000057220459,
+                              "y": 0.0,
+                              "z": 0.0
+                          },
+                          {
+ -                            "x": 13.464101791381836,
+ +                            "x": 37.14254760742188,
+                              "y": 0.0,
+                              "z": 0.0
+                          }
+ @@ -98,24 +98,24 @@
+              {
+                  "label": "C",
+                  "location": [
+ -                    0.0,
+ -                    0.4330127239227295,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    1.0,
+ -                    0.4330127239227295,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    0.5,
+ -                    -0.4330127239227295,
+ +                    0.800000011920929,
+ +                    0.6928203105926514,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    2.399999856948853,
+ +                    0.6928203105926514,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    1.5999999046325684,
+ +                    -0.6928203105926514,
+                      0.0
+                  ]
+              }
+ @@ -150,7 +150,7 @@
+              {
+                  "label": "S",
+                  "location": [
+ -                    2.5,
+ +                    5.800000190734863,
+                      0.0,
+                      0.0
+                  ]
+ @@ -164,32 +164,32 @@
+              {
+                  "label": "C",
+                  "location": [
+ -                    4.0,
+ -                    0.5,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    5.0,
+ -                    0.5,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    5.0,
+ -                    -0.5,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    4.0,
+ -                    -0.5,
+ +                    9.200000762939454,
+ +                    0.7999998927116394,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    10.800000190734864,
+ +                    0.7999998927116394,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    10.800000190734864,
+ +                    -0.7999998927116394,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    9.200000762939454,
+ +                    -0.7999998927116394,
+                      0.0
+                  ]
+              }
+ @@ -231,24 +231,24 @@
+              {
+                  "label": "C",
+                  "location": [
+ -                    5.75,
+ -                    1.1830127239227296,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    6.616025447845459,
+ -                    0.6830127239227295,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    7.482050895690918,
+ -                    1.1830127239227296,
+ +                    14.000000953674317,
+ +                    2.692820310592652,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    15.38564109802246,
+ +                    1.8928204774856568,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    16.771282196044927,
+ +                    2.692820310592652,
+                      0.0
+                  ]
+              }
+ @@ -276,8 +276,8 @@
+              {
+                  "label": "C",
+                  "location": [
+ -                    7.982050895690918,
+ -                    0.9330127239227296,
+ +                    19.171279907226564,
+ +                    2.292820453643799,
+                      0.0
+                  ]
+              }
+ @@ -290,8 +290,8 @@
+              {
+                  "label": "P",
+                  "location": [
+ -                    8.482050895690918,
+ -                    0.9330127239227296,
+ +                    21.571277618408204,
+ +                    2.292820453643799,
+                      0.0
+                  ]
+              }
+ @@ -304,24 +304,24 @@
+              {
+                  "label": "C",
+                  "location": [
+ -                    8.982050895690918,
+ -                    1.1830127239227296,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    9.84807586669922,
+ -                    0.6830127239227295,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    10.714101791381836,
+ -                    1.1830127239227296,
+ +                    23.971275329589845,
+ +                    2.692820310592652,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    25.356916427612306,
+ +                    1.8928204774856568,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    26.742555618286138,
+ +                    2.692820310592652,
+                      0.0
+                  ]
+              }
+ @@ -349,24 +349,24 @@
+              {
+                  "label": "C",
+                  "location": [
+ -                    11.214101791381836,
+ -                    1.366025447845459,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    12.214101791381836,
+ -                    1.366025447845459,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    11.714101791381836,
+ -                    0.5,
+ +                    29.142553329467778,
+ +                    2.98564076423645,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    30.7425537109375,
+ +                    2.98564076423645,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    29.94255256652832,
+ +                    1.6000001430511477,
+                      0.0
+                  ]
+              }
+ @@ -401,8 +401,8 @@
+              {
+                  "label": "F",
+                  "location": [
+ -                    12.714101791381836,
+ -                    0.9330127239227296,
+ +                    33.14255142211914,
+ +                    2.292820453643799,
+                      0.0
+                  ]
+              }
+ @@ -415,8 +415,8 @@
+              {
+                  "label": "I",
+                  "location": [
+ -                    13.214101791381836,
+ -                    0.9330127239227296,
+ +                    35.54254913330078,
+ +                    2.292820453643799,
+                      0.0
+                  ]
+              }
+ @@ -429,7 +429,7 @@
+              {
+                  "label": "S",
+                  "location": [
+ -                    13.964101791381836,
+ +                    38.74254608154297,
+                      0.0,
+                      0.0
+                  ]
+ @@ -443,64 +443,64 @@
+              {
+                  "label": "C",
+                  "location": [
+ -                    16.67120933532715,
+ -                    1.2071068286895753,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    15.671208381652832,
+ -                    1.2071068286895753,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    14.964101791381836,
+ -                    0.5,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    14.964101791381836,
+ -                    -0.5,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    15.671208381652832,
+ -                    -1.2071068286895753,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    16.67120933532715,
+ -                    -1.2071068286895753,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    17.378314971923829,
+ -                    -0.5,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    17.378314971923829,
+ -                    0.5,
+ +                    44.8739128112793,
+ +                    1.931370735168457,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    43.2739143371582,
+ +                    1.931370735168457,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    42.14254379272461,
+ +                    0.7999999523162842,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    42.14254379272461,
+ +                    -0.7999998331069946,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    43.2739143371582,
+ +                    -1.931370735168457,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    44.8739128112793,
+ +                    -1.931370735168457,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    46.00528717041016,
+ +                    -0.7999998331069946,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    46.00528335571289,
+ +                    0.7999999523162842,
+                      0.0
+                  ]
+              }
+ @@ -570,7 +570,7 @@
+              {
+                  "label": "O",
+                  "location": [
+ -                    18.378314971923829,
+ +                    49.4052848815918,
+                      0.0,
+                      0.0
+                  ]

Check failure on line 1 in api/c/tests/unit/tests/layout.cpp

View workflow job for this annotation

GitHub Actions / macos-13-x86_64-java_test_report

layout.basic

[FAILED]
Raw output
Diff:
-   Result: Molecule #0: Success
+   Result: Molecule #0: Error: atom #0 (Cl) contains delta 0.499999940806 > 0.001
-    Molecule #1: Success
+    atom #1 (C) contains delta 0.499999881194 > 0.001
+    atom #2 (C) contains delta 0.500000238822 > 0.001
+    atom #3 (C) contains delta 0.499959469252 > 0.001
+    atom #4 (O) contains delta 0.499959469252 > 0.001
+    Molecule #1: Error: atom #0 (C) contains delta 0.29997920995 > 0.001
+    atom #1 (N) contains delta 0.299979209944 > 0.001
+    atom #2 (C) contains delta 0.300019264281 > 0.001
+    atom #3 (C) contains delta 0.299958229117 > 0.001
+    atom #4 (C) contains delta 0.299959186342 > 0.001
+    atom #5 (O) contains delta 0.299959182777 > 0.001
+    atom #6 (S) contains delta 0.300037384093 > 0.001
+    atom #7 (O) contains delta 0.300038339713 > 0.001
+    atom #8 (O) contains delta 0.300037387543 > 0.001
+    atom #9 (C) contains delta 0.299999237099 > 0.001
+    atom #10 (F) contains delta 0.300006866476 > 0.001
+    atom #11 (F) contains delta 0.299991607674 > 0.001
+    atom #12 (C) contains delta 0.299957275418 > 0.001
+    atom #13 (F) contains delta 0.300048828352 > 0.001
+    atom #14 (F) contains delta 0.299962997637 > 0.001
+    atom #15 (C) contains delta 0.300016403212 > 0.001
+    atom #16 (F) contains delta 0.300024032643 > 0.001
+    atom #17 (F) contains delta 0.300012588522 > 0.001
+    atom #18 (C) contains delta 0.299976348882 > 0.001
+    atom #19 (F) contains delta 0.299974441531 > 0.001
+    atom #20 (F) contains delta 0.300037384035 > 0.001
+    atom #21 (F) contains delta 0.300035476685 > 0.001
-   Result: Molecule #0: Success
+   Result: Molecule #0: Error: atom #0 (C) contains delta 0.500000240081 > 0.001
-    Molecule #1: Success
+    atom #1 (C) contains delta 0.500000001662 > 0.001
+    atom #2 (C) contains delta 0.499999940395 > 0.001
+    atom #3 (C) contains delta 0.500000001643 > 0.001
+    atom #4 (C) contains delta 0.500000001662 > 0.001
+    atom #5 (C) contains delta 0.499999523163 > 0.001
+    data sgroup #0 contains delta 0.499999761581 > 0.001
+    Molecule #1: Error: atom #0 (C) contains delta 0.300000193505 > 0.001
+    atom #1 (C) contains delta 0.299999239831 > 0.001
+    atom #2 (C) contains delta 0.299999237061 > 0.001
+    atom #3 (C) contains delta 0.299999239799 > 0.001
+    atom #4 (C) contains delta 0.299999239831 > 0.001
+    atom #5 (C) contains delta 0.299999237061 > 0.001
+    data sgroup #0 contains delta 0.300049781799 > 0.001

Check failure on line 1 in api/c/tests/unit/tests/layout.cpp

View workflow job for this annotation

GitHub Actions / macos-13-x86_64-java_test_report

layout.reaction_layout_and_clean2d

[FAILED]
Raw output
Diff:
-   Item #0: Result of layout: Molecule #0: Success
+   Item #0: Result of layout: Molecule #0: Error: atom #0 (C) contains delta 0.499999940395 > 0.001
-    Molecule #1: Success
+    atom #1 (C) contains delta 0.499958992004 > 0.001
-    Molecule #2: Success
+    atom #2 (C) contains delta 0.500018596649 > 0.001
-    Molecule #3: Success
+    atom #3 (C) contains delta 0.499977588654 > 0.001
+    atom #4 (C) contains delta 0.500036716461 > 0.001
+    atom #5 (C) contains delta 0.499996185303 > 0.001
+    atom #6 (P) contains delta 0.499956130982 > 0.001
+    atom #7 (O) contains delta 0.499977588654 > 0.001
+    Molecule #1: Error: atom #0 (C) contains delta 0.70001411438 > 0.001
+    atom #1 (C) contains delta 0.699955940247 > 0.001
+    atom #2 (C) contains delta 0.699955940247 > 0.001
+    atom #3 (C) contains delta 0.70001411438 > 0.001
+    atom #4 (C) contains delta 0.699974060059 > 0.001
+    atom #5 (C) contains delta 0.699974060059 > 0.001
+    Molecule #2: Error: atom #0 (C) contains delta 0.499977111817 > 0.001
+    atom #1 (C) contains delta 0.500036239624 > 0.001
+    atom #2 (C) contains delta 0.499994277954 > 0.001
+    atom #3 (C) contains delta 0.499954223633 > 0.001
+    atom #4 (C) contains delta 0.50001335144 > 0.001
+    atom #5 (P) contains delta 0.499973297119 > 0.001
+    atom #6 (C) contains delta 0.499994277954 > 0.001
+    Molecule #3: Error: atom #0 (C) contains delta 0.699974060059 > 0.001
+    atom #1 (C) contains delta 0.69997787595 > 0.001
+    atom #2 (C) contains delta 0.699974061253 > 0.001
+    atom #3 (C) contains delta 0.699974060059 > 0.001
+    atom #4 (C) contains delta 0.699974061253 > 0.001
+    atom #5 (C) contains delta 0.69997787595 > 0.001
+    atom #6 (O) contains delta 0.699977874756 > 0.001

Check failure on line 1 in api/c/tests/unit/tests/layout.cpp

View workflow job for this annotation

GitHub Actions / macos-13-x86_64-java_test_report

layout.smiles_layout

[FAILED]
Raw output
Diff:
- 932-agents.ket:SUCCEED
+ 932-agents.ket:FAILED
+ --- 
+ +++ 
+ @@ -43,7 +43,7 @@
+              {
+                  "type": "plus",
+                  "location": [
+ -                    1.75,
+ +                    4.099999904632568,
+                      0.0,
+                      0.0
+                  ]
+ @@ -51,7 +51,7 @@
+              {
+                  "type": "plus",
+                  "location": [
+ -                    3.25,
+ +                    7.500000476837158,
+                      0.0,
+                      0.0
+                  ]
+ @@ -59,7 +59,7 @@
+              {
+                  "type": "plus",
+                  "location": [
+ -                    14.464101791381836,
+ +                    40.44254302978516,
+                      0.0,
+                      0.0
+                  ]
+ @@ -67,7 +67,7 @@
+              {
+                  "type": "plus",
+                  "location": [
+ -                    17.878314971923829,
+ +                    47.705284118652347,
+                      0.0,
+                      0.0
+                  ]
+ @@ -78,12 +78,12 @@
+                      "mode": "open-angle",
+                      "pos": [
+                          {
+ -                            "x": 5.25,
+ +                            "x": 12.40000057220459,
+                              "y": 0.0,
+                              "z": 0.0
+                          },
+                          {
+ -                            "x": 13.464101791381836,
+ +                            "x": 37.14254760742188,
+                              "y": 0.0,
+                              "z": 0.0
+                          }
+ @@ -98,24 +98,24 @@
+              {
+                  "label": "C",
+                  "location": [
+ -                    0.0,
+ -                    0.4330127239227295,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    1.0,
+ -                    0.4330127239227295,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    0.5,
+ -                    -0.4330127239227295,
+ +                    0.800000011920929,
+ +                    0.6928203105926514,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    2.399999856948853,
+ +                    0.6928203105926514,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    1.5999999046325684,
+ +                    -0.6928203105926514,
+                      0.0
+                  ]
+              }
+ @@ -150,7 +150,7 @@
+              {
+                  "label": "S",
+                  "location": [
+ -                    2.5,
+ +                    5.800000190734863,
+                      0.0,
+                      0.0
+                  ]
+ @@ -164,32 +164,32 @@
+              {
+                  "label": "C",
+                  "location": [
+ -                    4.0,
+ -                    0.5,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    5.0,
+ -                    0.5,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    5.0,
+ -                    -0.5,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    4.0,
+ -                    -0.5,
+ +                    9.200000762939454,
+ +                    0.7999998927116394,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    10.800000190734864,
+ +                    0.7999998927116394,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    10.800000190734864,
+ +                    -0.7999998927116394,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    9.200000762939454,
+ +                    -0.7999998927116394,
+                      0.0
+                  ]
+              }
+ @@ -231,24 +231,24 @@
+              {
+                  "label": "C",
+                  "location": [
+ -                    5.75,
+ -                    1.1830127239227296,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    6.616025447845459,
+ -                    0.6830127239227295,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    7.482050895690918,
+ -                    1.1830127239227296,
+ +                    14.000000953674317,
+ +                    2.692820310592652,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    15.38564109802246,
+ +                    1.8928204774856568,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    16.771282196044927,
+ +                    2.692820310592652,
+                      0.0
+                  ]
+              }
+ @@ -276,8 +276,8 @@
+              {
+                  "label": "C",
+                  "location": [
+ -                    7.982050895690918,
+ -                    0.9330127239227296,
+ +                    19.171279907226564,
+ +                    2.292820453643799,
+                      0.0
+                  ]
+              }
+ @@ -290,8 +290,8 @@
+              {
+                  "label": "P",
+                  "location": [
+ -                    8.482050895690918,
+ -                    0.9330127239227296,
+ +                    21.571277618408204,
+ +                    2.292820453643799,
+                      0.0
+                  ]
+              }
+ @@ -304,24 +304,24 @@
+              {
+                  "label": "C",
+                  "location": [
+ -                    8.982050895690918,
+ -                    1.1830127239227296,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    9.84807586669922,
+ -                    0.6830127239227295,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    10.714101791381836,
+ -                    1.1830127239227296,
+ +                    23.971275329589845,
+ +                    2.692820310592652,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    25.356916427612306,
+ +                    1.8928204774856568,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    26.742555618286138,
+ +                    2.692820310592652,
+                      0.0
+                  ]
+              }
+ @@ -349,24 +349,24 @@
+              {
+                  "label": "C",
+                  "location": [
+ -                    11.214101791381836,
+ -                    1.366025447845459,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    12.214101791381836,
+ -                    1.366025447845459,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    11.714101791381836,
+ -                    0.5,
+ +                    29.142553329467778,
+ +                    2.98564076423645,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    30.7425537109375,
+ +                    2.98564076423645,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    29.94255256652832,
+ +                    1.6000001430511477,
+                      0.0
+                  ]
+              }
+ @@ -401,8 +401,8 @@
+              {
+                  "label": "F",
+                  "location": [
+ -                    12.714101791381836,
+ -                    0.9330127239227296,
+ +                    33.14255142211914,
+ +                    2.292820453643799,
+                      0.0
+                  ]
+              }
+ @@ -415,8 +415,8 @@
+              {
+                  "label": "I",
+                  "location": [
+ -                    13.214101791381836,
+ -                    0.9330127239227296,
+ +                    35.54254913330078,
+ +                    2.292820453643799,
+                      0.0
+                  ]
+              }
+ @@ -429,7 +429,7 @@
+              {
+                  "label": "S",
+                  "location": [
+ -                    13.964101791381836,
+ +                    38.74254608154297,
+                      0.0,
+                      0.0
+                  ]
+ @@ -443,64 +443,64 @@
+              {
+                  "label": "C",
+                  "location": [
+ -                    16.67120933532715,
+ -                    1.2071068286895753,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    15.671208381652832,
+ -                    1.2071068286895753,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    14.964101791381836,
+ -                    0.5,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    14.964101791381836,
+ -                    -0.5,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    15.671208381652832,
+ -                    -1.2071068286895753,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    16.67120933532715,
+ -                    -1.2071068286895753,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    17.378314971923829,
+ -                    -0.5,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    17.378314971923829,
+ -                    0.5,
+ +                    44.8739128112793,
+ +                    1.931370735168457,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    43.2739143371582,
+ +                    1.931370735168457,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    42.14254379272461,
+ +                    0.7999999523162842,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    42.14254379272461,
+ +                    -0.7999998331069946,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    43.2739143371582,
+ +                    -1.931370735168457,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    44.8739128112793,
+ +                    -1.931370735168457,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    46.00528717041016,
+ +                    -0.7999998331069946,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    46.00528335571289,
+ +                    0.7999999523162842,
+                      0.0
+                  ]
+              }
+ @@ -570,7 +570,7 @@
+              {
+                  "label": "O",
+                  "location": [
+ -                    18.378314971923829,
+ +                    49.4052848815918,
+                      0.0,
+                      0.0
+                  ]

Check failure on line 1 in api/c/tests/unit/tests/layout.cpp

View workflow job for this annotation

GitHub Actions / macos-13-x86_64-python_test_report

layout.basic

[FAILED]
Raw output
Diff:
-   Result: Molecule #0: Success
+   Result: Molecule #0: Error: atom #0 (Cl) contains delta 0.499999940806049 > 0.001
-    Molecule #1: Success
+    atom #1 (C) contains delta 0.4999998811941887 > 0.001
+    atom #2 (C) contains delta 0.500000238822057 > 0.001
+    atom #3 (C) contains delta 0.49995946925227974 > 0.001
+    atom #4 (O) contains delta 0.49995946925227974 > 0.001
+    Molecule #1: Error: atom #0 (C) contains delta 0.29997920995002275 > 0.001
+    atom #1 (N) contains delta 0.2999792099436985 > 0.001
+    atom #2 (C) contains delta 0.3000192642809187 > 0.001
+    atom #3 (C) contains delta 0.2999582291172683 > 0.001
+    atom #4 (C) contains delta 0.29995918634219965 > 0.001
+    atom #5 (O) contains delta 0.2999591827771586 > 0.001
+    atom #6 (S) contains delta 0.3000373840929268 > 0.001
+    atom #7 (O) contains delta 0.3000383397129122 > 0.001
+    atom #8 (O) contains delta 0.3000373875434389 > 0.001
+    atom #9 (C) contains delta 0.2999992370993959 > 0.001
+    atom #10 (F) contains delta 0.3000068664763939 > 0.001
+    atom #11 (F) contains delta 0.2999916076736897 > 0.001
+    atom #12 (C) contains delta 0.299957275418362 > 0.001
+    atom #13 (F) contains delta 0.3000488283524314 > 0.001
+    atom #14 (F) contains delta 0.29996299763701595 > 0.001
+    atom #15 (C) contains delta 0.3000164032124582 > 0.001
+    atom #16 (F) contains delta 0.30002403264288635 > 0.001
+    atom #17 (F) contains delta 0.30001258852229196 > 0.001
+    atom #18 (C) contains delta 0.2999763488817419 > 0.001
+    atom #19 (F) contains delta 0.2999744415311864 > 0.001
+    atom #20 (F) contains delta 0.3000373840345352 > 0.001
+    atom #21 (F) contains delta 0.300035476684594 > 0.001
-   Result: Molecule #0: Success
+   Result: Molecule #0: Error: atom #0 (C) contains delta 0.5000002400807367 > 0.001
-    Molecule #1: Success
+    atom #1 (C) contains delta 0.5000000016621584 > 0.001
+    atom #2 (C) contains delta 0.49999994039541207 > 0.001
+    atom #3 (C) contains delta 0.5000000016427748 > 0.001
+    atom #4 (C) contains delta 0.5000000016621584 > 0.001
+    atom #5 (C) contains delta 0.499999523162856 > 0.001
+    data sgroup #0 contains delta 0.49999976158142445 > 0.001
+    Molecule #1: Error: atom #0 (C) contains delta 0.3000001935051255 > 0.001
+    atom #1 (C) contains delta 0.29999923983081794 > 0.001
+    atom #2 (C) contains delta 0.29999923706064163 > 0.001
+    atom #3 (C) contains delta 0.29999923979851184 > 0.001
+    atom #4 (C) contains delta 0.29999923983081794 > 0.001
+    atom #5 (C) contains delta 0.2999992370605706 > 0.001
+    data sgroup #0 contains delta 0.3000497817993164 > 0.001

Check failure on line 1 in api/c/tests/unit/tests/layout.cpp

View workflow job for this annotation

GitHub Actions / macos-13-x86_64-python_test_report

layout.reaction_layout_and_clean2d

[FAILED]
Raw output
Diff:
-   Item #0: Result of layout: Molecule #0: Success
+   Item #0: Result of layout: Molecule #0: Error: atom #0 (C) contains delta 0.4999999403953552 > 0.001
-    Molecule #1: Success
+    atom #1 (C) contains delta 0.4999589920043954 > 0.001
-    Molecule #2: Success
+    atom #2 (C) contains delta 0.5000185966491699 > 0.001
-    Molecule #3: Success
+    atom #3 (C) contains delta 0.49997758865357245 > 0.001
+    atom #4 (C) contains delta 0.5000367164611816 > 0.001
+    atom #5 (C) contains delta 0.4999961853028845 > 0.001
+    atom #6 (P) contains delta 0.4999561309816727 > 0.001
+    atom #7 (O) contains delta 0.49997758865356445 > 0.001
+    Molecule #1: Error: atom #0 (C) contains delta 0.7000141143799234 > 0.001
+    atom #1 (C) contains delta 0.6999559402465846 > 0.001
+    atom #2 (C) contains delta 0.6999559402466049 > 0.001
+    atom #3 (C) contains delta 0.7000141143799234 > 0.001
+    atom #4 (C) contains delta 0.6999740600585963 > 0.001
+    atom #5 (C) contains delta 0.6999740600586166 > 0.001
+    Molecule #2: Error: atom #0 (C) contains delta 0.49997711181655635 > 0.001
+    atom #1 (C) contains delta 0.5000362396240234 > 0.001
+    atom #2 (C) contains delta 0.49999427795410956 > 0.001
+    atom #3 (C) contains delta 0.4999542236328125 > 0.001
+    atom #4 (C) contains delta 0.5000133514404306 > 0.001
+    atom #5 (P) contains delta 0.4999732971191406 > 0.001
+    atom #6 (C) contains delta 0.49999427795410156 > 0.001
+    Molecule #3: Error: atom #0 (C) contains delta 0.6999740600585938 > 0.001
+    atom #1 (C) contains delta 0.6999778759501063 > 0.001
+    atom #2 (C) contains delta 0.6999740612528472 > 0.001
+    atom #3 (C) contains delta 0.6999740600585938 > 0.001
+    atom #4 (C) contains delta 0.6999740612528472 > 0.001
+    atom #5 (C) contains delta 0.6999778759501063 > 0.001
+    atom #6 (O) contains delta 0.6999778747558594 > 0.001

Check failure on line 1 in api/c/tests/unit/tests/layout.cpp

View workflow job for this annotation

GitHub Actions / macos-13-x86_64-python_test_report

layout.smiles_layout

[FAILED]
Raw output
Diff:
- 932-agents.ket:SUCCEED
+ 932-agents.ket:FAILED
+ --- 
+ +++ 
+ @@ -43,7 +43,7 @@
+              {
+                  "type": "plus",
+                  "location": [
+ -                    1.75,
+ +                    4.099999904632568,
+                      0.0,
+                      0.0
+                  ]
+ @@ -51,7 +51,7 @@
+              {
+                  "type": "plus",
+                  "location": [
+ -                    3.25,
+ +                    7.500000476837158,
+                      0.0,
+                      0.0
+                  ]
+ @@ -59,7 +59,7 @@
+              {
+                  "type": "plus",
+                  "location": [
+ -                    14.464101791381836,
+ +                    40.44254302978516,
+                      0.0,
+                      0.0
+                  ]
+ @@ -67,7 +67,7 @@
+              {
+                  "type": "plus",
+                  "location": [
+ -                    17.878314971923829,
+ +                    47.705284118652347,
+                      0.0,
+                      0.0
+                  ]
+ @@ -78,12 +78,12 @@
+                      "mode": "open-angle",
+                      "pos": [
+                          {
+ -                            "x": 5.25,
+ +                            "x": 12.40000057220459,
+                              "y": 0.0,
+                              "z": 0.0
+                          },
+                          {
+ -                            "x": 13.464101791381836,
+ +                            "x": 37.14254760742188,
+                              "y": 0.0,
+                              "z": 0.0
+                          }
+ @@ -98,24 +98,24 @@
+              {
+                  "label": "C",
+                  "location": [
+ -                    0.0,
+ -                    0.4330127239227295,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    1.0,
+ -                    0.4330127239227295,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    0.5,
+ -                    -0.4330127239227295,
+ +                    0.800000011920929,
+ +                    0.6928203105926514,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    2.399999856948853,
+ +                    0.6928203105926514,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    1.5999999046325684,
+ +                    -0.6928203105926514,
+                      0.0
+                  ]
+              }
+ @@ -150,7 +150,7 @@
+              {
+                  "label": "S",
+                  "location": [
+ -                    2.5,
+ +                    5.800000190734863,
+                      0.0,
+                      0.0
+                  ]
+ @@ -164,32 +164,32 @@
+              {
+                  "label": "C",
+                  "location": [
+ -                    4.0,
+ -                    0.5,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    5.0,
+ -                    0.5,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    5.0,
+ -                    -0.5,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    4.0,
+ -                    -0.5,
+ +                    9.200000762939454,
+ +                    0.7999998927116394,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    10.800000190734864,
+ +                    0.7999998927116394,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    10.800000190734864,
+ +                    -0.7999998927116394,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    9.200000762939454,
+ +                    -0.7999998927116394,
+                      0.0
+                  ]
+              }
+ @@ -231,24 +231,24 @@
+              {
+                  "label": "C",
+                  "location": [
+ -                    5.75,
+ -                    1.1830127239227296,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    6.616025447845459,
+ -                    0.6830127239227295,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    7.482050895690918,
+ -                    1.1830127239227296,
+ +                    14.000000953674317,
+ +                    2.692820310592652,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    15.38564109802246,
+ +                    1.8928204774856568,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    16.771282196044927,
+ +                    2.692820310592652,
+                      0.0
+                  ]
+              }
+ @@ -276,8 +276,8 @@
+              {
+                  "label": "C",
+                  "location": [
+ -                    7.982050895690918,
+ -                    0.9330127239227296,
+ +                    19.171279907226564,
+ +                    2.292820453643799,
+                      0.0
+                  ]
+              }
+ @@ -290,8 +290,8 @@
+              {
+                  "label": "P",
+                  "location": [
+ -                    8.482050895690918,
+ -                    0.9330127239227296,
+ +                    21.571277618408204,
+ +                    2.292820453643799,
+                      0.0
+                  ]
+              }
+ @@ -304,24 +304,24 @@
+              {
+                  "label": "C",
+                  "location": [
+ -                    8.982050895690918,
+ -                    1.1830127239227296,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    9.84807586669922,
+ -                    0.6830127239227295,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    10.714101791381836,
+ -                    1.1830127239227296,
+ +                    23.971275329589845,
+ +                    2.692820310592652,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    25.356916427612306,
+ +                    1.8928204774856568,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    26.742555618286138,
+ +                    2.692820310592652,
+                      0.0
+                  ]
+              }
+ @@ -349,24 +349,24 @@
+              {
+                  "label": "C",
+                  "location": [
+ -                    11.214101791381836,
+ -                    1.366025447845459,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    12.214101791381836,
+ -                    1.366025447845459,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    11.714101791381836,
+ -                    0.5,
+ +                    29.142553329467778,
+ +                    2.98564076423645,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    30.7425537109375,
+ +                    2.98564076423645,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    29.94255256652832,
+ +                    1.6000001430511477,
+                      0.0
+                  ]
+              }
+ @@ -401,8 +401,8 @@
+              {
+                  "label": "F",
+                  "location": [
+ -                    12.714101791381836,
+ -                    0.9330127239227296,
+ +                    33.14255142211914,
+ +                    2.292820453643799,
+                      0.0
+                  ]
+              }
+ @@ -415,8 +415,8 @@
+              {
+                  "label": "I",
+                  "location": [
+ -                    13.214101791381836,
+ -                    0.9330127239227296,
+ +                    35.54254913330078,
+ +                    2.292820453643799,
+                      0.0
+                  ]
+              }
+ @@ -429,7 +429,7 @@
+              {
+                  "label": "S",
+                  "location": [
+ -                    13.964101791381836,
+ +                    38.74254608154297,
+                      0.0,
+                      0.0
+                  ]
+ @@ -443,64 +443,64 @@
+              {
+                  "label": "C",
+                  "location": [
+ -                    16.67120933532715,
+ -                    1.2071068286895753,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    15.671208381652832,
+ -                    1.2071068286895753,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    14.964101791381836,
+ -                    0.5,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    14.964101791381836,
+ -                    -0.5,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    15.671208381652832,
+ -                    -1.2071068286895753,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    16.67120933532715,
+ -                    -1.2071068286895753,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    17.378314971923829,
+ -                    -0.5,
+ -                    0.0
+ -                ]
+ -            },
+ -            {
+ -                "label": "C",
+ -                "location": [
+ -                    17.378314971923829,
+ -                    0.5,
+ +                    44.8739128112793,
+ +                    1.931370735168457,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    43.2739143371582,
+ +                    1.931370735168457,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    42.14254379272461,
+ +                    0.7999999523162842,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    42.14254379272461,
+ +                    -0.7999998331069946,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    43.2739143371582,
+ +                    -1.931370735168457,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    44.8739128112793,
+ +                    -1.931370735168457,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    46.00528717041016,
+ +                    -0.7999998331069946,
+ +                    0.0
+ +                ]
+ +            },
+ +            {
+ +                "label": "C",
+ +                "location": [
+ +                    46.00528335571289,
+ +                    0.7999999523162842,
+                      0.0
+                  ]
+              }
+ @@ -570,7 +570,7 @@
+              {
+                  "label": "O",
+                  "location": [
+ -                    18.378314971923829,
+ +                    49.4052848815918,
+                      0.0,
+                      0.0
+                  ]
* Copyright (C) from 2009 to Present EPAM Systems.
*
* This file is part of Indigo toolkit.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
***************************************************************************/

#include <thread>

#include <gtest/gtest.h>

#include <base_cpp/exception.h>

#include <algorithm>
#include <fstream>
#include <indigo-renderer.h>
#include <indigo.h>

#include "common.h"

using namespace indigo;

class IndigoApiLayoutTest : public IndigoApiTest
{
protected:
void SetUp() final
{
IndigoApiTest::SetUp();
indigoRendererInit(session);
}

void TearDown() final
{
indigoRendererDispose(session);
IndigoApiTest::TearDown();
}

struct TestCaseResult
{
std::string_view result;
std::string_view expected;
};

TestCaseResult applyLayoutAndGetResult(int reactionId, std::string_view expectedResultFilename)
{
indigoSetOptionBool("json-saving-pretty", true);
indigoSetOptionBool("json-use-native-precision", true);
indigoSetOptionBool("json-saving-add-stereo-desc", true);

indigoLayout(reactionId);
// indigoSaveJsonToFile(reactionId, expectedResultFilename.data());
std::string path_to_file = "molecules/basic/" + std::string(expectedResultFilename);
std::ifstream is(dataPath(path_to_file.data()), std::ios::binary | std::ios::ate);
auto size = is.tellg();
stringBuffer = std::string(size, '\0'); // construct string to stream size
is.seekg(0);
is.read(&stringBuffer[0], size);
stringBuffer.erase(std::remove(stringBuffer.begin(), stringBuffer.end(), '\r'), stringBuffer.end());

const char* res = indigoJson(reactionId);
return {res, stringBuffer};
}
std::string stringBuffer;
};
//
// TEST_F(IndigoApiLayoutTest, check_reaction_margin_size)
//{
// indigoSetErrorHandler(errorHandler, nullptr);
// indigoSetOptionBool("json-saving-pretty", true);
// indigoSetOptionBool("json-use-native-precision", true);
// indigoSetOptionBool("json-saving-add-stereo-desc", true);
// try
// {
// auto reactionId = indigoLoadReactionFromFile(dataPath("molecules/basic/before_layout.ket").c_str());
// {
// indigoSetOption("reaction-component-margin-size", "0.0");
// auto files = applyLayoutAndGetResult(reactionId, "after_layout_zero_margin.ket");
// EXPECT_STREQ(files.result.data(), files.expected.data());
// }
// {
// indigoSetOption("bond-length", "40.0");
// indigoSetOption("reaction-component-margin-size", "20.0");
// auto files = applyLayoutAndGetResult(reactionId, "after_layout_default_margin.ket");
// EXPECT_STREQ(files.result.data(), files.expected.data());
// }
// indigoFree(reactionId);
// }
// catch (Exception& e)
// {
// ASSERT_STREQ("", e.message());
// }
//}
42 changes: 21 additions & 21 deletions api/tests/integration/ref/arom/basic.py.out
Original file line number Diff line number Diff line change
Expand Up @@ -402,14 +402,14 @@ NC1=NC=NC2NC=NC=21
-INDIGO-01000000002D

8 8 0 0 0 0 0 0 0 0999 V2000
0.8000 1.3856 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
0.5000 0.8660 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
0.0000 0.0000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-1.6000 0.0000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-2.4000 -1.3856 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
0.8000 -1.3856 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
2.4000 -1.3856 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
3.2000 0.0000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
2.4000 1.3856 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-1.0000 0.0000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-1.5000 -0.8660 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
0.5000 -0.8660 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
1.5000 -0.8660 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
2.0000 0.0000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
1.5000 0.8660 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
1 2 4 0 0 0 0
2 3 1 0 0 0 0
3 4 2 0 0 0 0
Expand All @@ -424,14 +424,14 @@ M END
-INDIGO-01000000002D

8 8 0 0 0 0 0 0 0 0999 V2000
0.8000 1.3856 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
0.5000 0.8660 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
0.0000 0.0000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-1.6000 0.0000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-2.4000 -1.3856 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
0.8000 -1.3856 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
2.4000 -1.3856 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
3.2000 0.0000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
2.4000 1.3856 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-1.0000 0.0000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-1.5000 -0.8660 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
0.5000 -0.8660 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
1.5000 -0.8660 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
2.0000 0.0000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
1.5000 0.8660 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
1 2 2 0 0 0 0
2 3 1 0 0 0 0
3 4 2 0 0 0 0
Expand All @@ -446,14 +446,14 @@ M END
-INDIGO-01000000002D

8 8 0 0 0 0 0 0 0 0999 V2000
0.8000 1.3856 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
0.5000 0.8660 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
0.0000 0.0000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-1.6000 0.0000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-2.4000 -1.3856 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
0.8000 -1.3856 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
2.4000 -1.3856 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
3.2000 0.0000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
2.4000 1.3856 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-1.0000 0.0000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
-1.5000 -0.8660 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
0.5000 -0.8660 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
1.5000 -0.8660 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
2.0000 0.0000 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
1.5000 0.8660 0.0000 C 0 0 0 0 0 0 0 0 0 0 0 0
1 2 4 0 0 0 0
2 3 1 0 0 0 0
3 4 2 0 0 0 0
Expand Down
Loading
Loading