Loading GenDevice/excelIcd.py +8 −1 Original line number Diff line number Diff line Loading @@ -34,8 +34,15 @@ class excelIcd: self.nsheets = len(self.book.sheet_names) if(self.debug): print(self.nsheets,self.book.sheet_names) actor="ALL" for sheet_name in (self.book.sheet_names): she=(self.book.parse(sheet_name)) #.dropna(axis=0,how='all') #print(sheet_name) if( sheet_name!="Main"): query="`Actor` =="+ "'"+actor+"'" she=(self.book.parse(sheet_name)).query(query) #.dropna(axis=0,how='all') else: she=(self.book.parse(sheet_name)) self.sheets[sheet_name]=she #.dropna(axis=1,how='all') siz=self.sheets[sheet_name].shape if(self.debug): Loading install.sh +1 −1 Original line number Diff line number Diff line python setup.py bdist_wheel python -m pip install dist/GenDevice-0.3-py3-none-any.whl python -m pip install dist/GenDevice-0.7-py3-none-any.whl setup.py +1 −1 Original line number Diff line number Diff line from setuptools import setup setup(name='GenDevice', version='0.3', version='0.7', description='Python code generator for ASTRI-MA', url='#', author='Gino Tosti', Loading test/readIcdFile.py +5 −1 Original line number Diff line number Diff line Loading @@ -15,13 +15,17 @@ if __name__=="__main__": help="ICD Exel File ", metavar="FILE") parser.add_option("-s", "--sheet", dest="sheet", default='Main', help="ICD Exel File Sheet Name to show", metavar="SHEET") parser.add_option("-a", "--actor", dest="actor", default='ALL', help="ICD Exel File Actor Name to show", metavar="ACTOR") (options, args) = parser.parse_args() gen_dir=os.environ["PYGEN"] excel_file =options.book_file wb=excelIcd(excel_file) get=wb.getSheet(options.sheet) print(get) #query="`Actor` =="+ "'"+options.actor+"'" #get=(wb.book.parse(options.sheet)).query(query) print(get["Actor"]) Loading
GenDevice/excelIcd.py +8 −1 Original line number Diff line number Diff line Loading @@ -34,8 +34,15 @@ class excelIcd: self.nsheets = len(self.book.sheet_names) if(self.debug): print(self.nsheets,self.book.sheet_names) actor="ALL" for sheet_name in (self.book.sheet_names): she=(self.book.parse(sheet_name)) #.dropna(axis=0,how='all') #print(sheet_name) if( sheet_name!="Main"): query="`Actor` =="+ "'"+actor+"'" she=(self.book.parse(sheet_name)).query(query) #.dropna(axis=0,how='all') else: she=(self.book.parse(sheet_name)) self.sheets[sheet_name]=she #.dropna(axis=1,how='all') siz=self.sheets[sheet_name].shape if(self.debug): Loading
install.sh +1 −1 Original line number Diff line number Diff line python setup.py bdist_wheel python -m pip install dist/GenDevice-0.3-py3-none-any.whl python -m pip install dist/GenDevice-0.7-py3-none-any.whl
setup.py +1 −1 Original line number Diff line number Diff line from setuptools import setup setup(name='GenDevice', version='0.3', version='0.7', description='Python code generator for ASTRI-MA', url='#', author='Gino Tosti', Loading
test/readIcdFile.py +5 −1 Original line number Diff line number Diff line Loading @@ -15,13 +15,17 @@ if __name__=="__main__": help="ICD Exel File ", metavar="FILE") parser.add_option("-s", "--sheet", dest="sheet", default='Main', help="ICD Exel File Sheet Name to show", metavar="SHEET") parser.add_option("-a", "--actor", dest="actor", default='ALL', help="ICD Exel File Actor Name to show", metavar="ACTOR") (options, args) = parser.parse_args() gen_dir=os.environ["PYGEN"] excel_file =options.book_file wb=excelIcd(excel_file) get=wb.getSheet(options.sheet) print(get) #query="`Actor` =="+ "'"+options.actor+"'" #get=(wb.book.parse(options.sheet)).query(query) print(get["Actor"])