Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Commit 29efd57

Browse files
authored
0.17.2 compat (#5)
Compatibility with compas 0.17.2 tested.
1 parent 0e0afd6 commit 29efd57

5 files changed

Lines changed: 653 additions & 397 deletions

File tree

.github/workflows/workflow.yml

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,21 @@
11
name: workflow
22

3-
on:
4-
push:
5-
branches:
6-
- main
7-
tags:
8-
- v[0-9].[0-9]+.[0-9]+
9-
pull_request:
10-
branches:
11-
- main
3+
on: push
124

135
jobs:
146
build:
157
name: Install and build
168
runs-on: ${{ matrix.os }}
179
strategy:
1810
matrix:
19-
os: ['ubuntu-latest', 'windows-latest', 'macos-latest']
20-
python-version: ['3.7', '3.8']
11+
os: [ubuntu-latest, windows-latest, macos-latest]
12+
python-version: [3.7, 3.8]
13+
compas-version-specifier: [false]
14+
include:
15+
-
16+
os: windows-latest
17+
python-version: 3.7
18+
compas-version-specifier: ==0.17.2
2119

2220
steps:
2321
-
@@ -32,21 +30,25 @@ jobs:
3230

3331
-
3432
name: Install
33+
shell: bash
3534
run: |
3635
python -m pip install --upgrade pip
3736
python -m pip install wheel # https://stackoverflow.com/questions/34819221
3837
python -m pip install cython --install-option='--no-cython-compile'
38+
if [[ $COMPAS_VERSION_SPECIFIER != 'false' ]] ; then
39+
python -m pip install "compas$COMPAS_VERSION_SPECIFIER"
40+
fi
3941
python -m pip install --no-cache-dir -e .[dev]
42+
env:
43+
COMPAS_VERSION_SPECIFIER: ${{ matrix.compas-version-specifier }}
4044

4145
-
4246
name: Test
43-
run: |
44-
invoke test
47+
run: invoke test
4548

4649
-
4750
name: Build docs
48-
run: |
49-
invoke docs
51+
run: invoke docs
5052

5153
-
5254
name: Upload docs for other jobs
@@ -60,15 +62,22 @@ jobs:
6062

6163
-
6264
name: Build package
65+
run: invoke build
66+
67+
-
68+
name: Check if semver-tag
69+
id: check-tag
70+
shell: bash
6371
run: |
64-
invoke build
72+
if [[ ${{ github.event.ref }} =~ ^refs/tags/v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
73+
echo ::set-output name=match::true
74+
fi
6575
6676
-
6777
name: Upload package artifacts for other jobs
6878
uses: actions/upload-artifact@v2
6979
if: >-
70-
github.event_name == 'push' &&
71-
startsWith(github.ref, 'refs/tags') &&
80+
steps.check-tag.outputs.match == 'true' &&
7281
matrix.python-version == '3.8' &&
7382
matrix.os == 'ubuntu-latest'
7483
with:

grasshopper/rcs_frames.json

Lines changed: 202 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,202 @@
1+
[
2+
{
3+
"dtype": "compas.geometry/Frame",
4+
"value": {
5+
"point": [
6+
-2306.776611328125,
7+
-271.83599853515627,
8+
-108.45603942871094
9+
],
10+
"xaxis": [
11+
-0.9881099665652091,
12+
-0.145280205364268,
13+
0.05032251885406262
14+
],
15+
"yaxis": [
16+
-0.14540913313116417,
17+
0.9893709891437076,
18+
0.0011089827975026019
19+
]
20+
}
21+
},
22+
{
23+
"dtype": "compas.geometry/Frame",
24+
"value": {
25+
"point": [
26+
-2306.726318359375,
27+
-1153.8834228515626,
28+
53.65091323852539
29+
],
30+
"xaxis": [
31+
-0.998571343809686,
32+
-0.018839552930148649,
33+
0.05000342555775442
34+
],
35+
"yaxis": [
36+
-0.019124537868640588,
37+
0.9998034461922443,
38+
-0.005226952594317179
39+
]
40+
}
41+
},
42+
{
43+
"dtype": "compas.geometry/Frame",
44+
"value": {
45+
"point": [
46+
-1908.8719482421876,
47+
-2001.1055908203126,
48+
1251.384033203125
49+
],
50+
"xaxis": [
51+
-0.47052936572949469,
52+
0.4068050531080578,
53+
0.7830145367436993
54+
],
55+
"yaxis": [
56+
-0.5796388079775643,
57+
0.5265679391998477,
58+
-0.6218883000130926
59+
]
60+
}
61+
},
62+
{
63+
"dtype": "compas.geometry/Frame",
64+
"value": {
65+
"point": [
66+
-734.5368041992188,
67+
-2442.07958984375,
68+
201.81321716308595
69+
],
70+
"xaxis": [
71+
-0.7888196810454626,
72+
-0.6071202377096033,
73+
0.09575242951888694
74+
],
75+
"yaxis": [
76+
-0.6146015848108212,
77+
0.7778081877271518,
78+
-0.13145080848983466
79+
]
80+
}
81+
},
82+
{
83+
"dtype": "compas.geometry/Frame",
84+
"value": {
85+
"point": [
86+
-514.7164916992188,
87+
-1236.9228515625,
88+
2818.19189453125
89+
],
90+
"xaxis": [
91+
-0.5567582019255628,
92+
0.22811436110220663,
93+
0.7987390956047829
94+
],
95+
"yaxis": [
96+
-0.7775696750794148,
97+
0.1951691347974151,
98+
-0.5977410887828626
99+
]
100+
}
101+
},
102+
{
103+
"dtype": "compas.geometry/Frame",
104+
"value": {
105+
"point": [
106+
520.4304809570313,
107+
-645.9451293945313,
108+
2879.32568359375
109+
],
110+
"xaxis": [
111+
-0.6288183989253883,
112+
0.7771564058232193,
113+
0.024806089188883878
114+
],
115+
"yaxis": [
116+
-0.4546511885803633,
117+
-0.3416155909988055,
118+
-0.8225515696349984
119+
]
120+
}
121+
},
122+
{
123+
"dtype": "compas.geometry/Frame",
124+
"value": {
125+
"point": [
126+
1171.7760009765626,
127+
591.958740234375,
128+
2397.131103515625
129+
],
130+
"xaxis": [
131+
-0.629312722103759,
132+
0.7767582523546264,
133+
0.02474096193246589
134+
],
135+
"yaxis": [
136+
-0.45417503618801988,
137+
-0.3417567222493688,
138+
-0.8227559658252128
139+
]
140+
}
141+
},
142+
{
143+
"dtype": "compas.geometry/Frame",
144+
"value": {
145+
"point": [
146+
499.1734619140625,
147+
1232.8138427734376,
148+
1660.64892578125
149+
],
150+
"xaxis": [
151+
-0.8834683305472373,
152+
-0.4089339634858066,
153+
0.22859729313328826
154+
],
155+
"yaxis": [
156+
0.46626266646423256,
157+
-0.7199565304255193,
158+
0.5140639261408179
159+
]
160+
}
161+
},
162+
{
163+
"dtype": "compas.geometry/Frame",
164+
"value": {
165+
"point": [
166+
-333.9427185058594,
167+
1232.8472900390626,
168+
1134.185302734375
169+
],
170+
"xaxis": [
171+
-0.8834772816187946,
172+
-0.4089143695819453,
173+
0.22859774979834217
174+
],
175+
"yaxis": [
176+
0.4662451484215481,
177+
-0.7199445528862379,
178+
0.5140965885344927
179+
]
180+
}
181+
},
182+
{
183+
"dtype": "compas.geometry/Frame",
184+
"value": {
185+
"point": [
186+
-997.1805419921875,
187+
940.3204345703125,
188+
1042.2359619140626
189+
],
190+
"xaxis": [
191+
-0.9143944521151756,
192+
-0.16501067304028733,
193+
0.36966777479756
194+
],
195+
"yaxis": [
196+
0.37576219683610859,
197+
-0.006214655767915474,
198+
0.9266952840511213
199+
]
200+
}
201+
}
202+
]

0 commit comments

Comments
 (0)