Skip to content

Commit

Permalink
removes unneeded comments; clean up Dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: James Kunstle <[email protected]>
  • Loading branch information
JamesKunstle committed Feb 13, 2024
1 parent 02e580d commit 779d6df
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
2 changes: 0 additions & 2 deletions 8Knot/pages/chaoss/visualizations/contrib_importance_pie.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,6 @@ def process_data(df: pd.DataFrame, action_type, top_k, patterns, start_date, end
df_sum = df[action_type].sum()

# calculate the remaining contributions by taking the the difference of t_sum and df_sum
# df = df.append({"cntrb_id": "Other", action_type: t_sum - df_sum}, ignore_index=True)

# dataframes no longer implement above 'append' interface as of Pandas 1.4.4
# create a single-entry dataframe that we can concatenate onto existing df
df_concat = pd.DataFrame(data={"cntrb_id": ["Other"], action_type: [t_sum - df_sum]})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,6 @@ def process_data(df: pd.DataFrame, action_type, top_k, patterns, start_date, end
df_sum = df[action_type].sum()

# calculate the remaining contributions by taking the the difference of t_sum and df_sum
# df = df.append({"cntrb_id": "Other", action_type: t_sum - df_sum}, ignore_index=True)

# dataframes no longer implement above 'append' interface as of Pandas 1.4.4
# create a single-entry dataframe that we can concatenate onto existing df
df_concat = pd.DataFrame(data={"cntrb_id": ["Other"], action_type: [t_sum - df_sum]})
Expand Down
7 changes: 0 additions & 7 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,6 @@ RUN pip3 install --no-cache-dir -U pip setuptools && \
# working directory.
COPY ./8Knot/ /opt/app-root/src/

# run flower
# CMD [ "celery", "-A", "app:celery_app", "flower" ]

# run worker
# CMD [ "celery", "-A", "app:celery_app", "worker", "--loglevel=INFO" ]

# run app
# Description of how to choose the number of workers and threads.
# common wisdom is (2*CPU)+1 workers:
# https://medium.com/building-the-system/gunicorn-3-means-of-concurrency-efbb547674b7
Expand Down

0 comments on commit 779d6df

Please sign in to comment.