@@ -10,11 +10,11 @@ contamination:
1010` ` `
1111
1212The possible values for ` contamination_unit` include `items` and `boxes`. If
13- ` contamination_unit` = items, the contamination rate (described below) is applied to
13+ ` contamination_unit = items` , the contamination rate (described below) is applied to
1414the total number of items in the consignment and individual items are contaminated
1515using the specified contaminant arrangement method (described below).
1616
17- Alternatively, if `contamination_unit` = boxes, the contamination rate is
17+ Alternatively, if `contamination_unit = boxes` , the contamination rate is
1818applied to the total number of boxes in the consignment. The number of boxes to
1919contaminate is computed as a decimal (float). Full boxes are contaminated (all
2020items within box), except for the last box which uses the remainder of the
@@ -219,7 +219,7 @@ contamination:
219219 random_box:
220220 probability: 0.2
221221 ratio: 0.5
222- in_box_arrangement: all
222+ in_box_arrangement: random
223223` ` `
224224
225225# # Consignment-specific contamination
@@ -268,7 +268,8 @@ contamination:
268268
269269Although any combination is accepted as valid input, specifying overlapping rules may result in
270270unexpected behavior. For example, in case you specify only `commodity` in one rule and `port`
271- in another rule, it is hard to tell which rule is applied to which consignment. This is an issue
271+ in another rule, it is hard to tell which rule is applied to which consignment. While this is not
272+ an issue when simply selecting which consignments should be contaminated, it becomes an issue
272273when it is used in combination with different contamination settings for different consignments
273274(see below).
274275
@@ -290,9 +291,9 @@ Similarly, `end_date` specifies last day when the consignments are contaminated
290291# ## Setting consignment-specific parameters
291292
292293When all selected consignments should use the same contamination configuration,
293- the `contamination` on the top-level is used, i.e., the contamination configuration is done
294- exactly as if it would apply to all consignment and it is rules under `consignments` which limit
295- to which consignment the contamination is applied.
294+ the `contamination` on the top-level is used to specify that , i.e., the contamination configuration is done
295+ exactly as if it would apply to all consignments and it uses rules under `consignments` to limit
296+ to which consignments the contamination is applied.
296297
297298` ` ` yaml
298299contamination:
@@ -331,7 +332,7 @@ then the top-level `contamination` is used to get default values which can be th
331332overwritten by values from the nested `contamination`.
332333
333334In the following example, both consignments with both Tulipa and Rose will be contaminated and
334- will use values from the top-level `contamination` and at the same time, these values will be
335+ will use values from the top-level `contamination`, and at the same time, these values will be
335336overwritten by the nested `contamination`. As a result, contamination configuration for Tulipa
336337will have `arrangement : random_box` and `contamination_unit: item`, while contamination
337338for Rose will have `arrangement : random` and `contamination_unit: box`.
@@ -375,6 +376,9 @@ contamination:
375376 arrangement: random
376377` ` `
377378
379+ Sedum will use the top-level `contamination` values, Tulipa will not use it,
380+ and Rose will use it, but overwrite some of the values with its own values.
381+
378382---
379383
380384Next : [Inspections](inspections.md)
0 commit comments