Skip to content

Commit f66f60b

Browse files
committed
Added SaveContext to test process, removed comments in Python code
1 parent b12b03c commit f66f60b

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

isc/py/test/Process.cls

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Storage Default
1111
XData BPL [ XMLNamespace = "http://www.intersystems.com/bpl" ]
1212
{
1313
<process language='objectscript' request='Ens.Request' response='Ens.Response' height='2000' width='2000' >
14-
<sequence xend='200' yend='750' >
14+
<sequence xend='200' yend='850' >
1515
<call name='Correlation Matrix: Tabular' target='isc.py.ens.Operation' async='1' xpos='200' ypos='250' >
1616
<annotation><![CDATA[import pyodbc
1717
import pandas as pd
@@ -42,13 +42,7 @@ Data0['UEBRIGE_BRUEHWURST_STUECK']=pd.to_numeric(Data0['UEBRIGE_BRUEHWURST_STUEC
4242
Data0['WIENERLI_KNACKERLI_FRANKFURTERLI']=pd.to_numeric(Data0['WIENERLI_KNACKERLI_FRANKFURTERLI'])
4343
corrmat=Data0.corr()
4444
corrmat.columns.name='CATEGORY'
45-
//PyRun_SimpleString("import sys
46-
//PyRun_SimpleString("orig_stdout=sys.stdout
47-
//PyRun_SimpleString("f=open('C:/IRIS+Python/IRIS+Python_output_model_001.txt','w')
48-
//PyRun_SimpleString("sys.stdout=f
4945
result=corrmat.to_string()
50-
//PyRun_SimpleString("sys.stdout=orig_stdout
51-
//PyRun_SimpleString("f.close()
5246
cnxn.close()
5347
]]></annotation>
5448
<request type='isc.py.msg.ExecutionRequest' >
@@ -77,6 +71,7 @@ plt.close(f)]]></annotation>
7771
<request type='isc.py.msg.SaveRequest' />
7872
<response type='Ens.StringResponse' />
7973
</call>
74+
<sync name='Wait: Save Context' calls='Save Context' type='all' xpos='200' ypos='750' />
8075
</sequence>
8176
</process>
8277
}

0 commit comments

Comments
 (0)