ignore the _thread.LockType
# limitations under the License.
+import _thread
+
from pymedphys._imports import pandas as pd
from pymedphys._imports import streamlit as st
@@ -41,9 +43,9 @@ def _get_mosaiq_configuration(headers):
return machine_centre_map, mosaiq_details, mosaiq_servers
-@st.cache
+@st.cache(hash_funcs={_thread.LockType: lambda _: None})
def get_logfile_mosaiq_info(
- headers, machine_centre_map, mosaiq_details, mosaiq_servers
+ headers: "pd.DataFrame", machine_centre_map, mosaiq_details, mosaiq_servers
):
details = []
