Skip to main content
0 votes
1 answer
52 views

Unexpected "does not contain #version" error adding basic shader to Ursina/Panda3D

My game project is built in Ursina, which is just Panda3D under the hood with some convenience functions. I've tried adding a basic glsl vertex and fragment shader to a test file I have, and every ...
0 votes
1 answer
23 views

Rotate a label in Plotly Treemap with JavaSctipt

Sometimes there're narrow bricks on treemaps. Plotly decrease the font size of such a labels, so you cannot read them. But another way is making thease labels horizontal. As far as I understood the ...
0 votes
0 answers
10 views

HDBSCAN unable to generate prediction data

I am trying to use a HDBSCAN model that I previously pkl'ed from google co-lab over to a local python project I am doing. The problem I am having is that no matter what this model will not generate ...
3 votes
2 answers
81 views

Python (no Django/Flask) - CSS and other static files not being recognized in base template

Apologies for the basic question, but I can't figure out why the CSS sheet called out in my base template's header isn't hooked up when I check my index.html file on http.server. I'm migrating my site ...
1 vote
2 answers
2k views

Generating animated SVG with python

I have been using the svgwrite library to generate a sequence of svg images. I would like to turn this sequence of images into an animated svg. The support for animated svg in svgwrite seems to only ...
1 vote
2 answers
2k views

pytest is not accepting a custom argument value

I'm trying to run pytest with a custom input argument "--trustkey_jks". Running like this: sh-4.2$ pytest -m test_e2e.py --trustkey_jks somekey ERROR: usage: py.test [options] [file_or_dir] [...
76 votes
12 answers
34k views

R expand.grid() function in Python

Is there a Python function similar to the expand.grid() function in R ? Thanks in advance. (EDIT) Below are the description of this R function and an example. Create a Data Frame from All ...
5 votes
2 answers
4k views

Meeting a pip requirement using an alternative module

I'm trying to install a python module, 'pyAudioProcessing' (https://github.com/jsingh811/pyAudioProcessing) on my Linux Mint distribution, and one of the items in requirements.txt is causing issues: ...
3 votes
2 answers
36 views

How to implement cloudiness impact in clear_sky function?

Using latitude and longitude, I can calculate solar irradiance for a clear sky using the pvlib clear_sky. If I'm not mistaken, this function doesn't account for cloud cover. How can I implement a ...
3 votes
2 answers
1k views

Unable to discover proper chromedriver version in offline mode in Docker Web App (Azure)

I'm running a web app on Azure from a Docker container based on a Selenium image (selenium/standalone-chrome:latest). It ran perfectly fine, but out of nowhere (after changing something unrelated in ...
0 votes
1 answer
90 views

How to identify contours using OpenCV or traditional methods?

Background: I currently have many grayscale images of steel. Some of them have high brightness, while others have uneven brightness. As shown in the figure below, how can I better extract their ...
-3 votes
0 answers
25 views

How can I retry testcases which are failed in setup and call phase of test in pytest

I want to retry testcases which are failed in setup or call phase of test but seems like Pytest's pytest-rerunfailures retries tests even if they fail in the teardown phase. Is there any way to ...
3 votes
1 answer
9k views

How do I incrementally add rows in Pandas Dataframe?

I am calculating the open-high-low-close (OHLC) of data for a duration of each 15 mins from 9:15 to 15:30 and want to store the OHLC values in a dataframe in each new row. ohlc = pd.DataFrame(columns=...
3 votes
2 answers
378 views

Changing Python integer in memory using ctypes module and GDB session

My question is based on this reddit post. The example there shows how to change an integer in memory using cast function from the ctypes module: >>> import ctypes >>> ctypes.cast(id(...
3 votes
3 answers
2k views

Having itemgetter and attrgetter at the same time

I'm trying to pick a most common item among a list based on the element's attribute. a1 = Myclass(name='a') a2 = Myclass(name='a') b1 = Myclass(name='b') l = [a1,a2,b1] if most_common(l, attr_name='...

15 30 50 per page
1
2 3 4 5
147387