Skip to content

Commit

Permalink
fix for #996- passing properties from cli in python
Browse files Browse the repository at this point in the history
  • Loading branch information
sonalgoyal committed Jan 10, 2025
1 parent 7d2bc04 commit 00bd271
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions examples/febrl/FebrlExample.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sys
from zingg.client import *
from zingg.pipes import *

Expand Down Expand Up @@ -36,6 +37,11 @@

options = ClientOptions([ClientOptions.PHASE,"match"])

#if one needs to pass properties-file and other command line args
# ./scripts/zingg.sh --run examples/febrl/FebrlExample.py --phase trainMatch --properties-file config/zingg.conf
# comment the above and uncomment the line below
#options = ClientOptions(sys.argv[1:])

#Zingg execution for the given phase
zingg = Zingg(args, options)
zingg.initAndExecute()
2 changes: 1 addition & 1 deletion python/zingg/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ def setArguments(self, args):
:param args: provide arguments for this class object
:type args: Arguments
"""
self.client.setArguments()
self.client.setArguments(args)

def getArguments(self):
"""Method to get atguments of this class object
Expand Down

0 comments on commit 00bd271

Please sign in to comment.