Commit 967767a6 authored by Martino Bertoni's avatar Martino Bertoni 🌋
Browse files

getting rid of the imp library for the newer importlib

parent cf68c20b
Pipeline #2507 passed with stages
in 11 minutes and 48 seconds
......@@ -16,9 +16,9 @@ integers
continous: "0.515,1.690,0.996" which is an array of floats
import os
import imp
import h5py
import argparse
import importlib
import numpy as np
from .signature_data import DataSignature
......@@ -93,7 +93,9 @@ class Preprocess():
if entry:
arglist.extend(['-ep', entry])
# import and run the
preprocess = imp.load_source('main', self.preprocess_script)
loader = importlib.machinery.SourceFileLoader('preprocess_script',
preprocess = loader.load_module()
def fit(self):
Markdown is supported
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