Commit aa5aec27 authored by Manuel Günther's avatar Manuel Günther
Browse files

Merge branch 'patch-1' into 'master'

Make sure default value is not a pointer



See merge request !44
parents a77c013b 0c2eeb95
Pipeline #4275 passed with stages
in 30 minutes and 58 seconds
......@@ -23,10 +23,12 @@ class Preprocessor:
A list of keyword arguments to be written in the `__str__` function.
"""
def __init__(self, writes_data=True, read_original_data=utils.read_original_data, **kwargs):
def __init__(self, writes_data=True, read_original_data=None, **kwargs):
# Each class needs to have a constructor taking
# all the parameters that are required for the preprocessing as arguments
self.writes_data = writes_data
if read_original_data is None:
read_original_data = utils.read_original_data
self.read_original_data = read_original_data
self._kwargs = kwargs
pass
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment