Browse Source

Fixed some problems after pep8 apply

Felix Schultze 9 years ago
parent
commit
6a0efba1b5

+ 1 - 1
imageprocessing/sliceMapCreator.py

@@ -2,7 +2,7 @@ import io
 from skimage import img_as_ubyte
 from skimage.transform import resize
 
-from Pillow import Image
+from PIL import Image
 
 from django.conf import settings
 

+ 3 - 1
templates/volumes/edit.html

@@ -57,7 +57,8 @@
             rawDataDependend = $('div.rawDataDependend');
 
         rawDataDependend.toggle(rawData.is(':checked'));
-        rawData.change(function() {
+        console.log('what');
+        rawData.on('change', function() {
             rawDataDependend.toggle(rawData.is(':checked'));
         });
 
@@ -88,6 +89,7 @@
                 divFileList.parent().addClass('hidden');
             }
         });
+         console.log('end');
     };
 </script>
 

+ 1 - 1
volumes/processing/service/SliceGenerator.py

@@ -86,7 +86,7 @@ def sliceGeneratorPlain(data, volumeId):
             frames = tiffPreparer.processTiffFile(volume.path)
         elif volume.rawData:
             logger.debug('volId: %s, reading raw data' % (volumeId))
-            frames = binary_preparer.process_binary(volume.path, (volume.width, volume.height), littleEndian=volume.littleEndian)
+            frames = binary_preparer.process_binary(volume.path, (volume.width, volume.height), little_endian=volume.littleEndian)
         else:
             raise ValueError('sorry, file currently not supported, is it a raw file?')
 

+ 1 - 1
volumes/views.py

@@ -90,7 +90,7 @@ def edit(request, id=None):
         'form': form,
         'submitAction': submitAction,
         'defaultPath': settings.DEFAULT_IMPORT_PATH,
-        '''fileList': json.dumps(__gatherInputFolderList())'''
+        # 'fileList': json.dumps(__gatherInputFolderList())'''
         'fileList': json.dumps([])
     }
     return render_to_response('volumes/edit.html', template_context, RequestContext(request))