Python - Boreholes and soil layers set using information from a csv file

Afternoon,

 

I have a csv file with:

- boreholes (1, 2, 3,..., b) characteristics ('x', head, 1st layer top level, 1st layer bottom level, 2nd layer bottom level, 3rd layer bottom level, ..., lth layer bottom level);

- material (1, 2, 3, ..., m) characteristics (to be assigned to each soil layer that each borehole).

Whilst I managed to get the Python script reading the csv files, trying to set boreholes/layers/materials in loops has been more complex (I would like the script to be run for as many boreholes/layer/materials as needed).  All examples I have seen, so far, are for basic ground models with horizontal layers defined by a single borehole.  Is there a way to set as many boreholes as needed, change the top and bottom layers levels, head, ‘x’ coordination in a loop?

From what I have seen g_i.borehole(x) creates Borehole_1, and if I repeat  g_i.borehole(x) Borehole_2 is created, and so on.  How can I access and change the characteristics of each borehole, using a Python script, for any number of boreholes >1?

How can layers characteristics be set for each borehole, and a material set for each of those layer, in a loop?

Apologies if this question has been asked before but, I couldn’t find it in the forum.

Cheers,

Joao