Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tomvanmele committed Apr 23, 2024
1 parent b7c05ac commit f2a5389
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/compas/rpc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
COMPAS runs in many different environments, but in some environments the availablity of libraries is limited.
For example, when running COMPAS in an IronPython-based environment like Rhino/Grasshopper,
plenty of CPython libraries such as `numpy` and `scipy` are not available.
To workaround this limitation, COMPAS provides a mechanisms to access the functionality of a CPython environment seemlessly from any other Python environment through a "Remote Procedure Call" or RPC.
To workaround this limitation, COMPAS provides a mechanisms to access the functionality of a CPython environment
seemlessly from any other Python environment through a "Remote Procedure Call" or RPC.
Through RPC, COMPAS can be used as a server for remote clients, and as a client for remote servers.
A typical use case is to run algorithms that require packages like ``numpy`` or ``scipy`` on a remote server, when working in Rhino.
Or to use COMPAS in a browser application.
A typical use case is to run algorithms that require packages like ``numpy`` or ``scipy`` on a remote server,
when working in Rhino. Or to use COMPAS in a browser application.
"""

from __future__ import absolute_import
Expand Down
2 changes: 1 addition & 1 deletion tests/compas/test_iotools.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def test_open_file_object_text(path_text):


def test_open_file_memory_stream():
text = b"All Gaul is divided into three parts, one of which the Belgae inhabit, the Aquitani another, those who in their own language are called Celts, in our Gauls, the third."
text = b"All Gaul is divided into three parts, one of which the Belgae inhabit, the Aquitani another, those who in their own language are called Celts, in our Gauls, the third." # noqa: E501
data = io.BytesIO(text)
with _iotools.open_file(data, mode="rb") as f:
assert f.read() == text
Expand Down

0 comments on commit f2a5389

Please sign in to comment.