# prepare_target()

Build the capacity target from a driving log.

Usage

[Source](https://github.com/lornearnold/driven-pile/blob/main/src/driven_pile/preprocess.py#L152-L202)

``` python
prepare_target(
    log,
    soil,
    options=None,
)
```

## Parameters

`log: DriveLog`  
The driving record, with its pile and hammer.

`soil: SoilProfile`  
Mudline, water table, unit weight and fines content.

`options: ModelOptions = None`  
Formula coefficients and smoothing settings.

## Returns

`Target`  

## Raises

`ValueError`  
If the log has no valid feet.
