2,206,353 questions
Advice
0
votes
1
replies
15
views
How to Schedule Weekly Asyncio Tasks
Currently working on a bot for Stoat (a Discord alternative) and was working with asyncio to hopefully have tasks done at a specific time each day or each week. For example, one would execute my ...
-1
votes
0
answers
48
views
Purge CSV of duplicate data or don't create duplicate data
I am creating a CSV from data associated with vertex indices with blender. The code is functional and does not produces bugs. The issue is that each vertex index is creating multiple lines of ...
Tooling
0
votes
0
replies
25
views
Using MONAI sliding_window_inference with multi-output model, how to use predictor for only one output?
I am using MONAI sliding_window_inference for segmentation inference, but my model returns multiple outputs instead of a single tensor.
My model forward returns something like:
return {
"...
0
votes
0
answers
41
views
AWS CLI Error: LOADER: failed to restart process: Operation not permitted
I am trying to run AWS CLI version 2.83.0 on my RHEL9 machine but am running into [PYI-####:ERROR\] LOADER: failed to restart process: Operation not permitted for every command.
[root@yumvmrhelvad ~]# ...
-1
votes
0
answers
57
views
How to plot PCoA ellipsoids in Python?
I have a set of biological samples divided in three types (1, 2 and 3). I have managed to plot a PCoa analysis based on the Bray-Curtis distances regarding the relative abundance of some genes in the ...
0
votes
0
answers
65
views
QuickSort + Selection Sort approach for counting segments containing points fails sometimes
I am solving a problem where I need to count how many segments contain each given point on a line
Problem: Given s segmentes defined by [a_i, b_i] and p points, output for each point how many ...
Tooling
0
votes
1
replies
64
views
How do I create an authentication feature with FastAPI and React?
How do I create an authentication feature with FastAPI and React? What tools can I use for this? Is using FastAPI-Users sufficient? Or are there other similar libraries? I also found a note in the ...
1
vote
1
answer
58
views
Tkinter frame placement
I am trying to build a data visualisation app using tkinter that draws a table with a dropdown element in each record. to do this I place labels using grid and one frame. When I attempt to place ...
0
votes
0
answers
27
views
Elasticsearch reindex with ELSER pipeline succeeds but only generates embeddings for fraction of documents - no failures reported
I'm reindexing documents with an ELSER inference pipeline to generate embeddings, but only a fraction of documents (usually around half) end up with embeddings despite the reindex completing ...
0
votes
0
answers
56
views
Plotly creating multiple duplicate graphs
Minimum reproducable example:
iso country year gdp_per_c Scenario
AFG Afghanistan 2030 0.3890 SSP1-2.6
AFG Afghanistan 2040 0.6465 SSP1-2.6
AFG Afghanistan 2030 0.2106 ...
0
votes
1
answer
85
views
How to force SMS verification code instead of Telegram app notification using Telethon? [closed]
I'm building a Telegram account automation tool using Telethon in Python. I need to log in to multiple phone numbers, some of which are not yet registered on Telegram.
The problem is that when I call ...
0
votes
1
answer
54
views
Conda install pip does not show up in venv in ubuntu
which python
/home/usr/miniconda3/envs/venv/bin/python
which pip
/bin/pip
I'm unable to get pip for my venv or conda even after manual installation.
How to set up pip for my venv
Advice
0
votes
5
replies
97
views
How to parse fuzzy text descriptions into structured time-series data in Python?
I am extracting streaming subscriber data from text using an LLM, and I get results like this:
{
"raw_extractions": [
{
"platform_mention": "Netflix",
&...
-3
votes
1
answer
141
views
Using python to predict data
I want to use Python to create an additional 5 sets of data per distance PER material I have. I have my CSV's Set up into two columns as such with 5 pieces of data per distance:
Distance(mm)
Counts
...
0
votes
2
answers
98
views
Got error code `TNBHSUR_7331` when setup python workspace [closed]
The error notification like that:
<timestamp>: ERROR [TNBHSUR_7331]: Error parsing python interpreter
I tried to re-install but missing requirements. Maybe need a custom loader?