Skip to content

Commit

Permalink
Updated import code and minor revisions
Browse files Browse the repository at this point in the history
  • Loading branch information
matthipsey committed May 29, 2024
1 parent 853b419 commit c468b73
Show file tree
Hide file tree
Showing 16 changed files with 2,753 additions and 66 deletions.
Binary file modified code/actions/agency.mat
Binary file not shown.
4 changes: 2 additions & 2 deletions code/actions/execute_import_pipeline.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import_theme5 = 0;
import_wc = 0;
import_fpa = 0;
import_bmtswan = 0;
import_bmtswan = 1;
import_wamsitheme1 = 0;

create_smd = 1;
Expand All @@ -36,7 +36,7 @@
create_shapefiles = 1;


run_marvl = 1;
run_marvl = 0;


%___________________________________________________________________________
Expand Down
Binary file modified code/actions/sitekey.mat
Binary file not shown.
Binary file modified code/actions/varkey.mat
Binary file not shown.
2 changes: 1 addition & 1 deletion code/import/BMT-SWAN/importSWAN.m
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ function importSWAN()

base = [outpath,filesite,'_',filevar];
data = [base,'_DATA.csv'];
header = [base,'_Header.csv'];
header = [base,'_HEADER.csv'];

end

28 changes: 28 additions & 0 deletions code/import/IMOS/Benchmark.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
diary Benchmark.txt
fList = {...
@()import_imos_profile_2_2010_csv_OLD()
@()import_imos_profile_2_2010_csv()
@()import_imos_profile_2_csv_Old()
@()import_imos_profile_2_csv()
@()import_imos_temp_sal_Old()
@()import_imos_temp_sal()...
}
Names = {...
'import_imos_profile_2_2010_csv_OLD'
'import_imos_profile_2_2010_csv'
'import_imos_profile_2_csv_Old'
'import_imos_profile_2_csv'
'import_imos_temp_sal_Old'
'import_imos_temp_sal'...
}

for i = 1:2:6
disp('The Old code:');
disp(Names{i})
timeit(fList{i})

disp('New version:')
disp(Names{i+1})
timeit(fList{i+1})
end

Loading

0 comments on commit c468b73

Please sign in to comment.