Skip to content

Commit 00b9273

Browse files
committed
deploying csv file with package
1 parent 4ef8eb4 commit 00b9273

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ RUN chown ${ISC_PACKAGE_MGRUSER}:${ISC_PACKAGE_IRISGROUP} /opt/irisbuild
1515
USER ${ISC_PACKAGE_MGRUSER}
1616

1717
#COPY Installer.cls .
18+
COPY data data
1819
COPY python python
1920
COPY src src
2021
COPY module.xml module.xml

module.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33
<Document name="iris-python-template.ZPM">
44
<Module>
55
<Name>iris-python-template</Name>
6-
<Version>0.0.1</Version>
6+
<Version>0.0.2</Version>
77
<Packaging>module</Packaging>
88
<SourcesRoot>src</SourcesRoot>
99
<Resource Name="dc.python.PKG"/>
1010
<FileCopy Name="python/" Target="${mgrdir}python/"/>
11+
<FileCopy Name="data/" Target="${mgrdir}data/"/>
1112
</Module>
1213
</Document>
1314
</Export>

src/dc/python/test.cls

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ ClassMethod TitanicMeanAge() As %Status
3030
{
3131
Set sc = $$$OK
3232
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)
3535
Return sc
3636
}
3737

0 commit comments

Comments
 (0)