Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
felixbur committed Feb 22, 2022
1 parent 5ecf27e commit dd2dcb9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from plots import Plots
import glob_conf
import configparser
import os.path

class Dataset:
""" Class to represent datasets"""
Expand All @@ -32,6 +33,8 @@ def load(self):
data_roots = self.util.config_val('DATA', 'root_folders', False)
if data_roots:
# if there is a global data rootfolder file, read from there
if not os.path.isfile(data_roots):
self.util.error(f'no such file: {data_roots}')
roots = configparser.ConfigParser()
roots.read(data_roots)
root = roots['Data_folders'][self.name]
Expand Down

0 comments on commit dd2dcb9

Please sign in to comment.