instance_id
stringlengths
10
57
file_changes
listlengths
1
15
repo
stringlengths
7
53
base_commit
stringlengths
40
40
problem_statement
stringlengths
11
52.5k
patch
stringlengths
251
7.06M
Pylons__webob-185
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "webob/acceptparse.py:MIMEAccept.parse", "webob/acceptparse.py:MIMEAccept._match" ], "edited_modules": [ "webob/acceptparse.py:MIMEAccept" ] }, "file": "webob/ac...
Pylons/webob
ef371de5e78093efc82eb66117cbacca852c9afa
Accept matching against wildcard offers is not allowed Wildcards cannot be used in 'offered' content types to search for a match: ```python >>> from webob.acceptparse import MIMEAccept >>> accept = MIMEAccept('text/*') >>> 'text/plain' in accept True # Expect this to be True >>> 'text/*' in accept ValueEr...
diff --git a/webob/acceptparse.py b/webob/acceptparse.py index 42f2643..afa0d8f 100644 --- a/webob/acceptparse.py +++ b/webob/acceptparse.py @@ -274,7 +274,7 @@ class MIMEAccept(Accept): def parse(value): for mask, q in Accept.parse(value): try: - mask_major, mask_minor = map(l...
Pylons__webob-192
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "webob/request.py:BaseRequest.POST" ], "edited_modules": [ "webob/request.py:BaseRequest" ] }, "file": "webob/request.py" } ]
Pylons/webob
643ac0afc561165575a999d7458daa2bc5b0a2c1
Accessing request.POST modifyed body I have a request which is POSTing JSON data, but some clients do not send along a `Content-Type` header. When this happens accessing `request.POST` will mangle the request body. Here is an example: ```python (Pdb) p request.content_type '' (Pdb) p request.body '{"password": "...
diff --git a/webob/request.py b/webob/request.py index 01c170f..8269ac5 100644 --- a/webob/request.py +++ b/webob/request.py @@ -785,8 +785,10 @@ class BaseRequest(object): return NoVars('Not an HTML form submission (Content-Type: %s)' % content_type) self._check_charset...
Pylons__webob-197
[ { "changes": { "added_entities": [ "webob/response.py:_is_json", "webob/response.py:_is_xml" ], "added_modules": [ "webob/response.py:_is_json", "webob/response.py:_is_xml" ], "edited_entities": [ "webob/response.py:Response.__init__" ]...
Pylons/webob
9b79f5f913fb1f07c68102a2279ed757a2a9abf6
JSON content shouldn't need a UTF-8 on the content-type Fix this issue: https://github.com/Pylons/pyramid/issues/1611#issuecomment-93073442
diff --git a/webob/response.py b/webob/response.py index a164938..9579b7e 100644 --- a/webob/response.py +++ b/webob/response.py @@ -116,16 +116,13 @@ class Response(object): if 'charset' in kw: charset = kw.pop('charset') elif self.default_charset: - if (content_type - ...
Pylons__webob-230
[ { "changes": { "added_entities": [ "webob/exc.py:WSGIHTTPException.json_formatter", "webob/exc.py:WSGIHTTPException.json_body" ], "added_modules": null, "edited_entities": [ "webob/exc.py:WSGIHTTPException.__init__", "webob/exc.py:WSGIHTTPException.generat...
Pylons/webob
9400c049d05c8ba350daf119aa16ded24ece31f6
Allow for JSON Exception Bodies I'm currently working on several projects that provide a JSON API using WebOb. Currently, however, whenever we use a `webob.exc` exception to return an error to the user (e.g., `webob.exc.HTTPBadRequest`) the body of that message is always in a content-type other than what they're expect...
diff --git a/webob/exc.py b/webob/exc.py index 57a81b5..044c00a 100644 --- a/webob/exc.py +++ b/webob/exc.py @@ -165,10 +165,12 @@ References: """ +import json from string import Template import re import sys +from webob.acceptparse import Accept from webob.compat import ( class_types, text_, @@ -2...
Pylons__webob-286
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "webob/descriptors.py:header_getter" ], "edited_modules": [ "webob/descriptors.py:header_getter" ] }, "file": "webob/descriptors.py" }, { "changes": { "add...
Pylons/webob
8bed3b0112df7b1de3755a37924979799749e5f2
performance degradation on trunk I thought I'd try Morepath with webob trunk. It's a lot slower than before. But I'll demonstrate with Pyramid, as I don't want to confuse the issue by using development versions of Morepath. I use this benchmark: https://github.com/faassen/howareyou When I run Pyramid against web...
diff --git a/webob/descriptors.py b/webob/descriptors.py index 5fd26eb..15867ce 100644 --- a/webob/descriptors.py +++ b/webob/descriptors.py @@ -146,10 +146,7 @@ def header_getter(header, rfc_section): r._headerlist.append((header, value)) def fdel(r): - items = r._headerlist - for i i...
Pylons__webob-287
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "webob/response.py:Response._text__get", "webob/response.py:Response._text__set" ], "edited_modules": [ "webob/response.py:Response" ] }, "file": "webob/response...
Pylons/webob
ce1eed59e9101c3732295bc8745ba003c700fd0c
Add default_body_encoding to Response Add a new default_body_encoding, this is used for .text if there is no charset for the content-type. This is a backwards incompatible change that breaks the assumption that setting .text on a binary content-type will raise an error. This will allow a user to also change the d...
diff --git a/webob/response.py b/webob/response.py index a5b7bfd..607ac34 100644 --- a/webob/response.py +++ b/webob/response.py @@ -155,12 +155,17 @@ class Response(object): set to True so that all ``Response`` objects will attempt to check the original request for conditional response headers. S...
Pylons__webob-291
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "webob/request.py" } ]
Pylons/webob
a755ef991d7a87a4c41dbf727b84e91e90ef97ad
Fixup w.r.PATH_SAFE to match RFC3986 Related to discussion in https://github.com/Pylons/pyramid/pull/2811.
diff --git a/.travis.yml b/.travis.yml index de5f487..7037c57 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,12 +12,17 @@ matrix: env: TOXENV=py34 - python: 3.5 env: TOXENV=py35 + - python: 3.6-dev + env: TOXENV=py36 + - python: nightly + env: TOXENV=py3...
Pylons__webob-294
[ { "changes": { "added_entities": [ "webob/compat.py:cgi_FieldStorage.make_file" ], "added_modules": null, "edited_entities": [ "webob/compat.py:cgi_FieldStorage.read_multi" ], "edited_modules": [ "webob/compat.py:cgi_FieldStorage" ] }, "f...
Pylons/webob
5ec5ca2e45b70ff4ee9a2c74c77a04b71d6290fd
Problem with multipart request when content-length is defined for content part (Python 3.4) The bug occurs with Python 3.4 (see https://bugs.python.org/issue27777). I will create a PR.
diff --git a/webob/compat.py b/webob/compat.py index d40ee63..0337ac6 100644 --- a/webob/compat.py +++ b/webob/compat.py @@ -131,64 +131,82 @@ else: from cgi import escape -# We only need this on Python3 but the issue was fixed in Pytohn 3.4.4 and 3.5. -if PY3 and sys.version_info[:3] < (3, 4, 4): # pragma no...
Pylons__webob-306
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "webob/response.py:Response.__init__" ], "edited_modules": [ "webob/response.py:Response" ] }, "file": "webob/response.py" } ]
Pylons/webob
1ac5148d680a020f3a05138ef0c1a5f529c49ed5
Seems WebOb 1.7 has some glitches with WebTest when a 204 is responded The recent WebOb 1.7 changes to initialisation function seem to had introduced a side effect when WebTest is used, as webtest will recreate a new `Response` object from the application response. A simple testcase can be created to showcase the is...
diff --git a/CHANGES.txt b/CHANGES.txt index 393cd8d..2105fe8 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,4 +1,13 @@ Unreleased ---------- +Bugfix +~~~~~~ +- ``Response.__init__`` would discard ``app_iter`` when a ``Response`` had no + body, this would cause issues when ``app_iter`` was an object that was t...
Pylons__webob-309
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "webob/request.py:_encode_multipart", "webob/request.py:Transcoder.transcode_fs" ], "edited_modules": [ "webob/request.py:_encode_multipart", "webob/request.py:Transco...
Pylons/webob
8669fe335b54697f23a787f67da19552bc03d5c6
multipart field names may be None I'm getting this stack trace. ``` Traceback (most recent call last): File "/home/bukzor/my/wsgi/app.py", line 11, in handler request = new_request(environ).decode('latin1') File "/usr/lib/pymodules/python2.6/webob/request.py", line 243, in decode fout = t.transcode_fs(fs, ...
diff --git a/webob/request.py b/webob/request.py index 150dd37..923cce5 100644 --- a/webob/request.py +++ b/webob/request.py @@ -1629,8 +1629,9 @@ def _encode_multipart(vars, content_type, fout=None): w(b'--') wt(boundary) w(CRLF) - assert name is not None, 'Value associated with no na...
Pylons__webob-332
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/webob/request.py:BaseRequest.host_port", "src/webob/request.py:BaseRequest.host_url", "src/webob/request.py:BaseRequest.domain" ], "edited_modules": [ "src/webob/...
Pylons/webob
b2e78a53af7abe866b90a532479cf5c0ae00301b
IPv6 support Parts of WebOb haven't been adapted to work in IPv6 environment: - request.domain will split IPv6 addresses incorrectly - request.host_port will split IPv6 addresses incorrectly - request.host_url will split IPv6 addresses incorrectly - .. maybe more places, I haven't checked all sources This issue ...
diff --git a/CHANGES.txt b/CHANGES.txt index 4b5784a..ce5397f 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -44,6 +44,10 @@ These features are experimental and may change at any point in the future. Bugfix ~~~~~~ +- Request.host_url, Request.host_port, Request.domain correctly parse IPv6 Host + headers as provided...
Pylons__webob-372
[ { "changes": { "added_entities": [ "src/webob/acceptparse.py:Accept._parse_and_normalize_offers" ], "added_modules": null, "edited_entities": [ "src/webob/acceptparse.py:AcceptValidHeader.acceptable_offers", "src/webob/acceptparse.py:_AcceptInvalidOrNoHeader.accep...
Pylons/webob
d2b3a966f577918352a7d2abceebfe0fa7bf9dc8
validate media types consistently in acceptable_offers ```python >>> create_accept_header('').acceptable_offers(['foo']) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/michael/work/oss/pyramid/env/lib/python3.6/site-packages/webob/acceptparse.py", line 804, in acceptable_off...
diff --git a/CHANGES.txt b/CHANGES.txt index fd34d21..7ccc765 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -33,3 +33,10 @@ Bugfix MIMEAccept to behave more like the old version. See https://github.com/Pylons/webob/pull/356 +- ``acceptparse.AcceptValidHeader``, ``acceptparse.AcceptInvalidHeader``, and + ``acce...
Pylons__webob-386
[ { "changes": { "added_entities": [ "src/webob/acceptparse.py:AcceptValidHeader.copy", "src/webob/acceptparse.py:AcceptNoHeader.copy", "src/webob/acceptparse.py:AcceptInvalidHeader.copy", "src/webob/acceptparse.py:AcceptCharsetValidHeader.copy", "src/webob/acceptpars...
Pylons/webob
3342d05b087fa9265b8b1e24f3deb8ff3c6d2167
create_accept_header and related functions don't accept current instances ``` create_accept_header(create_accept_header('')) ``` Does not work.
diff --git a/src/webob/acceptparse.py b/src/webob/acceptparse.py index 3afcb8f..045eb08 100644 --- a/src/webob/acceptparse.py +++ b/src/webob/acceptparse.py @@ -593,6 +593,13 @@ class AcceptValidHeader(Accept): self._parsed_nonzero = [item for item in self.parsed if item[1]] # item[1] is the qvalue ...
PythonCharmers__python-future-461
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/future/utils/__init__.py:raise_" ], "edited_modules": [ "src/future/utils/__init__.py:raise_" ] }, "file": "src/future/utils/__init__.py" }, { "changes": { ...
PythonCharmers/python-future
923622aa3a2c2164d6037ff9c6974ad41340f41f
raise_ fails to reraise exception which requires arguments When the `future.utils.raise_` function is used with all its three parameters, it is in some cases *not* able to reraise exceptions which need arguments for their initialization. For example, this code: ```python import sys from future.utils import raise...
diff --git a/src/future/utils/__init__.py b/src/future/utils/__init__.py index 628b8f9..5992007 100644 --- a/src/future/utils/__init__.py +++ b/src/future/utils/__init__.py @@ -406,12 +406,34 @@ if PY3: allows re-raising exceptions with the cls value and traceback on Python 2 and 3. """ - ...
QB3__sparse-ho-67
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "sparse_ho/criterion/__init__.py" }, { "changes": { "added_entities": null, "added_modules": [ "sparse_ho/criterion/sure.py:FiniteD...
QB3/sparse-ho
59197a06f2ba62b4fd67b9d8950dc62674eed2a1
SURE naming / API / generalization Consider renaming `SURE` to something more in adequation with the implementation. The current implementation follows [(Figure 3, Deledalle et al. 2020)](https://samuelvaiter.com/publications/deledalle2014sugar.pdf) by implementing a smoothed version using Finite Difference Monte Car...
diff --git a/doc/api.rst b/doc/api.rst index 6cde70a..55810a7 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -44,7 +44,7 @@ Criterion :toctree: generated/ HeldOutMSE - SmoothedSURE + FiniteDiffMonteCarloSure HeldOutLogistic diff --git a/sparse_ho/criterion/__init__.py b/sparse_ho/criterion/__init__...
Qiskit__qiskit-bot-11
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "qiskit_bot/config.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "qiskit_bot/rele...
Qiskit/qiskit-bot
5ea3821a60f14f7892654b3cd86f883f218c3120
Add support for marking PRs as explicitly not needing a changelog entry For large releases, being able to tag a PR as explicitly _not_ needing a changelog entry would be helpful in order to triage which PRs have and haven't yet had their changelog status reviewed. This could be from a label like 'Changelog: None' which...
diff --git a/qiskit_bot/config.py b/qiskit_bot/config.py index dcf0600..45dbd1e 100644 --- a/qiskit_bot/config.py +++ b/qiskit_bot/config.py @@ -28,6 +28,7 @@ default_changelog_categories = { 'Changelog: API Change': 'Changed', 'Changelog: Removal': 'Removed', 'Changelog: Bugfix': 'Fixed', + 'Changelo...
Qiskit__qiskit-bot-24
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "qiskit_bot/release_process.py:create_github_release", "qiskit_bot/release_process.py:_get_log_string", "qiskit_bot/release_process.py:finish_release" ], "edited_modules": [ ...
Qiskit/qiskit-bot
7394842e74cacab233f6b0057079a5efbb745ba2
Add support for publishing pre-releases Looking to future releases it would be good to support doing release candidate releases prior to publishing a final release. To support this qiskit-bot will need to be improved to recognize a prerelease tag (vs a real release flag). On a pre-release tag qiskit-bot should create t...
diff --git a/qiskit_bot/release_process.py b/qiskit_bot/release_process.py index 97a9bb7..f6d5d39 100644 --- a/qiskit_bot/release_process.py +++ b/qiskit_bot/release_process.py @@ -21,6 +21,7 @@ import shutil import subprocess import fasteners +from packaging.version import parse import github from qiskit_bot i...
Qiskit__qiskit-bot-29
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "qiskit_bot/api.py:on_pull_event" ], "edited_modules": [ "qiskit_bot/api.py:on_pull_event" ] }, "file": "qiskit_bot/api.py" }, { "changes": { "added_entiti...
Qiskit/qiskit-bot
07b66d650607413e934220bcad5e93a4cdf1c62e
False positive for "Community PR" tag The bot tagged one of my Terra PRs (https://github.com/Qiskit/qiskit-terra/pull/8627) with "Community PR", even though I appear as a member of the Qiskit org. When I `curl`'d the API hook for that PR, my association appears as `"CONTRIBUTOR"`, not `"MEMBER"` (what the bot checks f...
diff --git a/qiskit_bot/api.py b/qiskit_bot/api.py index 9e508c7..5b19ea2 100644 --- a/qiskit_bot/api.py +++ b/qiskit_bot/api.py @@ -151,7 +151,8 @@ def on_pull_event(data): repo_name = data['repository']['full_name'] pr_number = data['pull_request']['number'] if repo_name in REPOS: - ...
Qiskit__qiskit-bot-48
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "qiskit_bot/release_process.py:_get_log_string" ], "edited_modules": [ "qiskit_bot/release_process.py:_get_log_string" ] }, "file": "qiskit_bot/release_process.py" } ]
Qiskit/qiskit-bot
cece9b510d4f01588d16d37c6812938b16ad7a2a
Changelog generation fails for versions >= 1.0.0 Since the release of qiskit 1.0.0 the changelog generation that runs as part of release process has been failing. Looking at the logs the `git log` command that's generated is not valid and getting confused by the concept of major versions (which to be fair for almost it...
diff --git a/qiskit_bot/release_process.py b/qiskit_bot/release_process.py index 06afee7..3d17c22 100644 --- a/qiskit_bot/release_process.py +++ b/qiskit_bot/release_process.py @@ -226,7 +226,7 @@ def _get_log_string(version_obj, version_number, repo): # If a patch release log between 0.A.X..0.A.X-1 elif vers...
QualiSystemsLab__colony-cli-37
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "colony/branch_utils.py:figure_out_branches" ], "edited_modules": [ "colony/branch_utils.py:figure_out_branches" ] }, "file": "colony/branch_utils.py" }, { "chan...
QualiSystemsLab/colony-cli
a4dc8a364832163bf66b7af2442473a61dca3c29
If remote branch is not configured, received unhandled exception STR: Initialize git repo locally and develop a blueprint, don't connect to remote repo yet, try to use bp validate. Expected behavior: Message "Local repository not connected to the remote space repository" Error: PS C:\Users\ronid\projects\clitest\bl...
diff --git a/colony/branch_utils.py b/colony/branch_utils.py index 6487cc6..4d84c1b 100644 --- a/colony/branch_utils.py +++ b/colony/branch_utils.py @@ -66,10 +66,8 @@ def figure_out_branches(user_defined_branch, blueprint_name): except BadBlueprintRepo as e: working_branch = None - l...
QualiSystems__cloudshell-networking-juniper-48
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "cloudshell/networking/juniper/autoload/juniper_snmp_autoload.py:JuniperSnmpAutoload._build_root" ], "edited_modules": [ "cloudshell/networking/juniper/autoload/juniper_snmp_autoload....
QualiSystems/cloudshell-networking-juniper
118ac36e83190764bb65ded2c431aa129451687c
Vendor and Model attributes sometimes empty In some cases, vendor and Model attributes are empty during the autoload. For example when sysObjectID = jnxProductQFX520032C32Q.
diff --git a/.gitignore b/.gitignore index 4d86431..a1ea7c8 100644 --- a/.gitignore +++ b/.gitignore @@ -63,3 +63,5 @@ target/ .pypirc .DS_Store + +.idea/ diff --git a/cloudshell/networking/juniper/autoload/juniper_snmp_autoload.py b/cloudshell/networking/juniper/autoload/juniper_snmp_autoload.py index aea017e..30f...
QuantEcon__QuantEcon.py-602
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "quantecon/ecdf.py:ECDF.__call__" ], "edited_modules": [ "quantecon/ecdf.py:ECDF" ] }, "file": "quantecon/ecdf.py" } ]
QuantEcon/QuantEcon.py
5be42da065c198e84a468d5e0e38056168a6b0e3
ecdf function needs to be vectorized The **call** method in ecdf.py needs to be vectorized so that it works as a ufunc (acts pointwise on arrays)
diff --git a/quantecon/ecdf.py b/quantecon/ecdf.py index e0c648e..a426046 100644 --- a/quantecon/ecdf.py +++ b/quantecon/ecdf.py @@ -48,4 +48,7 @@ class ECDF: Fraction of the sample less than x """ - return np.mean(self.observations <= x) + def f(a): + return np.mean(sel...
QuantEcon__QuantEcon.py-705
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "quantecon/random/utilities.py:ol_draw" ], "edited_modules": [ "quantecon/random/utilities.py:ol_draw" ] }, "file": "quantecon/random/utilities.py" } ]
QuantEcon/QuantEcon.py
535a82f5c1ac89ab724b39771db950aaa1cf1446
Error Raised in `qe.random.draw` Hi @Smit-create, I encountered this error in the intermediate lecture (full error report [here](https://github.com/QuantEcon/lecture-python.myst/suites/12947474113/artifacts/703752939). It is related to the `draw` function in [`random.utilities`](https://github.com/QuantEcon/QuantEco...
diff --git a/quantecon/random/utilities.py b/quantecon/random/utilities.py index a94fbc0..f1b53f5 100644 --- a/quantecon/random/utilities.py +++ b/quantecon/random/utilities.py @@ -211,16 +211,16 @@ def draw(cdf, size=None): # Overload for the `draw` function @overload(draw) -def ol_draw(cdf, size): +def ol_draw(cd...
QuantStack__py2vega-29
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "py2vega/main.py:VegaExpressionVisitor.visit_Call" ], "edited_modules": [ "py2vega/main.py:VegaExpressionVisitor" ] }, "file": "py2vega/main.py" } ]
QuantStack/py2vega
207593c5e81f948d02e24f72d2d12cff2434ebcb
Built-in functions The Python built-in `len` function could be mapped to the Vega `length` function The Python built-in `slice` function could be mapped to the Vega `slice` function The Python built-in `str` function could be mapped to the Vega `toString` function ...
diff --git a/py2vega/main.py b/py2vega/main.py index d00a21a..f153309 100644 --- a/py2vega/main.py +++ b/py2vega/main.py @@ -20,6 +20,16 @@ operator_mapping = { ast.Mod: '%' } +# Note that built-in functions like `abs`, `min`, `max` which already have an equivalent in +# Vega expressions are already supported a...
QuantStack__py2vega-30
[ { "changes": { "added_entities": [ "py2vega/main.py:VegaExpressionVisitor.visit_Subscript" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "py2vega/main.py:VegaExpressionVisitor" ] }, "file": "py2vega/main.py" } ]
QuantStack/py2vega
26e3208562b5851cf78ac2e8567d533a0c4698c8
Support Python Slice node We could map the `Slice` node to a Vega `slice` function call
diff --git a/py2vega/main.py b/py2vega/main.py index f153309..9ccecf1 100644 --- a/py2vega/main.py +++ b/py2vega/main.py @@ -240,6 +240,30 @@ class VegaExpressionVisitor(ast.NodeVisitor): raise NameError('name \'{}\' is not defined, only a subset of Python is supported'.format(func_name)) + def visit_Su...
QuantStack__py2vega-9
[ { "changes": { "added_entities": [ "py2vega/main.py:assign_expr" ], "added_modules": [ "py2vega/main.py:assign_expr" ], "edited_entities": [ "py2vega/main.py:return_stmt", "py2vega/main.py:if_stmt", "py2vega/main.py:nameconstant_expr", ...
QuantStack/py2vega
7d7ba87e17eee93e3dffdcf16c7528320e267832
Assignment support Assignments could be potentially supported. _e.g._: ```Python def foo(value): a = 36 return a if value < 4 else 32 ``` Could be transpiled to: `"value < 4 ? 36 : 32"`
diff --git a/README.md b/README.md index ce1c037..565e998 100644 --- a/README.md +++ b/README.md @@ -56,3 +56,17 @@ def foo(value): foo_expr = py2vega(foo, whitelist=['value']) # "if(isNaN(value), 'It is NaN...', value)" ``` + +Even if assignments are prohibited in Vega-expressions, you can assign variables in you...
Quantomatic__pyzx-150
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pyzx/circuit/qasmparser.py:QASMParser.parse" ], "edited_modules": [ "pyzx/circuit/qasmparser.py:QASMParser" ] }, "file": "pyzx/circuit/qasmparser.py" } ]
Quantomatic/pyzx
dcb21f07b856989bfe956a0a121eb774726cb9b6
behaviour of `qasmparser` is unclear when `parse` is called multiple times It's unclear how to use `qasmparser` if there are multiple strings or circuits to be parsed. In particular, `parse` has behaviour which is surprising to me. I expect each call to basically be independent and return a circuit based on the input s...
diff --git a/pyzx/circuit/qasmparser.py b/pyzx/circuit/qasmparser.py index b74cfa18..a4cb5cee 100644 --- a/pyzx/circuit/qasmparser.py +++ b/pyzx/circuit/qasmparser.py @@ -33,6 +33,11 @@ class QASMParser(object): self.circuit: Optional[Circuit] = None def parse(self, s: str, strict:bool=True) -> Circuit:...
Quantomatic__pyzx-156
[ { "changes": { "added_entities": [ "pyzx/circuit/gates.py:SX.__init__", "pyzx/circuit/gates.py:CSX.__init__", "pyzx/circuit/gates.py:CSX.to_basic_gates", "pyzx/circuit/gates.py:CSX.to_graph", "pyzx/circuit/gates.py:CY.__init__", "pyzx/circuit/gates.py:CY.to_...
Quantomatic/pyzx
e4fe332032f00438440d1e8119b7f337b117d9f8
cp gate support for QASMParser Hi @jvdwetering, I faced the problem of phase(p), and controlled phase(cp) gate when parsing the qasm string. I thought I might try working on this issue to add p and cp gate support. Your guidance and input would be greatly appreciated.
diff --git a/pyzx/circuit/gates.py b/pyzx/circuit/gates.py index ebd2630b..0bada393 100644 --- a/pyzx/circuit/gates.py +++ b/pyzx/circuit/gates.py @@ -436,6 +436,30 @@ class XPhase(Gate): gates.append(HAD(self.target)) return gates +class SX(XPhase): + name = 'SX' + qasm_name = 'sx' + qasm_...
Quantum-Accelerators__raspa_ase-24
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/raspa_ase/calculator.py:RaspaProfile.__init__", "src/raspa_ase/calculator.py:RaspaProfile.get_calculator_command" ], "edited_modules": [ "src/raspa_ase/calculator.py:Rasp...
Quantum-Accelerators/raspa_ase
9c1bf8756ff05093d87835a889c76dc59ad3e5bf
Calculator not working with ASE 3.23 Calculator broke with the refactoring in ASE 3.23 :( needs a patch as shown in the tests
diff --git a/src/raspa_ase/calculator.py b/src/raspa_ase/calculator.py index f1ca04a..1cffc30 100644 --- a/src/raspa_ase/calculator.py +++ b/src/raspa_ase/calculator.py @@ -32,27 +32,26 @@ class RaspaProfile(BaseProfile): RASPA profile, which defines the command that will be executed and where. """ - def...
RDFLib__pySHACL-285
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pyshacl/shapes_graph.py:ShapesGraph._build_node_shape_cache_from_list" ], "edited_modules": [ "pyshacl/shapes_graph.py:ShapesGraph" ] }, "file": "pyshacl/shapes_graph.p...
RDFLib/pySHACL
ed3667a15ccc3e51bf128bb378f0d7937bed2efd
sh:or with or without --shape First off, thanks for creating this awesome SHACL validator! I’m trying to define a predicate whose value can be either xsd:string or xsd:int. While I can validate the data as expected without the --shape flag, I encounter an error when using it alongside `sh:or`. Below are the details....
diff --git a/pyshacl/shapes_graph.py b/pyshacl/shapes_graph.py index 1be67e3..d3ed90a 100644 --- a/pyshacl/shapes_graph.py +++ b/pyshacl/shapes_graph.py @@ -416,7 +416,12 @@ class ShapesGraph(object): for _p in has_shape_expecting_p.keys(): property_entries = list(g.objects...
RDFLib__rdflib-1012
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "rdflib/plugins/parsers/notation3.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, ...
RDFLib/rdflib
39d07c4a5c9395f1322a269982e69b63cbf4db22
Turtle parser fails with leading dot in decimal value Input file `test.ttl`: ``` prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> <http://qudt.org/vocab/unit/MilliM-PER-YR> a <http://qudt.org/schema/qudt/Unit> ; <http://qudt.org/schema/qudt/conversionMultiplier> .171e-11 ; <http://qudt.org/schema/qud...
diff --git a/rdflib/plugins/parsers/notation3.py b/rdflib/plugins/parsers/notation3.py index 4b6ff5d1..c57f5bcf 100755 --- a/rdflib/plugins/parsers/notation3.py +++ b/rdflib/plugins/parsers/notation3.py @@ -349,9 +349,7 @@ ws = re.compile(r'[ \t]*') # Whitespace not including NL signed_integer = ...
RDFLib__rdflib-1022
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rdflib/plugins/stores/sparqlconnector.py:SPARQLConnector.query", "rdflib/plugins/stores/sparqlconnector.py:SPARQLConnector.update" ], "edited_modules": [ "rdflib/plugins/stor...
RDFLib/rdflib
3f0401dc527ef70abb1f0b76bdd281972ae2655c
Missing Content-Type header for SPARQLConnector update method (?) In rdflib 4.2.2 the SPARQLWrapper added an applicable content-type header when sending queries and updates to a SPARQL endpoint. The 5.0.0 the SPARQLConnector does not add a content-type and, since the GraphDB we use as SPARQL endpoint rejects update re...
diff --git a/rdflib/plugins/stores/sparqlconnector.py b/rdflib/plugins/stores/sparqlconnector.py index ee981419..abb69a55 100644 --- a/rdflib/plugins/stores/sparqlconnector.py +++ b/rdflib/plugins/stores/sparqlconnector.py @@ -87,6 +87,7 @@ class SPARQLConnector(object): if self.method == 'GET': a...
RDFLib__rdflib-1044
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "rdflib/namespace.py" } ]
RDFLib/rdflib
a3245fb1fac921a5d8e07bce80914c42f5399b32
Problem with prefixes created for URIs containing %20 The result of runnig this code ```python from rdflib import Namespace, Graph, BNode, Literal graph = Graph() namespace = Namespace('http://example.org/') graph.bind('', namespace) node = BNode() graph.add((node, namespace['first%20name'], Literal('John'))...
diff --git a/rdflib/namespace.py b/rdflib/namespace.py index 78f71c22..9f09763c 100644 --- a/rdflib/namespace.py +++ b/rdflib/namespace.py @@ -618,7 +618,7 @@ class NamespaceManager(object): NAME_START_CATEGORIES = ["Ll", "Lu", "Lo", "Lt", "Nl"] SPLIT_START_CATEGORIES = NAME_START_CATEGORIES + ['Nd'] NAME_CATEGORIES...
RDFLib__rdflib-1046
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rdflib/graph.py:Graph.parse" ], "edited_modules": [ "rdflib/graph.py:Graph" ] }, "file": "rdflib/graph.py" }, { "changes": { "added_entities": null, ...
RDFLib/rdflib
037ea51e5f4863a7f98ff59972fcd34d39a7ed97
Auto-detect RDF type from file extension in parse() `Graph().parse("some-file.ttl", format="turtle")` is a common way to load RDF into an rdflib Graph. We have methods such as `rdflib.util.guess_format()` to guess `format` from the file extensions so what we need now is for `guess_format()` to be triggered automaticall...
diff --git a/rdflib/graph.py b/rdflib/graph.py index 12d18dce..145224b8 100644 --- a/rdflib/graph.py +++ b/rdflib/graph.py @@ -2,6 +2,8 @@ from __future__ import absolute_import from __future__ import division from __future__ import print_function +from xml.sax import SAXParseException + from rdflib.term import Li...
RDFLib__rdflib-1054
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rdflib/term.py:Literal._literal_n3" ], "edited_modules": [ "rdflib/term.py:Literal" ] }, "file": "rdflib/term.py" } ]
RDFLib/rdflib
845c28171626fe312128f63a4e9f2112ad107d6c
Incorrect turtle serialization of decimal values I am using rdflib to serialize to ttl files, rdflib = 5.0.0 Here is a sample output, ``` wd:Q29722949 a wikibase:Item ; p:P2020013 wds:Q29722949-9ef7c6be-2c5e-4c64-8e44-a3af6725596e ; p:P2020014 wds:Q29722949-5570794f-5918-45b8-936f-9a2e24a6a61d ; p:P...
diff --git a/rdflib/term.py b/rdflib/term.py index 32ec6af4..ac69c3bd 100644 --- a/rdflib/term.py +++ b/rdflib/term.py @@ -1259,10 +1259,9 @@ class Literal(Identifier): return sub("\\.?0*e", "e", "%e" % float(self)) elif self.datatype == _XSD_DECIMAL: s = "%s" ...
RDFLib__rdflib-1117
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rdflib/tools/csv2rdf.py:csv_reader", "rdflib/tools/csv2rdf.py:CSV2RDF.__init__", "rdflib/tools/csv2rdf.py:CSV2RDF.convert" ], "edited_modules": [ "rdflib/tools/csv2rd...
RDFLib/rdflib
c050f27dd8ad19dd16c57a33e679ebe20834e47c
csv2rdf uses Python 2 features broken by Python 3 I have tried to run **csv2rdf** under both Windows 10 and a(n Alpine) Linux Docker container and it failed both times, due to differences between Python 2 and Python 3 strings and bytestreams. I have been able to patch the module using the following three **sed** com...
diff --git a/rdflib/tools/csv2rdf.py b/rdflib/tools/csv2rdf.py index 812ffadc..64b7c6eb 100644 --- a/rdflib/tools/csv2rdf.py +++ b/rdflib/tools/csv2rdf.py @@ -126,8 +126,7 @@ def csv_reader(csv_data, dialect=csv.excel, **kwargs): csv_reader = csv.reader(csv_data, dialect=dialect, **kwargs) for row in csv_re...
RDFLib__rdflib-1154
[ { "changes": { "added_entities": [ "rdflib/plugins/sparql/operators.py:date" ], "added_modules": [ "rdflib/plugins/sparql/operators.py:date" ], "edited_entities": [ "rdflib/plugins/sparql/operators.py:Builtin_YEAR", "rdflib/plugins/sparql/operators.p...
RDFLib/rdflib
dde9db804d30fe0ab0c3291c105093ed691b0ef4
sparql builtin date functions only work with datetime, not with date the functions `day`, `month` and `year` only work with datetime literals, not with date literals. Example to reproduce: ``` import rdflib import datetime ns = rdflib.Namespace("http://example.com/") graph = rdflib.Graph() graph.add((ns[...
diff --git a/rdflib/plugins/sparql/operators.py b/rdflib/plugins/sparql/operators.py index 29bdd5c0..3393f18a 100644 --- a/rdflib/plugins/sparql/operators.py +++ b/rdflib/plugins/sparql/operators.py @@ -12,6 +12,7 @@ import math import random import uuid import hashlib +import datetime as py_datetime # naming confl...
RDFLib__rdflib-1175
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "examples/sparqlstore_example.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rdfl...
RDFLib/rdflib
56dc4207ce6e7b11ed7b45fb4fd4020ba548e718
requests not included in setup.py although requests is defined in requirements.txt it is not in setup.py and hence not picked up by pip install
diff --git a/.travis.fuseki_install_optional.sh b/.travis.fuseki_install_optional.sh index 49e91f2c..106f7807 100644 --- a/.travis.fuseki_install_optional.sh +++ b/.travis.fuseki_install_optional.sh @@ -2,7 +2,7 @@ set -v -uri="http://archive.apache.org/dist/jena/binaries/apache-jena-fuseki-2.4.0.tar.gz" +uri="htt...
RDFLib__rdflib-1240
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "rdflib/namespace.py" } ]
RDFLib/rdflib
3b7f0ed18540c50ff9bfd06d50f8d081ebc8dfcd
5.0.0: test suit is failing ``` ====================================================================== FAIL: test.test_sparql_service.test_service ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/nose/case.py", line 1...
diff --git a/rdflib/namespace.py b/rdflib/namespace.py index f9bb86d4..aa1b4d0d 100644 --- a/rdflib/namespace.py +++ b/rdflib/namespace.py @@ -292,80 +292,53 @@ FOAF = ClosedNamespace( terms=[ # all taken from http://xmlns.com/foaf/spec/ "Agent", - "Document", - "Group", - "I...
RDFLib__rdflib-1258
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "rdflib/term.py" } ]
RDFLib/rdflib
a8d435bb341b380b5d04b20f2a6b9beedcfbaac3
Literals with xsd:base64Binary datatype serialize incorrectly Looking at `rdflib.term` source this appears to be because the lexical is taken as the decoded value, because no base64 encoder is defined. This is in contrast to `xsd:hexBinary` where the lexical is the encoded value. Example: ``` >>> byts = b'foo' ...
diff --git a/rdflib/term.py b/rdflib/term.py index 3a822158..0f627e69 100644 --- a/rdflib/term.py +++ b/rdflib/term.py @@ -38,7 +38,6 @@ import logging import warnings import math -import base64 import xml.dom.minidom from datetime import date, time, datetime, timedelta @@ -53,6 +52,7 @@ from isodate import ( ...
RDFLib__rdflib-1309
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rdflib/graph.py:Graph.serialize" ], "edited_modules": [ "rdflib/graph.py:Graph" ] }, "file": "rdflib/graph.py" }, { "changes": { "added_entities": null, ...
RDFLib/rdflib
5d77b14de48275bbba07746ebd7bfbd3c23ee52c
graph.serialize(destination=) should accept a pathlib Path If you try: ```python g.serialize(destination=pathib.Path(__file__).parent / "some" / "path" / "to" / "a" / "file.ttl", format="ttl") ``` You get a: ```python AttributeError: 'PosixPath' object has no attribute 'decode' ``` You have to do: ``...
diff --git a/rdflib/graph.py b/rdflib/graph.py index 86b7ccb8..f90b3acb 100644 --- a/rdflib/graph.py +++ b/rdflib/graph.py @@ -19,6 +19,7 @@ from rdflib.exceptions import ParserError import os import shutil import tempfile +import pathlib from io import BytesIO, BufferedIOBase from urllib.parse import urlparse @...
RDFLib__rdflib-1315
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rdflib/plugins/sparql/results/txtresults.py:TXTResultSerializer.serialize" ], "edited_modules": [ "rdflib/plugins/sparql/results/txtresults.py:TXTResultSerializer" ] }, ...
RDFLib/rdflib
a9aaef18c86f4bb645ee791a50c805bf0d9cecd0
Turtle de/serialize incorrectly interprets gYear In 5.0.0, when a `gYear` is parsed and then re-serialised, from any format to any other format, RDFlib adds "-01-01" to the literal so, for example, `"1982"^^xsd:gYear` goes to `"1982-01-01"^^xsd:gYear` which is invalid. Testing code: ```python from rdflib import ...
diff --git a/rdflib/plugins/sparql/results/txtresults.py b/rdflib/plugins/sparql/results/txtresults.py index baa5316b..426dd9a1 100644 --- a/rdflib/plugins/sparql/results/txtresults.py +++ b/rdflib/plugins/sparql/results/txtresults.py @@ -43,7 +43,7 @@ class TXTResultSerializer(ResultSerializer): return "(...
RDFLib__rdflib-1335
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "rdflib/term.py" } ]
RDFLib/rdflib
d507fdac93be2ec3e35882e3efaa5e7c7349fa93
Invalid serialization of xsd:decimal to scientific notation I'm having an issue when doing a construct query using SPARQL is returning a rdflib graph with small numbers casted as a literal in scientific notation. ``` from SPARQLWrapper import SPARQLWrapper, RDFXML from rdflib.term import URIRef, Literal import sys ...
diff --git a/rdflib/term.py b/rdflib/term.py index d9e06d82..3fc4e968 100644 --- a/rdflib/term.py +++ b/rdflib/term.py @@ -1544,7 +1544,7 @@ _GenericPythonToXSDRules = [ (bool, (lambda i: str(i).lower(), _XSD_BOOLEAN)), (int, (None, _XSD_INTEGER)), (long_type, (None, _XSD_INTEGER)), - (Decimal, (None,...
RDFLib__rdflib-1382
[ { "changes": { "added_entities": [ "rdflib/graph.py:Dataset.__iter__" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "rdflib/graph.py:Dataset" ] }, "file": "rdflib/graph.py" } ]
RDFLib/rdflib
038af4547e799845e08986867b24acafcbe72d48
Add __iter__ method to Dataset #### Motivation It is convenient to be able to iterate over all triples in a `Graph` instance without invoking `graph.triples((None, None, None))`. When working with a small instance of `Dataset`, there are occasions where one will want to observe all of the quads in a similar manner. ...
diff --git a/rdflib/graph.py b/rdflib/graph.py index a689b35a..b25765ac 100644 --- a/rdflib/graph.py +++ b/rdflib/graph.py @@ -1,4 +1,4 @@ -from typing import Optional, Union, Type, cast, overload +from typing import Optional, Union, Type, cast, overload, Generator, Tuple import logging from warnings import warn imp...
RDFLib__rdflib-1386
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": [ "rdflib/namespace/_RDF.py:RDF" ] }, "file": "rdflib/namespace/_RDF.py" }, { "changes": { "added_entities": null, "added_modules": null, ...
RDFLib/rdflib
038af4547e799845e08986867b24acafcbe72d48
RDF namespace does not allow rdf:Seq valid terms Hi, According to the [RDFS recommendation](https://www.w3.org/TR/rdf-schema/#ch_collectionvocab), elements of an rdf:Seq can be ordered by using predicates of the form: `C rdf:_nnn O` "where `nnn` is the decimal representation of an integer greater than 0 with n...
diff --git a/rdflib/namespace/_RDF.py b/rdflib/namespace/_RDF.py index 61bc4a58..f79d75a7 100644 --- a/rdflib/namespace/_RDF.py +++ b/rdflib/namespace/_RDF.py @@ -16,6 +16,7 @@ class RDF(DefinedNamespace): """ _fail = True + _underscore_num = True # http://www.w3.org/1999/02/22-rdf-syntax-ns#List ...
RDFLib__rdflib-1456
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rdflib/plugins/shared/jsonld/util.py:norm_url" ], "edited_modules": [ "rdflib/plugins/shared/jsonld/util.py:norm_url" ] }, "file": "rdflib/plugins/shared/jsonld/util.py...
RDFLib/rdflib
d9e86c932695d780bcdcdfadda150e4c1bcf72ef
json-ld parser adds trailing slash to URLs that have no path This is best described with an example. Here is a json-ld file that contains a URL that has no path: ```json [ { "@id": "https://sbolstandard.org/examples/model1", "http://sbols.org/v3#source": [ { "@id": "http://virtualparts.or...
diff --git a/rdflib/plugins/shared/jsonld/util.py b/rdflib/plugins/shared/jsonld/util.py index 49fbdab4..bd4c06aa 100644 --- a/rdflib/plugins/shared/jsonld/util.py +++ b/rdflib/plugins/shared/jsonld/util.py @@ -59,6 +59,8 @@ def norm_url(base, url): >>> norm_url('http://example.org/', 'http://example.org//one') ...
RDFLib__rdflib-1530
[ { "changes": { "added_entities": [ "rdflib/extras/infixowl.py:Infix.__rmatmul__", "rdflib/extras/infixowl.py:Infix.__matmul__" ], "added_modules": null, "edited_entities": [ "rdflib/extras/infixowl.py:Restriction.__init__", "rdflib/extras/infixowl.py:Prope...
RDFLib/rdflib
43d86224382d64fba2e5e17acedea1704631e097
infixowl cardinality - 0 `owl.Restriction(property,graph=graph,cardinality=Literal(0)) `Raises an error. `assert len(validRestrProps)` When cardinality value is given as 0. This comes from: ``` validRestrProps = [(i, oTerm) for (i, oTerm) in restrTypes if i] assert len(validRestrProps) ``` I believe t...
diff --git a/rdflib/extras/infixowl.py b/rdflib/extras/infixowl.py index c6a5d2ad..c81297f2 100644 --- a/rdflib/extras/infixowl.py +++ b/rdflib/extras/infixowl.py @@ -39,26 +39,26 @@ We can then access the rdfs:subClassOf relationships This can also be used against already populated graphs: ->>> owlGraph = Graph()...
RDFLib__rdflib-1684
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rdflib/plugins/serializers/turtle.py:TurtleSerializer.preprocessTriple" ], "edited_modules": [ "rdflib/plugins/serializers/turtle.py:TurtleSerializer" ] }, "file": "rdf...
RDFLib/rdflib
d3f945380dfef7bbdbb34de92fa9909d42cd851a
rdf prefix is not emitted when saving to turtle when only rdf:type is used whenusing rdflib 6.1.1 to convert the following jsonld to turtle: ```json { "slots": [ { "name": "type", "slot_uri": "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" } ], "@context": [ { "rdf": "ht...
diff --git a/rdflib/plugins/serializers/turtle.py b/rdflib/plugins/serializers/turtle.py index a62c05c4..a8933a7e 100644 --- a/rdflib/plugins/serializers/turtle.py +++ b/rdflib/plugins/serializers/turtle.py @@ -257,7 +257,8 @@ class TurtleSerializer(RecursiveSerializer): def preprocessTriple(self, triple): ...
RDFLib__rdflib-1773
[ { "changes": { "added_entities": [ "rdflib/term.py:Literal.ill_formed", "rdflib/term.py:_well_formed_by_value", "rdflib/term.py:_well_formed_unsignedlong", "rdflib/term.py:_well_formed_boolean", "rdflib/term.py:_well_formed_int", "rdflib/term.py:_well_formed...
RDFLib/rdflib
8bad917cbc8213e176a47fd37d24f487485dda17
Polar-integer datatypes not verifying polarity of lexical value I recently encountered an issue using pySHACL to validate a `xsd:positiveInteger` and found it was accepting `"0"^^xsd:positiveInteger`. From review of today's `term.py` and the influence of the members of `_NUMERIC_LITERAL_TYPES`, and from a test-patch...
diff --git a/pyproject.toml b/pyproject.toml index a1feb7dd..8341c9c6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,6 +19,7 @@ exclude = ''' | htmlcov | benchmarks | examples # No need to Black examples + | test # Tests are a mess, don't black them | test_reports | ...
RDFLib__rdflib-1894
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rdflib/plugins/sparql/evaluate.py:_yieldBindingsFromServiceCallResult" ], "edited_modules": [ "rdflib/plugins/sparql/evaluate.py:_yieldBindingsFromServiceCallResult" ] }, ...
RDFLib/rdflib
246c887531d392ba475fb48ba6d21917f510abfe
In using SERVICE, "string" variables get retrieved as NULL I was testing the federated SPARQL queries using "service". There are two issues: * only low-case "service" is accepted, i.e., SPARQL with "SERVICE" would fail. This was fixed for next release. * "string" variables get retrieved as null. This is new. Sor...
diff --git a/rdflib/plugins/sparql/evaluate.py b/rdflib/plugins/sparql/evaluate.py index edd322e5..49bff943 100644 --- a/rdflib/plugins/sparql/evaluate.py +++ b/rdflib/plugins/sparql/evaluate.py @@ -405,18 +405,26 @@ def _yieldBindingsFromServiceCallResult( res_dict: Dict[Variable, Identifier] = {} for var in...
RDFLib__rdflib-1902
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "rdflib/__init__.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rdflib/graph.py:D...
RDFLib/rdflib
ccb9c4a56e6bfcf1474480552e62a21461b85239
Graph parse module does not handle URI / IRI with non-ascii characters To reproduce behavior: ```python from rdflib import Graph g = Graph() g.parse("https://dbpedia.org/page/Almería") ``` I was able to bypass it locally by editing the function in `parser.py` ```python def _create_input_source_from_locati...
diff --git a/pyproject.toml b/pyproject.toml index 8cb4f5a8..39178818 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,6 +25,8 @@ pep8-naming = ["-N802", "-N803", "-N806", "-N815"] pep8-naming = ["-N802", "-N803", "-N806", "-N816"] [tool.flakeheaven.exceptions."rdflib/plugins/serializers/turtle.py"] pep8-nami...
RDFLib__rdflib-2084
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rdflib/plugins/sparql/evaluate.py:_buildQueryStringForServiceCall" ], "edited_modules": [ "rdflib/plugins/sparql/evaluate.py:_buildQueryStringForServiceCall" ] }, "file...
RDFLib/rdflib
a39d1436e00affc3cba9e903b22700029d8e8163
Generated VALUES block for federated query binds blank nodes with invalid variable names In the following query, the generated `VALUES` block contains bound bnodes, when they probably shouldn't. For example, we're getting `VALUES (_:Nd1ab3cb93cb6459fa46ff4e37aef1925, …` using the following query. By converting `[] rdfs...
diff --git a/CHANGELOG.md b/CHANGELOG.md index d006172c..bede2f68 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -267,6 +267,24 @@ and will be removed for release. <!-- --> <!-- --> + +<!-- --> +<!-- --> +<!-- CHANGE BARRIER: START PR #2079 --> +<!-- --> +<!-- --> + +- Fixed the generation of VALUES block for fede...
RDFLib__rdflib-2112
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rdflib/plugins/stores/sparqlconnector.py:SPARQLConnector.update" ], "edited_modules": [ "rdflib/plugins/stores/sparqlconnector.py:SPARQLConnector" ] }, "file": "rdflib/...
RDFLib/rdflib
bcd05e93c0325854b2c44447996cb4bf91cc830c
SPARQLConnector.update should set ContentType charset I use rdflib to connect to a Blazegraph triplestore using the SPARQLUpdateStore. When I add data containing non-ASCII characters using `addN()` it results in garbled data in the triplestore (UTF-8 interpreted as ISO-8859). The problem seems to be that SPARQLC...
diff --git a/rdflib/plugins/stores/sparqlconnector.py b/rdflib/plugins/stores/sparqlconnector.py index 1d03c6fe..55fdfd15 100644 --- a/rdflib/plugins/stores/sparqlconnector.py +++ b/rdflib/plugins/stores/sparqlconnector.py @@ -167,7 +167,7 @@ class SPARQLConnector(object): headers = { "Accept": ...
RDFLib__rdflib-2160
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rdflib/plugins/serializers/trig.py:TrigSerializer.preprocess" ], "edited_modules": [ "rdflib/plugins/serializers/trig.py:TrigSerializer" ] }, "file": "rdflib/plugins/se...
RDFLib/rdflib
8213b7465783e636a394c86fd2387a44523d9c2f
can't get rid of default prefix definition in trig serialization I have a trig file with just one graph like this: ```trig @prefix adm: <http://purl.bdrc.io/ontology/admin/> . @prefix bda: <http://purl.bdrc.io/admindata/> . @prefix bdg: <http://purl.bdrc.io/graph/> . bdg:W1NLM5228 { bda:W1NLM5228 a adm:Ad...
diff --git a/rdflib/plugins/serializers/trig.py b/rdflib/plugins/serializers/trig.py index 0fa62b71..d4052b29 100644 --- a/rdflib/plugins/serializers/trig.py +++ b/rdflib/plugins/serializers/trig.py @@ -34,6 +34,9 @@ class TrigSerializer(TurtleSerializer): def preprocess(self): for context in self.conte...
RDFLib__rdflib-2221
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rdflib/plugins/sparql/algebra.py:translateGroupGraphPattern", "rdflib/plugins/sparql/algebra.py:translate" ], "edited_modules": [ "rdflib/plugins/sparql/algebra.py:translateG...
RDFLib/rdflib
9625ed0b432c9085e2d9dda1fd8acf707b9022ab
DESCRIBE query not working Apparently DESCRIBE queries are not fully implemented yet? This is what I get with two different queries: ###### 1) g.query('DESCRIBE http://www.example.org/a') ... /usr/lib/python2.7/site-packages/rdflib/plugins/sparql/algebra.pyc in translate(q) 530 531 # all query types have...
diff --git a/rdflib/plugins/sparql/algebra.py b/rdflib/plugins/sparql/algebra.py index 1429012b..5f6a774a 100644 --- a/rdflib/plugins/sparql/algebra.py +++ b/rdflib/plugins/sparql/algebra.py @@ -335,7 +335,11 @@ def translateGroupGraphPattern(graphPattern: CompValue) -> CompValue: """ if graphPattern.name =...
RDFLib__rdflib-2474
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rdflib/plugins/sparql/aggregates.py:GroupConcat.__init__" ], "edited_modules": [ "rdflib/plugins/sparql/aggregates.py:GroupConcat" ] }, "file": "rdflib/plugins/sparql/a...
RDFLib/rdflib
0ea6ca579442219d67ffb1fc7313f05fd16d8d49
Separator in group_concat function with explicit empty string incorrectly defaults to 'space' character Using the group_concat function with the separator indicating an _empty string_ ("") leads incorrectly to the default use of a space character as separator (" "). **Example code:** ``` PREFIX : <http://exa...
diff --git a/rdflib/plugins/sparql/aggregates.py b/rdflib/plugins/sparql/aggregates.py index d4a7d659..84ac8936 100644 --- a/rdflib/plugins/sparql/aggregates.py +++ b/rdflib/plugins/sparql/aggregates.py @@ -245,11 +245,16 @@ class Sample(Accumulator): class GroupConcat(Accumulator): - def __init__(self, aggrega...
RDFLib__rdflib-2745
[ { "changes": { "added_entities": [ "rdflib/container.py:Container.type_of_container" ], "added_modules": null, "edited_entities": [ "rdflib/container.py:Container.type_of_conatiner" ], "edited_modules": [ "rdflib/container.py:Container" ] }, ...
RDFLib/rdflib
98346657aaea6bad23fe574b7e575d8fbc002da7
cleanup unnecessary handling of py3 literal comparsion ops this is a reminder after #793
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b157bf97..8293b9c2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,20 +7,20 @@ ci: # https://pre-commit.com/#adding-pre-commit-plugins-to-your-project repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: ...
RDFLib__rdflib-730
[ { "changes": { "added_entities": [ "rdflib/compare.py:Color.__str__" ], "added_modules": null, "edited_entities": [ "rdflib/compare.py:_TripleCanonicalizer._initial_color", "rdflib/compare.py:_TripleCanonicalizer._refine", "rdflib/compare.py:to_canonical_g...
RDFLib/rdflib
af230076e7796c368ec4c912404fe3baf44761e5
RGDA1 graph canonicalization sometimes still collapses distinct BNodes During the [evaluation of my graph pattern learner](https://github.com/RDFLib/graph-pattern-learner/blob/master/eval.py#L433) i'm currently trying to generate all possible (different) SPARQL BGPs of a given length (5 at the moment). With up to 11 va...
diff --git a/rdflib/compare.py b/rdflib/compare.py index 5e3f5994..97de047b 100644 --- a/rdflib/compare.py +++ b/rdflib/compare.py @@ -194,6 +194,10 @@ class Color: self.hashfunc = hashfunc self._hash_color = None + def __str__(self): + nodes, color = self.key() + return "Color %s ...
RPing__influx-prompt-16
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "influx_prompt/completer.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_...
RPing/influx-prompt
80b4b72aefbced4669b00607e4aff1703fe0e043
Upgrading to prompt_toolkit 2.0/3.0 `Prompt_toolkit 2.0 is not compatible with 1.0.` https://python-prompt-toolkit.readthedocs.io/en/master/pages/upgrading/2.0.html https://python-prompt-toolkit.readthedocs.io/en/master/pages/upgrading/3.0.html
diff --git a/.travis.yml b/.travis.yml index 2b05bc0..b6c62c6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,8 +6,6 @@ services: language: python python: - - "2.7" - - "3.5" - "3.6" - "3.7" - "3.8" diff --git a/Pipfile b/Pipfile index 70305bb..6d896e1 100644 --- a/Pipfile +++ b/Pipfile @@ -6,15 +6,15 @...
RPing__influx-prompt-17
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "influx_prompt/main.py:InfluxPrompt.run_cli" ], "edited_modules": [ "influx_prompt/main.py:InfluxPrompt" ] }, "file": "influx_prompt/main.py" }, { "changes": { ...
RPing/influx-prompt
4650137ccfaf665816622a332574bd192ce8147c
Empty values bug influx-prompt ``` root> SHOW CONTINUOUS QUERIES Traceback (most recent call last): File "/home/rpchen1228/.pyenv/versions/3.6.4/bin/influx-prompt", line 8, in <module> sys.exit(cli()) File "/home/rpchen1228/.pyenv/versions/3.6.4/lib/python3.6/site-packages/influx_prompt/main.py", line 176...
diff --git a/influx_prompt/main.py b/influx_prompt/main.py index 302b02b..4e95b6f 100644 --- a/influx_prompt/main.py +++ b/influx_prompt/main.py @@ -34,17 +34,17 @@ class InfluxPrompt(object): ('blue', 'o'), ('indigo', 'm'), ('purple', 'e'), - ('', '!') + (''...
RWTH-EBC__pyCity-248
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pycity_base/classes/building.py:Building.get_space_heating_power_curve", "pycity_base/classes/building.py:Building.get_space_cooling_power_curve", "pycity_base/classes/building.py:Buildi...
RWTH-EBC/pyCity
5f3b62f6b17c29c344238e2237408bb40d6e19a3
Make Building getter methods more robust Currently the functions `get_space_heating_power_curve`, `get_electric_power_curve` and `get_dhw_power_curve` of the `Building` class return inconsistent results when used in edge cases. When no loads are given in the apartments they return empty arrays. Instead they shoul...
diff --git a/pycity_base/classes/building.py b/pycity_base/classes/building.py index 39c4f19..1eb81ee 100644 --- a/pycity_base/classes/building.py +++ b/pycity_base/classes/building.py @@ -182,7 +182,11 @@ class Building(object): """ # Initialize array with zeros - space_heat_power = np.zero...
Rackspace-DOT__nova-agent-51
[ { "changes": { "added_entities": [ "novaagent/libs/centos.py:ServerOS._check_for_extra_settings" ], "added_modules": null, "edited_entities": [ "novaagent/libs/centos.py:ServerOS._setup_interface" ], "edited_modules": [ "novaagent/libs/centos.py:Server...
Rackspace-DOT/nova-agent
ac0432fd9a26550d10ece479f39b15ecad464265
preserve firewalld zone Firewalld is used in the Red Hat ecosystem (Fedora, RHEL, and CentOS). To bind a network interface to a firewalld zone involves add `ZONE=zonename` to the ifcfg-ethX file. It would be great if nova-agent can preserve zones in those files when making it's changes.
diff --git a/novaagent/libs/centos.py b/novaagent/libs/centos.py index cfe1afb..b39f9a6 100644 --- a/novaagent/libs/centos.py +++ b/novaagent/libs/centos.py @@ -5,6 +5,7 @@ from __future__ import absolute_import import logging import os +import re from subprocess import Popen @@ -32,7 +33,12 @@ class ServerOS(...
RadioAstronomySoftwareGroup__pyuvdata-580
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "docs/make_index.py:write_index_rst" ], "edited_modules": [ "docs/make_index.py:write_index_rst" ] }, "file": "docs/make_index.py" }, { "changes": { "added...
RadioAstronomySoftwareGroup/pyuvdata
dce3dca1b79bd07d136af9465c7cc815f669c016
add E/N pol strings if x_polarization is set
diff --git a/.circleci/config.yml b/.circleci/config.yml index 7d5f0d2b..909b8891 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -54,7 +54,7 @@ jobs: command: | source activate ${ENV_NAME} mkdir test-reports - nosetests pyuvdata -v --with-xunit --xunit-fi...
RadioAstronomySoftwareGroup__pyuvdata-602
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pyuvdata/uvflag.py:UVFlag.__init__", "pyuvdata/uvflag.py:UVFlag.read", "pyuvdata/uvflag.py:UVFlag.write", "pyuvdata/uvflag.py:UVFlag.collapse_pol" ], "edited_modules"...
RadioAstronomySoftwareGroup/pyuvdata
dfb3a212f87cbf3fdb4dd82728a1326b4eb7c107
Resolve init logic in uvflag There is an outstanding issue in hera_qm to figure out the init logic in uvflag, and be sure the weights array ends up the way one would expect. Since we have moved uvflag over to pyuvdata, we need to move the issue too. HERA-Team/hera_qm#264
diff --git a/CHANGELOG.md b/CHANGELOG.md index e44f2896..f581386f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ All notable changes to this project will be documented in this file. - `lst_array` is now saved to UVFITS files (even though it's not a standard parameter) so that it doesn't have to be reca...
RadioAstronomySoftwareGroup__pyuvdata-614
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pyuvdata/utils.py:get_baseline_redundancies", "pyuvdata/utils.py:get_antenna_redundancies" ], "edited_modules": [ "pyuvdata/utils.py:get_baseline_redundancies", "pyuv...
RadioAstronomySoftwareGroup/pyuvdata
78e6b49bf37fecdd7edc8bd4286d79e9cfbbd71d
Inflate by redundancy mapping https://github.com/RadioAstronomySoftwareGroup/pyuvdata/blob/a858a6c6663153345bbfecaa203f369ccda97647/pyuvdata/uvdata.py#L3825-L3826 It is not generally true that `Nblts == Nbls * Ntimes`. Currently `UVData.inflate_by_redundancy` makes this assumption when building the map from compress...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 47b73d9f..0a434b8a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,11 +4,13 @@ All notable changes to this project will be documented in this file. ## [Unreleased] ### Added +- `conjugate_bls` option to `UVData.get_antenna_redundancies` - `UVData.conjugate_bls` met...
RadioAstronomySoftwareGroup__pyuvdata-631
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "docs/make_flag_parameters.py:write_flagparams_rst" ], "edited_modules": [ "docs/make_flag_parameters.py:write_flagparams_rst" ] }, "file": "docs/make_flag_parameters.py...
RadioAstronomySoftwareGroup/pyuvdata
07da66627382acb742d27a2879543d5520d8d33c
uv beam frequency interpolation with new object returns tuple calling _interp_freq with new_object=true gives a tuple with a uv beam object as the zeroth entry and 'None' as the first entry. Is this the desired behavior?
diff --git a/CHANGELOG.md b/CHANGELOG.md index ba71c363..9d146b08 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,11 +4,15 @@ All notable changes to this project will be documented in this file. ## [Unreleased] ### Added +- option for `UVBeam.interp` to return a new beam object. - `UVFlag` information on Read T...
RadioAstronomySoftwareGroup__pyuvdata-642
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pyuvdata/utils.py:uvcalibrate", "pyuvdata/utils.py:baseline_to_antnums" ], "edited_modules": [ "pyuvdata/utils.py:uvcalibrate", "pyuvdata/utils.py:baseline_to_antnums...
RadioAstronomySoftwareGroup/pyuvdata
ad4ba0e02e4f4049ba460e90f34372467d9edc91
baselines_to_antums is not vectorized Seems you can't give a list of baseline numbers and get a list of antenna pair tuples. That would be useful.
diff --git a/CHANGELOG.md b/CHANGELOG.md index f581386f..0d42d581 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,11 +2,14 @@ All notable changes to this project will be documented in this file. ## [Unreleased] +- `utils.uvcalibrate` flag propagation bug fix +- `UVCal.ant2ind` indexing bug fix - `UVCal.get_*` m...
RadioAstronomySoftwareGroup__pyuvdata-643
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pyuvdata/utils.py:baseline_to_antnums" ], "edited_modules": [ "pyuvdata/utils.py:baseline_to_antnums" ] }, "file": "pyuvdata/utils.py" }, { "changes": { "...
RadioAstronomySoftwareGroup/pyuvdata
ce243a92c419c8fb7f0c528a5d2159b6f370adb2
Add uv objects which are metadata only Should enable setting read_data=False when reading _list of files_. This solution will be similar to what was worked out for select() which has a metadata_only option. This is critically needed to load large datasets.
diff --git a/CHANGELOG.md b/CHANGELOG.md index 3d5fd40f..8bb1913e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to this project will be documented in this file. ## [Unreleased] + +### Added +- `metadata_only` property on `UVData` to automatically detect if data-like arrays are pr...
RadioAstronomySoftwareGroup__pyuvdata-682
[ { "changes": { "added_entities": [ "pyuvdata/uvflag.py:UVFlag.from_uvdata", "pyuvdata/uvflag.py:UVFlag.from_uvcal" ], "added_modules": null, "edited_entities": [ "pyuvdata/uvflag.py:UVFlag.__init__", "pyuvdata/uvflag.py:UVFlag._data_params", "pyuvd...
RadioAstronomySoftwareGroup/pyuvdata
c2d0e4cb10fdd61902bd74a31e3620d31387e2d2
Allow initialization of empty UVFlag object Currently, UVFlag is initialized from a UVFlag file or existing UVData or UVCal objects. It would be nice to be able to initialize an empty UVFlag object, as we do for UVData and the other objects.
diff --git a/CHANGELOG.md b/CHANGELOG.md index f6678978..09e4eaff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,8 @@ All notable changes to this project will be documented in this file. - UVData.get_antenna_redundancies will no longer automatically conjugate baselines. - UVData.get_baseline_redundancies a...
RadioAstronomySoftwareGroup__pyuvdata-701
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pyuvdata/uvdata.py:UVData.phase_to_time" ], "edited_modules": [ "pyuvdata/uvdata.py:UVData" ] }, "file": "pyuvdata/uvdata.py" } ]
RadioAstronomySoftwareGroup/pyuvdata
f0034d04201c2d64e82a35e8ec83f20e6d9adbfa
Allow JDs as input to `phase_to_time` A PR brought this up as a possible enhancement to `phase_to_time`, allow the user to possibly give a float JD as another input time other than astropy.Time objects.
diff --git a/CHANGELOG.md b/CHANGELOG.md index 94cc954e..98e4d539 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ All notable changes to this project will be documented in this file. - `UVFlag` information on Read The Docs ### Changed +- `UVData.phase_to_time` now accepts a float as an input. Assumes...
RadioAstronomySoftwareGroup__pyuvdata-705
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pyuvdata/fhd.py:FHD.read_fhd" ], "edited_modules": [ "pyuvdata/fhd.py:FHD" ] }, "file": "pyuvdata/fhd.py" }, { "changes": { "added_entities": [ "p...
RadioAstronomySoftwareGroup/pyuvdata
3c8aa03ce0671eb24c6609c907e6635552c4d360
Option to phase multiple files on read, enabling add on files with different phase centers If you have a lot of files with different phase centers but want to create a single uvdata object from them with a single phase center (or a drift scan object), there isn't a graceful way to do it with a single read. You need to...
diff --git a/CHANGELOG.md b/CHANGELOG.md index aa6baeda..74e25577 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,12 +4,15 @@ All notable changes to this project will be documented in this file. ## [Unreleased] ### Added +- Support for rephasing phased data including on `read`, `__add__` and `fast_concat` so tha...
RadioAstronomySoftwareGroup__pyuvdata-716
[ { "changes": { "added_entities": [ "pyuvdata/uvdata.py:UVData.sum_vis", "pyuvdata/uvdata.py:UVData.diff_vis" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "pyuvdata/uvdata.py:UVData" ] }, "file": "pyuvdata/uvdata.py" ...
RadioAstronomySoftwareGroup/pyuvdata
96be086324ba8f35815dd590429c6415411c15ea
method to add matched visibilities between 2 objects e.g. to combine simulated EoR/foreground/noise visibilities. Needed for pyuvsim: RadioAstronomySoftwareGroup/pyuvsim#28
diff --git a/CHANGELOG.md b/CHANGELOG.md index aa1aabe0..342f2bd4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ All notable changes to this project will be documented in this file. ## [Unreleased] ### Added +- `sum_vis` and `diff_vis` for summing or differencing visibilities in the data_array. - `re...
RadioAstronomySoftwareGroup__pyuvdata-724
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pyuvdata/uvcal.py:UVCal.jpol2ind", "pyuvdata/uvcal.py:UVCal._has_key" ], "edited_modules": [ "pyuvdata/uvcal.py:UVCal" ] }, "file": "pyuvdata/uvcal.py" } ]
RadioAstronomySoftwareGroup/pyuvdata
fb15b4a3f1546da06ba2531e04455eb3e6d9a7ea
UVCal objects don't use x_orientation properly This occurs twice. https://github.com/RadioAstronomySoftwareGroup/pyuvdata/blob/fb15b4a3f1546da06ba2531e04455eb3e6d9a7ea/pyuvdata/uvcal.py#L764 https://github.com/RadioAstronomySoftwareGroup/pyuvdata/blob/fb15b4a3f1546da06ba2531e04455eb3e6d9a7ea/pyuvdata/uvcal.py#L78...
diff --git a/CHANGELOG.md b/CHANGELOG.md index bf6fdbd7..1b3a4981 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ All notable changes to this project will be documented in this file. - `utils.apply_uvflag` for applying UVFlag objects to UVData objects ### Fixed +- A bug in `UVCal` objects that prevente...
RadioAstronomySoftwareGroup__pyuvdata-732
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pyuvdata/utils.py:get_baseline_redundancies" ], "edited_modules": [ "pyuvdata/utils.py:get_baseline_redundancies" ] }, "file": "pyuvdata/utils.py" } ]
RadioAstronomySoftwareGroup/pyuvdata
5406e7fd30526b124d9755f0b14e8c9d1af88c01
Make sure find redundancy methods only put each baseline in one redundant group Should be asserts to enforce that if it's already the case.
diff --git a/CHANGELOG.md b/CHANGELOG.md index 342f2bd4..aa6baeda 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ All notable changes to this project will be documented in this file. - `utils.apply_uvflag` for applying UVFlag objects to UVData objects ### Fixed +- Redundancy finder will now error if ...
RadioAstronomySoftwareGroup__pyuvsim-245
[ { "changes": { "added_entities": [ "pyuvsim/mpi.py:get_max_node_rss" ], "added_modules": [ "pyuvsim/mpi.py:get_max_node_rss" ], "edited_entities": [ "pyuvsim/mpi.py:start_mpi", "pyuvsim/mpi.py:set_mpi_excepthook", "pyuvsim/mpi.py:shared_mem_b...
RadioAstronomySoftwareGroup/pyuvsim
1615bb7ec5325aebed2da75f8da075f46938c035
Python exceptions are not raised in MPI When run within MPI on Oscar, if a Python exception is raised (by any rank) the stack trace is not printed. The only information given is that MPI_Abort() was called. I've resorted to inserting "print" statements to track down bugs... This may just be an Oscar/SLURM issue.
diff --git a/CHANGELOG.md b/CHANGELOG.md index 207edc0..274d505 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## [Unreleased] + +## Added +- A function for checking the memory usage on each Node + ### Changed - Replaced init_uvdata_out function with complete_uvdata - init_uvdata_out function is ...
RadioAstronomySoftwareGroup__pyuvsim-252
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pyuvsim/analyticbeam.py:AnalyticBeam.__init__" ], "edited_modules": [ "pyuvsim/analyticbeam.py:AnalyticBeam" ] }, "file": "pyuvsim/analyticbeam.py" }, { "change...
RadioAstronomySoftwareGroup/pyuvsim
bf300aca019dbb0d7075ed08065beaaa5654651c
Beam parameters assigned to beam_ids Currently, it is not possible to assign, say, different diameters to different beam_ids within a telescope_config yaml. For instance, ``` beam_paths: 0: 'airy' 1: 'gaussian' sigma: 0.3 diameter=14.0 ``` This will assign diameter=14m to both the airy and gaussian beams....
diff --git a/.travis.yml b/.travis.yml index 308d9fa..38e62cb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,6 @@ dist: trusty language: python python: # We don't actually use the Travis Python, but this keeps it organized. - - "2.7" - "3.6" env: global: diff --git a/CHANGELOG.md b/CHANGELOG.md inde...
RadioAstronomySoftwareGroup__pyuvsim-476
[ { "changes": { "added_entities": [ "src/pyuvsim/uvsim.py:_update_uvd" ], "added_modules": [ "src/pyuvsim/uvsim.py:_update_uvd" ], "edited_entities": [ "src/pyuvsim/uvsim.py:uvdata_to_task_iter", "src/pyuvsim/uvsim.py:run_uvdata_uvsim" ], ...
RadioAstronomySoftwareGroup/pyuvsim
d24b1c68235f87ae88e3fcdc072c1556f9432bd0
pyuvsim ignoring (and not updating) `UVData.uvw_array` I stumbled upon an interesting feature when helping out a user who was running into an issue taking a `UVData` object from a prior observation, passing it through pyuvsim, and then writing out the result as an MS file (via the `UVData.write_ms` method). Long story ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 547878b..9eb1eb7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,10 @@ changes for numpy 2.0 compatibility. - Use UVData.new method to do the UVData object initialization. This leads to a change in the default conjugation convention from `"ant2<ant1"` to `"ant1...
Rambatino__CHAID-83
[ { "changes": { "added_entities": [ "CHAID/column.py:is_sorted", "CHAID/column.py:Column.bell_set", "CHAID/column.py:NominalColumn.all_combinations", "CHAID/column.py:OrdinalColumn.all_combinations" ], "added_modules": [ "CHAID/column.py:is_sorted" ...
Rambatino/CHAID
6a29f62c0ca5cee05eaa9ab512071d5048a85123
Valid splits discounted when most significant split is generated below base size
diff --git a/CHAID/column.py b/CHAID/column.py index ce1a712..444c073 100644 --- a/CHAID/column.py +++ b/CHAID/column.py @@ -3,6 +3,14 @@ from math import isnan from itertools import combinations from .mapping_dict import MappingDict +def is_sorted(ndarr, nan_val=None): + store = [] + for arr in ndarr: + ...
Rambatino__CHAID-88
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "CHAID/tree.py:Tree.print_tree", "CHAID/tree.py:Tree.model_predictions", "CHAID/tree.py:Tree.risk" ], "edited_modules": [ "CHAID/tree.py:Tree" ] }, "file...
Rambatino/CHAID
17a4cbaed359b644e7ef34a93b44c38a2e24874e
model_predictions fails with categorical dependant variables If the dependent variable is categorical, where categories are strings, the method model_predictions fails. The problem is that the the pred array is initialized as: pred = np.zeros(self.data_size) and that enforces predictions to be numerical. In o...
diff --git a/CHAID/tree.py b/CHAID/tree.py index 17e192a..86508e2 100644 --- a/CHAID/tree.py +++ b/CHAID/tree.py @@ -221,7 +221,7 @@ class Tree(object): def print_tree(self): """ prints the tree out """ - self.to_tree().show() + self.to_tree().show(line_type='ascii') def node_predic...
Rapptz__discord.py-8323
[ { "changes": { "added_entities": [ "discord/app_commands/errors.py:_get_command_error", "discord/app_commands/errors.py:CommandSyncFailure.__init__" ], "added_modules": [ "discord/app_commands/errors.py:_get_command_error", "discord/app_commands/errors.py:Comman...
Rapptz/discord.py
e269904b2645c9bd7ca95237ba5a50e70867ce0b
Multiple selects error ### Summary master commit breaks multiple selects ### Reproduction Steps this [commit](https://github.com/Rapptz/discord.py/tree/d826f4f3a8d4d97d24499f5de5c51e11e640e98f) provides global state for `Select` object ### Minimal Reproducible Code _No response_ ### Expected Results No global s...
diff --git a/discord/app_commands/errors.py b/discord/app_commands/errors.py index 1b8020a6..19c9f736 100644 --- a/discord/app_commands/errors.py +++ b/discord/app_commands/errors.py @@ -26,9 +26,8 @@ from __future__ import annotations from typing import Any, TYPE_CHECKING, List, Optional, Union - from ..enums im...
Rapptz__discord.py-9934
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "discord/permissions.py:Permissions.all" ], "edited_modules": [ "discord/permissions.py:Permissions" ] }, "file": "discord/permissions.py" } ]
Rapptz/discord.py
df4b1c88df741b439e97049e5c92feb969bdd5d3
`use_external_apps` is False when using `discord.Permissions.all()` ### Summary The title pretty much says at all. Even when using `discord.Permissions.all()` which should theoretically return all permissions set to True, `use_external_apps` still returns False. ### Reproduction Steps 1. Create a `discord.Permissio...
diff --git a/discord/permissions.py b/discord/permissions.py index 17c7b38c..b553e257 100644 --- a/discord/permissions.py +++ b/discord/permissions.py @@ -187,7 +187,7 @@ class Permissions(BaseFlags): permissions set to ``True``. """ # Some of these are 0 because we don't want to set unnecess...
RasaHQ__rasa-3677
[ { "changes": { "added_entities": [ "rasa/nlu/training_data/formats/markdown.py:encode_string" ], "added_modules": [ "rasa/nlu/training_data/formats/markdown.py:encode_string" ], "edited_entities": [ "rasa/nlu/training_data/formats/markdown.py:MarkdownWriter....
RasaHQ/rasa
07e2b5def944d146c5786f6d35ea23313c55ce04
Converting from JSON to Markdown writes newlines Having a `\n` in the text of an intent example works for JSON, but when we use `rasa.nlu.convert` to dump to Markdown, this prints newlines, which splits the example in two at train time
diff --git a/rasa/nlu/training_data/formats/markdown.py b/rasa/nlu/training_data/formats/markdown.py index e87b58dfb35..17715581b06 100644 --- a/rasa/nlu/training_data/formats/markdown.py +++ b/rasa/nlu/training_data/formats/markdown.py @@ -27,6 +27,22 @@ item_regex = re.compile(r"\s*[-*+]\s*(.+)") comment_regex = re....
RasaHQ__rasa-3725
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rasa/utils/endpoints.py:concat_url" ], "edited_modules": [ "rasa/utils/endpoints.py:concat_url" ] }, "file": "rasa/utils/endpoints.py" } ]
RasaHQ/rasa
e7c8420822e2fbf5e0c1b085f0f2187ed777ed24
Action server returning 404 <!-- THIS INFORMATION IS MANDATORY - YOUR ISSUE WILL BE CLOSED IF IT IS MISSING. If you don't know your Rasa Core version, use `pip list | grep rasa`. Removing the below information is allowed for FEATURE REQUESTS. --> **Rasa version**:1.0.1 **Python version**: 3.6.7 **Operating sy...
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 66d4140289b..421b12df0db 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -23,6 +23,7 @@ Removed Fixed ----- - loading of additional training data with the ``SkillSelector`` +- strip trailing slashes in endpoint URLs [1.0.7] - 2019-06-06 ^^^^^^^^^^^^^^^^^^^^ diff...
RasaHQ__rasa-3785
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rasa/server.py:create_app" ], "edited_modules": [ "rasa/server.py:create_app" ] }, "file": "rasa/server.py" } ]
RasaHQ/rasa
86b4b55fd2d42808c82968c45c5b659874af3859
Include agent readiness check in /status resource **Description of Problem**: In older versions of RASA, the `/status` resource contained a check for whether the system is ready to receive traffic. This check was used as a k8s readiness probe which became useless in 1.0.x. **Overview of the Solution**: Add the `@...
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index fe19f4fbee6..f7e31ce1754 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -11,6 +11,7 @@ This project adheres to `Semantic Versioning`_ starting with version 1.0. Added ----- +- added agent readiness check to the ``/status`` resource Changed ------- diff --git a...
RasaHQ__rasa-3822
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rasa/core/interpreter.py:RasaNLUHttpInterpreter.parse", "rasa/core/interpreter.py:RasaNLUHttpInterpreter._rasa_http_parse", "rasa/core/interpreter.py:RasaNLUInterpreter.parse" ], ...
RasaHQ/rasa
a55530a739609d44ffd45de161011691dae558d4
Message_id not passed in _rasa_http_parse in RasaNLUHttpInterpreter **Description of Problem**: message_id is not passed in the _rasa_http_parse method of the RasaNLUHttpInterpreter. It used to be passed in rasa_core but isn't anymore. **Overview of the Solution**: Simply pass the message_id from the parse method ...
diff --git a/docs/_static/spec/rasa.yml b/docs/_static/spec/rasa.yml index 3f0a1cde43c..76901619135 100644 --- a/docs/_static/spec/rasa.yml +++ b/docs/_static/spec/rasa.yml @@ -532,6 +532,10 @@ paths: type: string description: Message to be parsed example: "Hello...
RasaHQ__rasa-3866
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "rasa/core/domain.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rasa/core/traini...
RasaHQ/rasa
644f247c5bcac3ff75a859dfeb7f546c30b630c8
LUIS training data not found Based on: https://stackoverflow.com/questions/56726192/unable-to-train-luis-model-in-rasa-nlu **Problem:** When Rasa is trained it uses the function `rasa/data.py::_is_nlu_file` to check whether a file in the directory is actually a NLU file. The function `_is_nlu_file` currently only w...
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 94f6842bacc..5058ae39943 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -33,6 +33,7 @@ Fixed ----- - all temporal model files are now deleted after stopping the Rasa server - ``rasa shell nlu`` now outputs unicode characters instead of ``\uxxxx`` codes +- ``rasa tr...
RasaHQ__rasa-3897
[ { "changes": { "added_entities": [ "rasa/core/trackers.py:AnySlotDict.__contains__" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "rasa/core/trackers.py:AnySlotDict" ] }, "file": "rasa/core/trackers.py" } ]
RasaHQ/rasa
8775862ea6444ef47402c67c40aacb8162efdb36
Tried to set non existent slot 'count_list'. Make sure you added all your slots to your domain file. <!-- THIS INFORMATION IS MANDATORY - YOUR ISSUE WILL BE CLOSED IF IT IS MISSING. If you don't know your Rasa version, use `rasa --version`. Please format any code or console output with three ticks ``` above and belo...
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 5058ae39943..790785a1f48 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -33,6 +33,8 @@ Fixed ----- - all temporal model files are now deleted after stopping the Rasa server - ``rasa shell nlu`` now outputs unicode characters instead of ``\uxxxx`` codes +- ``x in An...
RasaHQ__rasa-3914
[ { "changes": { "added_entities": [ "rasa/train.py:handle_domain_if_not_exists" ], "added_modules": [ "rasa/train.py:handle_domain_if_not_exists" ], "edited_entities": [ "rasa/train.py:train_async", "rasa/train.py:train_core_async" ], "edi...
RasaHQ/rasa
76a91183ac878e96814cc11c3f5a3e6595614317
rasa train command error message **Rasa version**: 1.1.13 **Issue**: If you run the `rasa train` command and don't provide a `--domain` option, a python stack trace results instead of an error message message that the domain file was a required option. **Error (including full traceback)**: ``` docker run -v ...
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 790785a1f48..488f760280c 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -36,6 +36,7 @@ Fixed - ``x in AnySlotDict`` is now ``True`` for any ``x``, which fixes empty slot warnings in interactive learning - ``rasa train`` now also includes NLU files in other format...
RasaHQ__rasa-3951
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rasa/core/nlg/interpolator.py:interpolate_text" ], "edited_modules": [ "rasa/core/nlg/interpolator.py:interpolate_text" ] }, "file": "rasa/core/nlg/interpolator.py" }...
RasaHQ/rasa
9dcfc76d21eeba584217acc964e5f644b9154631
Leave curly braces in template **Rasa version**: master **Issue**: Recently on the forum, this question was raised or issue was reported. https://forum.rasa.com/t/how-to-print-curly-braces/12043 When template value has curly braces `{{"variable":"{value}"}}` it failed to replace slot. proposed solution ht...
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 56db9ebfb4f..61313e489fe 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -27,6 +27,7 @@ Fixed ----- - ``rasa test core`` can handle compressed model files - Rasa can handle story files containing multi line comments +- Template will retain `{` if escaped with `{`. e...
RasaHQ__rasa-3960
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rasa/cli/interactive.py:perform_interactive_learning" ], "edited_modules": [ "rasa/cli/interactive.py:perform_interactive_learning" ] }, "file": "rasa/cli/interactive.p...
RasaHQ/rasa
302513430783d61523d363190d46f61d7d7f8e83
IL doesn't have a default endpoints path `endpoints.yml` If I use `rasa shell` with my action server running and duckling server running, everything works as expected. If I use `rasa interactive`, the form action doesn't work . ``` ? The bot wants to run 'restaurant_form', correct? Yes 2019-07-08 16:18:42 ERROR ...
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index ac7a15fc46a..e333c5020e0 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -39,6 +39,7 @@ Fixed interactive learning - ``rasa train`` now also includes NLU files in other formats than the Rasa format - ``rasa train core`` no longer crashes without a ``--domain`` arg...
RasaHQ__rasa-3965
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rasa/core/training/interactive.py:_request_free_text_intent", "rasa/core/training/interactive.py:_request_free_text_action", "rasa/core/training/interactive.py:_request_free_text_utteran...
RasaHQ/rasa
1b16a3c39e0ca1ec5438f71c987def59b8255d86
Exporting interactive training session failes if intent 'None' appears during training **Rasa Core version**: 0.12.x **Python version**: 3.6 **Operating system** (windows, osx, ...): ubuntu **Issue**: Exporting fails if e.g. during a FormAction you only provide an answer for a slot, without assigning the answer...
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 4240f66d13e..4f333080228 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -26,8 +26,8 @@ Removed Fixed ----- -- ``MappingPolicy`` now works correctly when used as part of a PolicyEnsemble - ``rasa run`` without ``--enable-api`` does not require a local model anymor...
RasaHQ__rasa-4221
[ { "changes": { "added_entities": [ "rasa/core/policies/fallback.py:FallbackPolicy.nlu_confidence_below_threshold", "rasa/core/policies/fallback.py:FallbackPolicy.nlu_prediction_ambiguous" ], "added_modules": null, "edited_entities": [ "rasa/core/policies/fallback....
RasaHQ/rasa
78001f20347fb712609a5e6c6e1ef8ddac4b1cc9
FallbackPolicy should jump in when the top n intents have similar confidence Right now it only jumps in if the NLU confidence is below a certain threshold. It should however also jump in if the top 2 intents have a confidence of 0.98 and 0.80 for example. I've already started looking into this for the rasa-demo
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 4df72a587d4..e00dbf75083 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -11,6 +11,7 @@ This project adheres to `Semantic Versioning`_ starting with version 1.0. Added ----- +- `FallbackPolicy` can now be configured to trigger when the difference between confidence...
RasaHQ__rasa-4245
[ { "changes": { "added_entities": [ "rasa/cli/utils.py:button_to_string", "rasa/cli/utils.py:element_to_string", "rasa/cli/utils.py:button_choices_from_message_data" ], "added_modules": [ "rasa/cli/utils.py:button_to_string", "rasa/cli/utils.py:element_to...
RasaHQ/rasa
6543dfd56a8f20bd99cc195a411dd9134389e01a
`rasa shell` does not allow free text input when template has buttons in it <!-- THIS INFORMATION IS MANDATORY - YOUR ISSUE WILL BE CLOSED IF IT IS MISSING. If you don't know your Rasa version, use `rasa --version`. Please format any code or console output with three ticks ``` above and below. If you are asking a us...
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 926952497b0..f42e1713c5d 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -23,7 +23,8 @@ Removed Fixed ----- - +- Free text input was not allowed in the Rasa shell when the response template contained buttons, + which has now been fixed. [1.2.2] - 2019-08-07 ^^...
RasaHQ__rasa-4323
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rasa/cli/arguments/run.py:add_server_arguments" ], "edited_modules": [ "rasa/cli/arguments/run.py:add_server_arguments" ] }, "file": "rasa/cli/arguments/run.py" }, ...
RasaHQ/rasa
c804159d5248c3315473423a61176b013ad04ffd
Allow running rasa server using HTTPS **Description of Problem**: <!-- Short overview of the current situation. Why is this feature needed? Please link any relevant [forum](https://forum.rasa.com) threads here. --> To secure the communication, it should be possible to start the Rasa server using SSL **Overview o...
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 9aa5510161d..9598fd31da7 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -12,6 +12,8 @@ This project adheres to `Semantic Versioning`_ starting with version 1.0. Added ----- +- SSL support for ``rasa run`` command. Certificate can be specified using + ``--ssl-cert...
ReactiveX__RxPY-357
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rx/core/operators/observeon.py:_observe_on" ], "edited_modules": [ "rx/core/operators/observeon.py:_observe_on" ] }, "file": "rx/core/operators/observeon.py" } ]
ReactiveX/RxPY
a964eac88787dabef61cbc96ba31801f5a9bbed9
observe_on operator does not propagate subscription scheduler The observe_on scheduler drops the scheduler parameter provided during subscription. As a consequence, the default scheduler provided in the pipe operator is lost when observe_on is used in the chain.
diff --git a/rx/core/operators/observeon.py b/rx/core/operators/observeon.py index d725401b..d1ea4a56 100644 --- a/rx/core/operators/observeon.py +++ b/rx/core/operators/observeon.py @@ -22,8 +22,9 @@ def _observe_on(scheduler) -> Callable[[Observable], Observable]: Returns the source sequence whose observ...
ReactiveX__RxPY-37
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "examples/asyncio/toasyncgenerator.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, ...
ReactiveX/RxPY
72eecb5292f7ce105fdadf3f66d9c49091e72fd5
AsyncIOScheduler for Python 2.7 via Trollius? It seems possible to make the `AsyncIOScheduler` available for Python 2.7 through the use of [trollius](http://trollius.readthedocs.org/). Perhaps it can be configured through `rx.config`, like the class for `Future` can be?
diff --git a/examples/asyncio/toasyncgenerator.py b/examples/asyncio/toasyncgenerator.py index 076b82c4..9b3c2319 100644 --- a/examples/asyncio/toasyncgenerator.py +++ b/examples/asyncio/toasyncgenerator.py @@ -1,6 +1,6 @@ -import asyncio - import rx +asyncio = rx.config['asyncio'] + from rx.concurrency import AsyncI...
ReactiveX__RxPY-460
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rx/core/operators/flatmap.py:_flat_map_internal" ], "edited_modules": [ "rx/core/operators/flatmap.py:_flat_map_internal" ] }, "file": "rx/core/operators/flatmap.py" ...
ReactiveX/RxPY
573260422a6e3825c82a1cfbf8260b6514afc7b6
Async function with flat_map() Observer does not recieve values if there is `flat_map()` operator in chain and mapper returns `Future`. Rx: v3.0.1-2-g19b19087 Python: 3.7.4 Test code: ```python from asyncio import get_event_loop, create_task, sleep from rx import operators as op from rx.core import Observe...
diff --git a/rx/core/operators/flatmap.py b/rx/core/operators/flatmap.py index 0f6b73d8..f0262658 100644 --- a/rx/core/operators/flatmap.py +++ b/rx/core/operators/flatmap.py @@ -10,11 +10,12 @@ from rx.internal.utils import is_future def _flat_map_internal(source, mapper=None, mapper_indexed=None): def projectio...
ReactiveX__RxPY-492
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rx/core/observable/connectableobservable.py:ConnectableObservable.connect" ], "edited_modules": [ "rx/core/observable/connectableobservable.py:ConnectableObservable" ] }, ...
ReactiveX/RxPY
5fc2cfb5911e29818adde7dd70ef74ddb085eba4
Scheduler provided in subscribe is not used for all observable factories We now have `Observable.subcribe(..., scheduler=scheduler)`, which is really nice. Let's take the API all the way. [The documentation says that](https://rxpy.readthedocs.io/en/latest/get_started.html#default-scheduler): > Operators that acce...
diff --git a/rx/core/observable/connectableobservable.py b/rx/core/observable/connectableobservable.py index f2d3637e..ab0acd51 100644 --- a/rx/core/observable/connectableobservable.py +++ b/rx/core/observable/connectableobservable.py @@ -28,7 +28,7 @@ class ConnectableObservable(Observable): def dispose()...
ReactiveX__RxPY-507
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rx/core/observable/fromfuture.py:_from_future" ], "edited_modules": [ "rx/core/observable/fromfuture.py:_from_future" ] }, "file": "rx/core/observable/fromfuture.py" ...
ReactiveX/RxPY
4ed60bb5c04aa85de5210e5537a6adfe1b667d50
from_future and asyncio.CancelledError The [`from_future`](https://github.com/ReactiveX/RxPY/blob/master/rx/core/observable/fromfuture.py) operator no longer forwards `asyncio.CancelledError`s. This is due to a [change](https://bugs.python.org/issue32528) in Python 3.8 that makes `asyncio.CancelledError` inherit from `...
diff --git a/.travis.yml b/.travis.yml index e10f1846..2131a27f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,11 +23,11 @@ matrix: - xvfb-run -a python3 setup.py test - - name: "Python 3.8-dev on Linux" + - name: "Python 3.8 on Linux" os: linux dist: xenial language: python -...
ReactiveX__RxPY-510
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rx/core/observable/fromfuture.py:_from_future" ], "edited_modules": [ "rx/core/observable/fromfuture.py:_from_future" ] }, "file": "rx/core/observable/fromfuture.py" ...
ReactiveX/RxPY
4ed60bb5c04aa85de5210e5537a6adfe1b667d50
count() doesn't seem to work with group_by() Hi all, while trying this library I came across what seems to be a bug. I'm trying to group a stream of integers ranging from 0 to 9 by being odd or even. ```python from rx import from_, range as rxrange from rx.operators import group_by, count def even_or_odd(x):...
diff --git a/.travis.yml b/.travis.yml index e10f1846..2131a27f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,11 +23,11 @@ matrix: - xvfb-run -a python3 setup.py test - - name: "Python 3.8-dev on Linux" + - name: "Python 3.8 on Linux" os: linux dist: xenial language: python -...