# Path: postproclib/postproc.py
# class PostProc:
# 
#     def __str__(self):
#         string =  ('\nAvailable outputs in ' + self.resultsdir + ' include:\n\n')
#         string += ('\t{0:^24s}\t{1:>10s}\n'.format('field', 'records'))
#         #string += ('\t{0:^24s}\t{1:^10s}\n'.format('-'*24, '-'*10))
#         for key,field in sorted(self.plotlist.items()):
#             line = '\t{0:<24s}=\t{1:>10f},\n'.format(key, field.maxrec)
#             string += line
#         return string 
# 
# Path: postproclib/pplexceptions.py
# class NoResultsInDir(Exception):
#     pass
# 
# class DataMismatch(Exception):
#     pass


import os
import numpy as np
import sys
import math as maths
import glob
from .mdfields import *
from .headerdata import *
from .postproc import PostProc
from .pplexceptions import NoResultsInDir, DataMismatch
                pass
            try:
                T1 = MD_rhoTField(self.resultsdir, **kwargs)
                self.plotlist.update({'rhoT':T1})
            except DataMismatch:
                pass
            try:
                T1 = MD_TField(self.resultsdir, peculiar=False, **kwargs)
                self.plotlist.update({'T_peculiar':T1})
            except DataMismatch:
                pass
            #Derivative of temperature heatflux
            try:
                T1 = MD_dTdrField(self.resultsdir, **kwargs)
                self.plotlist.update({'dTdr':T1})
            except DataMismatch:
                pass
            except DataNotAvailable:
                pass

            #Analytical form of heatflux
            try:
                q1 = MD_heatfluxapprox(self.resultsdir, **kwargs)
                self.plotlist.update({'q_approx':q1})
            except DataMismatch:
                pass
            except DataNotAvailable:
                pass

        if (len(self.plotlist) == 0):

# Path: postproclib/postproc.py
# class PostProc:
# 
#     def __str__(self):
#         string =  ('\nAvailable outputs in ' + self.resultsdir + ' include:\n\n')
#         string += ('\t{0:^24s}\t{1:>10s}\n'.format('field', 'records'))
#         #string += ('\t{0:^24s}\t{1:^10s}\n'.format('-'*24, '-'*10))
#         for key,field in sorted(self.plotlist.items()):
#             line = '\t{0:<24s}=\t{1:>10f},\n'.format(key, field.maxrec)
#             string += line
#         return string 
# 
# Path: postproclib/pplexceptions.py
# class NoResultsInDir(Exception):
#     pass
# 
# class DataMismatch(Exception):
#     pass


# Path: postproclib/mdpostproc.py
import os
import numpy as np
import sys
import math as maths
import glob
from .mdfields import *
from .headerdata import *
from .postproc import PostProc
from .pplexceptions import NoResultsInDir, DataMismatch

                pass
            try:
                T1 = MD_rhoTField(self.resultsdir, **kwargs)
                self.plotlist.update({'rhoT':T1})
            except DataMismatch:
                pass
            try:
                T1 = MD_TField(self.resultsdir, peculiar=False, **kwargs)
                self.plotlist.update({'T_peculiar':T1})
            except DataMismatch:
                pass
            #Derivative of temperature heatflux
            try:
                T1 = MD_dTdrField(self.resultsdir, **kwargs)
                self.plotlist.update({'dTdr':T1})
            except DataMismatch:
                pass
            except DataNotAvailable:
                pass

            #Analytical form of heatflux
            try:
                q1 = MD_heatfluxapprox(self.resultsdir, **kwargs)
                self.plotlist.update({'q_approx':q1})
            except DataMismatch:
                pass
            except DataNotAvailable:
                pass

        if (len(self.plotlist) == 0):

            raise NoResultsInDir