monthly_energy_balance/insel/insel.py
2022-11-25 14:20:10 -05:00

19 lines
346 B
Python

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