@lru_cache(maxsize=128)
def calculate_min_extrema(
- length: int, fit_live_predictions_candles: int, min_extrema: int = 4
+ length: int, fit_live_predictions_candles: int, min_extrema: int = 2
) -> int:
return int(round(length / fit_live_predictions_candles) * min_extrema)
echo_timestamped "Info: docker image pull for ${REMOTE_DOCKER_IMAGE}"
local_digest=$(command docker image inspect --format='{{.Id}}' "$REMOTE_DOCKER_IMAGE" 2>/dev/null || command echo "none")
-if ! command docker image pull --quiet "$REMOTE_DOCKER_IMAGE"; then
+if ! command docker image pull --quiet "$REMOTE_DOCKER_IMAGE" >/dev/null 2>&1; then
echo_timestamped "Error: docker image pull failed for ${REMOTE_DOCKER_IMAGE}"
exit 1
fi
echo_timestamped "Error: docker compose down failed"
exit 1
fi
- if ! command docker image rm "$LOCAL_DOCKER_IMAGE"; then
+ if ! command docker image rm "$LOCAL_DOCKER_IMAGE" >/dev/null 2>&1; then
echo_timestamped "Warning: docker image rm failed for ${LOCAL_DOCKER_IMAGE}"
fi
if ! command docker compose --progress quiet up -d; then