monthly_energy_balance/insel/insel.py

19 lines
346 B
Python
Raw Normal View History

2021-02-04 11:17:31 -05:00
import os
from pathlib import Path
2022-11-25 14:20:10 -05:00
from abc import ABC
2021-02-04 11:17:31 -05:00
2022-11-25 14:20:10 -05:00
class Insel(ABC):
def __init__(self, path):
2021-02-04 11:17:31 -05:00
self._path = path
self._results = None
def run(self):
2022-11-25 14:20:10 -05:00
paths = sorted(Path(self._path).glob('*.insel'))
for file in paths:
os.system('insel ' + str(file))
2021-02-04 11:17:31 -05:00
@property
def results(self):
2022-11-25 14:20:10 -05:00
raise NotImplementedError