Commit c62e1e37 authored by Christian Schneider's avatar Christian Schneider
Browse files

Merge branch 'bugfix' into 'master'

Make it possible to look for file with specific extension when loading a...

See merge request quantum_circuits/python_repo!8
parents 7b5db6dd b85ae835
......@@ -1284,7 +1284,9 @@ def font_list():
import matplotlib.font_manager as fm
return [f.name for f in fm.fontManager.ttflist]
def load_datamodules_in_folder(path='.',word_search=None,parameters=[],return_filelist=False, sort = True):
def load_datamodules_in_folder(path='.',word_search=None,parameters=[],
return_filelist=False, sort = True,
extension='.dm'):
"""This function opens all the datamodules in a folder and returns them in
a list
......@@ -1330,7 +1332,7 @@ def load_datamodules_in_folder(path='.',word_search=None,parameters=[],return_fi
path = '.'
#return path
filelist= glob.glob(path+'/*.dm')
filelist= glob.glob(path+'/*'+extension)
#return filelist
dmlist = []
......
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