Skip to main content
Filter by
Sorted by
Tagged with
2 votes
0 answers
34 views

I am working on a code that calculates the 2D FFT of a function as a first step. I am testing it with the function exp(-r)/r, with r=sqrt(x²+y²) which has the analytical Hankel transform of 1/sqrt(r²+...
cyanmess's user avatar
0 votes
0 answers
18 views

I am getting the error: No connection could be made because the target machine actively refused it Here is my obs websocket settings: obs websocket settings import obsws_python as obs from subprocess ...
Andt A's user avatar
  • 1
Best practices
0 votes
4 replies
33 views

how are you My name is kk i am learning Python from YouTube. I will watch approximately full tutorials, but I didn't remember some things. I know these things are removed by practice, but I can't find ...
Thedeep Root's user avatar
Advice
0 votes
4 replies
62 views

EDIT: It seems like i was confusing closing of the image file with .close() destroying the image data. Memory shouldn't be the problem rather properly closing the file. When opening a image in Python ...
PytonGuy33's user avatar
-7 votes
2 answers
92 views

I'm working on creating a kind of online library. I'm using SQLite3 with Python, and basically I can add, delete, view my library, and search for books. But if I select the search option, I can search ...
Hugo's user avatar
  • 9
Best practices
0 votes
6 replies
46 views

I have a pandas series of a bunch of 32 bit integers, and I'd like to roll through with series.rolling and get the bitwise-and of all the values in the window, basically trying to do this except that ...
Pitt's user avatar
  • 1
-4 votes
0 answers
103 views

When I do np.floor(math.log(1000,10)) or np.floor(math.log(1000)/math.log(10)), the result I get is np.float64(2.0), when the result should be 3. This is caused by the fact that when I do math.log(...
user50746's user avatar
  • 291
1 vote
1 answer
47 views

I assumed that if statement would mean that the user was required to press the button for the program to check if a non-float or non-int was entered in entry to trigger another window to open but it ...
Gabriella Dines's user avatar
-1 votes
0 answers
54 views

I am working on the Plant Leaves Super Resolution challenge using PyTorch. I built an SRGAN-based model with Generator and Discriminator networks for image super-resolution. The model takes low-...
AQSA ZAM ZAM MIRZA JOHAR BAIG's user avatar
Best practices
0 votes
5 replies
69 views

If I do something like >>>import ast >>>testinput = "\S" >>>something = ast.literal_eval('"'+testinput+'"') Warning (from warnings module): File "...
Berthold Gehrke's user avatar
-1 votes
0 answers
89 views

I have a web page that has an AJAX call to a Python script on my web server, but when I run it, the call returns that a 500 error was thrown. When I enter the URL to the Python script directly, it ...
Don Del Grande's user avatar
0 votes
0 answers
56 views

I am new with Python and try to get the follow code to run. from matplotlib.ticker import AutoMinorLocator fig, (ax) = plt.subplots(nrows=1, ncols=1, figsize=fig_size_single_golden, ...
Si Chen's user avatar
  • 11
Advice
0 votes
2 replies
53 views

How do I make a datetime object that doesnt convert the instant itself instead it adapts to the timezone and shows the equivalent of an instant with only a single datetime object on a fixed timezone. ...
Mohamed Ali Martins Agoussine's user avatar
Best practices
0 votes
3 replies
51 views

I have a Python application using Postgres. The application connects to a shared AWS-hosted database for development. I’m considering introducing a workflow where: During the CI/CD pipeline run, ...
Alphonsa John's user avatar
-7 votes
0 answers
48 views

Help! I can't initialize it! Something has __pycache**__** and these errors found! import pyttsx3 engine = pyttsx3.init() AttributeError: module 'pyttsx3' has no attribute 'init' (consider renaming '...
thien luu duc's user avatar

15 30 50 per page
1
2 3 4 5
147120