Jump to content


Photo

merge requests for PLi's git


  • Please log in to reply
1748 replies to this topic

Re: merge requests for PLi's git #1621 neo

  • PLi® Contributor
  • 715 posts

+48
Good

Posted 30 June 2023 - 13:46

Merged



Re: merge requests for PLi's git #1622 Dimitrij

  • PLi® Core member
  • 10,262 posts

+347
Excellent

Posted 16 July 2023 - 08:36

Please apply

[werbezapper] update - thanks @Stan

[epgimport] add option "Execute shell command before import EPG"


GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: merge requests for PLi's git #1623 littlesat

  • PLi® Core member
  • 57,062 posts

+698
Excellent

Posted 16 July 2023 - 09:41

I will merge but for embedded screens with different resolutions we have a much easier system…. Without tripling the skin code

Edited by littlesat, 16 July 2023 - 09:42.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: merge requests for PLi's git #1624 Dimitrij

  • PLi® Core member
  • 10,262 posts

+347
Excellent

Posted 16 July 2023 - 10:10

I will merge but for embedded screens with different resolutions we have a much easier system…. Without tripling the skin code

Agree.

And thanks.


GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: merge requests for PLi's git #1625 tension

  • Senior Member
  • 119 posts

+4
Neutral

Posted 22 July 2023 - 07:27

Division error.

diff --git a/filebrowser/src/ui.py b/filebrowser/src/ui.py
index 5999a4de..265e0429 100644
--- a/filebrowser/src/ui.py
+++ b/filebrowser/src/ui.py
@@ -438,10 +438,10 @@ class FilebrowserScreenInfo(Screen):
                 x, y = self.getLineSize()
                 wsize = (x + 2 * mx, 4 * y)
                 self.instance.resize(eSize(*wsize))
-                self["path"].instance.move(ePoint(mx, y - y / 4))
-                self["size"].instance.move(ePoint(mx, 2 * y + y / 4))
-                wx = (w - wsize[0]) / 2
-                wy = (h - wsize[1]) / 2
+                self["path"].instance.move(ePoint(mx, int(y - y / 4)))
+                self["size"].instance.move(ePoint(mx, int(2 * y + y / 4)))
+                wx = int((w - wsize[0]) / 2)
+                wy = int((h - wsize[1]) / 2)
                 self.instance.move(ePoint(wx, wy))
 
         def getLineSize(self):

 



Re: merge requests for PLi's git #1626 littlesat

  • PLi® Core member
  • 57,062 posts

+698
Excellent

Posted 22 July 2023 - 10:22

Do we need two times // here due to py3? Maybe better than force to integer.

Edited by littlesat, 22 July 2023 - 10:23.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: merge requests for PLi's git #1627 Huevos

  • PLi® Contributor
  • 4,621 posts

+161
Excellent

Posted 22 July 2023 - 12:12

Do we need two times // here due to py3? Maybe better than force to integer.

Yes, if your c++ code can't handle floats.



Re: merge requests for PLi's git #1628 littlesat

  • PLi® Core member
  • 57,062 posts

+698
Excellent

Posted 22 July 2023 - 12:29

In the py2 to py3 conversion it should be simply //. It is not mandatory to make changes to c++ code. Forwarding floats to c++ here does not have any real added value beside you can work a round missed stuff around the py2 to py3 change. At the end with // and no change in c++ you force more structured code.

Edited by littlesat, 22 July 2023 - 12:33.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: merge requests for PLi's git #1629 WanWizard

  • PLi® Core member
  • 70,220 posts

+1,798
Excellent

Posted 23 July 2023 - 21:02

That is what Huevos says?  Fix it in python, as you can't pass a float to ePoint?


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: merge requests for PLi's git #1630 littlesat

  • PLi® Core member
  • 57,062 posts

+698
Excellent

Posted 23 July 2023 - 22:25

He points to we cannot fix it in c++… that is how I read it

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: merge requests for PLi's git #1631 WanWizard

  • PLi® Core member
  • 70,220 posts

+1,798
Excellent

Posted 24 July 2023 - 14:43

Oh. I didn't.

 

I've pusht a fix using integer division.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: merge requests for PLi's git #1632 littlesat

  • PLi® Core member
  • 57,062 posts

+698
Excellent

Posted 24 July 2023 - 15:05

:D


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: merge requests for PLi's git #1633 littlesat

  • PLi® Core member
  • 57,062 posts

+698
Excellent

Posted 24 July 2023 - 15:08

Oeps! Looks like you missed two lines

 

https://github.com/O...68fb5aa36716355

 

Lines 441 and 442 do still miss the integer division '//'....


Edited by littlesat, 24 July 2023 - 15:08.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: merge requests for PLi's git #1634 Huevos

  • PLi® Contributor
  • 4,621 posts

+161
Excellent

Posted 24 July 2023 - 16:35

 the integer division '//'....

'//' is not integer division, it is floor division.

>>> 4.1 / 2
2.05
>>>
>>> 4.1 // 2
2.0
>>>

If all your inputs are integers the return value will be an integer too, otherwise a floored float.

 

If you are not sure what your inputs are you need to use int().


Edited by Huevos, 24 July 2023 - 16:38.


Re: merge requests for PLi's git #1635 WanWizard

  • PLi® Core member
  • 70,220 posts

+1,798
Excellent

Posted 24 July 2023 - 19:03

How did python2 do implicit conversion from float, internally?


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: merge requests for PLi's git #1636 WanWizard

  • PLi® Core member
  • 70,220 posts

+1,798
Excellent

Posted 24 July 2023 - 19:07

'//' is not integer division, it is floor division.

 

integer devision is the same as floor devision, both don't round but truncate.

 

And:

Python 2.7.18 (default, May 25 2023, 00:00:00) 
[GCC 13.1.1 20230511 (Red Hat 13.1.1-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> int(5/2)
2

so in these cases using // is fine.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: merge requests for PLi's git #1637 WanWizard

  • PLi® Core member
  • 70,220 posts

+1,798
Excellent

Posted 24 July 2023 - 19:08

Oeps! Looks like you missed two lines

 

https://github.com/O...68fb5aa36716355

 

Lines 441 and 442 do still miss the integer division '//'....

 

I didn't check the entire file, I just addressed the issue that was posted by @tension.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: merge requests for PLi's git #1638 littlesat

  • PLi® Core member
  • 57,062 posts

+698
Excellent

Posted 24 July 2023 - 21:26

Integer devision is the same as floor devision, both don't round but truncate.https://www.learndat...loor() function.actually it is the same

Edited by littlesat, 24 July 2023 - 21:28.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: merge requests for PLi's git #1639 mrvica

  • Senior Member
  • 1,258 posts

+86
Good

Posted 25 July 2023 - 08:26

The link above won´t open, I corrected it

https://www.learndat...floor()function



Re: merge requests for PLi's git #1640 littlesat

  • PLi® Core member
  • 57,062 posts

+698
Excellent

Posted 25 July 2023 - 10:38

Thanks to fix the link... ;)


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W



36 user(s) are reading this topic

0 members, 36 guests, 0 anonymous users