<gh_stars>1-10
"""
Library Features:

Name:          lib_graph_map_utils
Author(s):     <NAME> (<EMAIL>)
Date:          '20210903'
Version:       '1.0.0'
"""
#######################################################################################
# Libraries
import logging
import os
import json

from lib_info_args import logger_name

# Logging
log_stream = logging.getLogger(logger_name)
#######################################################################################


# -------------------------------------------------------------------------------------
# Method to read map table
def read_map_table(file_name):
    if os.path.exists(file_name):
        with open(file_name) as file_handle:
            file_table = json.load(file_handle)
    else:
        log_stream.error(' ===> Fx table "' + file_name + '" does not exist.')
        raise IOError('Fx table is not available in the selected location')
    return file_table
# -------------------------------------------------------------------------------------

"""
Library Features:

Name:          lib_graph_map_utils
Author(s):     <NAME> (<EMAIL>)
Date:          '20210903'
Version:       '1.0.0'
"""
#######################################################################################
# Libraries
import logging
import os
import json

from lib_info_args import logger_name

# Logging
log_stream = logging.getLogger(logger_name)
#######################################################################################


# -------------------------------------------------------------------------------------
# Method to read map table
def read_map_table(file_name):
    if os.path.exists(file_name):
        with open(file_name) as file_handle:
            file_table = json.load(file_handle)
    else:
        log_stream.error(' ===> Fx table "' + file_name + '" does not exist.')
        raise IOError('Fx table is not available in the selected location')
    return file_table
# -------------------------------------------------------------------------------------
Library Features:  Name:          lib_graph_map_utils Author(s):     <NAME> (<EMAIL>) Date:          '20210903' Version:       '1.0.0' ####################################################################################### # Libraries # Logging ####################################################################################### # ------------------------------------------------------------------------------------- # Method to read map table # -------------------------------------------------------------------------------------