peak_demands/insel/insel.py

19 lines
346 B
Python
Raw Permalink Normal View History

import os
from pathlib import Path
from abc import ABC
class Insel(ABC):
def __init__(self, path):
self._path = path
self._results = None
def run(self):
paths = sorted(Path(self._path).glob('*.insel'))
for file in paths:
os.system('insel ' + str(file))
@property
def results(self):
raise NotImplementedError