Commit e172bb58 authored by Theresa Pollinger's avatar Theresa Pollinger
Browse files

neater namespacing for string handling functions

parent c68eb0fd
This diff is collapsed.
......@@ -46,6 +46,8 @@ def get_recursively(search_dict, field):
fields_found.append(another_result)
return fields_found
def get_first_key(ordered_dict):
return list(ordered_dict.keys())[0]
# """string modification functions"""
def insert_type(string, whichtype):
......@@ -182,3 +184,6 @@ def add_ods(string):
def functionize(string, typename="Ω", varname="x"):
return string.replace("=", "= [ " + varname + " : " + typename + "]")
def split_string_at_AS(string):
return re.split('AS', string)
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment