crunchflow.input.inputfile

A module for creating and saving CrunchFlow input files.

Classes

InputFile

The main class for creating and saving CrunchFlow input files.

Functions

format_class_name(name)

Convert a class name to the appropriate format for writing a block

Module Contents

crunchflow.input.inputfile.format_class_name(name)[source]

Convert a class name to the appropriate format for writing a block keyword in an input file. If the name is in camel case, an underscore is inserted between words. The name is then converted to uppercase.

Parameters:
namestr

The name of the class to convert.

Returns:
str

The class name converted to uppercase with underscores between words.