Skip to content

Commit

Permalink
changed deprecated experimental functions and
Browse files Browse the repository at this point in the history
some minor changes in requirements.txt
  • Loading branch information
Jochen Schäfer committed Apr 6, 2023
1 parent fd594d9 commit 7306aef
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
venv/
*.pyc
__pycache__/
node_modules/
upload/
package*.json
3 changes: 0 additions & 3 deletions code/dia_overview.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#!/usr/bin/python3

import streamlit as st
#import multiprocessing_on_dill as multiprocessing
# better than dill - dill sometimes did hang while multiprocess is using dill but
# never hung in my tests. Dill is necessary for serialization
import multiprocess as multiprocessing
import sar_data_crafter as sdc
import dataframe_funcs as dff
Expand Down
2 changes: 1 addition & 1 deletion code/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"""
https://gist.github.com/chad-m/6be98ed6cf1c4f17d09b7f6e5ca2978f
"""
@st.experimental_memo
@st.cache_data
def download_button(object_to_download, download_filename, button_text):
"""
Generates a link to download the given object_to_download.
Expand Down
2 changes: 1 addition & 1 deletion code/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def get_selected_header(select_box_title, headers, col=None, key=None):
break
return (selected, ph)

@st.experimental_singleton
@st.cache_resource
def get_metric_desc_from_manpage():
metric_reg = re.compile('^\.IP\s+(.*$)')
content = re.compile('^[^\.].*$')
Expand Down
1 change: 0 additions & 1 deletion code/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
aiofiles
altair
altair_saver
multiprocessing_on_dill
multiprocess
pandas
PyPDF4
Expand Down

0 comments on commit 7306aef

Please sign in to comment.