From 5bb7ef1edca01223cad624578dfb1e957189991c Mon Sep 17 00:00:00 2001 From: kass1 Date: Wed, 18 Dec 2024 12:08:17 +0100 Subject: [PATCH 1/4] stick to GA version of plotly for now --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 00f7d9d3..88a8519c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,7 +37,7 @@ dependencies = ['polars==1.16', 'typing_extensions'] version = {attr="pdstools.__version__"} [project.optional-dependencies] -adm = ['plotly[express]>=6.0.0rc0', 'requests'] +adm = ['plotly', 'requests'] pega_io = ['aioboto3', 'polars_hash'] api = ['httpx', 'pydantic', 'anyio'] healthcheck = ['pdstools[adm]', 'great_tables>=0.13', 'quarto', 'papermill', 'xlsxwriter>=3.0', 'pydot'] From dbf1ab05d63733bdb8f7b41dc9712d4643c7ca1c Mon Sep 17 00:00:00 2001 From: kass1 Date: Wed, 18 Dec 2024 15:05:24 +0100 Subject: [PATCH 2/4] Add another timestamp format --- python/pdstools/utils/cdh_utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python/pdstools/utils/cdh_utils.py b/python/pdstools/utils/cdh_utils.py index 86730a84..2e5a1088 100644 --- a/python/pdstools/utils/cdh_utils.py +++ b/python/pdstools/utils/cdh_utils.py @@ -258,6 +258,9 @@ def parse_pega_date_time_formats( pl.col(timestamp_col).str.to_datetime( "%d-%b-%y", strict=False, ambiguous="null" ), + pl.col(timestamp_col).str.to_datetime( + "%d%b%Y:%H:%M:%S", strict=False, ambiguous="null" + ), pl.col(timestamp_col).str.to_datetime( timestamp_fmt or "%Y", strict=False, ambiguous="null" ), @@ -562,7 +565,7 @@ def _capitalize(fields: Union[str, Iterable[str]]) -> List[str]: "Offline", "Update", "Strategy", - "ModelTechnique" + "ModelTechnique", ] if not isinstance(fields, list): fields = [fields] From 02bc6674bc164f22c4d255329da1ea3ad5f9d07d Mon Sep 17 00:00:00 2001 From: kass1 Date: Thu, 19 Dec 2024 14:54:51 +0100 Subject: [PATCH 3/4] Increase timeout for infinity client --- python/pdstools/infinity/internal/_base_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/pdstools/infinity/internal/_base_client.py b/python/pdstools/infinity/internal/_base_client.py index 47e3aa25..bb5c066e 100644 --- a/python/pdstools/infinity/internal/_base_client.py +++ b/python/pdstools/infinity/internal/_base_client.py @@ -71,7 +71,7 @@ def __init__( auth: Union[httpx.Auth, PegaOAuth], verify: bool = False, pega_version: Union[str, None] = None, - timeout: float = 20, + timeout: float = 90, ): self._base_url = self._enforce_trailing_slash(httpx.URL(base_url)) self.auth = auth @@ -178,7 +178,7 @@ def __init__( auth: Union[httpx.Auth, PegaOAuth], verify: bool = False, pega_version: Union[str, None] = None, - timeout: float = 20, + timeout: float = 90, ): super().__init__( base_url=base_url, auth=auth, verify=verify, pega_version=pega_version From dbed7296ad9ad3530f6c68bd67d5098ab1774df0 Mon Sep 17 00:00:00 2001 From: kass1 Date: Thu, 19 Dec 2024 14:58:11 +0100 Subject: [PATCH 4/4] bump version for patch release --- python/pdstools/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/pdstools/__init__.py b/python/pdstools/__init__.py index 7d1a9cbd..dadd39e1 100644 --- a/python/pdstools/__init__.py +++ b/python/pdstools/__init__.py @@ -1,6 +1,6 @@ """Pega Data Scientist Tools Python library""" -__version__ = "4.0.0" +__version__ = "4.0.1" from pathlib import Path