Changeset c7c5ef8 in sasview for DataLoader/readers


Ignore:
Timestamp:
Apr 2, 2010 8:52:27 AM (15 years ago)
Author:
Jae Cho <jhjcho@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
d0cc0bbc
Parents:
f338d3b
Message:

Added file.close() after reading

Location:
DataLoader/readers
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • DataLoader/readers/ascii_reader.py

    r5f2d3c78 rc7c5ef8  
    274274                     
    275275     
    276                       
     276                input_f.close()      
    277277                # Sanity check 
    278278                if has_error_dy == True and not len(y) == len(dy): 
  • DataLoader/readers/red2d_reader.py

    r32e8c78 rc7c5ef8  
    223223                mask    = numpy.append(mask,(mask_value>=1)) 
    224224                 
     225        f.close()         
    225226        # If all mask elements are False, put all True 
    226227        if not mask.any(): mask[mask==False] = True    
Note: See TracChangeset for help on using the changeset viewer.