From 50191dd984e11aeb59f6e5fdc5bd596d80da64b3 Mon Sep 17 00:00:00 2001 From: Remi Ehounou Date: Wed, 9 Jun 2021 15:53:58 -0400 Subject: [PATCH] debug --- .vscode/launch.json | 4 +- .vscode/settings.json | 6 +- MDAF/MDAF.py | 14 +++++ MDAF/TestFunctions/Ackley2.py | 15 +++++ MDAF/TestFunctions/Keane.py | 3 + MDAF/TestFunctions/Leon.py | 3 + MDAF/TestFunctions/Matyas.py | 5 +- MDAF/TestFunctions/McCormick.py | 7 ++- MDAF/TestFunctions/Miele_Cantrell.py | 10 +++- MDAF/TestFunctions/Untitled.ipynb | 6 -- MDAF/TestFunctions/__init__.py | 5 ++ .../__pycache__/Brown.cpython-39.pyc | Bin 469 -> 5963 bytes .../__pycache__/Bukin6.cpython-39.pyc | Bin 425 -> 483 bytes MDAF/__pycache__/MDAF.cpython-39.pyc | Bin 7727 -> 7763 bytes .../test_flows.cpython-39-pytest-6.2.4.pyc | Bin 2930 -> 3040 bytes .../test_funcs.cpython-39-pytest-6.2.4.pyc | Bin 0 -> 888 bytes .../test_unit.cpython-39-pytest-6.2.4.pyc | Bin 0 -> 808 bytes tests/deprecated_funcs.py | 21 +++++++ tests/deprecated_unit.py | 53 ++++++++++++++++++ tests/test_flows.py | 4 +- 20 files changed, 139 insertions(+), 17 deletions(-) create mode 100644 MDAF/TestFunctions/Ackley2.py delete mode 100644 MDAF/TestFunctions/Untitled.ipynb create mode 100644 tests/__pycache__/test_funcs.cpython-39-pytest-6.2.4.pyc create mode 100644 tests/__pycache__/test_unit.cpython-39-pytest-6.2.4.pyc create mode 100644 tests/deprecated_funcs.py create mode 100644 tests/deprecated_unit.py diff --git a/.vscode/launch.json b/.vscode/launch.json index c6cff8f..84776a3 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -4,11 +4,13 @@ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ + { "name": "Python: Module", "type": "python", "request": "launch", - "module": "MDAF" + "module": "MDAF", + "args": ["plotfuncs('@Bukin2', features)"] }, { "name": "Python: Current File", diff --git a/.vscode/settings.json b/.vscode/settings.json index 7876636..705d4cc 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -3,8 +3,6 @@ "python.testing.pytestArgs": [ "tests" ], - "python.testing.unittestEnabled": false, - "python.testing.nosetestsEnabled": false, "python.testing.pytestEnabled": true, "python.testing.unittestArgs": [ "-v", @@ -13,5 +11,7 @@ "-p", "test_*.py" ], - "python.testing.cwd": "tests" + "python.testing.cwd": "", + "python.testing.nosetestsEnabled": false, + "python.testing.unittestEnabled": false } \ No newline at end of file diff --git a/MDAF/MDAF.py b/MDAF/MDAF.py index adcb6de..bd16981 100644 --- a/MDAF/MDAF.py +++ b/MDAF/MDAF.py @@ -269,5 +269,19 @@ def doe(heuristicpath, testfunctionpaths, args): #return the performance values return responses +def plotfuncs(funcpaths, features): + print ('help') + for i,funpath in enumerate(funcpaths): + if funpath.find('@') == 0: + funcpaths[i] = path.dirname(__file__) + '/TestFunctions/' + funpath[1:] + + funcnames = [path.splitext(path.basename(funcpath))[0] for funcpath in funcpaths] + representations = {} + + for idx,funpath in enumerate(funcpaths): + representations[funcnames[idx]] = representfunc(funpath) + + + # %% diff --git a/MDAF/TestFunctions/Ackley2.py b/MDAF/TestFunctions/Ackley2.py new file mode 100644 index 0000000..28b886b --- /dev/null +++ b/MDAF/TestFunctions/Ackley2.py @@ -0,0 +1,15 @@ +import math as m + +def main(args): + + ''' + #_# dimmensions: 2 + #_# upper: 32 + #_# lower: -32 + #_# minimum: [0, 0] + + >>> main([0, 0]) + -200.0 + + ''' + return -200 * m.e**(-0.02 * m.sqrt(args[0]**2 + args[1]**2)) \ No newline at end of file diff --git a/MDAF/TestFunctions/Keane.py b/MDAF/TestFunctions/Keane.py index a050f3a..8cb23fd 100644 --- a/MDAF/TestFunctions/Keane.py +++ b/MDAF/TestFunctions/Keane.py @@ -5,6 +5,9 @@ import math def main(args): ''' #_# dimmensions: 2 + #_# upper: 10 + #_# lower: 0 + #_# minimum: [0, 1.39325] ''' for x in args: if(x<0 | x>10): return 0 diff --git a/MDAF/TestFunctions/Leon.py b/MDAF/TestFunctions/Leon.py index 110c079..7df89d8 100644 --- a/MDAF/TestFunctions/Leon.py +++ b/MDAF/TestFunctions/Leon.py @@ -4,6 +4,9 @@ def main(args): ''' #_# dimmensions: 2 + #_# upper: 1.2 + #_# lower: -1.2 + #_# minimum: [1, 1] ''' for x in args: if x < -1.2 or x > 1.2: diff --git a/MDAF/TestFunctions/Matyas.py b/MDAF/TestFunctions/Matyas.py index 60daae3..e103a9a 100644 --- a/MDAF/TestFunctions/Matyas.py +++ b/MDAF/TestFunctions/Matyas.py @@ -5,7 +5,10 @@ def main(args): 0.26 - #_# dimmensions: 2 + #_# dimmensions: 2 + #_# upper: 10 + #_# lower: -10 + #_# minimum: [0, 0] ''' for x in args: if x < -10 or x > 10: diff --git a/MDAF/TestFunctions/McCormick.py b/MDAF/TestFunctions/McCormick.py index 1667c7a..19bc74d 100644 --- a/MDAF/TestFunctions/McCormick.py +++ b/MDAF/TestFunctions/McCormick.py @@ -1,10 +1,13 @@ import math def main(args): ''' - >>>main([-0.547, -1.547]) + >>> main([-0.547, -1.547]) 0 - #_# dimmensions: 2 + #_# dimmensions: 2 + #_# upper: [4, 3] + #_# lower: [-1.5, -3] + #_# minimum: [-0.547, -1.547] ''' for args[0] in args: diff --git a/MDAF/TestFunctions/Miele_Cantrell.py b/MDAF/TestFunctions/Miele_Cantrell.py index 773ecc3..d1e8c92 100644 --- a/MDAF/TestFunctions/Miele_Cantrell.py +++ b/MDAF/TestFunctions/Miele_Cantrell.py @@ -3,10 +3,14 @@ import math def main(args): ''' - >>>main([0, 1, 1, 1]) - 0 + >>> main([0, 1, 1, 1]) + 0.0 + + #_# dimmensions: 4 + #_# upper: 1 + #_# lower: -1 + #_# minimum: [0, 1, 1, 1] - #_# dimmensions: 4 ''' for x in args: if x < -1 or x > 1: diff --git a/MDAF/TestFunctions/Untitled.ipynb b/MDAF/TestFunctions/Untitled.ipynb deleted file mode 100644 index 7fec515..0000000 --- a/MDAF/TestFunctions/Untitled.ipynb +++ /dev/null @@ -1,6 +0,0 @@ -{ - "cells": [], - "metadata": {}, - "nbformat": 4, - "nbformat_minor": 4 -} diff --git a/MDAF/TestFunctions/__init__.py b/MDAF/TestFunctions/__init__.py index e69de29..78db003 100644 --- a/MDAF/TestFunctions/__init__.py +++ b/MDAF/TestFunctions/__init__.py @@ -0,0 +1,5 @@ +import pkgutil + +__path__ = pkgutil.extend_path(__path__, __name__) +for importer, modname, ispkg in pkgutil.walk_packages(path=__path__, prefix=__name__+'.'): + __import__(modname) \ No newline at end of file diff --git a/MDAF/TestFunctions/__pycache__/Brown.cpython-39.pyc b/MDAF/TestFunctions/__pycache__/Brown.cpython-39.pyc index 8b0a9cac5f3a1ebac8f2aa06341cdb2004fa36c5..40dfc6abbb52306dea430e9ee2fb18e3b2a1f1e7 100644 GIT binary patch literal 5963 zcmeHLOK%)S5T0F|C^qE8BShjbQZ87*?S4P3C?dfM7vKP#FeYqvM`opcn0*i;*(cz~ zNPXJ4PZm1V!i z2RgcVcpsnnYxo*ugU*lH7ulfuS+=v$?|`%#oA~D%J|EyS{|aA&&RJ)Xo#J=U{i%B^ z`=N7?9UXkxJ?oxroOVt(1{<$q_Ov_LyqVp~;#2&uNvqaXGdDAropru_it2GZoD9dy@qW&? zx3?-%fBdL7IUW`Jd2crBJ$?7^P&4JN)5eG54(CVjMUfbXf{9>^<=m!p&9n>FD$7%P zTpzqrMy7PbESKJL)u0Q;oeNU9$Y0cQC6mTW>%1;@xuSF@AZ560<0X%6CLpt^DA8=;B~S$A%t>H8Om!Ne`s5hulN_E-lKG*d0>8Jsc4ZaPv>nW+?9;mptTT) z4MFUaw@$#TD;amF_i}{CI(L+6E@#9anz`VN@um@Xf+=mB65PPgBrXgXd!?;KdE^N)mFm0rETtxna z5BOuVag_OS6%CphEuoNX=&zUzAR+@(`v>H!@F8f#h$eC+6P|maZNwE~e?(z$$b1F+ zbK)<_oJKa4ctG?mZU6Ay|yuafm`5h4)@)hLl{g-lVC(X`(i)tbO2tCfkwK=)2G zl&}>-4B-LJB$hO64kIeWc48}!omL~IE2d#YFJ0tAa!t|ogpTCCR5Y~=VB!*Tn)G0# zi;|mkr!Fm%>=(JbmcL_iEq}xSFaZD_V~ltz=C~{U97{5Ymr5bq&R#HoN#l{H|*nmoFg7VJCib-VTmI=Ogo zIy6&>Bwv$V?ItCI=-4`u>oys!6B3RORv6i|gN|q#5WPStitf2;lhHbXV7$!hhT9Yi zRd7W_qW)~#dAk!Dkg{?D0PKYLfCIt-?ntk?41j0satumkLPTN#ybV>011)qA-VoHr z>wtcb4H8H#d1@HXr-B?Hh#Nr~Agn~@p$Vk1hW0{uR7&7}trEQMEQ%Xfq&9#E*cFOf z!gCiY36wQ%C^2T0Rj9xus3T8wpi;>OPb7_W6bK?uv>u$xbnnl%T-Xs8jh=2a98ZZG z@=0$}Z!G^mJaUFD)jDI3h@n-KO&-%k=kXliG>U4y9!5c^TXeC+&>+Ic-U^*Y3Gz<4 z;E6a`A1xBPzeeb+x4v#z|D;cVTEvZ%qt`ox|bH_)#+D4cY5tGrB#jP=Zhfa4;)8xfr0ZY}iYM)d*4jQ#onwK5BCnHeY`VS%=bP%xc_kX!{Oqi z`wzT_a4lqPbTc->G|fkH=IO?^XvG^-r4ND-MQDD#oO*rb~@#6 ZDTaK#in;UacgNGga#Y-l@BW5Q_9xmUuU7y7 delta 59 zcmX@Dca@nhk(ZZ?0SK;cU77HmVItoerYfI_`+X+2h}knbO+F%~$Q7JlT9lmXoS%|9 O`K6dTBj;p6aVr2%Q4@&( diff --git a/MDAF/TestFunctions/__pycache__/Bukin6.cpython-39.pyc b/MDAF/TestFunctions/__pycache__/Bukin6.cpython-39.pyc index 427df38f41bc7d93afb3b2c06a33c6d4b4c140a0..6bcb2414adf870debfde469b972a44c559a413ae 100644 GIT binary patch delta 134 zcmZ3<{Fs?Hk(ZZ?0SG3nT#@i#BJb*mI4%VsP>xqtNXg92P0cIL%+D*fQZVA;1c{Xv z6r>heDMag<>L?h;Ld0_N%OPThKtWxYXl`a+W^QRNNUfoPj$!P?3wDgQlld7HS$tg_ Q-6mTxYA|w4PG)oi0K}*x*#H0l delta 77 zcmaFNypowWk(ZZ?0SKnxqtNXg92P0cIL%+D*fQZSkJ{n$ diff --git a/MDAF/__pycache__/MDAF.cpython-39.pyc b/MDAF/__pycache__/MDAF.cpython-39.pyc index f27da990002622c840d7da2fdbb6481991e62a70..de422b49c406859525a672667f79ecd9ad60903d 100644 GIT binary patch delta 955 zcmZ9LO-~a+7{{O4-M)8UT7+e>RSv#YjVK-zQ=>*MqEQksAO>U8DW#-r%j}4O%-Y1o zv>X)Ugo~#V6Jz4RkbV=rm5U$158({1Cb*mYpZPz(XXe@6nf+G$QPfMio&<4SpZNOx z-M)S)hHmg;Y_Ub-9hD{m#oKJFO9)4BbSqAi9TcER2++1FI2`hiZ4f;6AD0ZamA^9< zNBmev>83g=i#gB%sl%{`5UhP^LmRb~B^Ag2tbr4vM@uyE<1|fmrZHd9PR>uUR5!yCEWW4s={dkD4KxT;1a9^Uyhq--%YY8=Cqii!r$r-R zY55|ei!L(yk&HpJEo>Y~nWD%%lChXh2bdlp6CCh$W(a45&S0i+X6Q_231@}QqQ?U8 zGc-#FyF*OhLn7KTR+Rv;47Q5m5$R(IjSz|$!ptF*%nX@`A(vQ*+3DP+8ypy z6I&W`_%Hotx}U6hHP@phw_NEJj47m!qEWtXUPSY~Pv%brxxKBds|{gsI7n4WMMz(( zte5Jf#N&1jJ>{qEDfEap?Gwo5JNCrDoG4j{mX}MUR3^9Nqz!&xPes?|@MZ79u#E;I zHZZ^%hBt}>Hu!*}IL7CkF*S}8eA_vTl6>D;MJaxA)AF5+EC}VT*{weyy#@<{$_N-jhSQZT=pFPxc{b%~`HZkaY3b&n(@dM0E+Bh8I*BL7Je U@DKS3OSU4elzUQk`9Xg6H;r@ZApigX delta 882 zcmZ8gO-~a+7@l``>9*a@eo$b$&~h>{H41)24Y5WJT&NLAFc6zGq3HmEmXGOzn9Pd0 zXv@K<8Diqel6doA%qHIb3wpzgcQ5_}ohd5`?k3OkKF>4z&SYlxd+AdN*Dy{a@r+;i zIREf79?{_nFX`2tw(2K0fo`|dMIb#Sv77W$Z3tlkg|Mf#Q8#_tLL$}wOGOr}o{ z>R_O^l}@^?GTlRMBr%5$0MN#V7HUCDSyV~#s0T?M%@CYR`i7rj8bhpy0aL<6kn(ZI zJU~I($14^~lk`h?l@APNbZkDE9NIZ`9zplLE6{gHMzlmMBNrS(fQ5rkIHqvS6OJVu z>x5%7?DsMpf`vR3U}g$s#>!-tP*$w09cBw@$I|w*AqpJd@%uXc3?G2t0m(~B2+SdN zNi4COnQVpEn|(Y2fl{i=%?A{s%@6%V;6K=R)3C2v&KNs_EQ~X$6$yca#}aM|sA$v6>kG6j%0qpcuGJTsO*$u4Pt&ha|4>_5TVACt zK9V28Po=LmeOk2W44=(^gMD5sTry-MT9i=dONAob=5GppPE{BcjjlhsNae3YpYbn+ RF!L7FEur&U<^cJUuwf_rBb%d?A8Qq!$W;B z(I^>zK>J8ye9)ib+xnsjzraVIJf~bL?Bsko`N56Bx!Lz(n?$E?_L)0Zhj}(+y0N+rZfSOphDm zookBt>KcvSCZUAWMdEaAhts-4LpmYnja%Q-v`&+b5o*3$%!e#r@m9*YU^O&_>sN|_ zA8PqR(GAU&k{7sM5JrSs7O7QtWo?IuA*ra3sV$$Vb6X~i!$49Xz6Zc*jdG=?1f)v2 z%C!$lO$}&O;d)*9I9AiDT0?1)njWZCy`gcV37yo8Wtdtc8mX(4c-;x&KfD5+<9QBJ zB@Mj_o-NI&s)5;5U@mi!Y&lF|3xBOU_bO`zZ)U2zu{kn-|89DE$@POY%oP+$o6BMcx6A`BhE@HtS!o&ZV}U{S)$ z6*1O74Yc14Ks1d?Ps=1uf-d3+?dX;^jGO_0ZTK1hqbw#2nTXtw3H|*zdhO7?_S&%+ z7Ft-iR0+zJ;JVz^CzDuLoIyB?a2}x@)2=rPhHD_c0>G#kg=%s6()dZ4Oqq|29t@1h z&t|f(9p35`=eR9@o9~Qq^cj(57EfP9)j^;L695a2CUBTgFAG?W*vp94NrYoraWQl9 z2b;Nk>ZrBd@)#IqK@L`Ai7{w;_f*RRui=OUNewM*c=%?V8)TrY#kYWz@(5Fvy;dq2h4<%wvAQ{ zb{+MD`B7q$%^pa_@!mmMywhgBF0oyv_0>T3oc2~t{D{q^Y8p5lSb6Gfw)zreL@Iud zCB>uon()}m`=H{afAm|oyRD|Xe5v!i3LF{G2xyIU7^AC6kQu@>-h#C6cz)CM9dH}% zt**Q2<*;s99Lm=&pQ6yy!}w?>C@4@_Pe$O3o1lmdWj{}0eFl^GH`+|6W;_#5>c#mtEBJbULnUGoHtpn$Mml!2BBln$UJ@UJ4NC4!NvWX!54Y0DSRMAhT5 z7g4C-IkHHHMI8LP*wen`!l=1uX1FVv@KC(f^VULCJ+50up^E3o4tfuGy}sROy7hW- zQXJ|p?0{F%?Ujb-gr6$(5NINxa3JdgnKJ%cY}g{;mF*q7+jee}JKhw+Jmaw>!=GXn LOwF7&HO~G5VPcv4 diff --git a/tests/__pycache__/test_funcs.cpython-39-pytest-6.2.4.pyc b/tests/__pycache__/test_funcs.cpython-39-pytest-6.2.4.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6dd62ead9503f31d3897737637e9147ce8a02638 GIT binary patch literal 888 zcmYjPJ8u**5Vm){kK5ZjP?`|v=nje9h7v^yM4^EcB-Ki2*{prUVIPO>738#6K}}0R zvsWVVi`-J>FGNBx_9an9@{H&EX2#>Oi^(KHAb)=Re*e<}Yn;0R7}|p+--4ou;tFNh zTBmj$gi%d04{sPh^DPr(fwf^h$|B1-)%au+6K64XDfx!73B|`~=3PQvbTq>nKPg?a zzm^cJ59=i?`5hF+D_5Zb_wE`Wpm)m^QBF_J-LH7%_1-|Jv&Ld-cMw6zM+ZDIcx!Zx zdN-)@hoJYUzk_<02HU9jw$a*I`GAMLzs9Se_s>T|)CX&fQIChQiie5ujQ?rco5sVV z<<^^n{loNxNp;vYrQ&TPmu|ASSdyfz=;c3<P5YoJiYJ!7hsr+R{MB9an4?ihD3$?HNjHpMPjt!E`w9s%lZFGiVB~ zCq^cQ*kd9CY^wi4Vh4z;XX#m6vsAE}r%=4BS)*iX2K4k5SFiV9q_(=%xk;BW5FMF* zbIX`-D7Qc%Oz;#(IKdA<$IccOj{t?Cg{K{_6mO)C_ZAoVt+$geE=-N2kdg^AnnbYA z0!Bi`60;> ziC^R^r~M0DV4R9-C-S^!zVSHOWD+2tkK13Lk1d3L8{;n7V4T2_2{4K%&QXE~X%)7G zFe;qH#ruetctgZb{6Uh0P>b3>P%>fxb-r5S1M|9ZkCKpu-Gq&9P>-P&pQEXJ3;ogA z%HaJc0*Vjk6&xvmQM|J+(9Th)!>!%pIr{W&=PIjpuk0JV^IETSsMTW;4H{$&s8Q>7 zZjVHyyv|qXigY9DLJc_v{2uT8*6D)QH?v$vE$+sxWAxU{<(+M#xAW6Qykt@>nsTLh zRm!bBt2bL`R^{~eFA&(Xcp7S}lG>N6tfX9MTPmTQGAo#N*1V+J=Q3UMoN1p{D+T?M za9*tz;5l!&f~-1Im)aLB9~3XEYX)T`qtu|wDbZeDWt0i+nsTWxQb@k1Pf6c50wNtzZJFVl2-q{)|t=Zcq7hbQ$WJy?&@ zdSklHGAWrbYn=)9O_)WD4lc8ey)S@blb&Wm6El-B#0b!Y`DYHeX5VS5kCyDaT0+YE nrYvD$p4dwp^OhI)mnR literal 0 HcmV?d00001 diff --git a/tests/deprecated_funcs.py b/tests/deprecated_funcs.py new file mode 100644 index 0000000..4e24c58 --- /dev/null +++ b/tests/deprecated_funcs.py @@ -0,0 +1,21 @@ +import unittest +import os +import importlib.util as utl + +from MDAF.TestFunctions import * +import doctest + + +# Testing the test function representation workflow +def load_tests(loader, tests, ignore): + fullpath = 'MDAF/TestFunctions' + for func in os.scandir(fullpath): + name = str(func.name) + if(name.find('.py') and name.find('.old') == -1 and func.is_file() and name.find('__init__.py')==-1): + spec = utl.spec_from_file_location(name[-3], fullpath+'/'+name) + funcmodule = utl.module_from_spec(spec) + spec.loader.exec_module(funcmodule) + + tests.addTests(doctest.DocTestSuite(funcmodule)) + return tests + diff --git a/tests/deprecated_unit.py b/tests/deprecated_unit.py new file mode 100644 index 0000000..bb97e64 --- /dev/null +++ b/tests/deprecated_unit.py @@ -0,0 +1,53 @@ +import unittest +import doctest +import os + +def load_tests(loader, tests, ignore): + fullpath = 'MDAF/TestFunctions' + testlist = [] + for func in os.scandir(fullpath): + name = str(func.name) + if(name.find('.py') and name.find('.old') == -1 and func.is_file()): + spec = importlib.util.spec_from_file_location(name, fullpath) + funcmodule = importlib.util.module_from_spec(spec) + spec.loader.exec_module(funcmodule) + + tests.addTests(doctest.DocTestSuite(funcmodule)) + return tests + +if __name__ == '__main__': + runner = unittest.TextTestRunner() + runner.run(load_tests()) + + + + +import unittest +import os + + +from MDAF.TestFunctions import * +import doctest + + +#target = __import__("MDAF.py") + +# Testing the test function representation workflow +def load_tests(loader, tests, ignore): + + fullpath = 'MDAF/TestFunctions' + testlist = [] + for func in os.scandir(fullpath): + name = str(func.name) + if(name.find('.py') and name.find('.old') == -1 and func.is_file()): + curtest = doctest.DocTestSuite(os.path.relpath('../'+func.path[:-3]+'.main.__module__')) + testlist.append(curtest) + tests.addTests(testlist) + + tests.addTests(doctest.DocTestSuite(Ackley2.main.__module__)) + for t in tests: return t + +# run the suite +suite = load_tests(loader, tests, ignore) +runner = unittest.TextTestRunner() +runner.run(suite) \ No newline at end of file diff --git a/tests/test_flows.py b/tests/test_flows.py index 7ff674d..88f0c2d 100644 --- a/tests/test_flows.py +++ b/tests/test_flows.py @@ -4,6 +4,7 @@ import os from MDAF.MDAF import representfunc from MDAF.MDAF import installFalcoo from MDAF.MDAF import doe +from MDAF.TestFunctions import * #target = __import__("MDAF.py") @@ -32,11 +33,12 @@ class Test_representfunc(unittest.TestCase): Test that the function can calculate the representation and write to the function docstring """ funcpath = '@Bukin2.py' + funcverify = 'MDAF/TestFunctions/Bukin2.py' #funcpath_backup = 'tests/Bukin2.py.old' results = representfunc(funcpath, forced = True) - with open(funcpath,"r") as file: + with open(funcverify,"r") as file: content = file.read() reprCheck = bool(content.find('#_# Represented: 1'))