File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ RUN chown ${ISC_PACKAGE_MGRUSER}:${ISC_PACKAGE_IRISGROUP} /opt/irisbuild
15
15
USER ${ISC_PACKAGE_MGRUSER}
16
16
17
17
# COPY Installer.cls .
18
+ COPY data data
18
19
COPY python python
19
20
COPY src src
20
21
COPY module.xml module.xml
Original file line number Diff line number Diff line change 3
3
<Document name =" iris-python-template.ZPM" >
4
4
<Module >
5
5
<Name >iris-python-template</Name >
6
- <Version >0.0.1 </Version >
6
+ <Version >0.0.2 </Version >
7
7
<Packaging >module</Packaging >
8
8
<SourcesRoot >src</SourcesRoot >
9
9
<Resource Name =" dc.python.PKG" />
10
10
<FileCopy Name =" python/" Target =" ${mgrdir}python/" />
11
+ <FileCopy Name =" data/" Target =" ${mgrdir}data/" />
11
12
</Module >
12
13
</Document >
13
14
</Export >
Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ ClassMethod TitanicMeanAge() As %Status
30
30
{
31
31
Set sc = $$$OK
32
32
set tt =##class (%SYS.Python ).Import (" sample" )
33
- set mean = tt . meanage ( " /irisrun/repo/ data/titanic.csv" )
34
- write " mean age=" _ mean
33
+ set path = $System . Util . ManagerDirectory ()_ " data/titanic.csv"
34
+ write " mean age=" _ tt . meanage ( path )
35
35
Return sc
36
36
}
37
37
You can’t perform that action at this time.
0 commit comments