Skip to content

Commit 138f3de

Browse files
authored
more small edits
Signed-off-by: Martijn Govers <[email protected]>
1 parent dc0ff13 commit 138f3de

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/model_interface.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,15 @@
9797
"cell_type": "markdown",
9898
"metadata": {},
9999
"source": [
100-
"As seen above you can also make batch modification using the `grid.append` method.\n",
100+
"As seen above, you can also apply multiple modifications in one go using the `grid.append` method.\n",
101101
"\n",
102102
"## Array interface\n",
103103
"\n",
104-
"The array container is build around a extension of numpy arrays with the `FancyArray` class. This allows for easy and consistent definition of array types, recognition of array-type from it's class and features which improve readability such as dot-notation and autocompletion. It contains a `._data` attribute with the base numpy array and extra settings can be provided using `._defaults` and `._str_lengths`. Note these values should only be used in defining the array classes and remain private when using the arrays.\n",
104+
"The array container is build around a extension of numpy arrays with the `FancyArray` class. This allows for easy and consistent definition of array types, recognition of array-type from its class and features which improve readability such as dot-notation and autocompletion. It contains a `._data` attribute with the base numpy array and extra settings can be provided using `._defaults` and `._str_lengths`. Note these values should only be used in defining the array classes and remain private when using the arrays.\n",
105105
"\n",
106106
"### Array definition\n",
107107
"\n",
108-
"You can create your own array by subclassing FancyArray.\n",
108+
"You can create your own array by subclassing `FancyArray`.\n",
109109
"Array-columns can be defined by adding class attributes with the column name and the numpy dtype.\n",
110110
"\n",
111111
"Example:\n"
@@ -150,7 +150,7 @@
150150
"cell_type": "markdown",
151151
"metadata": {},
152152
"source": [
153-
"These are used when initializing an array with the .empty method\n"
153+
"These are used when initializing an array with the `.empty` method\n"
154154
]
155155
},
156156
{
@@ -192,7 +192,7 @@
192192
"\n",
193193
"### Array loops\n",
194194
"\n",
195-
"Looping over large arrays can be a performance hit, this is caused by casting each row to the original `FancyArray` subclass. When you want to implement a faster loop over the array you can choose to access the `array.data` directly and create the loop using\n"
195+
"Looping over large arrays can incur a performance hit caused by conversion of each element to the original `FancyArray` subclass. When you want to implement a faster loop over the array you can choose to access the `array.data` directly and create the loop using\n"
196196
]
197197
},
198198
{

0 commit comments

Comments
 (0)