Skip to content

Commit

Permalink
fix requirements for opengl-accelerate
Browse files Browse the repository at this point in the history
cleaned up float('nan')
forced delay node to always refresh
  • Loading branch information
Amorano committed Dec 13, 2024
1 parent e20a1f4 commit 89a4486
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion core/calc.py
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ def INPUT_TYPES(cls) -> dict:
"""
@classmethod
def IS_CHANGED(cls, **kw) -> float:
return float("nan")
return float('nan')
"""

def __init__(self, *arg, **kw) -> None:
Expand Down
2 changes: 1 addition & 1 deletion core/create_glsl.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def INPUT_TYPES(cls) -> dict:

@classmethod
def IS_CHANGED(cls, **kw) -> float:
return float("NaN")
return float('nan')

class GLSLNodeDynamic(GLSLNodeBase):

Expand Down
2 changes: 1 addition & 1 deletion core/device_midi.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def INPUT_TYPES(cls) -> dict:
def IS_CHANGED(cls, **kw) -> float:
if cls.CHANGED:
cls.CHANGED = False
return float("nan")
return float('nan')

def __init__(self, *arg, **kw) -> None:
super().__init__(*arg, **kw)
Expand Down
6 changes: 3 additions & 3 deletions core/device_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def INPUT_TYPES(cls) -> dict:

@classmethod
def IS_CHANGED(cls, **kw) -> float:
return float("nan")
return float('nan')

def __init__(self, *arg, **kw) -> None:
super().__init__(*arg, **kw)
Expand Down Expand Up @@ -296,7 +296,7 @@ def INPUT_TYPES(cls) -> dict:
"""
@classmethod
def IS_CHANGED(cls, **kw) -> float:
return float("nan")
return float('nan')
"""

def __init__(self, *arg, **kw) -> None:
Expand Down Expand Up @@ -367,7 +367,7 @@ def INPUT_TYPES(cls) -> dict:

@classmethod
def IS_CHANGED(cls, **kw) -> float:
return float("nan")
return float('nan')

def __init__(self, *arg, **kw) -> None:
super().__init__(*arg, **kw)
Expand Down
2 changes: 1 addition & 1 deletion core/utility/batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ class QueueBaseNode(JOVBaseNode):

@classmethod
def IS_CHANGED(cls, *arg, **kw) -> float:
return float("nan")
return float('nan')

@classmethod
def INPUT_TYPES(cls) -> dict:
Expand Down
2 changes: 1 addition & 1 deletion core/utility/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def INPUT_TYPES(cls) -> dict:

@classmethod
def IS_CHANGED(cls) -> float:
return float("nan")
return float('nan')

def __init__(self, *arg, **kw) -> None:
super().__init__(*arg, **kw)
Expand Down
4 changes: 4 additions & 0 deletions core/utility/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ def INPUT_TYPES(cls) -> dict:
})
return Lexicon._parse(d, cls)

@classmethod
def IS_CHANGED(cls, **kw) -> float:
return float('nan')

def run(self, ident, **kw) -> Tuple[Any]:
delay = parse_param(kw, Lexicon.TIMER, EnumConvertType.INT, -1, 0, JOV_DELAY_MAX)[0]
if delay < 0:
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ dependencies = [
"numba>=0.60.0",
"numpy>=1.26.4",
"opencv-contrib-python>=4.10.0.84",
"Pillow>=11.0.0",
"Pillow>=10.2.0",
"PyOpenGL>=3.1.7",
"PyOpenGL-accelerate>=3.1.7; platform_system==\"Windows\"",
"pywin32>=308; platform_system==\"Windows\"",
"requests>=2.32.3",
"scikit-image>=0.24.0",
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ numpy>=1.26.4,<2.0.0
opencv-contrib-python>=4.10.0.84
Pillow>=10.2.0
PyOpenGL>=3.1.7
PyOpenGL-accelerate>=3.1.7; platform_system=="Windows"
pywin32>=308; platform_system=="Windows"
requests>=2.32.3
scikit-image>=0.24.0
Expand Down

0 comments on commit 89a4486

Please sign in to comment.