Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin' into release/1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
even1024 committed Nov 30, 2022
2 parents 6215e5e + 0689e76 commit 36a0a9d
Show file tree
Hide file tree
Showing 45 changed files with 2,377 additions and 1,479 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/indigo-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,7 @@ jobs:
strategy:
fail-fast: false
matrix:
postgres_major_version: [ 10, 11, 12, 13, 14 ]
postgres_major_version: [ 11, 12, 13, 14, 15 ]
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down Expand Up @@ -957,7 +957,15 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: bingo-postgres-${{ matrix.postgres_major_version }}-linux-x86_64
path: dist/bingo-postgres*.tgz
path: dist/bingo-postgres*.
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Publish Docker images
if: github.ref == 'refs/heads/master'
run: docker push epmlsop/bingo-postgres:${{ matrix.postgres_major_version }}-latest
- name: Publish Test Report
if: always()
uses: mikepenz/action-junit-report@v1
Expand All @@ -970,7 +978,7 @@ jobs:
strategy:
fail-fast: false
matrix:
postgres_major_version: [ "10", "11", "12", "13" ]
postgres_major_version: [ "11", "12", "13", "14", "15" ]
runs-on: windows-latest
steps:
- name: Checkout
Expand All @@ -982,7 +990,7 @@ jobs:
run: git fetch --tags -f
- name: Setup Postgres
run: |
$pg_version = switch(${{ matrix.postgres_major_version }}) { "13" { "13.6" } "12" { "12.10" } "11" { "11.15" } "10" { "10.20" } }
$pg_version = switch(${{ matrix.postgres_major_version }}) { "15" { "15.1" } "14" { "14.6" } "13" { "13.9" } "12" { "12.13" } "11" { "11.18" } }
curl -O https://get.enterprisedb.com/postgresql/postgresql-${pg_version}-1-windows-x64-binaries.zip
Expand-Archive postgresql-${pg_version}-1-windows-x64-binaries.zip
mv postgresql-${pg_version}-1-windows-x64-binaries/pgsql pgsql
Expand All @@ -1003,7 +1011,7 @@ jobs:
strategy:
fail-fast: false
matrix:
postgres_major_version: [ 10, 11, 12, 13, 14 ]
postgres_major_version: [ 11, 12, 13, 14, 15 ]
runs-on: macos-latest
steps:
- name: Checkout
Expand All @@ -1015,7 +1023,7 @@ jobs:
run: git fetch --tags -f
- name: Setup Postgres
run: |
case ${{ matrix.postgres_major_version }} in 14) pg_version=14.2;; 13) pg_version=13.6;; 12) pg_version=12.10;; 11) pg_version=11.15;; 10) pg_version=10.20;; esac;
case ${{ matrix.postgres_major_version }} in 15) pg_version=15.1;; 14) pg_version=14.6;; 13) pg_version=13.9;; 12) pg_version=12.13;; 11) pg_version=11.18;; esac;
curl -O https://get.enterprisedb.com/postgresql/postgresql-${pg_version}-1-osx-binaries.zip
unzip postgresql-${pg_version}-1-osx-binaries.zip
mv pgsql/include/zlib.h pgsql/include/zlib.h.bck
Expand Down
5 changes: 2 additions & 3 deletions api/c/indigo/src/indigo_layout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,8 @@ CEXPORT int indigoLayout(int object)
else if (IndigoBaseReaction::is(obj))
{
BaseReaction& rxn = obj.getBaseReaction();
if (rxn.isMultistep())
throw IndigoError("Multistep layout is not implemented yet.");
else
bool no_layout = rxn.catalystCount() || rxn.intermediateCount() || rxn.specialConditionsCount() || rxn.meta().getNonChemicalMetaCount();
if (!no_layout)
{
ReactionLayout rl(rxn, self.smart_layout);
rl.max_iterations = self.layout_max_iterations;
Expand Down
4 changes: 2 additions & 2 deletions api/java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<dependency>
<groupId>net.java.dev.jna</groupId>
<artifactId>jna</artifactId>
<version>5.11.0</version>
<version>5.12.1</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
Expand Down Expand Up @@ -145,7 +145,7 @@
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.8</version>
<version>1.6.13</version>
<extensions>true</extensions>
<executions>
<execution>
Expand Down
195 changes: 195 additions & 0 deletions api/tests/integration/ref/formats/ket_cdxml_ket.py.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,195 @@
*** KET to CDXML to KET ***
agents.ket
*** Try as Reaction ***
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE CDXML SYSTEM "http://www.cambridgesoft.com/xml/cdxml.dtd">
<CDXML BondLength="30.000000" LabelFont="3" CaptionFont="4">
<fonttable id="1">
<font id="2" charset="utf-8" name="Arial"/>
<font id="3" charset="utf-8" name="Times New Roman"/>
</fonttable>
<colortable>
<color r="1" g="1" b="1"/>
<color r="0" g="0" b="0"/>
<color r="1" g="0" b="0"/>
<color r="1" g="1" b="0"/>
<color r="0" g="1" b="0"/>
<color r="0" g="1" b="1"/>
<color r="0" g="0" b="1"/>
<color r="1" g="0" b="1"/>
<color r="0.5" g="0.5" b="0.5"/>
</colortable>
<page HeightPages="1" WidthPages="1">
<fragment id="4">
<n id="5" p="195.616318 159.751770"/>
<n id="6" p="195.616318 189.751587"/>
<n id="7" p="169.634674 204.751480"/>
<n id="8" p="143.656647 189.747955"/>
<n id="9" p="143.656647 159.748138"/>
<n id="10" p="169.634674 144.748230"/>
<n id="11" p="169.634674 114.748421"/>
<n id="12" Element="8" NumHydrogens="0" p="143.656647 99.748520">
<t p="143.656647 99.748520" LabelJustification="Left">
<s font="3" size="10" face="96">O</s>
</t>
</n>
<n id="13" p="195.616318 99.748520"/>
<b id="34" B="5" E="6"/>
<b id="35" B="6" E="7" Order="2"/>
<b id="36" B="7" E="8"/>
<b id="37" B="8" E="9" Order="2"/>
<b id="38" B="9" E="10"/>
<b id="39" B="5" E="10" Order="2"/>
<b id="40" B="10" E="11"/>
<b id="41" B="11" E="12" Order="2"/>
<b id="42" B="11" E="13"/>
</fragment>
<fragment id="14">
<n id="15" p="517.843323 172.740784"/>
<n id="16" p="517.843323 202.740585"/>
<n id="17" p="491.861694 217.740479"/>
<n id="18" p="465.880066 202.740585"/>
<n id="19" p="465.880066 172.740784"/>
<n id="20" p="491.861694 157.740875"/>
<n id="21" p="491.861694 127.741074"/>
<n id="22" p="465.880066 112.741165"/>
<n id="23" p="439.902008 97.741257"/>
<n id="24" Element="8" NumHydrogens="1" p="480.879944 86.759514">
<t p="480.879944 86.759514" LabelJustification="Left">
<s font="3" size="10" face="96">OH</s>
</t>
</n>
<n id="25" p="450.880127 138.722824"/>
<b id="43" B="15" E="16"/>
<b id="44" B="16" E="17" Order="2"/>
<b id="45" B="17" E="18"/>
<b id="46" B="18" E="19" Order="2"/>
<b id="47" B="19" E="20"/>
<b id="48" B="15" E="20" Order="2"/>
<b id="49" B="20" E="21"/>
<b id="50" B="21" E="22"/>
<b id="51" B="22" E="23"/>
<b id="52" B="22" E="24"/>
<b id="53" B="22" E="25"/>
</fragment>
<fragment id="26">
<n id="27" Element="17" NumHydrogens="1" p="314.250000 135.000000">
<t p="314.250000 135.000000" LabelJustification="Left">
<s font="3" size="10" face="96">ClH</s>
</t>
</n>
</fragment>
<arrow id="28" BoundingBox="384.000000 150.750000 255.000000 152.250000" FillType="None" ArrowheadType="Solid" HeadSize="2250" ArrowheadWidth="563" ArrowheadHead="Full" ArrowheadCenterSize="25" Head3D="384.000000 150.750000 0.000000" Tail3D="255.000000 152.250000 0.000000"/>
<t id="31" p="304.500000 167.250000" Justification="Left" InterpretChemically="no">
<s font="4" size="13" face="0">test</s>
</t>
<scheme>
<step ReactionStepReactants="4" ReactionStepProducts="14" ReactionStepObjectsAboveArrow="26" ReactionStepArrows="28"/>
</scheme>
</page>
</CDXML>

{"root":{"nodes":[{"$ref":"mol0"},{"$ref":"mol1"},{"$ref":"mol2"},{"type":"arrow","data":{"mode":"open-angle","pos":[{"x":8.5,"y":-5.074999809265137,"z":0.0},{"x":12.800000190734864,"y":-5.025000095367432,"z":0.0}]}},{"type":"text","data":{"content":"{\"blocks\":[{\"text\":\"test\",\"inlineStyleRanges\":[{\"offset\":0,\"length\":4,\"style\":\"CUSTOM_FONT_SIZE_20px\"}],\"entityRanges\":[],\"data\":{}}],\"entityMap\":{}}","position":{"x":10.149999618530274,"y":-5.574999809265137,"z":0.0}}}]},"mol0":{"type":"molecule","atoms":[{"label":"C","location":[6.520544052124023,-5.325058937072754,0.0]},{"label":"C","location":[6.520544052124023,-6.325052738189697,0.0]},{"label":"C","location":[5.654489040374756,-6.82504940032959,0.0]},{"label":"C","location":[4.788554668426514,-6.324931621551514,0.0]},{"label":"C","location":[4.788554668426514,-5.32493782043457,0.0]},{"label":"C","location":[5.654489040374756,-4.824941158294678,0.0]},{"label":"C","location":[5.654489040374756,-3.8249473571777345,0.0]},{"label":"O","location":[4.788554668426514,-3.324950695037842,0.0]},{"label":"C","location":[6.520544052124023,-3.324950695037842,0.0]}],"bonds":[{"type":1,"atoms":[0,1]},{"type":2,"atoms":[1,2]},{"type":1,"atoms":[2,3]},{"type":2,"atoms":[3,4]},{"type":1,"atoms":[4,5]},{"type":2,"atoms":[0,5]},{"type":1,"atoms":[5,6]},{"type":2,"atoms":[6,7]},{"type":1,"atoms":[6,8]}]},"mol1":{"type":"molecule","atoms":[{"label":"C","location":[17.261444091796876,-5.758026123046875,0.0]},{"label":"C","location":[17.261444091796876,-6.75801944732666,0.0]},{"label":"C","location":[16.395389556884767,-7.258016109466553,0.0]},{"label":"C","location":[15.529335975646973,-6.75801944732666,0.0]},{"label":"C","location":[15.529335975646973,-5.758026123046875,0.0]},{"label":"C","location":[16.395389556884767,-5.258028984069824,0.0]},{"label":"C","location":[16.395389556884767,-4.258035659790039,0.0]},{"label":"C","location":[15.529335975646973,-3.7580387592315676,0.0]},{"label":"C","location":[14.663400650024414,-3.2580418586730959,0.0]},{"label":"O","location":[16.02933120727539,-2.8919837474823,0.0]},{"label":"C","location":[15.029337882995606,-4.624094009399414,0.0]}],"bonds":[{"type":1,"atoms":[0,1]},{"type":2,"atoms":[1,2]},{"type":1,"atoms":[2,3]},{"type":2,"atoms":[3,4]},{"type":1,"atoms":[4,5]},{"type":2,"atoms":[0,5]},{"type":1,"atoms":[5,6]},{"type":1,"atoms":[6,7]},{"type":1,"atoms":[7,8]},{"type":1,"atoms":[7,9]},{"type":1,"atoms":[7,10]}]},"mol2":{"type":"molecule","atoms":[{"label":"Cl","location":[10.475000381469727,-4.5,0.0]}],"bonds":[]}}
multi.ket
*** Try as Reaction ***
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE CDXML SYSTEM "http://www.cambridgesoft.com/xml/cdxml.dtd">
<CDXML BondLength="30.000000" LabelFont="3" CaptionFont="4">
<fonttable id="1">
<font id="2" charset="utf-8" name="Arial"/>
<font id="3" charset="utf-8" name="Times New Roman"/>
</fonttable>
<colortable>
<color r="1" g="1" b="1"/>
<color r="0" g="0" b="0"/>
<color r="1" g="0" b="0"/>
<color r="1" g="1" b="0"/>
<color r="0" g="1" b="0"/>
<color r="0" g="1" b="1"/>
<color r="0" g="0" b="1"/>
<color r="1" g="0" b="1"/>
<color r="0.5" g="0.5" b="0.5"/>
</colortable>
<page HeightPages="1" WidthPages="1">
<fragment id="4">
<n id="5" p="105.966225 123.676460"/>
<n id="6" p="105.855125 93.823532"/>
<n id="7" p="75.608849 123.289116"/>
<n id="8" p="75.533775 93.823532"/>
<b id="54" B="5" E="6"/>
<b id="55" B="5" E="7"/>
<b id="56" B="6" E="8"/>
<b id="57" B="7" E="8"/>
</fragment>
<fragment id="9">
<n id="10" p="158.231216 122.474113"/>
<n id="11" p="188.268768 122.474113"/>
<n id="12" p="173.251511 96.525887"/>
<b id="58" B="10" E="11"/>
<b id="59" B="10" E="12"/>
<b id="60" B="11" E="12"/>
</fragment>
<fragment id="13">
<n id="14" p="12.000000 81.000000"/>
<n id="15" p="-3.000000 106.980766"/>
<n id="16" p="12.000000 132.961517"/>
<b id="61" B="14" E="15"/>
<b id="62" B="15" E="16"/>
</fragment>
<fragment id="17">
<n id="18" p="676.795471 91.502228"/>
<n id="19" p="728.704529 91.487671"/>
<n id="20" p="702.799133 76.499008"/>
<n id="21" p="728.704529 121.515953"/>
<n id="22" p="676.795471 121.650597"/>
<n id="23" p="702.864624 136.500992"/>
<b id="63" B="20" E="18" Order="2"/>
<b id="64" B="21" E="19" Order="2"/>
<b id="65" B="18" E="22"/>
<b id="66" B="19" E="20"/>
<b id="67" B="22" E="23" Order="2"/>
<b id="68" B="23" E="21"/>
</fragment>
<fragment id="24">
<n id="25" p="325.634277 93.558098"/>
<n id="26" p="349.152283 75.030952"/>
<n id="27" p="378.343231 81.707451"/>
<n id="28" p="391.365723 108.581734"/>
<n id="29" p="325.799561 123.773636"/>
<n id="30" p="378.364258 135.792542"/>
<n id="31" p="349.152283 142.469055"/>
<b id="69" B="25" E="26"/>
<b id="70" B="26" E="27"/>
<b id="71" B="27" E="28"/>
<b id="72" B="28" E="30"/>
<b id="73" B="25" E="29"/>
<b id="74" B="29" E="31"/>
<b id="75" B="30" E="31"/>
</fragment>
<fragment id="32">
<n id="33" p="465.269623 84.749779"/>
<n id="34" p="465.269623 114.750221"/>
<n id="35" p="491.250000 129.750443"/>
<n id="36" p="517.230347 114.750221"/>
<n id="37" p="517.230347 84.749779"/>
<n id="38" p="491.250000 69.749557"/>
<b id="76" B="33" E="38"/>
<b id="77" B="33" E="34"/>
<b id="78" B="34" E="35"/>
<b id="79" B="35" E="36"/>
<b id="80" B="36" E="37"/>
<b id="81" B="37" E="38"/>
</fragment>
<arrow id="39" BoundingBox="312.750000 111.750000 219.750000 111.000000" FillType="None" ArrowheadType="Solid" HeadSize="2250" ArrowheadWidth="563" ArrowheadHead="Full" ArrowheadCenterSize="25" Head3D="312.750000 111.750000 0.000000" Tail3D="219.750000 111.000000 0.000000"/>
<arrow id="42" BoundingBox="663.000000 110.250000 566.250000 107.250000" FillType="None" ArrowheadType="Solid" HeadSize="2250" ArrowheadWidth="563" ArrowheadHead="Full" ArrowheadCenterSize="25" Head3D="663.000000 110.250000 0.000000" Tail3D="566.250000 107.250000 0.000000"/>
<graphic id="45" BoundingBox="132.000000 113.250000 132.000000 105.750000" GraphicType="Symbol" SymbolType="Plus"/>
<graphic id="48" BoundingBox="426.000000 110.250000 426.000000 102.750000" GraphicType="Symbol" SymbolType="Plus"/>
<graphic id="51" BoundingBox="48.750000 114.000000 48.750000 106.500000" GraphicType="Symbol" SymbolType="Plus"/>
<scheme>
<step ReactionStepReactants="9 4 13" ReactionStepProducts="32 24" ReactionStepArrows="39"/>
<step ReactionStepReactants="32 24" ReactionStepProducts="17" ReactionStepArrows="42"/>
</scheme>
</page>
</CDXML>

{"root":{"nodes":[{"$ref":"mol0"},{"$ref":"mol1"},{"$ref":"mol2"},{"$ref":"mol3"},{"$ref":"mol4"},{"$ref":"mol5"},{"type":"arrow","data":{"mode":"open-angle","pos":[{"x":7.324999809265137,"y":-3.700000047683716,"z":0.0},{"x":10.425000190734864,"y":-3.7249999046325685,"z":0.0}]}},{"type":"arrow","data":{"mode":"open-angle","pos":[{"x":18.875,"y":-3.575000047683716,"z":0.0},{"x":22.100000381469728,"y":-3.674999952316284,"z":0.0}]}},{"type":"plus","location":[4.400000095367432,-3.6500000953674318,0.0]},{"type":"plus","location":[14.199999809265137,-3.549999952316284,0.0]},{"type":"plus","location":[1.625,-3.674999952316284,0.0]}]},"mol0":{"type":"molecule","atoms":[{"label":"C","location":[3.532207489013672,-4.122548580169678,0.0]},{"label":"C","location":[3.5285041332244875,-3.127451181411743,0.0]},{"label":"C","location":[2.5202949047088625,-4.109637260437012,0.0]},{"label":"C","location":[2.5177924633026125,-3.127451181411743,0.0]}],"bonds":[{"type":1,"atoms":[0,1]},{"type":1,"atoms":[0,2]},{"type":1,"atoms":[1,3]},{"type":1,"atoms":[2,3]}]},"mol1":{"type":"molecule","atoms":[{"label":"C","location":[5.274374008178711,-4.082470417022705,0.0]},{"label":"C","location":[6.275625705718994,-4.082470417022705,0.0]},{"label":"C","location":[5.775050163269043,-3.217529535293579,0.0]}],"bonds":[{"type":1,"atoms":[0,1]},{"type":1,"atoms":[0,2]},{"type":1,"atoms":[1,2]}]},"mol2":{"type":"molecule","atoms":[{"label":"C","location":[0.4000000059604645,-2.700000047683716,0.0]},{"label":"C","location":[-0.10000000149011612,-3.566025495529175,0.0]},{"label":"C","location":[0.4000000059604645,-4.432050704956055,0.0]}],"bonds":[{"type":1,"atoms":[0,1]},{"type":1,"atoms":[1,2]}]},"mol3":{"type":"molecule","atoms":[{"label":"C","location":[22.55984878540039,-3.050074338912964,0.0]},{"label":"C","location":[24.290151596069337,-3.049588918685913,0.0]},{"label":"C","location":[23.426637649536134,-2.549967050552368,0.0]},{"label":"C","location":[24.290151596069337,-4.05053186416626,0.0]},{"label":"C","location":[22.55984878540039,-4.055019855499268,0.0]},{"label":"C","location":[23.428821563720704,-4.550033092498779,0.0]}],"bonds":[{"type":2,"atoms":[2,0]},{"type":2,"atoms":[3,1]},{"type":1,"atoms":[0,4]},{"type":1,"atoms":[1,2]},{"type":2,"atoms":[4,5]},{"type":1,"atoms":[5,3]}]},"mol4":{"type":"molecule","atoms":[{"label":"C","location":[10.854475975036621,-3.118603229522705,0.0]},{"label":"C","location":[11.638409614562989,-2.5010316371917726,0.0]},{"label":"C","location":[12.611440658569336,-2.7235817909240724,0.0]},{"label":"C","location":[13.045523643493653,-3.6193912029266359,0.0]},{"label":"C","location":[10.8599853515625,-4.125787734985352,0.0]},{"label":"C","location":[12.612141609191895,-4.526418209075928,0.0]},{"label":"C","location":[11.638409614562989,-4.748968601226807,0.0]}],"bonds":[{"type":1,"atoms":[0,1]},{"type":1,"atoms":[1,2]},{"type":1,"atoms":[2,3]},{"type":1,"atoms":[3,5]},{"type":1,"atoms":[0,4]},{"type":1,"atoms":[4,6]},{"type":1,"atoms":[5,6]}]},"mol5":{"type":"molecule","atoms":[{"label":"C","location":[15.508987426757813,-2.8249926567077638,0.0]},{"label":"C","location":[15.508987426757813,-3.825007438659668,0.0]},{"label":"C","location":[16.375,-4.325014591217041,0.0]},{"label":"C","location":[17.241010665893556,-3.825007438659668,0.0]},{"label":"C","location":[17.241010665893556,-2.8249926567077638,0.0]},{"label":"C","location":[16.375,-2.3249852657318117,0.0]}],"bonds":[{"type":1,"atoms":[0,5]},{"type":1,"atoms":[0,1]},{"type":1,"atoms":[1,2]},{"type":1,"atoms":[2,3]},{"type":1,"atoms":[3,4]},{"type":1,"atoms":[4,5]}]}}
Loading

0 comments on commit 36a0a9d

Please sign in to comment.