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
KIT-IAI__pyWATTS-84
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pywatts/modules/root_mean_squared_error.py:RmseCalculator.__init__", "pywatts/modules/root_mean_squared_error.py:RmseCalculator.get_params", "pywatts/modules/root_mean_squared_error.py:R...
KIT-IAI/pyWATTS
fad06334e565ab13db0122672aa316d1202f76e8
Sliding window RMSE **What is your feature request related to?** * Module request **Please describe the module/problem** Sometimes one is not interested in the overall accuracy or in the overall accuracy until now. Instead one is interested in the accuracy of the past x days or weeks. **Describe the solution...
diff --git a/CHANGELOG.md b/CHANGELOG.md index a9a2940..c4e4caa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ### Added * Logger for modules is defined in Base ([#77](https://github.com/KIT-IAI/pyWATTS/issues/77)) +* Add parameters to RMSECalculator so that it can caluclate a sliding rmse too. ([#23...
KIT-IAI__pyWATTS-92
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pywatts/wrapper/keras_wrapper.py:KerasWrapper.__init__", "pywatts/wrapper/keras_wrapper.py:KerasWrapper.save", "pywatts/wrapper/keras_wrapper.py:KerasWrapper.load" ], "edited...
KIT-IAI/pyWATTS
17448a6fd986eb4cdc528c92e4151c985de128ea
Keras Save Load **Describe the bug** The path of the saved keras model distinguishes from the path saved in the json. And targets is not part of the saved keras model, if the model is fitted.
diff --git a/CHANGELOG.md b/CHANGELOG.md index ec3b099..65f8588 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ ### Fixed * Missing call of _get_rolling in Rolling Base ([#76](https://github.com/KIT-IAI/pyWATTS/issues/76)) +* Fix save and load of keras Wrapper ([#91](https://github.com/KIT-IAI/pyWA...
KIT-IAI__pyWATTS-98
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pywatts/wrapper/keras_wrapper.py:KerasWrapper.fit" ], "edited_modules": [ "pywatts/wrapper/keras_wrapper.py:KerasWrapper" ] }, "file": "pywatts/wrapper/keras_wrapper.py...
KIT-IAI/pyWATTS
abe233e8635a891154f5dc144cdc9f100b9a713b
Wrong input for keras wrapper **Describe the bug** Training a pipeline with a Keras model fails since commit `abe233e8635a891154f5dc144cdc9f100b9a713b` **To Reproduce** Steps to reproduce the behavior: 1. Start KerasExample 2. See error **Expected behavior** The Keras example executes without an error and perf...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 65f8588..a898629 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ ### Deprecated ### Fixed +* Converts the input for the keras model in the kerasWrapper from xr.Dataarray to np.array ([#97](https://github.com/KIT-IAI/pyWATTS/issues/97)) * Missing call of...
KSP-CKAN__NetKAN-Infra-27
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "netkan/netkan/indexer.py:CkanMessage.status_attrs" ], "edited_modules": [ "netkan/netkan/indexer.py:CkanMessage" ] }, "file": "netkan/netkan/indexer.py" } ]
KSP-CKAN/NetKAN-Infra
86ff9fb53237a6e5a2abce28baa78cb26e0e6125
[Bug] `last_checked` not updating in status http://status.ksp-ckan.space/ The Last Inflated and Last Indexed columns are working, but Last Checked seems to be only pulling forward values from the Perl bot: ![image](https://user-images.githubusercontent.com/1559108/64924360-56739f00-d7d3-11e9-87ca-bbd827ac8a64.png...
diff --git a/netkan/netkan/indexer.py b/netkan/netkan/indexer.py index bf9bcbd..1ee11cb 100644 --- a/netkan/netkan/indexer.py +++ b/netkan/netkan/indexer.py @@ -103,11 +103,15 @@ class CkanMessage: self.ckan_meta.heads.master.checkout() def status_attrs(self, new=False): + inflation_time = pa...
KSP-CKAN__NetKAN-Infra-67
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "netkan/netkan/metadata.py:Netkan.__init__" ], "edited_modules": [ "netkan/netkan/metadata.py:Netkan" ] }, "file": "netkan/netkan/metadata.py" } ]
KSP-CKAN/NetKAN-Infra
7b72e54ee985b7cc3dead5b2381b1a6eada021f5
[Bug] Bot only crawling about 30 mods at the moment ## Problem 1. Go to http://status.ksp-ckan.space/ 2. Sort by Last Checked 3. Scroll down to where the times jump from short to long; currently it's here: ![image](https://user-images.githubusercontent.com/1559108/67504543-309dad80-f64f-11e9-99f1-ae192ea2275e.p...
diff --git a/netkan/netkan/metadata.py b/netkan/netkan/metadata.py index 0f8a6ca..f598a46 100644 --- a/netkan/netkan/metadata.py +++ b/netkan/netkan/metadata.py @@ -16,8 +16,11 @@ class Netkan: self.contents = contents self._raw = json.loads(self.contents) # Extract kref_src + kref_id fro...
Kattis__problemtools-253
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "problemtools/problem2pdf.py:convert" ], "edited_modules": [ "problemtools/problem2pdf.py:convert" ] }, "file": "problemtools/problem2pdf.py" }, { "changes": { ...
Kattis/problemtools
563f0d10c1fd83d985ee7d1f7ad412bb3481f60e
UnicodeDecodeError problems due to non-parseable _JUNK_CASES When validating problems with the current develop branch, I get the following issue: `UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 137: invalid start byte`, thrown in `verifyproblem.py", line 1141, in __get_feedback: all_feedback.a...
diff --git a/problemtools/problem2pdf.py b/problemtools/problem2pdf.py index 3671bcf..583e8ac 100644 --- a/problemtools/problem2pdf.py +++ b/problemtools/problem2pdf.py @@ -9,12 +9,10 @@ from . import template def convert(options: argparse.Namespace) -> bool: - problem = os.path.realpath(options.problem) ...
Kinto__kinto-3425
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "kinto/core/resource/__init__.py:Resource._extract_filters" ], "edited_modules": [ "kinto/core/resource/__init__.py:Resource" ] }, "file": "kinto/core/resource/__init__....
Kinto/kinto
b68cae5a274595887be91e06317c01edb1c63835
Crash with invalid integer value for `gt_last_modified` For example: ``` querystring = { _sort: "last_modified", gt_last_modified: "171103608603432920249' or '7127'='7127" } ``` crashes with ``` DataError (psycopg2.errors.NumericValueOutOfRange) value "171103608603432920249' or '7127'='7127" is out ...
diff --git a/kinto/core/resource/__init__.py b/kinto/core/resource/__init__.py index 994f43cf..f8aaa7b1 100644 --- a/kinto/core/resource/__init__.py +++ b/kinto/core/resource/__init__.py @@ -1058,6 +1058,10 @@ class Resource: def _extract_filters(self): """Extracts filters from QueryString parameters.""...
Kinto__kinto-3477
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "kinto/core/initialization.py:setup_metrics" ], "edited_modules": [ "kinto/core/initialization.py:setup_metrics" ] }, "file": "kinto/core/initialization.py" }, { ...
Kinto/kinto
10cca5fa71dee834068f9405cf6f7df28c14f7d4
Crash with `psycopg2.errors.InvalidTextRepresentation` (bigint) with last_modified = `1733242309482"` ``` (psycopg2.errors.InvalidTextRepresentation) invalid input syntax for type bigint: "1733242309482"" LINE 7: AND as_epoch(last_modified) > '1733242309482"' ...
diff --git a/kinto/core/initialization.py b/kinto/core/initialization.py index 397dc7ce..0b8fa7ad 100644 --- a/kinto/core/initialization.py +++ b/kinto/core/initialization.py @@ -1,6 +1,7 @@ import logging import random import re +import urllib.parse import warnings from datetime import datetime from secrets impo...
Kinto__kinto-http.py-188
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "kinto_http/session.py:Session.request" ], "edited_modules": [ "kinto_http/session.py:Session" ] }, "file": "kinto_http/session.py" } ]
Kinto/kinto-http.py
ab2f0502c914d031319875379532fd57d50b8870
json encoding of querystring parameters fails For instance: /v1/buckets/bid/collections/cid/records?in_id=["be503c41-3aa6-42e1-9214-0d00ee0ce9ac","51f65e45-b17c-4dc1-970f-1da8f219824f","b4bb1714-cfe3-4cde-9903-66c47b4ce2f2"]&_sort=-published_date&max_published_date="2018-11-12T15:52:00"&language=fr&_limit=100 Doe...
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index f7b1b02..ccff6d3 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -4,10 +4,12 @@ CHANGELOG This document describes changes between each past release. -10.2.0 (unreleased) +10.1.1 (unreleased) =================== -- Nothing changed yet. +**Bug fixes** + +- Fix JS...
Kinto__kinto-http.py-189
[ { "changes": { "added_entities": [ "kinto_http/__init__.py:Client.get_paginated_records", "kinto_http/__init__.py:Client._paginated_generator" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "kinto_http/__init__.py:Client" ] ...
Kinto/kinto-http.py
de4fcceefd7b4794093ed53899f2212a29e27ecc
Expose methods for paginated lists Currently there is no way to consume the content of individual pages using `get_records()`. We could add a generator `get_paginated_records()` that would yield individual pages... ```py for page_records in client.get_paginated_records(_limit=100): print(len(page_records))...
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 0ac31c9..c982642 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -7,7 +7,9 @@ This document describes changes between each past release. 10.2.0 (unreleased) =================== -- Nothing changed yet. +**New feature** + +- Created new method on client to get pagina...
Kinto__kinto-http.py-214
[ { "changes": { "added_entities": [ "kinto_http/__init__.py:Client.get_history", "kinto_http/__init__.py:Client.purge_history" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "kinto_http/__init__.py:Endpoints", "kinto_http/__ini...
Kinto/kinto-http.py
83b66fbe9e037827cf0a77271d9c24ed50334b6d
Add support of history plugin See https://github.com/Kinto/kinto-http.js/#listing-bucket-history * By bucket * Filtrable * Sortable
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index a07b4bc..e76fadc 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -7,7 +7,9 @@ This document describes changes between each past release. 10.5.0 (unreleased) =================== -- Nothing changed yet. +**New features** + +- Add history support (fixes #112), Thanks ...
Kinto__kinto-http.py-384
[ { "changes": { "added_entities": null, "added_modules": [ "src/kinto_http/__init__.py:TokenAuth" ], "edited_entities": null, "edited_modules": [ "src/kinto_http/__init__.py:BearerTokenAuth" ] }, "file": "src/kinto_http/__init__.py" }, { "change...
Kinto/kinto-http.py
f85e012db103285ce838a3817d06e498e9bfa01d
Allow to pass `Basic <value>` as string in `auth` parameter Current we currently support a tuple (`user`, `pass`), or `user:pass` or a `Bearer <value>` string. https://github.com/Kinto/kinto-http.py/blob/409c2e6db280f8cefc0accbe514bcf025f6599e2/src/kinto_http/session.py#L39-L42
diff --git a/src/kinto_http/__init__.py b/src/kinto_http/__init__.py index 87d1c60..9a516ee 100644 --- a/src/kinto_http/__init__.py +++ b/src/kinto_http/__init__.py @@ -18,6 +18,7 @@ logger = logging.getLogger("kinto_http") __all__ = ( "BrowserOAuth", + "TokenAuth", "BearerTokenAuth", "Endpoints", ...
Knio__pynmea2-124
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pynmea2/types/proprietary/ash.py:ASHRATT.match" ], "edited_modules": [ "pynmea2/types/proprietary/ash.py:ASHRATT" ] }, "file": "pynmea2/types/proprietary/ash.py" } ]
Knio/pynmea2
2dab8f59045365463a33013cd1f95140943193fd
Issues with parshing PASHR sentences Hi, Just ran into some troubles when trying to parse an NMEA stream containing PASHR sentences, like below: ``` $PASHR,122144.75,240.68,T,,,,,,,2*04 $PASHR,122144.96,240.30,T,,,,,,,2*04 $PASHR,122145.18,239.91,T,,,,,,,2*06 $PASHR,122145.61,239.04,T,,,,,,,2*04 $PASHR,122145....
diff --git a/pynmea2/types/proprietary/ash.py b/pynmea2/types/proprietary/ash.py index d62a10e..0715bef 100644 --- a/pynmea2/types/proprietary/ash.py +++ b/pynmea2/types/proprietary/ash.py @@ -34,7 +34,7 @@ class ASHRATT(ASH): ''' @staticmethod def match(data): - return re.match(r'^\d{6}\.\d{3}$',...
Kozea__WeasyPrint-1832
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "weasyprint/text/line_break.py:Layout.set_text" ], "edited_modules": [ "weasyprint/text/line_break.py:Layout" ] }, "file": "weasyprint/text/line_break.py" } ]
Kozea/WeasyPrint
11bc4e52e4ba262c472640c1249d8ca918ee90be
Half of word-spacing to a space at the end of a TextBox Hello, I get different results from Chrome and Weasyprint when trying to use word-spacing in text that ends with a space. Weasyprint only adds half of word-spacing to these cases. The following code illustrates the problem. ```html <style type="text/css"> ...
diff --git a/weasyprint/text/line_break.py b/weasyprint/text/line_break.py index f537a033..85e8a2e3 100644 --- a/weasyprint/text/line_break.py +++ b/weasyprint/text/line_break.py @@ -182,11 +182,20 @@ class Layout: add_attr(0, len(bytestring), letter_spacing) if word_spacing: + ...
Kozea__WeasyPrint-1895
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "weasyprint/layout/preferred.py:table_cell_min_content_width" ], "edited_modules": [ "weasyprint/layout/preferred.py:table_cell_min_content_width" ] }, "file": "weasypri...
Kozea/WeasyPrint
2a9a952c356b856ad1f80ddb6d0c93b36ccac46c
Table cell min-width is ignored when another cell has overflowing text Two tables here to compare, note the `min-width` css rule: ```html <head> <style> table td { border: 1px solid black; } table.key-val tr td:nth-child(1) { min-width: 13em; } </style> </head> <body> <table class="key-val"> <tbody> ...
diff --git a/weasyprint/layout/preferred.py b/weasyprint/layout/preferred.py index c508399d..be8150c9 100644 --- a/weasyprint/layout/preferred.py +++ b/weasyprint/layout/preferred.py @@ -225,8 +225,15 @@ def column_group_content_width(context, box): def table_cell_min_content_width(context, box, outer): """Retu...
Kozea__WeasyPrint-1899
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "weasyprint/formatting_structure/boxes.py:ParentBox.page_values" ], "edited_modules": [ "weasyprint/formatting_structure/boxes.py:ParentBox" ] }, "file": "weasyprint/for...
Kozea/WeasyPrint
2a9a952c356b856ad1f80ddb6d0c93b36ccac46c
Problem with named pages and out of normal page flow elements ## Problem When rendering following HTML with weasyprint, the CSS for `named-page` is not applied on the first page. The first page is blue (from the default `@page` rule), but it contains content of the named page. ```html <html> <head> ...
diff --git a/weasyprint/formatting_structure/boxes.py b/weasyprint/formatting_structure/boxes.py index 93c378ff..b3154079 100644 --- a/weasyprint/formatting_structure/boxes.py +++ b/weasyprint/formatting_structure/boxes.py @@ -377,13 +377,17 @@ class ParentBox(Box): def page_values(self): start_value, e...
Kozea__WeasyPrint-1934
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "weasyprint/layout/column.py:columns_layout" ], "edited_modules": [ "weasyprint/layout/column.py:columns_layout" ] }, "file": "weasyprint/layout/column.py" } ]
Kozea/WeasyPrint
e1f4ef8fd3810b0fe0c5b885db62bc6f4e2a9ba5
Balance columns before "column-span: all" Is the [column-span](https://www.w3.org/TR/css-multicol-1/#column-span) attribute correctly handled? In my experimentation it seems just ignored, but maybe I am missing something. I used it as a property of an img tag.
diff --git a/weasyprint/layout/column.py b/weasyprint/layout/column.py index deb7e17f..6f6e2c6d 100644 --- a/weasyprint/layout/column.py +++ b/weasyprint/layout/column.py @@ -261,7 +261,8 @@ def columns_layout(context, box, bottom_space, skip_stack, containing_block, # Everything fits, start expand...
Kozea__WeasyPrint-2387
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "weasyprint/formatting_structure/build.py:wrap_improper", "weasyprint/formatting_structure/build.py:flex_children", "weasyprint/formatting_structure/build.py:grid_children" ], ...
Kozea/WeasyPrint
9dc5ac4337b09df8c28b6d678485a4894d354970
Improve flex layout *This meta-issue is sponsored by 💖 [the NLnet Foundation](https://nlnet.nl/project/Weasyprint/) 💖.* Let’s rewrite the whole Flex layout, and fix (hopefully) all these old and dirty issues! All the work is done in the [`flex` branch](https://github.com/Kozea/WeasyPrint/tree/flex) until it is merg...
diff --git a/weasyprint/formatting_structure/build.py b/weasyprint/formatting_structure/build.py index f2a842d3..c3c39176 100644 --- a/weasyprint/formatting_structure/build.py +++ b/weasyprint/formatting_structure/build.py @@ -724,9 +724,7 @@ def is_whitespace(box, _has_non_whitespace=re.compile('\\S').search): de...
Kozea__WeasyPrint-2398
[ { "changes": { "added_entities": [ "weasyprint/layout/inline.py:count_spaces" ], "added_modules": [ "weasyprint/layout/inline.py:count_spaces" ], "edited_entities": [ "weasyprint/layout/inline.py:justify_line", "weasyprint/layout/inline.py:count_expa...
Kozea/WeasyPrint
20197135f56dcd886248e671058933c14cdf5f78
"badly scaped name" causes PDF merge issues I tried to merge PDFs generated by WeasyPrint with `cpdf` v2.4 and v2.8 and ran into an error: ```txt Recovering from Lex error: Failure("int_of_string") Malformed file: odd length dictionary. Carrying on... <repeats> ``` When combined, the resulting PDF was missing the "ma...
diff --git a/weasyprint/layout/inline.py b/weasyprint/layout/inline.py index da8a4405..d67806d2 100644 --- a/weasyprint/layout/inline.py +++ b/weasyprint/layout/inline.py @@ -1119,17 +1119,18 @@ def text_align(context, line, available_width, last): def justify_line(context, line, extra_width): # TODO: We should u...
Krukov__cashews-171
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "cashews/wrapper/tags.py:TagsRegistry.get_key_tags" ], "edited_modules": [ "cashews/wrapper/tags.py:TagsRegistry" ] }, "file": "cashews/wrapper/tags.py" } ]
Krukov/cashews
0b64ec98052f6dcbb3be0962ff2b8f54b96f076d
Templated tags with None values throw TagNotRegisteredError Hi, first thanks for the great library! Love the cutting edge features and performance. ## What is the Issue When we register a tag using the `@cache` decorator, and that tag is a template, and then we call the cached function with a `None` value for som...
diff --git a/cashews/wrapper/tags.py b/cashews/wrapper/tags.py index a317a04..d4b23eb 100644 --- a/cashews/wrapper/tags.py +++ b/cashews/wrapper/tags.py @@ -23,7 +23,8 @@ class TagsRegistry: for tag, patterns in self._registry_template.items(): match = self._match_patterns(key, patterns) ...
KyleJamesWalker__yamlsettings-36
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "setup.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "yamlsettings/helpers.py:upd...
KyleJamesWalker/yamlsettings
9a2c86590f867345b37e2dd91d8ecd2ef645c7d2
Replace all non-variable characters to underscore in update_from_env For example: ```python3 import os import yamlsettings from yamlsettings.yamldict import YAMLDict os.environ['FOO_BAR'] = 'barbaz' settings = YAMLDict({'foo-bar': None}) yamlsettings.update_from_env(settings) assert settings['foo-bar'] ==...
diff --git a/setup.py b/setup.py index d5957bc..51cbf92 100644 --- a/setup.py +++ b/setup.py @@ -26,7 +26,7 @@ requirements.update(all=sorted(set().union(*requirements.values()))) setup( name='yamlsettings', - version='2.0.3', + version='2.1.0', description='Yaml Settings Configuration Module', ...
LKI__chinese-calendar-55
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "chinese_calendar/constants.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "chines...
LKI/chinese-calendar
93cbba3b4d33a4a16bc09bf43a29f19926b2b4a0
2020国务院新的节假日来了 http://www.gov.cn/zhengce/content/2020-01/27/content_5472352.htm
diff --git a/chinese_calendar/constants.py b/chinese_calendar/constants.py index 5ec57ed..2bce1a7 100644 --- a/chinese_calendar/constants.py +++ b/chinese_calendar/constants.py @@ -441,6 +441,9 @@ holidays = { datetime.date(year=2020, month=1, day=28): Holiday.spring_festival.value, datetime.date(year=2020, m...
LLNL__certipy-9
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "certipy/__init__.py" }, { "changes": { "added_entities": [ "certipy/certipy.py:_make_oid_map", "certipy/certipy.py:_altname" ...
LLNL/certipy
8c927a6b071b069265e3f90c99e31a3f67cedcd2
`cryptography` instead of `pyopenssl`? Would you accept a pull request for using `cryptography` instead of `pyopenssl`? Could it be done? I read that "The Python Cryptographic Authority strongly suggests the use of [pyca/cryptography](https://github.com/pyca/cryptography) where possible."
diff --git a/certipy/__init__.py b/certipy/__init__.py index 50a0cef..9e43c3f 100644 --- a/certipy/__init__.py +++ b/certipy/__init__.py @@ -11,11 +11,6 @@ ############################################################################### from certipy.certipy import ( - TLSFileType, TLSFile, TLSFileBundle, CertStore...
LLNL__hatchet-270
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "docs/examples/read/dag_literal.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "ha...
LLNL/hatchet
a47eb22321185a2d4770ef174129bda0a7eee5c8
Update the Query Language High-Level API to Allow for Filtering with non-DataFrame Data Currently, the filter field (Python dict) for a query node in the high-level query language API must be keyed on a column of the `pandas.DataFrame` stored within the `GraphFrame`. In the future, these filters should be allowed to be...
diff --git a/docs/examples/read/dag_literal.py b/docs/examples/read/dag_literal.py index 38af499..1b6e31f 100755 --- a/docs/examples/read/dag_literal.py +++ b/docs/examples/read/dag_literal.py @@ -10,36 +10,44 @@ if __name__ == "__main__": [ { "name": "foo", + "type...
LLNL__hatchet-294
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "hatchet/external/console.py:ConsoleRenderer.render" ], "edited_modules": [ "hatchet/external/console.py:ConsoleRenderer" ] }, "file": "hatchet/external/console.py" },...
LLNL/hatchet
ef433f509c733fe927445e0bc6e068c2e03e7164
improve error messages in tree() For example, if a specified `metric_column` doesn't exist in the dataframe, raise `KeyError()` with a more user-friendly error. Possibly add other error messages for deprecated parameters as well.
diff --git a/hatchet/external/console.py b/hatchet/external/console.py index 4be2194..4d89370 100644 --- a/hatchet/external/console.py +++ b/hatchet/external/console.py @@ -59,6 +59,13 @@ class ConsoleRenderer: self.highlight = kwargs["highlight_name"] self.invert_colormap = kwargs["invert_colormap"] ...
LLNL__hatchet-39
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "hatchet/query.py:QueryMatcher._add_node", "hatchet/query.py:QueryMatcher._match_1_or_more", "hatchet/query.py:QueryMatcher._match_pattern" ], "edited_modules": [ "hat...
LLNL/hatchet
f1a82770c6f5b535ebe30162e814622ab76734de
Match 1 or more (+) wildcard/quantifier doesn't work when starting a query Kudos to @vanessalama09 for finding this. When using the "+" wildcard/quantifier to start a query, the query system will fail to find any matches to the corresponding query node. This is due to the "match 1" part of the "match 1 or more" bein...
diff --git a/hatchet/query.py b/hatchet/query.py index fda7a46..3c3a4c7 100644 --- a/hatchet/query.py +++ b/hatchet/query.py @@ -462,8 +462,11 @@ class QueryMatcher(AbstractQuery): if isinstance(wildcard_spec, int): for i in range(wildcard_spec): self.query_pattern.append((".", fi...
LLNL__hatchet-66
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "hatchet/external/console.py:ConsoleRenderer.render" ], "edited_modules": [ "hatchet/external/console.py:ConsoleRenderer" ] }, "file": "hatchet/external/console.py" },...
LLNL/hatchet
057ce704262fd1e760e57d7fb54a6e34a82d1cda
Toggle on/off header in tree printout
diff --git a/hatchet/external/console.py b/hatchet/external/console.py index ebef768..e5b3122 100644 --- a/hatchet/external/console.py +++ b/hatchet/external/console.py @@ -44,7 +44,12 @@ class ConsoleRenderer: self.visited = [] def render(self, roots, dataframe, **kwargs): - result = self.render...
LSSTDESC__BlendingToolKit-485
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "btk/draw_blends.py:CosmosGenerator.__init__", "btk/draw_blends.py:CosmosGenerator._check_compatibility", "btk/draw_blends.py:CosmosGenerator.render_single" ], "edited_modules...
LSSTDESC/BlendingToolKit
3eebcbdd43a09a562fbf9c42d5f59c5be51dbc22
add a unit test on drawing real galaxies
diff --git a/btk/draw_blends.py b/btk/draw_blends.py index 2486a5e..db14b70 100644 --- a/btk/draw_blends.py +++ b/btk/draw_blends.py @@ -14,7 +14,7 @@ from tqdm.auto import tqdm from btk.blend_batch import BlendBatch, MultiResolutionBlendBatch from btk.blend_generator import BlendGenerator -from btk.catalog import ...
LSSTDESC__healsparse-157
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "healsparse/io_coverage.py:_read_coverage" ], "edited_modules": [ "healsparse/io_coverage.py:_read_coverage" ] }, "file": "healsparse/io_coverage.py" } ]
LSSTDESC/healsparse
833509256873ae92db52af8e15e17ff9d9559a01
healsparse won't read a `pathlib.Path` When trying to read from a `pathlib.Path` object, healsparse will throw an error about only supporting fits and parquet files; e.g., ``` (Pdb) hsp_plus PosixPath('/pscratch/sd/s/smau/y6-image-sims/debug-cosmos-rand-piff-median_color-seed/DES0608-5414/16200/plus/des-pizza-slices...
diff --git a/healsparse/io_coverage.py b/healsparse/io_coverage.py index 2129ef8..8d492b4 100644 --- a/healsparse/io_coverage.py +++ b/healsparse/io_coverage.py @@ -1,4 +1,5 @@ import os +import pathlib from .fits_shim import HealSparseFits from .io_coverage_fits import _read_coverage_fits @@ -30,6 +31,9 @@ def _r...
LSSTDESC__sacc-68
[ { "changes": { "added_entities": [ "sacc/sacc.py:Sacc.rename_tracer" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "sacc/sacc.py:Sacc" ] }, "file": "sacc/sacc.py" } ]
LSSTDESC/sacc
90cbb05badb2c4f2f8c041f2b863e53fabd9e9d6
Add method to rename tracers I would find be very convenient to have a method to rename tracers (and the tracer combinations involved). If it exists, I missed it.
diff --git a/sacc/sacc.py b/sacc/sacc.py index 4c134ee..96bfe48 100644 --- a/sacc/sacc.py +++ b/sacc/sacc.py @@ -641,6 +641,33 @@ class Sacc: indices = self.indices(data_type=data_type) return unique_list(self.data[i].tracers for i in indices) + def rename_tracer(self, name, new_name): + "...
LSSTDESC__sacc-69
[ { "changes": { "added_entities": [ "sacc/sacc.py:Sacc.remove_tracers", "sacc/sacc.py:Sacc.keep_tracers" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "sacc/sacc.py:Sacc" ] }, "file": "sacc/sacc.py" } ]
LSSTDESC/sacc
f14fca7098bcf393586c9e0e464814f41e973453
Add method to remove tracer (and the combinations that involve it) I would find very convenient to have a method to remove a tracer and its tracer combinations. At this moment the only way I have found is: 1. loop over all the tracer combinations, check if the selected tracer is present and then remove the combinatio...
diff --git a/sacc/sacc.py b/sacc/sacc.py index 4242d03..f20fffc 100644 --- a/sacc/sacc.py +++ b/sacc/sacc.py @@ -641,6 +641,46 @@ class Sacc: indices = self.indices(data_type=data_type) return unique_list(self.data[i].tracers for i in indices) + def remove_tracers(self, names): + """ + ...
LSSTDESC__sacc-79
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "sacc/sacc.py:Sacc.add_covariance" ], "edited_modules": [ "sacc/sacc.py:Sacc" ] }, "file": "sacc/sacc.py" } ]
LSSTDESC/sacc
64e6fae3f7bad5151815000ba49aa7f8f6585a5f
add_covariance confusing I find `add_covariance` a bit confusing. From time to time, I find myself rechecking whether `add_covariance` overwrites the current covariance or if it adds the new covariance to the previous one. I think it would be great to check if `has_covariance` is `True` and, if so, raise an Error unles...
diff --git a/sacc/sacc.py b/sacc/sacc.py index fcf963d..1cebbba 100644 --- a/sacc/sacc.py +++ b/sacc/sacc.py @@ -198,7 +198,7 @@ class Sacc: d = DataPoint(data_type, tracers, value, **tags) self.data.append(d) - def add_covariance(self, covariance): + def add_covariance(self, covariance, overw...
LSYS__forestplot-61
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "forestplot/__init__.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "forestplot/ar...
LSYS/forestplot
10722bade9174f54dc0d4605c091428baed74504
Allow no drawing of CI Would be nice to allow no drawing of the confidence intervals directly from the API. (A hack is to convert the ll and hl to be the same as the estimate.) One solution is to allow `ll` *and* `hl` to be `None`. Another solution is a new option `drawci` that is `True` by default but can be set...
diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 7b3c420..49acf7b 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -2,7 +2,7 @@ name: CI on: push: - branches: [ "main", "docs", "patch", "feature" ] + branches: [ "main", "docs", "patch", "feature", "nodrawci" ] ...
LeMyst__WikibaseIntegrator-58
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "wikibaseintegrator/wbi_core.py:ItemEngine.__init__", "wikibaseintegrator/wbi_core.py:ItemEngine.set_aliases" ], "edited_modules": [ "wikibaseintegrator/wbi_core.py:ItemEngine...
LeMyst/WikibaseIntegrator
30c2f766931f442a2ec7160073331811859a840d
Bug: when ItemEngine data= is given an object instead of a list of objects it spews a could not sort error It should check if it got a list and output a helpful error message instead
diff --git a/wikibaseintegrator/wbi_core.py b/wikibaseintegrator/wbi_core.py index 1fdf93a..0b94f3e 100644 --- a/wikibaseintegrator/wbi_core.py +++ b/wikibaseintegrator/wbi_core.py @@ -37,7 +37,7 @@ class ItemEngine(object): :type new_item: True or False :param data: a dictionary with property strings...
LeMyst__WikibaseIntegrator-59
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "wikibaseintegrator/wbi_core.py:ItemEngine.__init__", "wikibaseintegrator/wbi_core.py:ItemEngine.set_aliases" ], "edited_modules": [ "wikibaseintegrator/wbi_core.py:ItemEngine...
LeMyst/WikibaseIntegrator
30c2f766931f442a2ec7160073331811859a840d
This seems wrong. What if I modify a Lexeme? https://github.com/LeMyst/WikibaseIntegrator/blob/30c2f766931f442a2ec7160073331811859a840d/wikibaseintegrator/wbi_core.py#L905 Wouldn't it return the LID then?
diff --git a/wikibaseintegrator/wbi_core.py b/wikibaseintegrator/wbi_core.py index 1fdf93a..d9bebb5 100644 --- a/wikibaseintegrator/wbi_core.py +++ b/wikibaseintegrator/wbi_core.py @@ -37,7 +37,7 @@ class ItemEngine(object): :type new_item: True or False :param data: a dictionary with property strings...
LeMyst__WikibaseIntegrator-785
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": [ "wikibaseintegrator/wbi_enums.py:WikibaseTimePrecision" ] }, "file": "wikibaseintegrator/wbi_enums.py" } ]
LeMyst/WikibaseIntegrator
389a84d442c4f8e852ceb03e9192cbe97d08820e
Add missing WikibaseTimePrecision values Currently the time precision values `[1,2,5]` are missing in WikibaseTimePrecision leading to errors when editing pages that contain these precision values in one of their snaks. https://github.com/LeMyst/WikibaseIntegrator/blob/389a84d442c4f8e852ceb03e9192cbe97d08820e/wiki...
diff --git a/wikibaseintegrator/wbi_enums.py b/wikibaseintegrator/wbi_enums.py index b1ee1ee..b238da4 100644 --- a/wikibaseintegrator/wbi_enums.py +++ b/wikibaseintegrator/wbi_enums.py @@ -68,6 +68,9 @@ class WikibaseTimePrecision(Enum): DECADE = 8 CENTURY = 7 MILLENNIUM = 6 + TEN_THOUSAND_YEARS = 5 ...
Learnosity__learnosity-sdk-python-81
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "learnosity_sdk/_version.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "learnosit...
Learnosity/learnosity-sdk-python
ac048d64454c6edd5e6b3f78b61015236ef2c7a7
Type stubs Hey Learnosity team, I was wondering if there are any plans to publish type stubs for this repository. I work in a Python environment with strict type-checking using a third party type-checker ([pyright](https://github.com/microsoft/pyright)). It's a pretty small repository so I'd be happy to PR some ty...
diff --git a/ChangeLog.md b/ChangeLog.md index 5296103..2c3b2d3 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -7,8 +7,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] -## Fixed -- Fixed quickstart tutorial when installed via pip +## [v0.3.9] - 2024-08-29 +###...
LettError__ufoProcessor-34
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "Lib/ufoProcessor/__init__.py:swapGlyphNames" ], "edited_modules": [ "Lib/ufoProcessor/__init__.py:swapGlyphNames" ] }, "file": "Lib/ufoProcessor/__init__.py" } ]
LettError/ufoProcessor
88323a406152636f60f78e46cd41106445915877
Swapping glyphs deletes anchors 1. ufoProcess [SwapGlyphNames.zip](https://github.com/LettError/ufoProcessor/files/4129654/SwapGlyphNames.zip) 2. Compare anchors of `a` and `a.swap` in C.ufo and D.ufo Cosimo fixed this for fontmake over at https://github.com/googlefonts/fontmake/pull/632.
diff --git a/Lib/ufoProcessor/__init__.py b/Lib/ufoProcessor/__init__.py index 4d5ec8c..3357fe9 100644 --- a/Lib/ufoProcessor/__init__.py +++ b/Lib/ufoProcessor/__init__.py @@ -151,6 +151,10 @@ def swapGlyphNames(font, oldName, newName, swapNameExtension = "_______________s # park the old glyph if not swapNam...
Libensemble__libensemble-187
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "libensemble/balsam_controller.py:BalsamJobController.__init__" ], "edited_modules": [ "libensemble/balsam_controller.py:BalsamJobController" ] }, "file": "libensemble/b...
Libensemble/libensemble
f3f9c31756693e2c4d79905022845d7153a6719d
Fix LSF resource detection for large jobs on LSF systems (e.g. Summit) When LSF runs a job, the LSB_HOSTS variable is set to the names of the hosts running the batch job. For a parallel batch job, LSB_HOSTS contains the complete list of hosts that LSF has allocated to that job. However, If the size of LSB_HOSTS exce...
diff --git a/libensemble/balsam_controller.py b/libensemble/balsam_controller.py index 710027e3..a409b2c6 100644 --- a/libensemble/balsam_controller.py +++ b/libensemble/balsam_controller.py @@ -141,7 +141,8 @@ class BalsamJobController(MPIJobController): """ def __init__(self, auto_resources=True, central_...
LibertyAces__BitSwanPump-51
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "bspump/common/iterator.py:IteratorSource.cycle" ], "edited_modules": [ "bspump/common/iterator.py:IteratorSource" ] }, "file": "bspump/common/iterator.py" } ]
LibertyAces/BitSwanPump
5fb9f31d0aec0ff6d32c97a45c6a53abd41ab2cf
IteratorSource fails with TypeError `Pipeline 'Pipeline' stopped due to a processing error: 'list_iterator' object is not callable (<class 'TypeError'>)`
diff --git a/bspump/common/iterator.py b/bspump/common/iterator.py index 66353c44..575ab6d4 100644 --- a/bspump/common/iterator.py +++ b/bspump/common/iterator.py @@ -15,7 +15,7 @@ class IteratorSource(TriggerSource): async def cycle(self, *args, **kwags): - for event in self.Iterator(): + for event in self.Ite...
LibertyAces__BitSwanPump-53
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "bspump/matrix/matrix.py:NamedMatrix.close_row" ], "edited_modules": [ "bspump/matrix/matrix.py:NamedMatrix" ] }, "file": "bspump/matrix/matrix.py" } ]
LibertyAces/BitSwanPump
5fb9f31d0aec0ff6d32c97a45c6a53abd41ab2cf
[TimeWindowMatrix] close_row() got an unexpected keyword argument 'clear'
diff --git a/bspump/matrix/matrix.py b/bspump/matrix/matrix.py index cd5929e9..78c8e035 100644 --- a/bspump/matrix/matrix.py +++ b/bspump/matrix/matrix.py @@ -218,8 +218,8 @@ class NamedMatrix(Matrix): return row_index - def close_row(self, row_index: int): - super().close_row(row_index) + def close_row(self, r...
LibertyAces__BitSwanPump-57
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "bspump/pipeline.py:Pipeline.set_error" ], "edited_modules": [ "bspump/pipeline.py:Pipeline" ] }, "file": "bspump/pipeline.py" } ]
LibertyAces/BitSwanPump
5fb9f31d0aec0ff6d32c97a45c6a53abd41ab2cf
[MetricsCounter] Metric "error" is never incremented There is unreachable code in https://github.com/LibertyAces/BitSwanPump/blob/372a59237e57089e44954a69fecc8c0f886291e3/bspump/pipeline.py#L176
diff --git a/bspump/pipeline.py b/bspump/pipeline.py index d4cab73d..ef75d40f 100644 --- a/bspump/pipeline.py +++ b/bspump/pipeline.py @@ -172,7 +172,7 @@ They are simply passed as an list of sources to a pipeline `build()` method. self.MetricsCounter.add('warning', 1) self.PubSub.publish("bspump.pipeline.war...
LibraryOfCongress__bagit-python-72
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "bagit.py:make_bag" ], "edited_modules": [ "bagit.py:make_bag" ] }, "file": "bagit.py" }, { "changes": { "added_entities": null, "added_modules": nul...
LibraryOfCongress/bagit-python
5489148ab1f365fcd518bcbc626a9f84b22640a2
Bag-Software-Agent include version? It would be nice if the default Bag-Software-Agent had a version in it. Currently it looks like: bagit.py <http://github.com/libraryofcongress/bagit-python> But maybe something like this would be better, for discovering bags created with (gasp) a version of bagit.py that ha...
diff --git a/bagit.py b/bagit.py index 18c61da..d97b4b5 100755 --- a/bagit.py +++ b/bagit.py @@ -47,6 +47,8 @@ from os.path import abspath, isdir, isfile, join LOGGER = logging.getLogger(__name__) +VERSION = '1.5.4' + # standard bag-info.txt metadata STANDARD_BAG_INFO_HEADERS = [ 'Source-Organization', @@ -...
Lightning-AI__litdata-461
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/litdata/streaming/client.py:S3Client._create_client" ], "edited_modules": [ "src/litdata/streaming/client.py:S3Client" ] }, "file": "src/litdata/streaming/client.py...
Lightning-AI/litdata
a147df6066923a88323ceb2cba977990d03f09d1
s3 client expire after 1 hour: an error occurred (400) when calling the headobject operation: bad request" due to download_chunk_from_index(chunk_index) ## 🐛 Bug <!-- A clear and concise description of what the bug is. --> I am training with a large tabular dataset (~510m+) rows using PyTorch DDP. The dataset has bee...
diff --git a/src/litdata/streaming/client.py b/src/litdata/streaming/client.py index 68c1491..e9bb5be 100644 --- a/src/litdata/streaming/client.py +++ b/src/litdata/streaming/client.py @@ -38,17 +38,19 @@ class S3Client: ) if has_shared_credentials_file or not _IS_IN_STUDIO or self._storage_options:...
Lightning-AI__litdata-481
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/litdata/streaming/reader.py:_get_folder_size" ], "edited_modules": [ "src/litdata/streaming/reader.py:_get_folder_size" ] }, "file": "src/litdata/streaming/reader.p...
Lightning-AI/litdata
0ec5a86a4e7c2193f2546451a39f0f7df73b203a
Litdata optimise doesn't serialise boolean values ## 🐛 Bug ### To Reproduce Steps to reproduce the behavior... - Try to encode a boolean value with litdata.optimize(...) <details> <summary>Code sample</summary> ```python import litdata as ld def processor(i): return {'index': i, 'col1': "example1", 'col2'...
diff --git a/src/litdata/streaming/reader.py b/src/litdata/streaming/reader.py index e3f76b7..dd625a6 100644 --- a/src/litdata/streaming/reader.py +++ b/src/litdata/streaming/reader.py @@ -446,7 +446,8 @@ def _get_folder_size(path: str, config: ChunksConfig) -> int: if filename in config.filename_to_size_map: ...
Lightning-AI__litdata-499
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/litdata/streaming/reader.py:_get_folder_size" ], "edited_modules": [ "src/litdata/streaming/reader.py:_get_folder_size" ] }, "file": "src/litdata/streaming/reader.p...
Lightning-AI/litdata
43937d4f73a6814f6792daf2b51ba45bf186e647
Suddenly receiving messages that Chunk-[number]-[number].bin.[random-string] is not a valid chunk file. ## Issue When loading data using my data loader with a streaming dataset from S3, I'm receiving multiple warnings: ``` Skipping chunk-1-153.bin.7e0CabeA: Not a valid chunk file. It will be excluded from cache size c...
diff --git a/src/litdata/streaming/reader.py b/src/litdata/streaming/reader.py index 3c7df5a..5fdcd87 100644 --- a/src/litdata/streaming/reader.py +++ b/src/litdata/streaming/reader.py @@ -441,21 +441,50 @@ class BinaryReader: def _get_folder_size(path: str, config: ChunksConfig) -> int: - """Collect the size o...
Lightning-AI__litdata-505
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "src/litdata/constants.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_mo...
Lightning-AI/litdata
a2b25706a993f171982dbbf19dd02473495968cb
Add streaming support for huggingface parquet dataset similar to chunk stream ## 🚀 Feature Request **Add Streaming Support for Hugging Face Parquet Datasets Similar to Chunk-Based Streaming** ### Motivation Currently, the entire dataset must be downloaded before indexing, resulting in significant waiting time ...
diff --git a/src/litdata/constants.py b/src/litdata/constants.py index 49559d7..018271a 100644 --- a/src/litdata/constants.py +++ b/src/litdata/constants.py @@ -39,6 +39,7 @@ _AZURE_STORAGE_AVAILABLE = RequirementCache("azure.storage.blob") _TQDM_AVAILABLE = RequirementCache("tqdm") _LIGHTNING_SDK_AVAILABLE = Require...
LonamiWebs__Telethon-3885
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "telethon/helpers.py:strip_text" ], "edited_modules": [ "telethon/helpers.py:strip_text" ] }, "file": "telethon/helpers.py" } ]
LonamiWebs/Telethon
066820900dee7abb3ba091e716338a2fbb3caa14
0-length `MessageEntity` is no longer valid but MD/HTML parser still produce them Formerly, Telegram simply ignored 0-length `MessageEntity`, but several days before, Telegram has silently changed its server-side behavior to throw an `RPCError 400: ENTITY_BOUNDS_INVALID`. However, the Markdown and HTML parsers of Telet...
diff --git a/telethon/helpers.py b/telethon/helpers.py index 6c782b0b..aac058b0 100644 --- a/telethon/helpers.py +++ b/telethon/helpers.py @@ -64,40 +64,74 @@ def within_surrogate(text, index, *, length=None): def strip_text(text, entities): """ - Strips whitespace from the given text modifying the provided ...
LordGolias__sqf-47
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "sqf/analyzer.py:Analyzer.execute_single" ], "edited_modules": [ "sqf/analyzer.py:Analyzer" ] }, "file": "sqf/analyzer.py" } ]
LordGolias/sqf
a9a1de31e439742cc5391c6ca7e4cd7f2c2bdf15
scope warning when using _this in spawned code block `[2,13]:warning:Local variable "_this" is not from this scope (not private)` when running sqflint over ```sqf _this spawn { hint str _this; }; ``` it does *not* complain when the code block is *call*ed, though.
diff --git a/sqf/analyzer.py b/sqf/analyzer.py index 1c55885..b4ceea7 100644 --- a/sqf/analyzer.py +++ b/sqf/analyzer.py @@ -426,7 +426,7 @@ class Analyzer(BaseInterpreter): elif case_found.keyword == Keyword('catch'): extra_scope = {'_exception': Anything()} elif case_found.k...
Lucas-C__pre-commit-hooks-98
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pre_commit_hooks/insert_license.py:try_update_year_range" ], "edited_modules": [ "pre_commit_hooks/insert_license.py:try_update_year_range" ] }, "file": "pre_commit_hoo...
Lucas-C/pre-commit-hooks
b26c56de7b79689a9e418a755133f17c8a127ad0
[Enhancement] Update multiple licence year ends in one run. I have two lines with the licence year in my headers: ```text /* Copyright (c) 2012-2023 Dummy */ /*********************************************/ /* @copyright Copyright (c) 2012-2023 Dummy */ ``` On the first pre-commit execution, the ...
diff --git a/pre_commit_hooks/insert_license.py b/pre_commit_hooks/insert_license.py index 42a01b1..19c9929 100644 --- a/pre_commit_hooks/insert_license.py +++ b/pre_commit_hooks/insert_license.py @@ -396,14 +396,15 @@ def try_update_year_range( :return: source file contents and a flag indicating update """ ...
Luke-Poeppel__decitala-193
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "decitala/search.py:Extraction.split", "decitala/search.py:frame_lookup" ], "edited_modules": [ "decitala/search.py:Extraction", "decitala/search.py:frame_lookup" ...
Luke-Poeppel/decitala
48a56c8a9d39263ad5fe73bc4528c98a950453c6
Need for `fragment` and `frag_type` in `Extraction`? Both shouldn't be needed. The `frag_type` is a class attribute of the `fragment`. https://github.com/Luke-Poeppel/decitala/blob/681b1158faeb19f4cd82573f3bcd9fb411560b35/decitala/search.py#L48-L52
diff --git a/CHANGELOG.md b/CHANGELOG.md index db09d9c..3328c92 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,9 @@ First stable release. #### Changed - Return type for `hm_utils.pc_counter` is now either a tone counter or the sum of the quarter length values associated with each pitch class; any normaliza...
Luke-Poeppel__decitala-233
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "decitala/hash_table.py:generate_all_modifications", "decitala/hash_table.py:FragmentHashTable.load", "decitala/hash_table.py:DecitalaHashTable.__init__", "decitala/hash_table.py:...
Luke-Poeppel/decitala
2adf71b41fb1e111b6d6576a249d6a48153d06aa
Easier way to create "exact-match" hash table Add `exact` parameter to `FragmentHashTable` that overrides all the options.
diff --git a/decitala/hash_table.py b/decitala/hash_table.py index 3956adc..394e3fb 100644 --- a/decitala/hash_table.py +++ b/decitala/hash_table.py @@ -39,6 +39,7 @@ TRY_RETROGRADE = True ALLOW_MIXED_AUGMENTATION = False ALLOW_STRETCH_AUGMENTATION = True CUSTOM_OVERRIDES_DATASETS = False +EXACT = False class Has...
LukeCarrier__mkdocs-drawio-exporter-15
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "mkdocsdrawioexporter/exporter.py:DrawIoExporter.ensure_file_cached" ], "edited_modules": [ "mkdocsdrawioexporter/exporter.py:DrawIoExporter" ] }, "file": "mkdocsdrawioe...
LukeCarrier/mkdocs-drawio-exporter
87ba1bc5281b3297fb93c59403eb17526bfe2f7d
Empty document crashes build Hi, this might be per design currently, but referring to an empty tab in a multipage document causes a crash ``` Error: Export failed: /docs/content/technical/network/site_design.drawio ERROR - Output file not created in cache Traceback (most recent call last): File "/usr/local...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b50461..43a45bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## 0.6.0: ease containerisation * New `drawio_args` option allows passing additional args to the Draw.io CLI +* Improve handling of cases where Draw.io reports a successful export but doesn't...
M0r13n__pyais-108
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "pyais/__init__.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pyais/messages.py:...
M0r13n/pyais
3447a48c4be534ec2220db8ac216b47314182b65
lat lon converters float accuracy for the example sentence: !AIVDM,1,1,,A,100u3g@0291Q1>BW6uDUwDk00LE@,0*74 decode and then encode will results in a change to lat lon the problem line is: ``` elif d_type == float: val = int(val) bits = int_to_bin(val, width, signed...
diff --git a/CHANGELOG.txt b/CHANGELOG.txt index ca7d803..7e46af0 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,6 +1,11 @@ ==================== pyais CHANGELOG ==================== +------------------------------------------------------------------------------- + Version 2.5.1 26 Feb 2023 +------------------...
M0r13n__pyais-110
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "pyais/__init__.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules":...
M0r13n/pyais
e87f992fd5a6846442238b07c8c9d0003a5234d0
AtoN codes do not match R0126 (A-126) Table 3 or M.1371-5 TABLE 74 The pyais NavAid enum doesn't seem to align with the specs? Specifically the AtoN Message 21 'Type of aids-to-navigation' field which pyais refers to as 'aid_type' for 'Leading Light Rear' was decoded as LEADING_LIGHT_FRONT. The specs I am referri...
diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 7e46af0..359f3e1 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,6 +1,11 @@ ==================== pyais CHANGELOG ==================== +------------------------------------------------------------------------------- + Version 2.5.2 04 MAr 2023 +------------------...
M0r13n__pyais-122
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "pyais/__init__.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules":...
M0r13n/pyais
d981d9915dfdf5ca7377afaf3bae051d975095c1
EpfdType Enum Missing InternalGNSS = 15 Please see ITU-R M.585 0 = undefined (default) 1 = global positioning system (GPS) 2 = GNSS (GLONASS) 3 = combined GPS/GLONASS 4 = Loran-C 5 = Chayka 6 = integrated navigation system 7 = surveyed 8 = Galileo 9-14 = not used 15 = internal GNSS Kind Regards
diff --git a/CHANGELOG.txt b/CHANGELOG.txt index e74cd58..8ff882a 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,6 +1,11 @@ ==================== pyais CHANGELOG ==================== +------------------------------------------------------------------------------- + Version 2.5.7 29 Jul 2023 +------------------...
M0r13n__pyais-137
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pyais/messages.py:CommunicationStateMixin.is_sotdma", "pyais/messages.py:CommunicationStateMixin.is_itdma" ], "edited_modules": [ "pyais/messages.py:CommunicationStateMixin" ...
M0r13n/pyais
b338dc34e5068ddb0e6d045d1bb243cb1be006c1
Determination of the communication status field ## Problem It seems that the current method of detecting and distinguishing communication status fields is not entirely reliable. For example, the following example incorrectly indicates that it is a SOTDMA communication status, although it is an ITDMA. ```python decod...
diff --git a/pyais/messages.py b/pyais/messages.py index 3f6ef48..0acdd68 100644 --- a/pyais/messages.py +++ b/pyais/messages.py @@ -797,10 +797,14 @@ class CommunicationStateMixin: https://www.itu.int/dms_pubrec/itu-r/rec/m/R-REC-M.1371-1-200108-S!!PDF-E.pdf """ + msg_type: int # Type hint to make mypy...
M0r13n__pyais-53
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "pyais/__init__.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules":...
M0r13n/pyais
6ca6d96d59cbaaf374ab8af054aff356eaeb262c
in v2-alpha, MessageType21 payload includes shipname, which I think should just be name In messages.py: ```py lass MessageType21(Payload): """ Aid-to-Navigation Report Src: https://gpsd.gitlab.io/gpsd/AIVDM.html#_type_21_aid_to_navigation_report """ .... shipname = bit_field(120, str, defa...
diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 867ea54..4272b0e 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,6 +1,12 @@ ==================== pyais CHANGELOG ==================== +------------------------------------------------------------------------------- + Version 2.0.1 6 Feb 2022 +------------------...
M0r13n__pyais-56
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": [ "pyais/messages.py:MessageType4", "pyais/messages.py:MessageType9", "pyais/messages.py:MessageType27" ] }, "file": "pyais/messages.py" } ]
M0r13n/pyais
cc47fb1bf56eaabceb1657770d986a3172bac19a
RAIM field integer in message type 4, otherwise boolean? I've found in messages of type 4 the RAIM flag is an integer. But for other messages it is a boolean? I'm not sure if this is a bug or by design?
diff --git a/pyais/messages.py b/pyais/messages.py index 07478b9..3cdd34d 100644 --- a/pyais/messages.py +++ b/pyais/messages.py @@ -563,7 +563,7 @@ class MessageType4(Payload): lat = bit_field(27, int, from_converter=from_lat_lon, to_converter=to_lat_lon, signed=True, default=0) epfd = bit_field(4, int, defa...
M0r13n__pyais-57
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "pyais/__init__.py" }, { "changes": { "added_entities": [ "pyais/messages.py:from_10th", "pyais/messages.py:to_10th" ], ...
M0r13n/pyais
e001f9472a1d7081230bef2398c037e5350e4125
Speed and other fields returning unexpected values For some fields I'm getting speed and other field values as a integer rather than a float. Looking at this segment https://github.com/M0r13n/pyais/blob/cc47fb1bf56eaabceb1657770d986a3172bac19a/pyais/messages.py#L794-L818 I'm somewhat confused as the type given to...
diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 4272b0e..6fb71fe 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,6 +1,15 @@ ==================== pyais CHANGELOG ==================== +------------------------------------------------------------------------------- + Version 2.0.2 20 Mar 2022 +-----------------...
M0r13n__pyais-67
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "pyais/__init__.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules":...
M0r13n/pyais
57b1f8f880e97475775d75b9ae94e89a71759a43
Messagetype27 lat/long should be signed https://github.com/M0r13n/pyais/blob/21da419607a512256e3cfe9abc852738aa8c2599/pyais/messages.py#L1362-L1363 Discovered this while testing, seemed my numbers were off by half and never negative. Doing more testing today. I'm no ais expert but it seems like a bug.
diff --git a/CHANGELOG.txt b/CHANGELOG.txt index a76ed59..93ccff4 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,6 +1,14 @@ ==================== pyais CHANGELOG ==================== +------------------------------------------------------------------------------- + Version 2.1.1 24 Apr 2022 +------------------...
M3t0r__tpl-12
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "tpl/__init__.py:main" ], "edited_modules": [ "tpl/__init__.py:main" ] }, "file": "tpl/__init__.py" } ]
M3t0r/tpl
b534fa59fb808b10031869fe51f5e6382a1055dd
Fix trailing newline issue In https://github.com/M3t0r/tpl/blob/feceeed182f1c2553b827d8f431f6be800204250/tpl/__init__.py#L72 `tpl` always adds a trailing newline instead of respecting what the template has. I added this to have nicer output on the command line, but it turns out Jinja has a setting if it should keep the...
diff --git a/tpl/__init__.py b/tpl/__init__.py index 96b6c41..32297a0 100644 --- a/tpl/__init__.py +++ b/tpl/__init__.py @@ -61,15 +61,19 @@ def main(*args): for data in loaded_data: collated_data = merge_data(collated_data, data) + # set up Jinja2 environment + j_env = jinja2.Environment( + ...
MAIF__arta-26
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/arta/condition.py:BaseCondition.__init__", "src/arta/condition.py:SimpleCondition.verify" ], "edited_modules": [ "src/arta/condition.py:BaseCondition", "src/arta/...
MAIF/arta
d28d8f509e71d75750e5532a166723892ddfa391
0.7.0 final release **Describe the solution you'd like**: Here are the different tasks that must be done to validate the beta version: - [ ] SPDX references #13 - [ ] Fix some docstrings - [ ] Add unit tests for the "simple conditions" feature - [ ] Variable renaming
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 66807e6..bff0bf2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,8 +1,9 @@ +--- default_language_version: python: python3 repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.4.9 + rev: v0.4.10 ...
MAIF__arta-32
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/arta/condition.py:SimpleCondition.verify" ], "edited_modules": [ "src/arta/condition.py:SimpleCondition" ] }, "file": "src/arta/condition.py" } ]
MAIF/arta
b9d6187a4c5d8c9498409f18ef10e8add401748d
Error with simple conditions when a field is written in pascalCase/CamelCase Ex: `simple_condition: input.pascalCaseVariable=="TEST" ` Error: arta.exceptions.ConditionExecutionError: Error while executing condition 'input.pascalCaseVariable=="TEST"': "Could not find path 'pascal' in the input data: 'code'"
diff --git a/CHANGELOG.md b/CHANGELOG.md index 2af70e8..5be35df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Ver...
MAIF__arta-37
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/arta/_engine.py:RulesEngine.__init__" ], "edited_modules": [ "src/arta/_engine.py:RulesEngine" ] }, "file": "src/arta/_engine.py" }, { "changes": { "a...
MAIF/arta
21ed02fd90d46162ceca117e35718750a44005b1
Use Pydantic V2 models **Is your feature request related to a problem? Please describe** Use Pydantic V2 `BaseModel` class rather than V1 (maintenance purpose only). **Describe the solution you'd like** Migrate referring the Pydantic V2 [Migration Guide](https://docs.pydantic.dev/latest/migration/). **Descr...
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d12ede3..0931412 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -64,7 +64,14 @@ repos: - id: cov-check name: Coverage language: system - entry: pytest -v --cov=arta --cov-fail-under=90 + en...
MAIF__melusine-191
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "melusine/__init__.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "melusine/pipeli...
MAIF/melusine
c3a6cc2ec8a6bbc9fba2396d3140723ef1e452e2
🥅 améliorer un message de raise + minor updates dans la doc (contributing.md ..) **Description of Problem:** https://github.com/MAIF/melusine/blob/18ab6e68346688beb84317c7bba33b4d7f2f526d/melusine/pipeline.py#L224 ```python melusine/pipeline.py:224: raise TypeError(f"Object {obj_class} does not inherit from t...
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2a0fb7d..a91edc5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -43,10 +43,10 @@ repos: - id: flake8 additional_dependencies: [ flake8-docstrings, "flake8-bugbear==22.8.23" ] -- repo: https://github.com/astral-...
MAIF__meteole-33
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/meteole/forecast.py:WeatherForecast.get_coverage", "src/meteole/forecast.py:WeatherForecast._grib_bytes_to_df", "src/meteole/forecast.py:WeatherForecast._get_data_single_forecast", ...
MAIF/meteole
d094d0eb8a6094bd70d14aa3c29a06bc07168974
Suggestion to Customize Temporary Directory Hello, Thank you for your amazing project, which greatly simplifies the use of Météo France APIs. For professional projects, I have been working with the AROME and ARPEGE models. While using the get_coverage function, I noticed that it creates files in a temporary directory...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d60a79..4a0c713 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ # Changelog -## TODO +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project...
MGough__sensorhub-2
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "sensorhub/hub.py:SensorHub.__init__", "sensorhub/hub.py:SensorHub._read_sensor_board_register" ], "edited_modules": [ "sensorhub/hub.py:SensorHub" ] }, "file": ...
MGough/sensorhub
6b871396bd96541a55a07789f62ba5ab6dbf2ae5
Refactor class to use dependency injection & remove mock usage This would be nicer with dependency injection of SMBus, and a dummy object used in the tests, rather than a mock.
diff --git a/sensorhub/hub.py b/sensorhub/hub.py index c5b0f31..d1c72d8 100644 --- a/sensorhub/hub.py +++ b/sensorhub/hub.py @@ -29,13 +29,13 @@ class StatusRegisterErrorCode(Enum): class SensorHub: - bus: SMBus + _bus: SMBus - def __init__(self): - self.bus = SMBus(DEVICE_BUS) + def __init__(...
MGough__sensorhub-4
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "sensorhub/hub.py:SensorHub.__init__" ], "edited_modules": [ "sensorhub/hub.py:SensorHub" ] }, "file": "sensorhub/hub.py" }, { "changes": { "added_entities...
MGough/sensorhub
139eb4578136a92d6e9a8661afe383857c402c0e
Constructor argument Hi, thanks for this, it's nicer than the code sample provided by the manufacturer. I've noticed that the constructor now requires a positional argument, you might want to update the README's "how to use" paragraph perhaps? I'm using `hub = SensorHub(None)` but I'm sure there are better ways t...
diff --git a/sensorhub/hub.py b/sensorhub/hub.py index d1c72d8..baf98d3 100644 --- a/sensorhub/hub.py +++ b/sensorhub/hub.py @@ -31,7 +31,7 @@ class StatusRegisterErrorCode(Enum): class SensorHub: _bus: SMBus - def __init__(self, system_management_bus: SMBus): + def __init__(self, system_management_bus: S...
MIT-LCP__wfdb-python-492
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "wfdb/io/convert/csv.py:csv_to_wfdb" ], "edited_modules": [ "wfdb/io/convert/csv.py:csv_to_wfdb" ] }, "file": "wfdb/io/convert/csv.py" } ]
MIT-LCP/wfdb-python
634c6a1354d6476965f0e0f09075ccca60b90337
Memory optimization Hello, I am facing some memory problems when reading big databases (which I would like to store completly in the memory). I noticed that the wfdb functions generally return float64 numpy arrays. However, if I understood correctly from the link below, the signals are coded on maximum 32 bits. https:...
diff --git a/wfdb/io/convert/csv.py b/wfdb/io/convert/csv.py index 3cfd25a..4817a0e 100644 --- a/wfdb/io/convert/csv.py +++ b/wfdb/io/convert/csv.py @@ -33,6 +33,7 @@ def csv_to_wfdb( header=True, delimiter=",", verbose=False, + write_dir="", ): """ Read a WFDB header file and return either...
MITLibraries__oastats-backend-46
[ { "changes": { "added_entities": [ "pipeline/summary.py:join_author" ], "added_modules": [ "pipeline/summary.py:join_author" ], "edited_entities": [ "pipeline/summary.py:index", "pipeline/summary.py:split_author" ], "edited_modules": [ ...
MITLibraries/oastats-backend
ed278663c240daf3a71571f94812bc9f5b2da9dd
Add combined author/mit id field to solr during summary Changes in the summary script depend on a string field with `author:mitid`. This is in addition to the two separate `author` and `mitid` fields.
diff --git a/pipeline/summary.py b/pipeline/summary.py index 982c7f5..c3a4360 100644 --- a/pipeline/summary.py +++ b/pipeline/summary.py @@ -29,6 +29,7 @@ def index(requests, solr_url): request.get('authors', []))), 'author_name': list(map(itemgetter('name'), ...
MITLibraries__slingshot-11
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "slingshot/cli.py:run" ], "edited_modules": [ "slingshot/cli.py:run" ] }, "file": "slingshot/cli.py" } ]
MITLibraries/slingshot
755a842371e63a1c70fde8568523b9b5db0d304e
Add logging
diff --git a/slingshot/cli.py b/slingshot/cli.py index 55efcf6..047d98e 100644 --- a/slingshot/cli.py +++ b/slingshot/cli.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- from __future__ import absolute_import +from datetime import datetime import os import shutil @@ -58,4 +59,8 @@ def run(layers, store, url, namespace...
MITLibraries__slingshot-12
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "slingshot/cli.py:run" ], "edited_modules": [ "slingshot/cli.py:run" ] }, "file": "slingshot/cli.py" } ]
MITLibraries/slingshot
6dca99653150369b2b5b422292acd1e0b1fb131e
Set script failure conditions The script should not completely fail for one bad layer, but rather log it and continue. It should fail immediately in certain cases, such as, 404 and 401. It should probably fail after some number of layers have failed consecutively, since that would likely indicate something more fundame...
diff --git a/slingshot/cli.py b/slingshot/cli.py index 047d98e..75ad0c9 100644 --- a/slingshot/cli.py +++ b/slingshot/cli.py @@ -28,7 +28,9 @@ def main(): @click.option('--username', help="Username for kepler submission.") @click.option('--password', help="Password for kepler submission. Omit for promp...
MITgcm__xmitgcm-197
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "xmitgcm/llcreader/known_models.py:ECCOPortalLLC2160Model.__init__", "xmitgcm/llcreader/known_models.py:ECCOPortalLLC4320Model.__init__" ], "edited_modules": [ "xmitgcm/llcrea...
MITgcm/xmitgcm
a3db4d64ebad6bc3f47e47c65fff42023d8d4c3e
How to find the lat/ lon values for LLC Maybe this is still in the works, but is there some way to figure out the lat-lon values for the data? When I read in the data following the binder example (https://binder.pangeo.io/v2/gh/pangeo-data/pangeo-ecco-llc/master?filepath=visualize_SST.ipynb) there is no lat/lon inf...
diff --git a/doc/llcreader.rst b/doc/llcreader.rst index b7e02d0..372a8f0 100644 --- a/doc/llcreader.rst +++ b/doc/llcreader.rst @@ -98,7 +98,7 @@ By default, all variables and all timesteps are loaded:: >>> ds = model.get_dataset(k_chunksize=90) >>> print(ds) <xarray.Dataset> - Dimensions: (face: 13, i: 43...
MITgcm__xmitgcm-267
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "xmitgcm/mds_store.py:open_mdsdataset" ], "edited_modules": [ "xmitgcm/mds_store.py:open_mdsdataset" ] }, "file": "xmitgcm/mds_store.py" } ]
MITgcm/xmitgcm
09f8f95683c73e0edfa9c9f8e5bd650ca851d774
swap_dims doesn't work with xarray 0.18 See https://github.com/MITgcm/xmitgcm/runs/2601480632?check_suite_focus=true#step:6:231 ``` _______________________ test_swap_dims[barotropic_gyre] ________________________ all_mds_datadirs = ('/tmp/pytest-of-runner/pytest-0/mdsdata2/barotropic_gyre', {'all_iters': [0, 10]...
diff --git a/xmitgcm/mds_store.py b/xmitgcm/mds_store.py index a7830a8..0d5fc51 100644 --- a/xmitgcm/mds_store.py +++ b/xmitgcm/mds_store.py @@ -259,8 +259,10 @@ def open_mdsdataset(data_dir, grid_dir=None, ds = xr.auto_combine(datasets) elif xr.__version__ < '0.15.2': ...
MPoL-dev__MPoL-255
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/mpol/fourier.py:NuFFT.forward", "src/mpol/fourier.py:NuFFTCached.forward" ], "edited_modules": [ "src/mpol/fourier.py:NuFFT", "src/mpol/fourier.py:NuFFTCached" ...
MPoL-dev/MPoL
0e0a5765fbb41ae30b703c33d87920664a53398f
Allow single/float32 precision tensor types **Is your feature request related to a problem or opportunity? Please describe.** In its current form (v0.2), MPoL uses `float64` (or `complex128`) tensor types everywhere. This is because very early in MPoL development, I made the decision for core modules like BaseCube to ...
diff --git a/docs/changelog.md b/docs/changelog.md index cd420c7..970443b 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -3,7 +3,7 @@ # Changelog ## v0.3.0 - +- removed explicit type declarations in base MPoL modules. Previously, core representations were set to be in `float64` or `complex128`. Now, core...
Ma-r-co__savoia-7
[ { "changes": { "added_entities": [ "src/savoia/datafeed/datafeed.py:DataFeeder.__init__", "src/savoia/datafeed/datafeed.py:DataFeeder.run", "src/savoia/datafeed/datafeed.py:HistoricCSVDataFeeder._stream_next_tick", "src/savoia/datafeed/datafeed.py:HistoricCSVDataFeeder.run"...
Ma-r-co/savoia
c46619bd866167d8224c56cac237b9976b181d52
Unbundle Ticker from datafeed Unbundle Ticker from datafeed - datafeed is supposed to be in a separate thread for multi threadhing. - Ticker should be in a same thread as main (portfolio, strategy, and so on..)
diff --git a/src/savoia/datafeed/datafeed.py b/src/savoia/datafeed/datafeed.py index 06055a3..98b103a 100644 --- a/src/savoia/datafeed/datafeed.py +++ b/src/savoia/datafeed/datafeed.py @@ -1,7 +1,6 @@ from decimal import Decimal from savoia.config.decimal_config \ import initializeDecimalContext, DECIMAL_PLACES ...
MadcowD__ell-216
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/ell/providers/openai.py:OpenAIProvider.translate_from_provider" ], "edited_modules": [ "src/ell/providers/openai.py:OpenAIProvider" ] }, "file": "src/ell/providers/...
MadcowD/ell
b89c1842f287abed6202165d3856110a3107ed0e
bug: no results data in studio when following the movie example from the docs, it seems like we can't see the results when we use structured outputs (note empty content block) ![CleanShot 2024-09-22 at 12 12 19@2x](https://github.com/user-attachments/assets/a92fd3d3-5233-43b7-bf3b-b358bf261878) the code is: `...
diff --git a/docs/src/core_concepts/ell_studio.rst b/docs/src/core_concepts/ell_studio.rst index 2435e77..62a1764 100644 --- a/docs/src/core_concepts/ell_studio.rst +++ b/docs/src/core_concepts/ell_studio.rst @@ -26,7 +26,7 @@ To start using Studio, run the following command in your terminal: ell-studio --storag...
MagicStack__immutables-58
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "immutables/map.py:Map.__repr__", "immutables/map.py:MapMutation.__repr__" ], "edited_modules": [ "immutables/map.py:Map", "immutables/map.py:MapMutation" ] ...
MagicStack/immutables
45105ecd8b56a4d88dbcb380fcb8ff4b9cc7b19c
`immutables.Map.__str__` doesn't match `dict.__str__` ```python In [7]: d = {'a': 1} In [8]: str(d) Out[8]: "{'a': 1}" In [9]: str(immutables.Map(d)) Out[9]: "<immutables.Map({'a': 1}) at 0x108ed56c0>" ```
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c992bda..7e2c51b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -45,13 +45,13 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 wi...
MaineKuehn__usim-17
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": [ "usim/_core/loop.py:Hibernate" ] }, "file": "usim/_core/loop.py" }, { "changes": { "added_entities": null, "added_modules": null, "ed...
MaineKuehn/usim
079d39e201e5f48d505c22c0cff582d530fb4a41
Streamline internal notification API The internal subscribe/unsubscribe API of notifications is partially refactored. ``Notification.__await_notification__`` has a useless parameter and the ``subscribe`` context is not used yet. Probably some more unused/incomplete code.
diff --git a/usim/_core/loop.py b/usim/_core/loop.py index 733de51..90e8752 100644 --- a/usim/_core/loop.py +++ b/usim/_core/loop.py @@ -74,15 +74,37 @@ __LOOP_STATE__.LOOP = MissingLoop() # type: Union[MissingLoop, Loop] # Commands class Hibernate(object): - r"""Pause current execution indefinitely""" + r""...
MaineKuehn__usim-44
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "usim/__about__.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules":...
MaineKuehn/usim
dff719c209ba8d275cd1133a0c447a361fce4486
Rename/simplify usim.each The ``usim.each`` has now repeatedly led to confusion. It does not integrate well with ``async for`` wording (``for each`` also means different things in e.g. C++) and having to use keywords makes the ``each`` word redundant. We could split ``each`` into its two use cases and name them directl...
diff --git a/README.rst b/README.rst index 136bffb..325a402 100644 --- a/README.rst +++ b/README.rst @@ -9,10 +9,10 @@ Using the ``async``/``await`` capabilities of Python3, .. code:: python3 - >>> from usim import each, run + >>> from usim import delay, run >>> >>> async def metronome(period: float, s...
MaineKuehn__usim-46
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "usim/_primitives/context.py:Scope.do" ], "edited_modules": [ "usim/_primitives/context.py:Scope" ] }, "file": "usim/_primitives/context.py" }, { "changes": { ...
MaineKuehn/usim
dff719c209ba8d275cd1133a0c447a361fce4486
Allow delays of 0 As discussed on #27, it would be sensible for the user interface to allow delays of 0. This seems prudent when calculating delays and for usability. The event loop currently special-cases ``None`` to mean "now" and so disallows other ways of expressing this. Ideally, we handle this in the user inte...
diff --git a/usim/_primitives/context.py b/usim/_primitives/context.py index f27581b..7d86ea6 100644 --- a/usim/_primitives/context.py +++ b/usim/_primitives/context.py @@ -148,11 +148,16 @@ class Scope: which must exit without ``await``\ ing or ``yield``\ ing anything. """ assert after is No...
MaineKuehn__usim-69
[ { "changes": { "added_entities": [ "usim/_primitives/concurrent_exception.py:Concurrent.flattened" ], "added_modules": null, "edited_entities": [ "usim/_primitives/concurrent_exception.py:MetaConcurrent.__new__", "usim/_primitives/concurrent_exception.py:MetaConcu...
MaineKuehn/usim
20bf8730e26dfa3fecc095bf691b71903dcbe85c
Concurrent Exception Cascade is ill-defined **Description of the bug** A ``Concurrent`` Exception may not contain another ``Concurrent`` Exception. If one ``Scope`` failure cascades into another, this breaks error handling. **How To Reproduce** ```python3 from usim import Scope, run async def outer(): asy...
diff --git a/docs/source/topics/exceptions.rst b/docs/source/topics/exceptions.rst index e55e3af..551c495 100644 --- a/docs/source/topics/exceptions.rst +++ b/docs/source/topics/exceptions.rst @@ -201,6 +201,28 @@ Handling Multiple Exceptions Finally, we recommend using ``Concurrent[...]`` only if you want to supp...
MaineKuehn__usim-81
[ { "changes": { "added_entities": [ "usim/_basics/resource.py:BaseResources.__eq__", "usim/_basics/resource.py:BaseResources.__ne__", "usim/_basics/resource.py:BaseResources.__gt__", "usim/_basics/resource.py:BaseResources.__ge__", "usim/_basics/resource.py:BaseResou...
MaineKuehn/usim
c6f3502cfed08cfabe3c3f3f086c8ddab8323886
Simplify Resource conditions **Short description of the feature** Resources inherently lend themselves to ``await`` a specific level. A shorthand notation to derive conditions of the underlying ``Tracked`` value is desirable. **Describe the solution you'd like** Resources should directly support the comparison ope...
diff --git a/docs/source/api/usim_resources.rst b/docs/source/api/usim_resources.rst index 9d0366a..d2f0a71 100644 --- a/docs/source/api/usim_resources.rst +++ b/docs/source/api/usim_resources.rst @@ -4,6 +4,10 @@ Resource Modelling Resource Containers ------------------- +Resources support the comparison operation...
ManiMozaffar__aioclock-22
[ { "changes": { "added_entities": [ "aioclock/triggers.py:At._shift_to_declared_weekday" ], "added_modules": null, "edited_entities": [ "aioclock/triggers.py:At._shift_to_week", "aioclock/triggers.py:At._get_next_ts" ], "edited_modules": [ "aioc...
ManiMozaffar/aioclock
54a02b2444618b48a4fe43c93d8bd584466b2aa2
At Trigger Returns Negative Sleep Time, Causing Infinite Job Execution At trigger would return "negative" sleep time, resulting to constantly keep running job forever. To replicate it ```python def test_cross_timezone(): # `NOW` is same day as the trigger, but trigger should be next week with different timezo...
diff --git a/aioclock/triggers.py b/aioclock/triggers.py index 51df76a..e566bc2 100644 --- a/aioclock/triggers.py +++ b/aioclock/triggers.py @@ -20,13 +20,37 @@ from typing import Annotated, Generic, Literal, TypeVar, Union import zoneinfo from annotated_types import Interval from croniter import croniter +from date...
Marker-Inc-Korea__AutoRAG-1043
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "autorag/nodes/generator/vllm.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "auto...
Marker-Inc-Korea/AutoRAG
aa0bfbfb05ea97f10bc59f673ad060413d5eddc0
[BUG] Unexpected keyword argument 'embedding_model' for passage filter module **Describe the bug** unexpected keyword argument 'embedding_model' error occurred in passage filter module such as `SimilarityThresholdCutoff._pure()` **To Reproduce** 1. set `embedding_model` of `similarity_threshold_cutoff` in config.yaml ...
diff --git a/autorag/nodes/generator/vllm.py b/autorag/nodes/generator/vllm.py index d612857..c6684d8 100644 --- a/autorag/nodes/generator/vllm.py +++ b/autorag/nodes/generator/vllm.py @@ -41,7 +41,8 @@ class Vllm(BaseGenerator): if torch.cuda.is_available(): from vllm.distributed.parallel_state import ( - ...
Marker-Inc-Korea__AutoRAG-442
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "autorag/nodes/passagefilter/threshold_cutoff.py:threshold_cutoff_pure" ], "edited_modules": [ "autorag/nodes/passagefilter/threshold_cutoff.py:threshold_cutoff_pure" ] }, ...
Marker-Inc-Korea/AutoRAG
fd066ef4657315f81eca9112c2ede7edaa0c8507
[HotFix] [threshold cutoff] Error when the input 'scores_list' is np.ndarray. In the running of AutoRAG, the input of `threshold_cutoff_pure` function's parameter `scores_list` is np.ndarray, it occurs error. ```python def threshold_cutoff_pure(scores_list: List[float], threshold: float, ...
diff --git a/autorag/nodes/passagefilter/threshold_cutoff.py b/autorag/nodes/passagefilter/threshold_cutoff.py index 1369344..3fb4b60 100644 --- a/autorag/nodes/passagefilter/threshold_cutoff.py +++ b/autorag/nodes/passagefilter/threshold_cutoff.py @@ -1,5 +1,7 @@ from typing import List, Tuple +import numpy as np +...
Marker-Inc-Korea__AutoRAG-464
[ { "changes": { "added_entities": [ "autorag/nodes/queryexpansion/base.py:make_generator_callable_param" ], "added_modules": [ "autorag/nodes/queryexpansion/base.py:make_generator_callable_param" ], "edited_entities": [ "autorag/nodes/queryexpansion/base.py:q...
Marker-Inc-Korea/AutoRAG
7930b51a6defb34a952c48f2777e3ce6a912703f
Use generator at hyde and decompose module
diff --git a/autorag/nodes/queryexpansion/base.py b/autorag/nodes/queryexpansion/base.py index ac55fb7..05dcbd5 100644 --- a/autorag/nodes/queryexpansion/base.py +++ b/autorag/nodes/queryexpansion/base.py @@ -1,11 +1,11 @@ import functools import logging from pathlib import Path -from typing import List, Union +from...
Marker-Inc-Korea__AutoRAG-837
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "autorag/nodes/passagefilter/base.py:passage_filter_node" ], "edited_modules": [ "autorag/nodes/passagefilter/base.py:passage_filter_node" ] }, "file": "autorag/nodes/pa...
Marker-Inc-Korea/AutoRAG
18178e782c7d5d490627ae565162d4abbc7d4653
[Bug] Restrict 'threshold' config to numbers only for module_type > Restrict 'threshold' config to numbers only for module_type _Originally posted by @hongsw in [#821](https://github.com/Marker-Inc-Korea/AutoRAG/issues/821#issuecomment-2403716359)_ ## Is your feature request related to a problem? Please describe. ...
diff --git a/autorag/nodes/passagefilter/base.py b/autorag/nodes/passagefilter/base.py index d1b4b02..8efe697 100644 --- a/autorag/nodes/passagefilter/base.py +++ b/autorag/nodes/passagefilter/base.py @@ -1,14 +1,12 @@ import abc -import functools import logging -import os from pathlib import Path -from typing impor...
Marker-Inc-Korea__AutoRAG-931
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "autorag/utils/util.py:openai_truncate_by_token" ], "edited_modules": [ "autorag/utils/util.py:openai_truncate_by_token" ] }, "file": "autorag/utils/util.py" } ]
Marker-Inc-Korea/AutoRAG
339600f4ad55dccda7db34b1ea64a164af1fae42
[BUG] Upstage Embedding not working At vectordb.py, llamaindex UpstageEmbedding class is instance of OpenAIEmbedding. So it tires to truncate token to 8000, but tiktoken cannot tokenize it because solar embedding model is not capable of tokenize in tiktoken. Add model_name condition at truncate openai token also. ...
diff --git a/autorag/utils/util.py b/autorag/utils/util.py index 5fa508f..c3b86d4 100644 --- a/autorag/utils/util.py +++ b/autorag/utils/util.py @@ -334,7 +334,11 @@ def save_parquet_safe(df: pd.DataFrame, filepath: str, upsert: bool = False): def openai_truncate_by_token( texts: List[str], token_limit: int, model_n...
MarketSquare__robotframework-requests-330
[ { "changes": { "added_entities": [ "src/RequestsLibrary/RequestsKeywords.py:RequestsKeywords._merge_url" ], "added_modules": null, "edited_entities": [ "src/RequestsLibrary/RequestsKeywords.py:RequestsKeywords._common_request", "src/RequestsLibrary/RequestsKeyword...
MarketSquare/robotframework-requests
34d89a6b7bba2d49217050f9057c701c37d0a8fd
Breaking change with url partially defined in Create Session and * On Session keywords Like described in this comment: https://github.com/MarketSquare/robotframework-requests/issues/313#issuecomment-823374633 ``` Create Session sess https://mydomain.com/dev GET On Session sess /test ``` This case is not working...
diff --git a/.gitignore b/.gitignore index 4dd337a..ea232d3 100644 --- a/.gitignore +++ b/.gitignore @@ -23,6 +23,7 @@ lib/ test.py bin/ src/robotframework_requests.egg-info/ +.pytest_cache/* # ignore virtuvalenv venv/* diff --git a/README.md b/README.md index f56537b..9e0b0d9 100644 --- a/README.md +++ b/README...
MarquezProject__marquez-python-38
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "marquez_client/__init__.py" }, { "changes": { "added_entities": null, "added_modules": [ "marquez_client/client.py:MarquezClient" ...
MarquezProject/marquez-python
cc1fc666ada9b2a3e07dd6c4dd7b41b081ada945
Rename client class to MarquezClient()
diff --git a/.circleci/config.yml b/.circleci/config.yml index 3dd975f..c289d86 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -14,7 +14,7 @@ jobs: - run: pip install --user coverage - run: pip install --user -e . - run: pip install --user flake8 - - run: python -m flake8 + ...
MasoniteFramework__core-16
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "masonite/drivers/UploadDiskDriver.py:UploadDiskDriver.store" ], "edited_modules": [ "masonite/drivers/UploadDiskDriver.py:UploadDiskDriver" ] }, "file": "masonite/drive...
MasoniteFramework/core
3f87388490aa65aa2906f9f3e6727d70f16c5509
Redirect does not compile url correctly a redirect url of '/url/here' compiles into "urlhere" for some reason. check tests because I thought this was fixed
diff --git a/masonite/drivers/UploadDiskDriver.py b/masonite/drivers/UploadDiskDriver.py index 410f732..e3721bc 100644 --- a/masonite/drivers/UploadDiskDriver.py +++ b/masonite/drivers/UploadDiskDriver.py @@ -12,6 +12,8 @@ class UploadDiskDriver(object): if not location: location = self.config.DRI...
MasoniteFramework__core-679
[ { "changes": { "added_entities": [ "masonite/app.py:App.singleton" ], "added_modules": null, "edited_entities": [ "masonite/app.py:App.make", "masonite/app.py:App.resolve", "masonite/app.py:App._find_parameter", "masonite/app.py:App.fire_hook" ...
MasoniteFramework/core
2e9476ba9a3e45a8119e896dcd987780e0c1ee6a
Change how making an object from the container resolves The entire point of a service container is to manage application dependencies automatically. If i have an object like this: ```python class Mail: def __init__(self, request: Request, mail: Mail): self.request = request ``` i should be ab...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 77c5f67..8cc2c29 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,18 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Sentimental V...
Materials-Consortia__optimade-python-tools-1001
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "optimade/models/structures.py:StructureResourceAttributes.check_anonymous_formula" ], "edited_modules": [ "optimade/models/structures.py:StructureResourceAttributes" ] }, ...
Materials-Consortia/optimade-python-tools
03b60f9f313db87daf5b76192a426588072a79e2
`chemical_formula_anonymous` validator accepts incorrect proportion order if started with 1 As reported by @JPBergsma in https://github.com/Materials-Consortia/optimade-python-tools/pull/1001#issue-1059491669, the `chemical_formula_anonymous` validator has an edge case that allows the wrong order of elements for certai...
diff --git a/optimade/models/structures.py b/optimade/models/structures.py index 62a39f46..1ef9ae57 100644 --- a/optimade/models/structures.py +++ b/optimade/models/structures.py @@ -872,7 +872,8 @@ The properties of the species are found in the property `species`. return v elements = tuple(re.f...
Materials-Consortia__optimade-python-tools-1134
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "optimade/filtertransformers/mongo.py:MongoTransformer.constant_first_comparison" ], "edited_modules": [ "optimade/filtertransformers/mongo.py:MongoTransformer" ] }, "fi...
Materials-Consortia/optimade-python-tools
1408a7c43954ad6159c21ef98dedce4ce22452e4
Queries with the form: 'value != prop' return entries where 'prop == None' For the trajectory endpoint, I added a few references without DOI values. A query like [https://optimade-trajectories.herokuapp.com/v1/references?filter=%2210.1038/00000%22!=doi](https://optimade-trajectories.herokuapp.com/v1/references?filter...
diff --git a/optimade/filtertransformers/mongo.py b/optimade/filtertransformers/mongo.py index d808ae8f..beba0fcd 100755 --- a/optimade/filtertransformers/mongo.py +++ b/optimade/filtertransformers/mongo.py @@ -141,9 +141,9 @@ class MongoTransformer(BaseTransformer): def constant_first_comparison(self, arg): ...
Materials-Consortia__optimade-python-tools-1844
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": [ "optimade/models/responses.py:EntryResponseOne", "optimade/models/responses.py:EntryResponseMany", "optimade/models/responses.py:LinksResponse", "opt...
Materials-Consortia/optimade-python-tools
55e2dd0c2d4c414ca8ec60b70902786b886a678a
Deserialization regressions: cannot resolve child databases in client In "v1", the client can no longer resolve child databases, since when deserializing a `LinksResponse`, the `LinkType` enum is not present in the final model so a filter that checks `link["attributes"]["link_type"] == LinkType.CHILD` does not trigger....
diff --git a/optimade/models/responses.py b/optimade/models/responses.py index a3716f5e..9cc4e1b4 100644 --- a/optimade/models/responses.py +++ b/optimade/models/responses.py @@ -70,12 +70,19 @@ class InfoResponse(Success): class EntryResponseOne(Success): - data: Optional[Union[EntryResource, dict[str, Any]]] ...
Materials-Consortia__optimade-python-tools-2250
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "optimade/client/client.py:OptimadeClient._get_one_async", "optimade/client/client.py:OptimadeClient._get_one" ], "edited_modules": [ "optimade/client/client.py:OptimadeClient...
Materials-Consortia/optimade-python-tools
98cb352464082019f10b6c7b0659c53f6240fbbb
Client can be forced into infinite loop by bad API responses Reported by @mehmetgiritli (and then addressed in #2248). Currently the `OptimadeClient` will happily visit an infinite loop of `next_url`s if provided by an API, even if no data is served. This is fixed in #2248 by halting operation if the page contains n...
diff --git a/optimade/client/client.py b/optimade/client/client.py index 5f592aaa..d225773f 100644 --- a/optimade/client/client.py +++ b/optimade/client/client.py @@ -90,6 +90,12 @@ class OptimadeClient: max_attempts: int """The maximum number of times to repeat a failed query before giving up.""" + max_...
Materials-Consortia__optimade-python-tools-484
[ { "changes": { "added_entities": [ "optimade/models/jsonapi.py:ToplevelLinks.check_additional_keys_are_links" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "optimade/models/jsonapi.py:ToplevelLinks" ] }, "file": "optimade/model...
Materials-Consortia/optimade-python-tools
f14c67f80a837e0f4ed53937029a2c769ceab2e8
Links under top-level 'links' may be objects I am trying to validate COD implementation (in development) using `optimade-python-tools` v0.9.8. The validator seems to require the values under the top-level `links` being strings: ``` $ optimade_validator https://www.crystallography.net/cod-test/optimade -v 5 Testing e...
diff --git a/openapi/index_openapi.json b/openapi/index_openapi.json index f5bc5837..6a011bc7 100644 --- a/openapi/index_openapi.json +++ b/openapi/index_openapi.json @@ -1665,35 +1665,63 @@ }, "first": { "title": "First", - "maxLength": 65536, - "minLength": 1, ...
Materials-Consortia__optimade-python-tools-515
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "optimade/server/routers/utils.py:handle_response_fields" ], "edited_modules": [ "optimade/server/routers/utils.py:handle_response_fields" ] }, "file": "optimade/server/...
Materials-Consortia/optimade-python-tools
fbbad72ac543edf02121dd9a68cdc209497e71ef
'Chosen entry had no value for ...' when property is not requested As of 995f32de7b842059f204969f36bd4aea67188d57 the validator throws the following (and similar) errors for test implementation for the COD: ``` ✖: https://www.crystallography.net/cod-test/optimade/; testing queries for structures->cartesian_site_posit...
diff --git a/optimade/server/routers/utils.py b/optimade/server/routers/utils.py index 265ea537..45ecdefc 100644 --- a/optimade/server/routers/utils.py +++ b/optimade/server/routers/utils.py @@ -78,7 +78,15 @@ def handle_response_fields( new_results = [] while results: entry = results.pop(0) - ...