Exemplo n.º 1
0
def projectBlock(textLst: List[str]) -> None:
    """Class information as a list of strings

    Parameters
    ----------
    textLst : list[str]
        List of strings with information
    """
    blockPrint(inspect.stack()[1][3], textLst)
Exemplo n.º 2
0
    def printWindowsForFrequency(self, listwindows=False):
        """Print information about the windows for each evaluation frequency

        Parameters
        ----------
        listwindows : bool
            Boolean flag to actually write out all the windows. Default is False as this takes up a lot of space in the terminal
        """
        blockPrint(
            "WindowSelector::windows for frequency",
            self.printWindowsForFrequencyList(listwindows),
        )
Exemplo n.º 3
0
 def printInfo(self) -> None:
     """Print class information"""
     blockPrint(self.__class__.__name__, self.printList())
Exemplo n.º 4
0
 def printConstraints(self) -> None:
     """Print information about the constraints"""
     blockPrint(
         "{} Constraints".format(self.__class__.__name__),
         self.printConstraintsList(),
     )
Exemplo n.º 5
0
 def printWindowMasks(self) -> None:
     """Print mask information"""
     blockPrint("WindowSelector::window masks", self.printWindowMasksList())
Exemplo n.º 6
0
 def printDatetimeConstraints(self):
     """Print out the datetime constraints"""
     blockPrint("WindowSelector::datetime constraints",
                self.printDatetimeConstraintsList())
Exemplo n.º 7
0
 def printSharedWindows(self) -> None:
     """Print out the shared windows"""
     blockPrint("WindowSelector::shared windows",
                self.printSharedWindowsList())
Exemplo n.º 8
0
 def printSiteInfo(self):
     """Print out information about the sites"""
     for site in self.sites:
         blockPrint("WindowSelector::site info",
                    self.printSiteInfoList(site))
Exemplo n.º 9
0
 def printTableFileInfo(self):
     """Print table file info"""
     blockPrint(
         "{} Table File Info".format(self.__class__.__name__),
         self.printTableFileList(),
     )
Exemplo n.º 10
0
 def printDataFileInfo(self):
     """Print a list of the data files"""
     blockPrint(
         "{} Data File List".format(self.__class__.__name__),
         self.printDataFileList(),
     )
Exemplo n.º 11
0
 def printComments(self) -> None:
     """Print out dataset comments"""
     blockPrint("{} Comments".format(self.__class__.__name__),
                self.printCommentsList())
Exemplo n.º 12
0
 def printWindowTimes(self) -> None:
     """Print the times of the windows"""
     blockPrint("Windower::window times", self.printWindowTimeList())