From ce625e10ed3c3cd8dc381e57ccee7fb178b01e3a Mon Sep 17 00:00:00 2001 From: Pierre Cuvilliers Date: Fri, 12 Feb 2021 20:13:44 +0100 Subject: [PATCH] Fix #40. Add test cluster to installed files. --- .../_configure_ironpython_installation.py | 2 +- ghpythonremote/examples/CPython_to_GH.py | 4 ++-- ghpythonremote/examples/TestClusterGHPR.ghuser | Bin 4159 -> 0 bytes .../examples/TestClusterGHPythonRemote.ghuser | Bin 0 -> 4421 bytes setup.py | 1 + 5 files changed, 4 insertions(+), 3 deletions(-) delete mode 100644 ghpythonremote/examples/TestClusterGHPR.ghuser create mode 100644 ghpythonremote/examples/TestClusterGHPythonRemote.ghuser diff --git a/ghpythonremote/_configure_ironpython_installation.py b/ghpythonremote/_configure_ironpython_installation.py index 581446d..d1ccfa6 100644 --- a/ghpythonremote/_configure_ironpython_installation.py +++ b/ghpythonremote/_configure_ironpython_installation.py @@ -65,7 +65,7 @@ "examples/CPython_to_GH.py", ], ), - ("", ["ghcluster/GHPythonRemote.ghuser"]), + ("", ["ghcluster/GHPythonRemote.ghuser", "examples/TestClusterGHPythonRemote.ghuser"]), ] for copy_pair in copy_pairs: dest = os.path.join(dest_dir_path, copy_pair[0]) diff --git a/ghpythonremote/examples/CPython_to_GH.py b/ghpythonremote/examples/CPython_to_GH.py index aa2a8de..05fc91a 100644 --- a/ghpythonremote/examples/CPython_to_GH.py +++ b/ghpythonremote/examples/CPython_to_GH.py @@ -54,6 +54,6 @@ gh_curves = rs.coerceguidlist(curves_id) # Call a GH component print(sum(rghcomp.Area(gh_curves)[0])) - # Call a GH user object, previously created with the name "TestClusterGHPR" + # Call a GH user object, previously created with the name "TestClusterGHPythonRemote" # returns x^2 + y + 2 - print(rghuo.TestClusterGHPR(3, y=4)) # = 15 + print(rghuo.TestClusterGHPythonRemote(3, y=4)) # = 15 diff --git a/ghpythonremote/examples/TestClusterGHPR.ghuser b/ghpythonremote/examples/TestClusterGHPR.ghuser deleted file mode 100644 index a617bc366ee6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U0YUC$EbSmp{e%Qr;dW^E`c`d2&{SBneuHCSk4eOO66!7vK39q0IH}9!gj9 zwX$w_%}~zMk84)ey&3-yeXWN!lECe$dV_P@9jYS_Ygz7Up>B%{`kjh;(bY&5hI_Sx z`8#RB3&Yc-5mMsUav_A_S9KFADm`f^kGi(v@sqTG`WCr=7K_x0z2v36L&uZp zZ6)2Y)K`N=4_1C~BVw&B`*1eVq7zwhJ^At58Vnyr*(gVSI_ zgf1n+FGf_1%pS^-;Sq)mnLG_`#uTB9#@y+ac#m@P*3ZwT;QAPw=P^T+Xkvd02nPQOke){FzoZW-Jd`+G@tiDVY#b&~Rj)%OH`n768A`x?=oLpdokn-@DnAXdPd z8(%^kBpGnrf|dkpx2%SL#-?wBy2*ktw*5A6)ahF9`FUFGnlzr_!8sr@@>qyh@=uNa zOp)y{YHT7E`_rMKIN=p=U*lrD^nALi%&RCnTzqQmgtwjNW2WI6vkNdeFt2>Gdw=ru z^qO7-L~CI88m|c&@uH7$_&m^AP2yQ)T|~v%R#H#>)jr%%Sizs({v!UsRCYEMI5y-m zcXT;(;(?tn=%v4ui1(q-D*k#tyJBCxe9QtLC2v6YZB0TkM=PGKT?p?-6RSu#t5h<% zjPY-yq(~3Cm&gj}AVqda0T5gsNue76c<{01UH+l$qf_Cx*Kh(IPpki3 Lk>Ke3XEpMF>6NI= literal 0 HcmV?d00001 diff --git a/setup.py b/setup.py index 52389bf..307d3b5 100644 --- a/setup.py +++ b/setup.py @@ -67,6 +67,7 @@ 'examples/GH_python_remote.ghx', 'examples/GH_python_remote_plt_example.ghx', 'examples/CPython_to_GH.py', + 'examples/TestClusterGHPythonRemote.ghuser' 'ghcluster/GHPythonRemote.ghuser', ], },