Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

note: When this script is executed, cwd/Tests/ contains 40 folders, each containing 20 excel files of data. 1. What is the maximum number of Force

image text in transcribed
image text in transcribed
note: When this script is executed, cwd/Tests/ contains 40 folders, each containing 20 excel files of data. 1. What is the maximum number of Force AspirateTest objects stored in memory on line 79? 2. What line number causes the use of Force AspirateTest class _init__() function? 3. What type of data is contained in the variable (name), defined on line 74? 4. Why is the function combine_all_average(), defined on line 61, not indented to match line 41? (501, path to test folder): foloer sath - path to test polder requires pats to folder selenae folder path.split('13-11 files .os.Listdir(path to test folder) Estilo de for the insett.files: el.grat_FA_results(es.path.join(self.folder path, file)) t.comoine_results() der grab FA_results(self, path to excel_file): Extracts Farcesteresults to outoframe to.celfile: Full path to excel file It None try: Cacat front from excelencolumesticat sen santai IORES test_ta.df pd.read_excel(path_to_excel file, sest Forcepiratelesults, Index, col-(ol, sest=[0,1,2,3,4,5,61) except Exceptie ase: print("Cannot read Force Aorate Results from Tile:) print(path to excel file) return, cannot read, print and exit columnes are generic, they will be the same for all files in the test, se rest path, file_name.os.path.split(path_to_excel file) renove path test name, extos.path.splitext(file_nane) remove extension test number test_name.split(")1-11 : test number after last underscore Labeled_test_fa_df = test_fa,df.add.prefix("Tests, test number) * add string as pret test cata.append(tabeled_test_ta_df) 1 save test data to list class property de combine_results():... et combine all avg(): Creates all test datafrane free average force and displacement data intereste naty1s Script Suting) cados get folder os. path. Joincad. "Tests) all test of datafrancstyttan Torf in os. listoir(tfolder) folder sath .path Jointfelder ) fetust ForcepirateTest(PolderPath_feet Patest.net force datata testave test forcen patata testave test is estats all_test_of("urce force.catalin Bateframe all test ange" seplacement clup.data return all test of note: When this script is executed, cwd/Tests/ contains 40 folders, each containing 20 excel files of data. 1. What is the maximum number of Force AspirateTest objects stored in memory on line 79? 2. What line number causes the use of Force AspirateTest class _init__() function? 3. What type of data is contained in the variable (name), defined on line 74? 4. Why is the function combine_all_average(), defined on line 61, not indented to match line 41? (501, path to test folder): foloer sath - path to test polder requires pats to folder selenae folder path.split('13-11 files .os.Listdir(path to test folder) Estilo de for the insett.files: el.grat_FA_results(es.path.join(self.folder path, file)) t.comoine_results() der grab FA_results(self, path to excel_file): Extracts Farcesteresults to outoframe to.celfile: Full path to excel file It None try: Cacat front from excelencolumesticat sen santai IORES test_ta.df pd.read_excel(path_to_excel file, sest Forcepiratelesults, Index, col-(ol, sest=[0,1,2,3,4,5,61) except Exceptie ase: print("Cannot read Force Aorate Results from Tile:) print(path to excel file) return, cannot read, print and exit columnes are generic, they will be the same for all files in the test, se rest path, file_name.os.path.split(path_to_excel file) renove path test name, extos.path.splitext(file_nane) remove extension test number test_name.split(")1-11 : test number after last underscore Labeled_test_fa_df = test_fa,df.add.prefix("Tests, test number) * add string as pret test cata.append(tabeled_test_ta_df) 1 save test data to list class property de combine_results():... et combine all avg(): Creates all test datafrane free average force and displacement data intereste naty1s Script Suting) cados get folder os. path. Joincad. "Tests) all test of datafrancstyttan Torf in os. listoir(tfolder) folder sath .path Jointfelder ) fetust ForcepirateTest(PolderPath_feet Patest.net force datata testave test forcen patata testave test is estats all_test_of("urce force.catalin Bateframe all test ange" seplacement clup.data return all test of

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

JDBC Database Programming With J2ee

Authors: Art Taylor

1st Edition

0130453234, 978-0130453235

More Books

Students also viewed these Databases questions

Question

=+1 What would you do if you were the IHR manager?

Answered: 1 week ago