Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and bleykauf committed Oct 31, 2022
1 parent 4b70403 commit bd6ff3e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions PyRedPitaya/raw_memory.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
from ctypes import POINTER, c_uint32, cast, cdll, create_string_buffer, sizeof
from importlib.machinery import EXTENSION_SUFFIXES
from pathlib import Path

import numpy as np
from pathlib import Path
from importlib.machinery import EXTENSION_SUFFIXES

libmonitor_file = str(Path(__file__).parent / '..' / 'monitor{}'.format(
EXTENSION_SUFFIXES[0]
))
libmonitor_file = str(
Path(__file__).parent / ".." / "monitor{}".format(EXTENSION_SUFFIXES[0])
)

libmonitor = cdll.LoadLibrary(libmonitor_file)
libmonitor.read_value.restype = c_uint32
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
from distutils.command.build import build
from distutils.command.install import install
from distutils.core import setup, Extension
from distutils.core import Extension, setup
from pathlib import Path

from PyRedPitaya import __version__
Expand Down Expand Up @@ -35,5 +35,5 @@
"Topic :: Software Development :: Libraries :: Python Modules",
],
keywords=["redpitaya", "FPGA", "zynq"],
ext_modules=[Extension('monitor',['monitor/monitor.c'])]
ext_modules=[Extension("monitor", ["monitor/monitor.c"])],
)

0 comments on commit bd6ff3e

Please sign in to comment.