somts / odf-ctd-proc

ODF CTD processing c. 2016
BSD 3-Clause "New" or "Revised" License
8 stars 7 forks source link

Another big one. #8

Closed webbpinner closed 7 years ago

webbpinner commented 7 years ago

Went through and renamed a bunch of files as a first stab at trying to standardize some naming conventions.

all scripts start with 'odf' all libraries start with 'libODF'

sorted the 'Raw' and 'RAW' data directories into a 'sample_data_dir' directory. That directory is organized into 'converted', 'ini-files' and 'raw'

changed default naming of converted files from _converted.csv to .cnv.csv in accordance with the new datasets Courtney posted.

updated all the import statements in the libraries and scripts to reflect the changes to file names.

added a new bash script 'unitTest.sh' as a first attempt at unit testing. This script first calls all the scripts using the '-h' flag. Then calls all of them again but in a more real-world scenario. A .hex/XMLCON fileset is processed and the cnv file is saved to ./unitTesting (which the script should create), then the cnv file is processed for CTD sensor data and bottle data. Finally all the sample files are called to verify they're working. All output is saved to ./unitTesting for reviewing. To reset for running unitTest.sh again simply delete the ./unitTesting directory.

Coffee might have come in a little strong this morning. I apologize for that. -W