Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: 2D Bin packing - brute force in python
Post: RE: 2D Bin packing - brute force in python
Hi,
The red rectangle is the remaining space.
[Image: https://i.ibb.co/Cm9T6pw/None-13600x2400-1.png] |
|
WBPYTHON |
Data Science |
2 |
2,550 |
Apr-28-2021, 11:34 AM |
|
|
Thread: 2D Bin packing - brute force in python
Post: 2D Bin packing - brute force in python
Hi everyone,
Does anybody has written in python an optimized solution for brute forcing 2D-BIN packing ?
For instance I have a number of rectangles like 12x54 ; 10x14 ; 58x35 ; 50x50 , etc. And a st... |
|
WBPYTHON |
Data Science |
2 |
2,550 |
Apr-27-2021, 01:24 PM |
|
|
Thread: Indirectlty convert string to float in JSON file
Post: RE: Indirectlty convert string to float in JSON fi...
Understood, thank you again |
|
WBPYTHON |
Data Science |
6 |
6,038 |
May-06-2020, 12:09 PM |
|
|
Thread: Indirectlty convert string to float in JSON file
Post: RE: Indirectlty convert string to float in JSON fi...
You are so fast :) :) :), I was about to edit because I found out the 2 steps "with open" way.
Thank you for optimization also, I'd rather make more steps in order to understand better what I do... ... |
|
WBPYTHON |
Data Science |
6 |
6,038 |
May-06-2020, 11:36 AM |
|
|
Thread: Indirectlty convert string to float in JSON file
Post: RE: Indirectlty convert string to float in JSON fi...
Hi, thank you for clues, it helped me,
the code below worked:
with open(filepath, 'r+', encoding='utf-8') as data_jason:
data = json.load(data_jason)
for feature in data['features']:
prin... |
|
WBPYTHON |
Data Science |
6 |
6,038 |
May-06-2020, 11:19 AM |
|
|
Thread: Indirectlty convert string to float in JSON file
Post: Indirectlty convert string to float in JSON file
Hi,
I need to get rid of " from a JSON file
I have a JSON file like this:
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
... |
|
WBPYTHON |
Data Science |
6 |
6,038 |
May-05-2020, 01:51 PM |
|
|
Thread: Cx Freeze to exe - HELP
Post: RE: Cx Freeze to exe - HELP
Hi,
I tried to do it through Pyinstaller as u did. Nothing worked. But when I saw you imported PyQtwebengine alongside PyQt5,I figured out that problem was because the package could not be found. No ... |
|
WBPYTHON |
General Coding Help |
5 |
3,943 |
Apr-09-2020, 01:34 PM |
|
|
Thread: Cx Freeze to exe - HELP
Post: RE: Cx Freeze to exe - HELP
Hello, thanks for answers.
When I run it through the console, It shows no error, it launch it, but nothing happens
Here is the simple.py code with webview:
import sys
from PyQt5.QtWebEngineWidgets ... |
|
WBPYTHON |
General Coding Help |
5 |
3,943 |
Apr-08-2020, 08:05 AM |
|
|
Thread: Cx Freeze to exe - HELP
Post: Cx Freeze to exe - HELP
Hi everyone,
I made a python app using PyQt5, pandas, folium and stuff but now I struggle to convert it to exe. I tried Auto-to exe / Pyinstaller / Cx freeze, there is nothing to do, It doesn't work.... |
|
WBPYTHON |
General Coding Help |
5 |
3,943 |
Apr-07-2020, 11:50 AM |
|
|
Thread: Drag and Move window from menubar
Post: RE: Drag and Move window from menubar
Hello,
Thank you for your feedback. The problem is that the color of the app will be dark when color of the window manager bars colors are light, It looks like very strange.
Yes the point was to c... |
|
WBPYTHON |
GUI |
3 |
4,855 |
Apr-03-2020, 03:12 PM |
|
|
Thread: Drag and Move window from menubar
Post: Drag and Move window from menubar
Hello,
I got rid of Os windows frame because we cannot change colors. (I found clues on how to do it with C++ but can't find python's code).
Problem is we need to find a way to resize and move the ... |
|
WBPYTHON |
GUI |
3 |
4,855 |
Apr-03-2020, 11:49 AM |
|
|
Thread: Qtableview adapte size to
Post: RE: Qtableview adapte size to
Thank you (again) for your help. When executing your code, it displays the Qtableview in another window.
And I also have this error message in terminal.
Error:QLayout: Attempting to add QLayout "" to... |
|
WBPYTHON |
GUI |
3 |
11,510 |
Mar-22-2020, 10:03 PM |
|
|
Thread: Qtableview adapte size to
Post: Qtableview adapte size to
Hello,
Is it possible to adapte the size of a Qtableview to the main window ? when I pull the window on the right side, I would like the Qtableview to adapt and expand horizontaly. But I don't want i... |
|
WBPYTHON |
GUI |
3 |
11,510 |
Mar-22-2020, 06:51 PM |
|
|
Thread: Import Excel file and use pandas
Post: RE: Import Excel file and use pandas
Hello,
You are right, thank you. The code below solved it.
fileNameTuple = QFileDialog.getOpenFileName(self, 'OpenFile',"", "Excel (*.xls *.xlsx)")
fileName = fileNameTuple[0]
df = p... |
|
WBPYTHON |
GUI |
2 |
5,768 |
Mar-22-2020, 11:28 AM |
|
|
Thread: Import Excel file and use pandas
Post: Import Excel file and use pandas
Hello,
I try to import Excel File from PyGt simple and then read it with pandas but It doesn't work.
I have error message:
Error:Traceback (most recent call last):
File "c:/Users/burea/Desktop/P... |
|
WBPYTHON |
GUI |
2 |
5,768 |
Mar-21-2020, 05:16 PM |