## -*- coding: utf-8 -*-
"""
MIT License

Copyright (c) 2020 tamalone1
"""
import os, csv

def read_csv(filename):
    # CSV import of members
    with open(filename, newline='') as f:
        csv_reader = csv.reader(f)
        # skip the first row in the file (the header)
        next(csv_reader)
        # Get the other rows
        csv_rows = [row for row in csv_reader]
    return csv_rows

def nodes_from_csv(filename):
    # Read in nodes from the file
    csv_node_list = read_csv(filename)
    for row in csv_node_list:
        # Convert the numerical fields to floats
        # default for csv is strings
        row[1:] = [float(elem) for elem in row[1:]]
    return csv_node_list

def read_dict_from_csv(filename):
    with open(filename, mode='r', newline='') as f:
        csv_reader = csv.DictReader(f)
        rows = [row for row in csv_reader]
        for row in rows:
            for key, value in row.items():
                if value == 'True':
                    row[key] = True
                elif value == 'False':
                    row[key] = False
    return rows

1d5901646670333d9d5d76f49a3859e020592021
<mask token>


def nodes_from_csv(filename):
    csv_node_list = read_csv(filename)
    for row in csv_node_list:
        row[1:] = [float(elem) for elem in row[1:]]
    return csv_node_list


<mask token>

<mask token>


def read_csv(filename):
    with open(filename, newline='') as f:
        csv_reader = csv.reader(f)
        next(csv_reader)
        csv_rows = [row for row in csv_reader]
    return csv_rows


def nodes_from_csv(filename):
    csv_node_list = read_csv(filename)
    for row in csv_node_list:
        row[1:] = [float(elem) for elem in row[1:]]
    return csv_node_list


<mask token>

<mask token>


def read_csv(filename):
    with open(filename, newline='') as f:
        csv_reader = csv.reader(f)
        next(csv_reader)
        csv_rows = [row for row in csv_reader]
    return csv_rows


def nodes_from_csv(filename):
    csv_node_list = read_csv(filename)
    for row in csv_node_list:
        row[1:] = [float(elem) for elem in row[1:]]
    return csv_node_list


def read_dict_from_csv(filename):
    with open(filename, mode='r', newline='') as f:
        csv_reader = csv.DictReader(f)
        rows = [row for row in csv_reader]
        for row in rows:
            for key, value in row.items():
                if value == 'True':
                    row[key] = True
                elif value == 'False':
                    row[key] = False
    return rows

<mask token>
import os, csv


def read_csv(filename):
    with open(filename, newline='') as f:
        csv_reader = csv.reader(f)
        next(csv_reader)
        csv_rows = [row for row in csv_reader]
    return csv_rows


def nodes_from_csv(filename):
    csv_node_list = read_csv(filename)
    for row in csv_node_list:
        row[1:] = [float(elem) for elem in row[1:]]
    return csv_node_list


def read_dict_from_csv(filename):
    with open(filename, mode='r', newline='') as f:
        csv_reader = csv.DictReader(f)
        rows = [row for row in csv_reader]
        for row in rows:
            for key, value in row.items():
                if value == 'True':
                    row[key] = True
                elif value == 'False':
                    row[key] = False
    return rows

## -*- coding: utf-8 -*-
"""
MIT License

Copyright (c) 2020 tamalone1
"""
import os, csv

def read_csv(filename):
    # CSV import of members
    with open(filename, newline='') as f:
        csv_reader = csv.reader(f)
        # skip the first row in the file (the header)
        next(csv_reader)
        # Get the other rows
        csv_rows = [row for row in csv_reader]
    return csv_rows

def nodes_from_csv(filename):
    # Read in nodes from the file
    csv_node_list = read_csv(filename)
    for row in csv_node_list:
        # Convert the numerical fields to floats
        # default for csv is strings
        row[1:] = [float(elem) for elem in row[1:]]
    return csv_node_list

def read_dict_from_csv(filename):
    with open(filename, mode='r', newline='') as f:
        csv_reader = csv.DictReader(f)
        rows = [row for row in csv_reader]
        for row in rows:
            for key, value in row.items():
                if value == 'True':
                    row[key] = True
                elif value == 'False':
                    row[key] = False
    return rows
