Skip to content

Commit

Permalink
Merge pull request #1400 from tobias-urdin/fix-46
Browse files Browse the repository at this point in the history
Fix CI
  • Loading branch information
tobias-urdin authored Aug 20, 2024
2 parents b37b943 + 2fd1601 commit 146d3cd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gnocchi/rest/aggregates/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def _inner_rated_agg(values, axis):
def rateofchangesec(t, v):
"""Calculate change of value per second."""
values = numpy.divide(
numpy.diff(v.T, prepend=numpy.NaN),
numpy.diff(v.T, prepend=numpy.nan),
numpy.divide(
numpy.diff(t, prepend=numpy.datetime64("NaT")),
numpy.timedelta64(1, 's'))
Expand Down
2 changes: 1 addition & 1 deletion gnocchi/rest/aggregates/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def aggregated(refs_and_timeseries, operations, from_timestamp=None,
return_inverse=True)

# create nd-array (unique series x unique times) and fill
filler = (numpy.NaN if fill in [None, 'null', 'dropna']
filler = (numpy.nan if fill in [None, 'null', 'dropna']
else fill)
val_grid = numpy.full((len(series[sampling]), len(times)), filler)
start = 0
Expand Down
6 changes: 6 additions & 0 deletions images/Dockerfile.ci
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ RUN rm -rf /var/lib/apt/lists/*
# NOTE(tobias.urdin): hack since pyparsing in site-packages collides with our requirements
RUN rm -rf /usr/lib/python3/dist-packages/pyparsing*

# NOTE(tobias.urdin): hack since jaraco.text in site-packages collides with our requirements
RUN rm -rf /usr/lib/python3/dist-packages/jaraco/text*

# TODO(tobias.urdin): hack remove this when we drop python 3.9
RUN sed -i '1s/^/from __future__ import annotations\n/' /usr/lib/python3/dist-packages/werkzeug/sansio/utils.py

#NOTE(sileht): really no utf-8 in 2017 !?
ENV LANG en_US.UTF-8
RUN update-locale
Expand Down

0 comments on commit 146d3cd

Please sign in to comment.