Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
1 merge request!44Make sure default value is not a pointer
Pipeline #
...@@ -23,10 +23,12 @@ class Preprocessor: ...@@ -23,10 +23,12 @@ class Preprocessor:
A list of keyword arguments to be written in the `__str__` function. 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 # Each class needs to have a constructor taking
# all the parameters that are required for the preprocessing as arguments # all the parameters that are required for the preprocessing as arguments
self.writes_data = writes_data 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.read_original_data = read_original_data
self._kwargs = kwargs self._kwargs = kwargs
pass pass
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment