Opened 5 years ago

#1233 new defect

py3 support for 4.x series

Reported by: pkienzle Owned by:
Priority: major Milestone: SasView 4.3.0
Component: SasView Keywords:
Cc: Work Package: SasView QA and testing


SasView 4.3 will run on python 3.x with wx 4.x, but it hasn't been extensively tested. Need to test that the various dialogs function correctly, and make sure that file I/O works.

Here's a list of file open calls in the code:

$ grep -r "\\bopen[(]" src | grep -v [.]open | grep py:
src/examples/data_generator/        fd = open(filename, 'w')
src/sas/    if not "SAS_OPENCL" in open(path).read():
src/sas/            open(config_file, "a+").write("SAS_OPENCL = \"None\"\n")
src/sas/sasgui/perspectives/invariant/            f = open(fName, 'w')
src/sas/sasgui/perspectives/invariant/        f = open(fName, 'w')
src/sas/sasgui/perspectives/invariant/        html_template = open(path_report_html, "r")
src/sas/sasgui/perspectives/invariant/            fd = open('test000', 'w')
src/sas/sasgui/perspectives/invariant/            fd = open(filename, 'w')
src/sas/sasgui/perspectives/fitting/            input_f = open(path, 'r')
src/sas/sasgui/perspectives/fitting/        with open(categorization_file, 'rb') as f:
src/sas/sasgui/perspectives/fitting/            with open(filename, 'w') as f:
src/sas/sasgui/perspectives/fitting/            with open(filename, 'w') as f:
src/sas/sasgui/perspectives/calculator/            input_f = open(path, 'r')
src/sas/sasgui/perspectives/calculator/        with open(self.fname, 'w') as out_f:
src/sas/sasgui/perspectives/calculator/        out_f = open(fname, 'w')
src/sas/sasgui/perspectives/pr/            fd = open(file, 'w')
src/sas/sasgui/perspectives/pr/            fd = open(filename, 'w')
src/sas/sasgui/perspectives/pr/            input_f = open(path, 'r')
src/sas/sasgui/perspectives/pr/            input_f = open(path, 'r')
src/sas/sasgui/perspectives/corfunc/            fd = open(filename, 'w')
src/sas/sasgui/perspectives/corfunc/        fd = open(filename, 'w')
src/sas/sasgui/perspectives/file_converter/            f = open(filename, 'r')
src/sas/sasgui/guiframe/            out = open(__EVT_DEBUG_FILENAME__, 'a')
src/sas/sasgui/guiframe/            resultFile = open(filename, "w+b")
src/sas/sasgui/guiframe/        with open(path, 'w') as out_f:
src/sas/sasgui/guiframe/            with open(serialized_file, 'rb') as f:
src/sas/sasgui/guiframe/            json.dump(master_category_dict, open(serialized_file, 'wb'))
src/sas/sasgui/guiframe/        cat_file = open(CategoryInstaller.get_user_file(), 'wb')
src/sas/sasgui/guiframe/                with open(cat_file, 'rb') as f:
src/sas/sasgui/guiframe/        fd = open(file_name, 'r')
src/sas/sasgui/guiframe/            fd = open(file_name, 'w')
src/sas/sasgui/guiframe/            fd = open(temp_file_name, 'w')
src/sas/sasgui/guiframe/                fd = open(fName, 'w')
src/sas/sasgui/guiframe/            config_file = open(custom_config.__file__)
src/sas/sasgui/guiframe/            new_config_file = open(custom_config.__file__,"w")
src/sas/sasgui/guiframe/            out = open(path, 'w')
src/sas/sasview/            out = open(__EVT_DEBUG_FILENAME__, 'a')
src/sas/sascalc/calculator/            input_f = open(path, 'rb')
src/sas/sascalc/calculator/            input_f = open(path, 'rb')
src/sas/sascalc/calculator/                input_f = open(path, 'rb')
src/sas/sascalc/calculator/        out = open(path, 'w')
src/sas/sascalc/fit/    out = open(PLUGIN_LOG, 'a')
src/sas/sascalc/fit/            input_f =  open(self.filename, 'r')
src/sas/sascalc/fit/            fd = open(file, 'w')
src/sas/sascalc/fit/        fd = open(filename, 'w')
src/sas/sascalc/pr/fit/            input_f =  open(self.filename, 'r')
src/sas/sascalc/pr/        input_f = open(path, 'r')
src/sas/sascalc/pr/        file = open(path, 'w')
src/sas/sascalc/pr/                fd = open(path, 'r')
src/sas/sascalc/file_converter/        header_file = open(filename, 'r')
src/sas/sascalc/file_converter/        with open(header_path, "r") as header_file:
src/sas/sascalc/file_converter/            with open(info.file_path, "rb") as binary_file:
src/sas/sascalc/file_converter/        file_ref = open(filename, 'w')
src/sas/sascalc/file_converter/        with open(self.data_path, 'r') as file_handle:
src/sas/sascalc/file_converter/        fd = open(filename, 'w')
src/sas/sascalc/dataloader/                    self.f_open = open(filepath, 'rb')
src/sas/sascalc/dataloader/readers/        file_ref = open(filename, 'wb')
src/sas/sascalc/dataloader/readers/            fd = open(filename, 'w')

Change History (0)

Note: See TracTickets for help on using tickets.