138 questions with no answers
0
votes
0
answers
7
views
PySide6 QOpenGLWidget flickers even with minimal example inside a layout
I am experiencing flickering when using QOpenGLWidget with PySide6,
even with a minimal setup.
Environment:
- PySide6 (tested with 6.5 / 6.6)
- Python 3.x
- OS: Linux / Windows (happens on multiple ...
-1
votes
0
answers
12
views
json.loads fails when one of the fields is a JSON string
I am trying to write a JSON string containing an AWS Firewall Manager policy to a JSON file. The JSON string looks like this:
{
"PolicyName": "ExampleWAFPolicy",
"...
0
votes
0
answers
14
views
ADK Google Gemini: "Session not found: default when" using InMemoryRunner with LlmAgent
I'm trying to use the Google ADK LLM agent (gemini-2.5-flash-lite) in a Flask project to check tests and review test content. I'm using InMemoryRunner and InMemorySessionService to run my agents.
Here'...
0
votes
0
answers
23
views
How to safely pass training argument to Keras layers in a dynamic list when I don’t know if each layer supports it?
I am building a custom Keras layer that consists of a list of sub-layers, but I don’t know ahead of time which layers accept a training argument (e.g., BatchNormalization does, ReLU does not).
Here’s ...
-5
votes
0
answers
57
views
Creating a custom Thonny plugin to restrict features for students
I'm trying to create a plugin in Thonny to create a custom exercise mode for my students. They should be able to write the necessary code, run tests and send the results to my own server. This part ...
0
votes
0
answers
38
views
TextFSM parsing column-aligned CLI output where optional columns shift due to variable whitespace
I'm trying to parse output where the records are aligned via variable white space. Here is the output in question:
VLAN Table
VLAN VLAN Name Type Secure eth0 eth1 eth2 ...
-5
votes
0
answers
59
views
Which YouTube video properties get deleted if not specified in an update request?
I am using the YouTube Data API v3's Videos.update endpoint to update a video. My intention is to update the video title while leaving all other video information untouched. The documentation notes:
...
0
votes
0
answers
83
views
Three Different CNN Architectures Producing Identical Metrics (VGG16, DenseNet, ResNet)
Problem
I'm training three different CNN architectures (VGG16, ResNet50, DenseNet121) on the same medical imaging dataset, but all three models are producing identical metrics (same accuracy, F1, AUC ...
4
votes
0
answers
132
views
How to intercept a markdown file and display as HTML?
As part of my application, I want to use QWebEngineView to display the contents of a local markdown file as an HTML page. Local files will end in '.md'.
In Qt version 6.9 I wrote the following code to ...
0
votes
0
answers
61
views
python-lz4: how to configure the number of threads?
I have Python script using Python binding lz4 of the original lz4:
import lz4.frame
import shutil
input_file = r"E:\Personal Projects\tmp\chunk_0.ndjson"
output_file = r"E:\Personal ...
0
votes
0
answers
42
views
Select the associated bill number or bill type
passing the payload below mentioned to the api https://www.zohoapis.com/books/v3/vendorcredits?organization_id=10234695 and getting error as
Status Code: 400 Response: {'code': 37034, 'message': '...
0
votes
0
answers
14
views
How to auto-scale point image markers when the window is resized?
I am using LightningChart Python and I am drawing a “body map” using a background image and multiple point-series markers that use custom images for chest, ankle and arm icons.
The background image ...
2
votes
0
answers
33
views
How to serialize and deserialize a Keras Layer when a submodule is passed as a class
I’m implementing a 3D U-Net in TensorFlow/Keras. I have a custom Encoder layer which takes a basic_module argument. This argument is a class that inherits from keras.layers.Layer (e.g., DoubleConv or ...
1
vote
0
answers
15
views
Why does Milvus query_iterator fail or return incomplete results with INT64 primary key edge values?
I’m encountering unexpected behavior when using query_iterator in Milvus 2.5.8 (standalone mode) with an INT64 primary key at its boundary values.
My collection schema is simple:
Primary key: INT64
...
0
votes
0
answers
12
views
Does a custom Keras layer need from_config if it instantiates another custom layer internally?
I am working with Keras 3 and have two custom layers: SingleConv and DoubleConv. Both are registered using @keras.saving.register_keras_serializable.
DoubleConv does not take a layer instance as an ...