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
lektor__lektor-1144
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lektor/cli.py:cli" ], "edited_modules": [ "lektor/cli.py:cli" ] }, "file": "lektor/cli.py" }, { "changes": { "added_entities": null, "added_modules"...
lektor/lektor
86070c17d904e8f5695c38912c08624b972b28f3
Deprecated Werkzeug APIs in use Werkzeug 2.3 deprecated a number of functions in the `werkzeug.urls` module. Lektor uses some of these methods: * `werkzeug.urls.url_parse` (in favor of `urllib.parse.urlsplit`) * `werkzeug.urls.url_join` (in favor of `urllib.parse.urljoin`) It also removes the `werkzeug.urls.URL` w...
diff --git a/lektor/cli.py b/lektor/cli.py index 23d6573..69ab2df 100644 --- a/lektor/cli.py +++ b/lektor/cli.py @@ -41,7 +41,8 @@ def cli(ctx, project=None, language=None): This command can invoke lektor locally and serve up the website. It's intended for local development of websites. """ - warning...
lektor__lektor-960
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lektor/db.py:Image.thumbnail" ], "edited_modules": [ "lektor/db.py:Image" ] }, "file": "lektor/db.py" }, { "changes": { "added_entities": null, "add...
lektor/lektor
c7419cf6f6a986740da680fa158055cc83a5befe
Disable deprecated implicit thumbnail upscaling? Implicit thumbnail upscaling, as well as the `crop` argument to [`Image.thumbnail`](https://github.com/lektor/lektor/blob/f135d73a11ac557bff4f1068958e71b6b526ee63/lektor/db.py#L818) have been [deprecated](https://github.com/lektor/lektor/blob/f135d73a11ac557bff4f1068958e...
diff --git a/lektor/db.py b/lektor/db.py index 6cfcea9..bae4b54 100644 --- a/lektor/db.py +++ b/lektor/db.py @@ -6,7 +6,6 @@ import hashlib import operator import os import posixpath -import warnings from collections import OrderedDict from datetime import timedelta from itertools import islice @@ -832,21 +831,9 ...
lektor__lektor-webpack-support-17
[ { "changes": { "added_entities": [ "lektor_webpack_support.py:WebpackSupportPlugin.install_node_dependencies" ], "added_modules": null, "edited_entities": [ "lektor_webpack_support.py:WebpackSupportPlugin.npm_install", "lektor_webpack_support.py:WebpackSupportPlug...
lektor/lektor-webpack-support
ab6134744dec30980dc41e1cd0f7736759cc26a0
Yarn support Would you be open to a PR adding support for using [`yarn`](https://yarnpkg.com/) in place of `npm install`? It both runs faster and uses a lockfile (for package version pinning). The implementation I have in mind would [rename and] update `npm_install()` to check for a `yarn` executable and a `.../webpack...
diff --git a/README.md b/README.md index 5804c63..581e9bb 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ but not important for functionality, change them to suit your own needs): } ``` -Now we can npm install the rest: +Now we can `npm install` (or `yarn add`) the rest: ``` $ cd </path/to/your/lektor/...
lenskit__lkpy-312
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lenskit/metrics/topn.py:ndcg" ], "edited_modules": [ "lenskit/metrics/topn.py:ndcg" ] }, "file": "lenskit/metrics/topn.py" } ]
lenskit/lkpy
0716300a91e55b54e3da150c5fa8355af79fa745
nDCG metric does not correctly truncate lists The nDCG metric has two faults whereby it fails to correctly truncate the truth list and recommendation list under certain conditions: 1. If no k is supplied, the full truth list and recommendation list are used to compute the ideal DCG and recommendation DCG, respective...
diff --git a/lenskit/metrics/topn.py b/lenskit/metrics/topn.py index ae1b70f3..7f616c53 100644 --- a/lenskit/metrics/topn.py +++ b/lenskit/metrics/topn.py @@ -300,11 +300,11 @@ def ndcg(recs, truth, discount=np.log2, k=None): The maximum list length. """ - tpos = truth.index.get_indexer(recs['ite...
lenskit__lkpy-406
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lenskit/algorithms/knn/user.py:UserUser.fit", "lenskit/algorithms/knn/user.py:UserUser.__init__", "lenskit/algorithms/knn/user.py:UserUser.predict_for_user", "lenskit/algorithms/...
lenskit/lkpy
1f04c59f3605582f872652475ef2438d7ac81af9
Use PyTorch to implement user-user k-NN Advance #374 by using PyTorch to implement user-user k-NN.
diff --git a/envs/lenskit-py3.10-ci.yaml b/envs/lenskit-py3.10-ci.yaml index eac2068d..1a7cd0ae 100644 --- a/envs/lenskit-py3.10-ci.yaml +++ b/envs/lenskit-py3.10-ci.yaml @@ -8,8 +8,8 @@ # Instead edit the corresponding pyproject.toml file. # channels: - - conda-forge - pytorch + - conda-forge - nodefaults ...
leo-editor__leo-editor-3678
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "leo/commands/gotoCommands.py:GoToCommands.find_node_start", "leo/commands/gotoCommands.py:GoToCommands.scan_nonsentinel_lines", "leo/commands/gotoCommands.py:GoToCommands.scan_sentinel_l...
leo-editor/leo-editor
d878994dcaf4bea9872248c5430f795bea3c29ed
Read sentinels more robustly See PR #3678. **Leo will continue to support Black-compatible sentinels** Leo's `--black-sentinels` (`-b`) command-line option will remain. **Leo's read code should handle sentinels more robustly** The legacy code assumed that all sentinels have the same form (blackened or not)...
diff --git a/leo/commands/gotoCommands.py b/leo/commands/gotoCommands.py index 3acbc7cc9..6088ee05c 100644 --- a/leo/commands/gotoCommands.py +++ b/leo/commands/gotoCommands.py @@ -99,7 +99,7 @@ class GoToCommands: # if not g.unitTesting: g.printObj(contents) # Find the node with the correct gnx. - ...
leo-editor__leo-editor-3728
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": [ "leo/plugins/importers/java.py:Java_Importer" ] }, "file": "leo/plugins/importers/java.py" } ]
leo-editor/leo-editor
c6b4aff03981b4ed12a20b31f13bfffa950d1e48
Java importer bugs with 'interface', (Java importer have regex without capture group, is it normal?) See PR #3728. The regex to capture blocks in java seem to have one for **interfaces** (the third one): ```java block_patterns = ( ('class', re.compile(r'.*?\bclass\s+(\w+)')), ('func', re.comp...
diff --git a/leo/plugins/importers/java.py b/leo/plugins/importers/java.py index 5a1483f29..f4a882aad 100644 --- a/leo/plugins/importers/java.py +++ b/leo/plugins/importers/java.py @@ -20,7 +20,7 @@ class Java_Importer(Importer): block_patterns = ( ('class', re.compile(r'.*?\bclass\s+(\w+)')), ('...
leonardbinet__lighttree-12
[ { "changes": { "added_entities": [ "lighttree/tree.py:Tree._iter_nodes_with_location" ], "added_modules": null, "edited_entities": [ "lighttree/tree.py:Tree.show", "lighttree/tree.py:Tree._line_repr_iter" ], "edited_modules": [ "lighttree/tree....
leonardbinet/lighttree
ba5d5157441cab95a85dd944839524c27ff235c7
In `_line_repr_iter`, distinguish line formatting from tree structure This will allow more possibilities to display tree. Notably it could allow the display of the tree in html to have nice formatting in jupyter notebooks.
diff --git a/lighttree/tree.py b/lighttree/tree.py index 7e6bff4..15e0401 100644 --- a/lighttree/tree.py +++ b/lighttree/tree.py @@ -360,8 +360,7 @@ class Tree(object): ): """Python generator traversing the tree (or a subtree) with optional node filtering. - Loosely based on an algorithm from 'Es...
leonardt__ast_tools-80
[ { "changes": { "added_entities": [ "ast_tools/passes/ssa.py:SSATransformer.visit_Parameters", "ast_tools/passes/ssa.py:SSATransformer.leave_Parameters" ], "added_modules": null, "edited_entities": [ "ast_tools/passes/ssa.py:SSATransformer.leave_FunctionDef" ...
leonardt/ast_tools
cfa081e3f24bf23dbe84cd50ecea8a320027de75
Regression in fault test suite I'm not sure how important this is, but with the latest release the following example taken from fault doesn't work anymore with the SSA pass ```python import magma as m import fault class MWrapperMeta(m.MagmaProtocolMeta): def __getitem__(cls, T): assert cls is ...
diff --git a/ast_tools/passes/ssa.py b/ast_tools/passes/ssa.py index 01d90fa..b37a642 100644 --- a/ast_tools/passes/ssa.py +++ b/ast_tools/passes/ssa.py @@ -394,9 +394,7 @@ class SSATransformer(NodeTrackingTransformer): # Need to visit params to get them to be rebuilt and therfore # tracked ...
leonardt__hwtypes-39
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "hwtypes/fp_vector.py:FPVector.__init__" ], "edited_modules": [ "hwtypes/fp_vector.py:FPVector" ] }, "file": "hwtypes/fp_vector.py" } ]
leonardt/hwtypes
cc7e418eb3561970bd6ca87779f858528670b67c
FPVector is missing "to_fp" method This would cast a BitVector to floating point. ``` BFloat16 = FPVector[8,7,...] assert BFloat16.to_fp(BitVector[16](10)) == BFloat16(10.0) ```
diff --git a/README.md b/README.md index 1324025..2d1e3ed 100644 --- a/README.md +++ b/README.md @@ -12,9 +12,3 @@ pip install hwtypes brew install gmp mpfr libmpc pip install hwtypes ``` - -## CentOS -``` -yum install libmpc-devel mpfr-devel gmp-devel -pip install hwtypes -``` diff --git a/hwtypes/fp_vector.py b/hw...
leonardt__hwtypes-50
[ { "changes": { "added_entities": [ "hwtypes/bit_vector.py:BitVector.value" ], "added_modules": null, "edited_entities": [ "hwtypes/bit_vector.py:BitVector.concat", "hwtypes/bit_vector.py:BitVector.bvrol", "hwtypes/bit_vector.py:BitVector.bvror", "h...
leonardt/hwtypes
11bf81a76f31f703248e3d5b84a9c631bd618422
semantics for Bitvector concat is opposite of magma concat semantics for magma.concat is concat(lsbs,msbs) while hwtypes.BitVector.concat is concat(msbs,lsbs) We should unify the semantics. I would prefer magma's version but at the end of the day, it does not matter.
diff --git a/hwtypes/bit_vector.py b/hwtypes/bit_vector.py index 885b2cb..e7f0010 100644 --- a/hwtypes/bit_vector.py +++ b/hwtypes/bit_vector.py @@ -175,6 +175,10 @@ class BitVector(AbstractBitVector): def __repr__(self): return "BitVector[{size}]({value})".format(value=self._value, size=self.size) + ...
leonardt__hwtypes-64
[ { "changes": { "added_entities": [ "hwtypes/adt.py:Product.from_fields" ], "added_modules": null, "edited_entities": [ "hwtypes/adt.py:Product.__new__" ], "edited_modules": [ "hwtypes/adt.py:Product" ] }, "file": "hwtypes/adt.py" }, {...
leonardt/hwtypes
06507759411b492ae7355b572adc0fc2a5bc3688
[feature request] dynamic constructor for adt.Product `new_product(class_name : str, field_dict : tp.Mapping[str,type])`
diff --git a/hwtypes/adt.py b/hwtypes/adt.py index 64837d8..1be6a4a 100644 --- a/hwtypes/adt.py +++ b/hwtypes/adt.py @@ -1,6 +1,7 @@ from .adt_meta import TupleMeta, ProductMeta, SumMeta, EnumMeta, is_adt_type from collections import OrderedDict from types import MappingProxyType +import typing as tp __all__ = [...
leonardt__hwtypes-66
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "hwtypes/adt.py:Product.from_fields" ], "edited_modules": [ "hwtypes/adt.py:Product" ] }, "file": "hwtypes/adt.py" }, { "changes": { "added_entities": [ ...
leonardt/hwtypes
db1076c422df0e3443a669ca4fa92021104b71c0
[feature-request] rebind(new_family) method on ADT types
diff --git a/hwtypes/adt.py b/hwtypes/adt.py index 1be6a4a..e65d70f 100644 --- a/hwtypes/adt.py +++ b/hwtypes/adt.py @@ -76,28 +76,6 @@ class Product(Tuple, metaclass=ProductMeta): d[k] = getattr(self, k) return MappingProxyType(d) - @classmethod - def from_fields(cls, - class_n...
leonardt__hwtypes-70
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "hwtypes/adt.py:Sum.__init__", "hwtypes/adt.py:Sum.value" ], "edited_modules": [ "hwtypes/adt.py:Sum" ] }, "file": "hwtypes/adt.py" }, { "changes": { ...
leonardt/hwtypes
533beaabc2972e074c1b70dc213d38420ecd8cb8
[feature-request] Access and modify Sum types by name (similar API to Product) ``` A = Sum[bool,int] assert A.field_dict['bool'] == bool assert A.field_dict['int'] == int #I would like the following to work assert hasattr(A,'bool') assert hasattr(A,'int') assert A.bool == bool assert A.int == int a = A(5) a...
diff --git a/hwtypes/adt.py b/hwtypes/adt.py index e65d70f..07abf20 100644 --- a/hwtypes/adt.py +++ b/hwtypes/adt.py @@ -78,9 +78,7 @@ class Product(Tuple, metaclass=ProductMeta): class Sum(metaclass=SumMeta): def __init__(self, value): - if not isinstance(value, tuple(type(self).fields)): - r...
leonardt__hwtypes-77
[ { "changes": { "added_entities": [ "hwtypes/adt_meta.py:BoundMeta.is_cached", "hwtypes/adt_meta.py:ProductMeta.__init__" ], "added_modules": null, "edited_entities": [ "hwtypes/adt_meta.py:BoundMeta.__new__", "hwtypes/adt_meta.py:BoundMeta.__getitem__", ...
leonardt/hwtypes
85a69e89a8ee2eb6e0a8d650a4aa9e6dacb82ba7
[feature-request] Product types defined the same way should be the same object. I Ideally would like the following to work. ``` A0 = Product.from_fields("A",{"a":int}) A1 = Product.from_fields("A",{"a":int}) assert A0 is A1 ``` I do not think this would change any existing code and would be immensely helpful.
diff --git a/hwtypes/adt_meta.py b/hwtypes/adt_meta.py index 144cc72..0a65710 100644 --- a/hwtypes/adt_meta.py +++ b/hwtypes/adt_meta.py @@ -1,13 +1,14 @@ import itertools as it import typing as tp from abc import ABCMeta, abstractmethod -from collections import OrderedDict - import weakref from types import Map...
lepture__authlib-270
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "authlib/integrations/httpx_client/__init__.py" }, { "changes": { "added_entities": [ "authlib/integrations/httpx_client/assertion_client...
lepture/authlib
f780d1be1632538280759ecb6dbed56ff4349e1e
HTTPX OAuth1 implementation does not set Content-Length header **Describe the bug** The OAuth1 implementation for HTTPX does not set the content-length header, which can cause problems when using body signatures and talking to servers who block body POSTs where the length header is not specified. **Expected behavio...
diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 42de65d..4db46eb 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -24,11 +24,11 @@ jobs: - version: 2.7 toxenv: py27,py27-flask - version: 3.6 - toxenv: py36,flask,django,a...
lepture__mistune-105
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "mistune.py:escape_link" ], "edited_modules": [ "mistune.py:escape_link", "mistune.py:BlockGrammar", "mistune.py:InlineGrammar" ] }, "file": "mistune.py"...
lepture/mistune
715046fe4b5f3642b24edc7fdd62ba8915228498
parsing html can fail to close tag correctly noticed while debugging an issue in https://github.com/lektor/lektor/issues/241#issuecomment-231819694 i noticed that raw html handling can be broken if there is a space before the closing `>` of the opening tag. i.e. ``` In [38]: mistune.markdown('<iframe src="http://gf...
diff --git a/mistune.py b/mistune.py index b341cf2..67b0880 100644 --- a/mistune.py +++ b/mistune.py @@ -74,7 +74,7 @@ def escape(text, quote=False, smart_amp=True): def escape_link(url, **kwargs): """Remove dangerous URL schemes like javascript: and escape afterwards.""" - lower_url = url.lower() + lower...
lepture__mistune-143
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": [ "mistune.py:InlineLexer" ] }, "file": "mistune.py" } ]
lepture/mistune
cef69acaa506567595e95ab6ecea25a806de622e
nested html links are broken with parse_block_html this is a variant of #81 example_in = '<div><a href="https://example.com">Example.com</a></div>' mistune.markdown(example_in, escape=False, parse_block_html=True) will generate: <div><a href="<a href="https://example.com"&gt;Example.com">https://...
diff --git a/mistune.py b/mistune.py index 5b05fcb..175ff01 100644 --- a/mistune.py +++ b/mistune.py @@ -503,7 +503,7 @@ class InlineLexer(object): 'linebreak', 'strikethrough', 'text', ] inline_html_rules = [ - 'escape', 'autolink', 'url', 'link', 'reflink', + 'escape', 'inline_html', ...
lepture__mistune-277
[ { "changes": { "added_entities": [ "mistune/plugins/task_lists.py:_rewrite_all_list_items" ], "added_modules": [ "mistune/plugins/task_lists.py:_rewrite_all_list_items" ], "edited_entities": [ "mistune/plugins/task_lists.py:task_lists_hook", "mistune...
lepture/mistune
ab0e8b697ada8f68899a569307510133e8f13771
Task lists cannot be nested Task lists apparently cannot be nested (tested with master and 2.0.0rc1): ```py >>> mistune.create_markdown(plugins=['task_lists'])('* [ ] task\n * [ ] subtask') '<ul>\n<li class="task-list-item"><input class="task-list-item-checkbox" type="checkbox" disabled/>task<ul>\n<li>[ ] subtask...
diff --git a/mistune/plugins/task_lists.py b/mistune/plugins/task_lists.py index 8f7997c..3094ea7 100644 --- a/mistune/plugins/task_lists.py +++ b/mistune/plugins/task_lists.py @@ -7,11 +7,7 @@ TASK_LIST_ITEM = re.compile(r'^(\[[ xX]\])\s+') def task_lists_hook(md, tokens, state): - for tok in tokens: - ...
lepture__mistune-393
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/mistune/inline_parser.py:InlineParser.parse_codespan" ], "edited_modules": [ "src/mistune/inline_parser.py:InlineParser" ] }, "file": "src/mistune/inline_parser.py"...
lepture/mistune
0772c78bc0a62771768278263ef740345f58c0f0
Certain characters in inline code incorrectly parsed (e.g., `&`) MWE: ```python import mistune from mistune.core import BlockState markdown = mistune.create_markdown(renderer="ast") md = r"`&<>`" tokens = markdown(md) print(tokens) ``` Output: ```python [{'type': 'paragraph', 'children': [{'type': ...
diff --git a/src/mistune/inline_parser.py b/src/mistune/inline_parser.py index 21b04c1..97423db 100644 --- a/src/mistune/inline_parser.py +++ b/src/mistune/inline_parser.py @@ -19,7 +19,7 @@ from .helpers import ( parse_link_text, unescape_char, ) -from .util import escape, escape_url, unikey +from .util imp...
lepture__python-livereload-198
[ { "changes": { "added_entities": [ "livereload/watcher.py:Watcher.is_file_removed" ], "added_modules": null, "edited_entities": [ "livereload/watcher.py:Watcher.__init__", "livereload/watcher.py:Watcher.watch", "livereload/watcher.py:Watcher.examine", ...
lepture/python-livereload
f80cb3ae0f8f2cdf38203a712fe25ef7f1899c34
Doesn't detect file deletion on macOS/Windows I was hoping to use this as a replacement for Pelican's development server, which has an option to automatically regenerate content when a file is created, updated, or deleted, but doesn't refresh the browser. I followed an [existing example](https://merlijn.vandeen.nl/2015...
diff --git a/.gitignore b/.gitignore index 8c31eb5..46b78ee 100644 --- a/.gitignore +++ b/.gitignore @@ -21,6 +21,7 @@ pip-log.txt .coverage .tox .env/ +venv/ docs/_build example/style.css diff --git a/livereload/watcher.py b/livereload/watcher.py index b0545e6..8ac39ca 100644 --- a/livereload/watcher.py +++ b/l...
level12__keg-191
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "keg/web.py:BaseView.init_blueprint" ], "edited_modules": [ "keg/web.py:BaseView" ] }, "file": "keg/web.py" }, { "changes": { "added_entities": [ "...
level12/keg
a528fe2c6381fd4d845060218a134c57d0ad71b9
rule() when used w/ a relative URL should not result in the default URL also being available ```python class ApprovalReview(ApprovalBaseView): rule('<int:week_id>', post=True) def get(self, week_id): pass ``` ``` $ marshal develop routes | grep review admin.approval-review ...
diff --git a/docs/source/readme/installation.rst b/docs/source/readme/installation.rst index 2c8a4e6..97859b6 100644 --- a/docs/source/readme/installation.rst +++ b/docs/source/readme/installation.rst @@ -2,3 +2,25 @@ Installation ============ ``pip install keg`` + + +Upgrade Notes +============= + +While we attemp...
level12__keg-elements-132
[ { "changes": { "added_entities": [ "keg_elements/forms/__init__.py:Form.field_errors" ], "added_modules": null, "edited_entities": [ "keg_elements/forms/__init__.py:TypeHintingTextInputB3.__call__", "keg_elements/forms/__init__.py:TypeHintingTextInputB4.__call__",...
level12/keg-elements
0ea69ab464c61c93338196d167c220859130196b
Form.errors, .all_errors, and .form_errors Right now, we have: * `Form.errors`: field errors * `Form.form_errors`: form level errors * `Form.all_errors`: form & field level errors I think it would make more sense to have: * `Form.field_errors`: field errors * `Form.form_errors`: form level errors * `Form.err...
diff --git a/keg_elements/forms/__init__.py b/keg_elements/forms/__init__.py index 22baffc..c045e2c 100644 --- a/keg_elements/forms/__init__.py +++ b/keg_elements/forms/__init__.py @@ -4,7 +4,6 @@ from __future__ import unicode_literals import functools import inspect import logging -from collections import namedtup...
level12__keg-elements-134
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "keg_elements/forms/__init__.py:FormGenerator.create_validators" ], "edited_modules": [ "keg_elements/forms/__init__.py:FormGenerator" ] }, "file": "keg_elements/forms/_...
level12/keg-elements
e590f2da7161670ad36b20cde3cb7f01d1e466ff
ModelForm Requires Precision and Scale to be Set on Numeric Columns It seems to create validators for a `ModelForm` any Numeric columns on the model are assumed to have both precision and scale set: (focus on lines 367-368) https://github.com/level12/keg-elements/blob/0ea69ab464c61c93338196d167c220859130196b/keg_eleme...
diff --git a/keg_elements/forms/__init__.py b/keg_elements/forms/__init__.py index c045e2c..4bde279 100644 --- a/keg_elements/forms/__init__.py +++ b/keg_elements/forms/__init__.py @@ -365,6 +365,8 @@ class FormGenerator(FormGeneratorBase): def create_validators(self, prop, column): validators = super(For...
level12__keg-elements-71
[ { "changes": { "added_entities": [ "keg_elements/forms/validators.py:ValidateUnique.get_obj" ], "added_modules": null, "edited_entities": [ "keg_elements/forms/validators.py:ValidateUnique.__call__" ], "edited_modules": [ "keg_elements/forms/validators...
level12/keg-elements
7838f08ef0e8fec7e2e74c8dcad21f748e98a697
`ValidateUnique` form validator can integrate better Right now `ValidateUnique` requires that the Form have a `obj` member. This must be added manually to the form since it's not included by default on a WTForm form. However, WTForms do have a `_obj` member which has the same purpose. We could make `ValidateUnique` eas...
diff --git a/keg_elements/forms/validators.py b/keg_elements/forms/validators.py index f65db1d..d473d7a 100644 --- a/keg_elements/forms/validators.py +++ b/keg_elements/forms/validators.py @@ -47,8 +47,18 @@ class ValidateUnique(object): def __init__(self, object_html_link=None): self.object_html_link = o...
level12__keg-elements-82
[ { "changes": { "added_entities": [ "keg_elements/forms/validators.py:ValidateAlphaNumeric.__init__", "keg_elements/forms/validators.py:ValidateAlphaNumeric.__call__" ], "added_modules": [ "keg_elements/forms/validators.py:ValidateAlphaNumeric" ], "edited_ent...
level12/keg-elements
1d0f3d854820ca888ea4c0020af9e7f4d46a6c6a
Add an alphanumeric validator Currently there is no validator for alphanumeric (Characters and numbers only). It would be nice to have one for reuse.
diff --git a/docker-entry b/docker-entry index b30f472..f933af4 100644 --- a/docker-entry +++ b/docker-entry @@ -22,7 +22,7 @@ export PIP_DISABLE_PIP_VERSION_CHECK=1 # b/c it gives me control over what version of tox I'm using without having to rebuild the # docker image. python3.5 -m pip install --upgrade --force-r...
level12__keg-storage-56
[ { "changes": { "added_entities": [ "keg_storage/backends/base.py:StorageBackend.copy" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "keg_storage/backends/base.py:StorageBackend" ] }, "file": "keg_storage/backends/base.py" }, ...
level12/keg-storage
02003a8efcaf29c9167ed68ddee13a1f8a1bed2d
Implement method(s) to natively copy objects in S3 and local storage backends Need a way to natively copy objects so that files don't need to be downloaded and re-uploaded in order to duplicate.
diff --git a/keg_storage/backends/base.py b/keg_storage/backends/base.py index dedaa6b..dcc51ba 100644 --- a/keg_storage/backends/base.py +++ b/keg_storage/backends/base.py @@ -158,6 +158,12 @@ class StorageBackend: """ raise NotImplementedError() + def copy(self, path: str, new_path: str): + ...
level12__morphi-6
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "morphi/messages/manager.py:gettext_find" ], "edited_modules": [ "morphi/messages/manager.py:gettext_find" ] }, "file": "morphi/messages/manager.py" } ]
level12/morphi
291ca955fbe2d2ef56899f84fca5b51193d09640
Certain paths in locale directory can causes ValueErrors If a user-specified locale directory contains parent references ('..') or absolute paths, the package resource loader can throw a ValueError.
diff --git a/morphi/messages/manager.py b/morphi/messages/manager.py index 3137358..71c946f 100644 --- a/morphi/messages/manager.py +++ b/morphi/messages/manager.py @@ -256,7 +256,7 @@ def gettext_find(domain, localedir=None, languages=None, all=False, # noqa: C90 else: return mof...
levitsky__pyteomics-144
[ { "changes": { "added_entities": [ "pyteomics/proforma.py:ModificationBase.__reduce__", "pyteomics/proforma.py:ModificationBase.__getstate__", "pyteomics/proforma.py:ModificationBase.__setstate__" ], "added_modules": null, "edited_entities": [ "pyteomics/p...
levitsky/pyteomics
7ca5eb20c099d08fdfbfbad14f8763ef1b7fff96
[proforma] Modifications cannot be pickled after being resolved Hi @mobiusklein, We have been using the ProForma module heavily in most of our tools now, so first: A big thanks for all your work and continuous support on it! Since Pyteomics 4.7, our tools that use multiprocessing on ProForma peptides have been t...
diff --git a/pyteomics/proforma.py b/pyteomics/proforma.py index c24792b..3a17f58 100644 --- a/pyteomics/proforma.py +++ b/pyteomics/proforma.py @@ -654,6 +654,19 @@ class ModificationBase(TagBase): self._definition = None self.style = style + def __reduce__(self): + return self.__class__,...
levitsky__pyteomics-158
[ { "changes": { "added_entities": [ "pyteomics/proforma.py:TagBase.has_mass", "pyteomics/proforma.py:ModificationBase.has_mass", "pyteomics/proforma.py:MassModification.has_mass" ], "added_modules": null, "edited_entities": [ "pyteomics/proforma.py:ProForma...
levitsky/pyteomics
2d0a8748dc39784a10ee316dbe5a215db4ad67c6
Unparsable modifications are silently ignored in ProForma mass calculation Hello, I discovered a quirky "attitude" of ProForma parsing. If a ProForma object has a modification that cannot be decoded this modification is silently ignored in all further calculations, while the same calculation on the modification o...
diff --git a/pyteomics/proforma.py b/pyteomics/proforma.py index 2d71c33..188a622 100644 --- a/pyteomics/proforma.py +++ b/pyteomics/proforma.py @@ -207,6 +207,16 @@ class TagBase(object): def parse(cls, buffer): return process_tag_tokens(buffer) + def has_mass(self): + """ + Check if t...
levitsky__pyteomics-169
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "pyteomics/auxiliary/__init__.py" }, { "changes": { "added_entities": [ "pyteomics/auxiliary/utils.py:ensure_url_prefix" ], "...
levitsky/pyteomics
6c1157d8877a6f70c03f9db22cb59deda991f2f3
proforma.set_unimod_path() Hello, If I undestand correctly from the documentation the method `proforma.set_unimod_path("path/to/unimod.xml")` shoud load a local copy of unimod to avoid download it every time. However, if I specify the path to the local copy I get `ValueError: unknown url type: 'unimod_tables.xml'`. If...
diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index 9407f37..a04eeb6 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -35,3 +35,24 @@ jobs: - name: Run the tests run: | cd tests; find . -name 'test_*.py' -print0 |...
levlaz__circleci.py-28
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "circleci/api.py:Api.retry_build" ], "edited_modules": [ "circleci/api.py:Api" ] }, "file": "circleci/api.py" } ]
levlaz/circleci.py
873f151b4c378dec7333c68f9f5e5279e0899532
Update retry method to include retry with SSH We have retry, and we also have retry without cache via the Experimental API. We should also include an option to retry with SSH as [described here](https://circleci.com/docs/api/v1-reference/#retry-build)
diff --git a/circleci/api.py b/circleci/api.py index cf8a7ab..84ea9c6 100644 --- a/circleci/api.py +++ b/circleci/api.py @@ -259,7 +259,7 @@ class Api(): resp = self._request('GET', endpoint) return resp - def retry_build(self, username, project, build_num, vcs_type='github'): + def retry_buil...
lexibank__pylexibank-134
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/pylexibank/cldf.py:LexibankWriter.add_languages", "src/pylexibank/cldf.py:LexibankWriter.add_concepts" ], "edited_modules": [ "src/pylexibank/cldf.py:LexibankWriter" ...
lexibank/pylexibank
0ddc78b6e280e9296bdd14f9bd884d1e0061cc53
Return lookup from LexibankWriter.add_* methods... ...if one is defined via a `lookup_factory` argument. See https://github.com/lexibank/pylexibank/issues/132#issuecomment-545931006
diff --git a/src/pylexibank/cldf.py b/src/pylexibank/cldf.py index deee9a2..cb38b21 100644 --- a/src/pylexibank/cldf.py +++ b/src/pylexibank/cldf.py @@ -1,5 +1,5 @@ import re -from collections import defaultdict +from collections import defaultdict, OrderedDict from itertools import chain from pathlib import Path i...
lexibank__pylexibank-148
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/pylexibank/dataset.py:Dataset.cmd_readme" ], "edited_modules": [ "src/pylexibank/dataset.py:Dataset" ] }, "file": "src/pylexibank/dataset.py" }, { "changes"...
lexibank/pylexibank
9d3001127a62fc063845f02a5afafd43a5be7234
formspec replacements I'm liking the formspec way of handling form cleaning, but notice that a lot of datasets do manual stripping/replacing of characters e.g. robinsonap has a proto-language where all forms have a leading `*` to indicate they're reconstructions. It's easy to do this with string replace, but its not c...
diff --git a/src/pylexibank/dataset.py b/src/pylexibank/dataset.py index 07113dc..bac565d 100644 --- a/src/pylexibank/dataset.py +++ b/src/pylexibank/dataset.py @@ -218,6 +218,7 @@ class Dataset(BaseDataset): tr = self.cldf_dir / '.transcription-report.json' tr = jsonlib.load(tr) if tr.exists() else N...
lexibank__pylexibank-152
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/pylexibank/dataset.py:Dataset.tokenizer" ], "edited_modules": [ "src/pylexibank/dataset.py:Dataset" ] }, "file": "src/pylexibank/dataset.py" } ]
lexibank/pylexibank
7a360022dbae0311095feb903bb6924e1b659c3a
Support multiple profiles Do we have a standard way of supporting multiple orthographic profiles? Or should we try to always use a single file, even when the code and the profile become more complex? My question concerns mostly WOLD, with 41 very different profiles (one per language). I couldn't find a non-hacky way...
diff --git a/src/pylexibank/dataset.py b/src/pylexibank/dataset.py index c2c596b..078b376 100644 --- a/src/pylexibank/dataset.py +++ b/src/pylexibank/dataset.py @@ -139,19 +139,37 @@ class Dataset(BaseDataset): - `kw` may be used to pass any context info to the tokenizer, when called explicitly. ...
lexibank__pylexibank-214
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "setup.py" }, { "changes": { "added_entities": [ "src/pylexibank/metadata.py:check_standard_title" ], "added_modules": [ ...
lexibank/pylexibank
6d10128138acc01844793e247248eca83eedb4d6
Add check that metadata['title'] follows recommended form? Do we want to check if the title follows the [recommended form](https://github.com/lexibank/lexibank/blob/master/CONTRIBUTING.md#titles-for-lexibank-datasets): ``` "title": "CLDF dataset derived from AUTHOR's \"SHORTTITLE\" from YEAR." ``` (even supe...
diff --git a/setup.py b/setup.py index 8873953..d59cb48 100755 --- a/setup.py +++ b/setup.py @@ -28,12 +28,12 @@ setup( platforms='any', python_requires='>=3.5', install_requires=[ + 'attrs>=19.2', 'segments>=2.1.1', 'cldfbench[excel]>=1.0', 'csvw>=1.5.6', 'clld...
lhotse-speech__lhotse-1156
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lhotse/audio/backend.py:read_opus_ffmpeg" ], "edited_modules": [ "lhotse/audio/backend.py:read_opus_ffmpeg" ] }, "file": "lhotse/audio/backend.py" }, { "changes...
lhotse-speech/lhotse
567ba2941bb4dca4bf293d052ea7ae8ab8a590ef
The mismatch between split and split-lazy, specifically counting from 0 or 1 I note that `lhotse split` will generate splits that counting from 1, while `lhotse split-lazy` will generate splits that counting from 0. In some icefall recipes like gigaspeech, we initially use `lhotse split` and then change to use `lhotse...
diff --git a/lhotse/audio/backend.py b/lhotse/audio/backend.py index e84a0116..592eb759 100644 --- a/lhotse/audio/backend.py +++ b/lhotse/audio/backend.py @@ -872,7 +872,7 @@ def read_opus_ffmpeg( if duration is not None: cmd += f" -t {duration}" # Add the input specifier after offset and duration. -...
lhotse-speech__lhotse-1192
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lhotse/features/io.py:LilcomFilesWriter.write", "lhotse/features/io.py:NumpyFilesWriter.write", "lhotse/features/io.py:NumpyHdf5Writer.__init__", "lhotse/features/io.py:LilcomHdf...
lhotse-speech/lhotse
a4701868e04a2156626cd4c087300de7b5ac689c
LilcomChunkyWriter replaces storage_path if it contains "." Hi! I realize that when i use storage_path with . like "gigaspeech_overlap_0.3_TRAIN" it will end up becoming saving to the file "gigaspeech_overlap_0.lca" instead of "gigaspeech_overlap_0.3_TRAIN.lca" as expected. It seems to be due to this line: https://g...
diff --git a/lhotse/features/io.py b/lhotse/features/io.py index bfcf268a..4a7b812a 100644 --- a/lhotse/features/io.py +++ b/lhotse/features/io.py @@ -280,7 +280,10 @@ class LilcomFilesWriter(FeaturesWriter): # too many files in a single directory. subdir = self.storage_path_ / key[:3] subdir...
librosa__librosa-1501
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "librosa/display.py:__same_axes" ], "edited_modules": [ "librosa/display.py:__same_axes" ] }, "file": "librosa/display.py" } ]
librosa/librosa
b9830b4a335b1e7e4be66ee81870573bf3d516d0
specshow auto-aspect should match on data, not decoration **Is your feature request related to a problem? Please describe.** PR #1312 implemented auto-aspect pinning for the case where we have a square image to show (e.g., a self-similarity matrix). The logic requires that the x and y coordinates are equivalent, an...
diff --git a/librosa/display.py b/librosa/display.py index 7a9aba4a..98f55fed 100644 --- a/librosa/display.py +++ b/librosa/display.py @@ -35,6 +35,7 @@ Miscellaneous """ +from itertools import product import warnings import numpy as np @@ -617,6 +618,23 @@ def __envelope(x, hop): return x_frame.max(axis=...
librosa__librosa-1529
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "librosa/core/audio.py:autocorrelate" ], "edited_modules": [ "librosa/core/audio.py:autocorrelate" ] }, "file": "librosa/core/audio.py" }, { "changes": { "...
librosa/librosa
ad90c4bd11680e6f62475775fbe7c0568ea976bc
Vectorized utility functions: abs2, unit phasor, others? #### Description It would be useful to have an efficient function for getting magnitude-squared (power) from real or complex variables. This came up in offline discussion of #742 , where `abs` is doing unnecessary work if we actually want power anyway. This ...
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a84f5047..1d468da8 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -129,10 +129,11 @@ the HTML output by typing ``make html`` from the docs/ directory. The resulting HTML files will be placed in _build/html/ and are viewable in a web browser. See the README ...
lidatong__dataclasses-json-123
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "dataclasses_json/mm.py:_UnionField._deserialize", "dataclasses_json/mm.py:schema" ], "edited_modules": [ "dataclasses_json/mm.py:_UnionField", "dataclasses_json/mm.py...
lidatong/dataclasses-json
37de0bebb56964cd3207d3a2a1260f5fc6542709
field_name is not supported with schema ```ipython In [4]: @dataclasses_json.dataclass_json ...: @dataclasses.dataclass ...: class Person: ...: name: str = dataclasses.field(metadata=dataclasses_json.config(field_name="fullname")) ...: age: int ...: In [5]: p = Person("A B", 23) ...
diff --git a/dataclasses_json/mm.py b/dataclasses_json/mm.py index 08a69e9..5df24eb 100644 --- a/dataclasses_json/mm.py +++ b/dataclasses_json/mm.py @@ -1,6 +1,7 @@ import typing import warnings import sys +from copy import deepcopy from dataclasses import MISSING, is_dataclass, fields as dc_fields from datetime...
lidatong__dataclasses-json-346
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "dataclasses_json/core.py:_is_supported_generic", "dataclasses_json/core.py:_decode_generic", "dataclasses_json/core.py:_decode_dict_keys" ], "edited_modules": [ "data...
lidatong/dataclasses-json
3264a0046e1aa3c0a813335286ebdbc651f58b13
`typing` module types without parameters broken when using Python 3.9 When using types in the built-in `typing` module, if a type supports additional parameters and those parameters are not used, errors result when using Python 3.9 Code: ```python from dataclasses import dataclass from typing import List from ...
diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index c7a459b..2cbe068 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -15,7 +15,7 @@ jobs: max-parallel: 5 matrix: # https://github.com/actions/python-versions/blo...
lidatong__dataclasses-json-394
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "dataclasses_json/core.py:_encode_json_type" ], "edited_modules": [ "dataclasses_json/core.py:_encode_json_type" ] }, "file": "dataclasses_json/core.py" } ]
lidatong/dataclasses-json
39b4c2f4462282576d72a72ade048ef49e2133bb
`to_dict(encode_json=True)` is not recursive I expect `to_dict(encode_json=True)` to be recursive, however the code below evaluates to: ``` {'engine': 'fast', 'wheels': [<Spec.fast: 'fast'>, <Spec.slow: 'slow'>]} ``` The first level of Enums evaluate to strings as expected, but the list is not JSON encoded. I expec...
diff --git a/dataclasses_json/core.py b/dataclasses_json/core.py index 529e153..ae1e99b 100644 --- a/dataclasses_json/core.py +++ b/dataclasses_json/core.py @@ -93,7 +93,12 @@ def _user_overrides_or_exts(cls): def _encode_json_type(value, default=_ExtendedEncoder().default): if isinstance(value, Json.__args__):...
lidatong__dataclasses-json-426
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "dataclasses_json/core.py:_decode_generic" ], "edited_modules": [ "dataclasses_json/core.py:_decode_generic" ] }, "file": "dataclasses_json/core.py" } ]
lidatong/dataclasses-json
38d8123f9f990ecd088f5d8f42768685de975644
[BUG] common errors from decoder on inner dataclass silently ignored ### Description If you have a dataclass with a mapping field that includes a dataclass member, and you try to `from_dict` the outer dataclass, some errors from a custom `decoder` implementation will get silently ignored. ### Code snippet that reprod...
diff --git a/dataclasses_json/core.py b/dataclasses_json/core.py index fb7f0e6..d34e51d 100644 --- a/dataclasses_json/core.py +++ b/dataclasses_json/core.py @@ -281,10 +281,12 @@ def _decode_generic(type_, value, infer_missing): # get the constructor if using corresponding generic type in `typing` #...
lidatong__dataclasses-json-435
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "dataclasses_json/core.py:_decode_generic", "dataclasses_json/core.py:_decode_items" ], "edited_modules": [ "dataclasses_json/core.py:_decode_generic", "dataclasses_js...
lidatong/dataclasses-json
bc83017e26493a67bccb46ace6caecb00e9fde99
[BUG] tuple decode assumes homogenous sequence ### Description If I express a field type as `tuple[int, str]`, I would expect the two dimensions of the tuple to be decoded as each separate type. This is especially true if the type of the first dimension is an Enum, because assuming that only the first type applies to ...
diff --git a/dataclasses_json/core.py b/dataclasses_json/core.py index 3118036..acb5a47 100644 --- a/dataclasses_json/core.py +++ b/dataclasses_json/core.py @@ -23,7 +23,7 @@ from dataclasses_json.utils import (_get_type_cons, _get_type_origin, _get_type_arg_param, ...
lidatong__dataclasses-json-66
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "dataclasses_json/api.py:DataClassJsonMixin.schema" ], "edited_modules": [ "dataclasses_json/api.py:DataClassJsonMixin" ] }, "file": "dataclasses_json/api.py" }, { ...
lidatong/dataclasses-json
8779ebc69a98171d849f51828bbce68b31fc25b3
Invalid input type Hello, The title shows the error i've been having with this library. I've put together a scenario which reproduces the problem: ``` from dataclasses import dataclass from typing import List from dataclasses_json import dataclass_json @dataclass_json @dataclass class Relative: n...
diff --git a/dataclasses_json/api.py b/dataclasses_json/api.py index 7098e69..66b52fd 100644 --- a/dataclasses_json/api.py +++ b/dataclasses_json/api.py @@ -1,15 +1,10 @@ import abc import json -from dataclasses import fields -from datetime import datetime from typing import Any, Callable, List, Optional, Tuple, Typ...
lifeomic__phc-sdk-py-69
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "phc/easy/patients/address.py:expand_address_value" ], "edited_modules": [ "phc/easy/patients/address.py:expand_address_value" ] }, "file": "phc/easy/patients/address.py...
lifeomic/phc-sdk-py
31adf1f7f451013216071c2d8737e3512e5b56e8
Multiple addresses in column breaks frame expansion Pulling out address breaks when multiple values are present. For example: ``` [{'state': 'NC', 'postalCode': '27540', 'period': {'start': '2001'}}, {'use': 'old', 'state': 'SC', 'period': {'start': '1999', 'end': '2001'}}] ``` Error: ``` ----------------------...
diff --git a/phc/easy/patients/address.py b/phc/easy/patients/address.py index edbd1c8..c7af9a3 100644 --- a/phc/easy/patients/address.py +++ b/phc/easy/patients/address.py @@ -1,4 +1,6 @@ import pandas as pd + +from funcy import first from phc.easy.codeable import generic_codeable_to_dict from phc.easy.util import ...
lifeomic__phc-sdk-py-72
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "phc/easy/query/fhir_dsl_query.py:and_query_clause" ], "edited_modules": [ "phc/easy/query/fhir_dsl_query.py:and_query_clause" ] }, "file": "phc/easy/query/fhir_dsl_quer...
lifeomic/phc-sdk-py
31adf1f7f451013216071c2d8737e3512e5b56e8
Merge patient_ids with "must" query Currently, `patient_ids` cannot be auto-merged with this type of custom query: ```python phc.Procedure.get_date_frame(patient_ids=["a", "b"], query_overrides={ "where": { "type": "elasticsearch", "query": { "bool": { "must": [ ...
diff --git a/phc/easy/query/fhir_dsl_query.py b/phc/easy/query/fhir_dsl_query.py index c1ecc3b..2d8a5b2 100644 --- a/phc/easy/query/fhir_dsl_query.py +++ b/phc/easy/query/fhir_dsl_query.py @@ -8,6 +8,7 @@ FHIR_WHERE = lens.Get("where", {}) FHIR_WHERE_TYPE = FHIR_WHERE.Get("type", "") FHIR_SIMPLE_QUERY = FHIR_WHERE.Ge...
lig__pyventory-10
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pyventory/asset.py:Asset.__build_vars" ], "edited_modules": [ "pyventory/asset.py:Asset" ] }, "file": "pyventory/asset.py" }, { "changes": { "added_entiti...
lig/pyventory
1630f08e58c95e8a50c0256d13034022e4a75067
NotImplemeted as property value Allow defining `NotImplemented` as Asset property value. Do not include such a property in group vars if not overridden. Raise an exception if the value wasn't overridden in the host vars.
diff --git a/.gitignore b/.gitignore index 80f81e0..04ae275 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,8 @@ !.gitignore *~ *.pyc -*.egg-info/ + +/venv +/build +/dist +/*.egg-info diff --git a/pyventory/asset.py b/pyventory/asset.py index d244bb8..03c31ec 100644 --- a/pyventory/asset.py +++ b/pyventory/asset...
lig__pyventory-18
[ { "changes": { "added_entities": [ "pyventory/asset.py:AssetAttr.__init__", "pyventory/asset.py:AssetAttr.__get__", "pyventory/asset.py:AssetAttr.__set_name__", "pyventory/asset.py:AssetMeta.__new__", "pyventory/asset.py:Asset.__new__", "pyventory/asset.py:A...
lig/pyventory
67d6a2a607b6731ecc83ee65ed90f78dbc2c73aa
Allow to use calculated value of an asset class Given the following code ```python class MyAsset(Asset): foo = 'value is {bar}' bar = 'my value' ``` Accessing `MyAsset.foo` will return `'value is {bar}'`. It will be useful to be able to get `'value is my value'` instead.
diff --git a/pyventory/asset.py b/pyventory/asset.py index 1d58aa6..2b9a962 100644 --- a/pyventory/asset.py +++ b/pyventory/asset.py @@ -7,71 +7,119 @@ from pyventory import errors __all__ = ['Asset'] -class Asset: +class SKIP_ATTR: + pass + + +class AssetAttr: + _value = None + _name = None + + def __...
lightkurve__lightkurve-1016
[ { "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": [ "src/lightkurve/lightcurve.p...
lightkurve/lightkurve
ddefb61404904c92d88461fc03f9d84f7f3cae3e
QLP problems <!-- Fill in the information below before opening an issue. --> #### Problem description A value error is generated when a QLP light curve is appended to a Kepler light curve: #### Example <!-- Provide a link or minimal code snippet that demonstrates the issue. --> ```python import lightkurve as ...
diff --git a/CHANGES.rst b/CHANGES.rst index 6bd7de79..27614f56 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,3 +1,10 @@ +2.0.9 (unreleased) +================== + +- Fixed a bug in ``LightCurve.append()`` which caused the method to crash + if the light curves contained incompatible column types. [#1015] + + 2.0.8 ...
lightkurve__lightkurve-1051
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "docs/source/conf.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/lightkurve/l...
lightkurve/lightkurve
10ff26d3ec25196dcaf6c4a95eff545d71bd8841
Incorrect UserWarning in assigning LightCurve.meta <!-- Fill in the information below before opening an issue. --> #### Problem description <!-- Provide a clear and concise description of the issue. --> 1. When user assigns value to `lc.meta`, an UserWarning` is issued. It should not be there. 2. The URL in the...
diff --git a/docs/source/conf.py b/docs/source/conf.py index e8b19226..5c5feec9 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -19,6 +19,7 @@ extensions = [ 'sphinx.ext.autosummary', 'sphinx.ext.mathjax', 'sphinx.ext.intersphinx', + 'sphinx.ext.viewcode', 'nbsphinx', 'numpydoc...
lightkurve__lightkurve-1054
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "docs/source/conf.py" }, { "changes": { "added_entities": [ "src/lightkurve/targetpixelfile.py:HduToMetaMapping.__repr__", "src/l...
lightkurve/lightkurve
10ff26d3ec25196dcaf6c4a95eff545d71bd8841
TargetPixelFile.meta should have a friendly __repr__ and __str__ <!-- Fill in the information below before opening an issue. --> #### Problem description One would entering `TargetPixelFile.meta` on ipython / jupyter would display the key - value pairs in the meta, the typical behavior of dictionary like objects....
diff --git a/docs/source/conf.py b/docs/source/conf.py index e8b19226..5c5feec9 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -19,6 +19,7 @@ extensions = [ 'sphinx.ext.autosummary', 'sphinx.ext.mathjax', 'sphinx.ext.intersphinx', + 'sphinx.ext.viewcode', 'nbsphinx', 'numpydoc...
lightkurve__lightkurve-1084
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/lightkurve/io/qlp.py:read_qlp_lightcurve" ], "edited_modules": [ "src/lightkurve/io/qlp.py:read_qlp_lightcurve" ] }, "file": "src/lightkurve/io/qlp.py" } ]
lightkurve/lightkurve
e0061f5c03a0bd764c9515db46b63c5093aa3ad3
Change default column for QLP light curves #### Problem description When LightKurve reads light curves from the QLP HLSP, it pulls from a post-processed column (called KSP_FLUX) that is already high-pass-filtered. This makes it impossible to recover the original light curve and see features like stellar variabilit...
diff --git a/CHANGES.rst b/CHANGES.rst index 878fac64..0f889711 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -28,6 +28,9 @@ - Added the ``LightCurve.select_flux()`` method to make it easier to use a different column to populate the ``flux`` and ``flux_err`` columns. [#1076] +- Modified the MIT Quicklook Pipeline...
lightkurve__lightkurve-1119
[ { "changes": { "added_entities": [ "src/lightkurve/lightcurve.py:_to_unitless_day" ], "added_modules": [ "src/lightkurve/lightcurve.py:_to_unitless_day" ], "edited_entities": [ "src/lightkurve/lightcurve.py:LightCurve.create_transit_mask" ], "edi...
lightkurve/lightkurve
6698e3bdeab666dce88ac818c7186b9e4ac590c9
LightCurve.create_transit_mask() : should accept Quantity for period, duration <!-- Fill in the information below before opening an issue. --> #### Problem description <!-- Provide a clear and concise description of the issue. --> Right now, `period` / `duration` in `LightCurve.create_transit_mask()` does not ac...
diff --git a/src/lightkurve/lightcurve.py b/src/lightkurve/lightcurve.py index 85fb1415..98a48b84 100644 --- a/src/lightkurve/lightcurve.py +++ b/src/lightkurve/lightcurve.py @@ -37,6 +37,13 @@ __all__ = ["LightCurve", "KeplerLightCurve", "TessLightCurve", "FoldedLightCurve log = logging.getLogger(__name__) +def _...
lightkurve__lightkurve-1143
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/lightkurve/lightcurve.py:LightCurve.create_transit_mask" ], "edited_modules": [ "src/lightkurve/lightcurve.py:LightCurve" ] }, "file": "src/lightkurve/lightcurve.py...
lightkurve/lightkurve
7757bfec85571ad472350cf6c7d340f16f57854f
lightkurve.LightCurve.create_transit_mask breaks when using astropy units <!-- Fill in the information below before opening an issue. --> #### Problem description <!-- Provide a clear and concise description of the issue. --> If I send an orbital period, transit time, and transit duration all with astropy units (w...
diff --git a/CHANGES.rst b/CHANGES.rst index 60db57d6..a1a57f10 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -19,7 +19,7 @@ Dynamical Time (TDB) scale by default. [#1112] - Modified ``LightCurve.create_transit_mask()`` to accept AstroPy ``Quantity`` - objects for the ``period`` and ``duration`` parameters. [#11...
lightkurve__lightkurve-1214
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": [ "src/lightkurve/__init__.py:Conf" ] }, "file": "src/lightkurve/__init__.py" }, { "changes": { "added_entities": [ "src/lightkurve/config/...
lightkurve/lightkurve
fddef5083c755361801f3f4bfeb3c3a177fc1b27
Make default `download_dir` configurable <!-- Fill in the information below before opening an issue. --> #### Problem description <!-- Provide a clear and concise description of the issue. --> Right now, when users download lightcurve / TPF files, 1. they'd by default be saved at `~/.lightkurve-cache`, unless ...
diff --git a/CHANGES.rst b/CHANGES.rst index 6b1c50ab..4f6f3b3a 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,3 +1,12 @@ +2.4.0 (unreleased) +================== + +- Added the ability to configure the default cache directory used by + ``SearchResult.download()`` / ``SearchResult.download_all()``. [#1214] +- Moved t...
lightkurve__lightkurve-1331
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/lightkurve/correctors/sffcorrector.py:_estimate_arclength" ], "edited_modules": [ "src/lightkurve/correctors/sffcorrector.py:_estimate_arclength" ] }, "file": "src/...
lightkurve/lightkurve
394246f61afddc21d584a8984e0f71c9a1673aa0
`SFFCorrector` appears to crash when the aperture mask contains only one pixel Example: ```python In [1]: import lightkurve as lk In [2]: tpf = lk.search_targetpixelfile("EPIC 211771334", campaign=18).download() ...
diff --git a/src/lightkurve/correctors/sffcorrector.py b/src/lightkurve/correctors/sffcorrector.py index b92be92f..89c6b538 100644 --- a/src/lightkurve/correctors/sffcorrector.py +++ b/src/lightkurve/correctors/sffcorrector.py @@ -502,7 +502,12 @@ def _estimate_arclength(centroid_col, centroid_row): """ col =...
lightkurve__lightkurve-1361
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/lightkurve/io/generic.py:read_generic_lightcurve" ], "edited_modules": [ "src/lightkurve/io/generic.py:read_generic_lightcurve" ] }, "file": "src/lightkurve/io/gene...
lightkurve/lightkurve
394246f61afddc21d584a8984e0f71c9a1673aa0
CDIPS light curves can not be stitched <!-- Fill in the information below before opening an issue. --> #### Problem description Light curves from the `CDIPS` author can not be stitched together and produce a lot of warnings/errors when trying. This might indicate something is wrong with the reader for that product....
diff --git a/src/lightkurve/io/generic.py b/src/lightkurve/io/generic.py index f571d0e2..d051df68 100644 --- a/src/lightkurve/io/generic.py +++ b/src/lightkurve/io/generic.py @@ -67,7 +67,13 @@ def read_generic_lightcurve( elif unitstr == "ppm" and repr(tab[colname].unit).startswith("Unrecognized"): ...
lightkurve__lightkurve-1392
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/lightkurve/io/qlp.py:read_qlp_lightcurve" ], "edited_modules": [ "src/lightkurve/io/qlp.py:read_qlp_lightcurve" ] }, "file": "src/lightkurve/io/qlp.py" } ]
lightkurve/lightkurve
68fdf039371ca5cc669d9013f3a32e30c829d1a2
Detrended flux columns in QLP lightcurves appear to have been renamed in recent sectors (56 and later) <!-- Fill in the information below before opening an issue. --> #### Problem description <!-- Provide a clear and concise description of the issue. --> The detrended columns in [QLP](https://archive.stsci.edu/hls...
diff --git a/CHANGES.rst b/CHANGES.rst index 3ac43947..a85ed588 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -2,6 +2,8 @@ ===================== - Fixed memory leak in reading Lightcurve / TargetPixel FITS files in v2.4.2 [#1390] +- Added support for changes in QLP High Level Science Product + in TESS sectors 56 a...
lightkurve__lightkurve-1426
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/lightkurve/utils.py:centroid_quadratic" ], "edited_modules": [ "src/lightkurve/utils.py:centroid_quadratic" ] }, "file": "src/lightkurve/utils.py" } ]
lightkurve/lightkurve
143bf0a319195f6c756df753a23c1e146a777608
`centroid_quadratic()` incorrectly failed in a boundary case, when `mask` is specified and fluxes are all negative <!-- Fill in the information below before opening an issue. --> #### Problem description <!-- Provide a clear and concise description of the issue. --> `lk.utils.centroid_quadratic()` would fail and...
diff --git a/src/lightkurve/periodogram.py b/src/lightkurve/periodogram.py index 2c7c9932..bb3a4211 100644 --- a/src/lightkurve/periodogram.py +++ b/src/lightkurve/periodogram.py @@ -650,7 +650,8 @@ class LombScarglePeriodogram(Periodogram): ls_method="fast", **kwargs ): - """Creates a `Pe...
lightkurve__lightkurve-1468
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/lightkurve/lightcurve.py:LightCurve.select_flux" ], "edited_modules": [ "src/lightkurve/lightcurve.py:LightCurve" ] }, "file": "src/lightkurve/lightcurve.py" } ]
lightkurve/lightkurve
93f2ac4503eb910677f5ceae0e410eddc6161b2b
`LightCurve.select_flux()` would cause inconsistent units between flux and flux_err in some cases, e.g., `flux_bkg` from GSFC-ELEANOR-LITE <!-- Fill in the information below before opening an issue. --> #### Problem description <!-- Provide a clear and concise description of the issue. --> `LightCurve.select_flu...
diff --git a/CHANGES.rst b/CHANGES.rst index ed1e86b7..b9272dae 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,8 +1,12 @@ 2.5.1 (unreleased) ===================== -- Fixed pixel to world coordinate transformation in ``TargetPixelFile.get_coordinates()`` - in line 488 ("ra, dec = w.wcs_pix2world(X.ravel(), Y.rave...
lightkurve__lightkurve-962
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/lightkurve/lightcurve.py:LightCurve._create_plot" ], "edited_modules": [ "src/lightkurve/lightcurve.py:LightCurve" ] }, "file": "src/lightkurve/lightcurve.py" } ]
lightkurve/lightkurve
1375d9638a081074f62f8afbfba6b40d15cc43dd
Bug: offset parameter in `LightCurve.plot()` is sticky One of our favorite users, Roland Vanderspek, reports that the `offset` parameter in `LightCurve.plot()` appears to be "sticky", i.e. calling the plot function multiple will times will unexpectedly increase the offset. Example: <img width="752" alt="Screen Sh...
diff --git a/CHANGES.rst b/CHANGES.rst index 85ad72d8..05f27218 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,11 +1,14 @@ 2.0.2 (unreleased) ================== -- Fixed a bug which made it impossible to use ``bin()`` after ``fold()``. [#953] - - Added the ``lightkurve.units`` module to ensure "ppt" and "ppm" ar...
lightkurve__lightkurve-996
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/lightkurve/collections.py:LightCurveCollection.stitch" ], "edited_modules": [ "src/lightkurve/collections.py:LightCurveCollection" ] }, "file": "src/lightkurve/coll...
lightkurve/lightkurve
08c3b1951e1ba52bcb15a7d4291ec469be9f16c8
ValueError: unmergeable object classes <!-- Fill in the information below before opening an issue. --> #### Problem description Hi! I'm new to lightkurve. I was running this piece of code (below) and I haven't been able to work out the ValueError. I can't find similar errors within the documentation either. An...
diff --git a/CHANGES.rst b/CHANGES.rst index 06979104..a6d14ec7 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,6 +4,10 @@ - Modified ``LightCurve.bin()`` to partially restore the ``bins`` parameter which was available in Lightkurve v1.x, to improve backwards compatibility. [#995] +- Modified ``LightCurveCollect...
lightstep__lightstep-tracer-python-106
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lightstep/b3_propagator.py:B3Propagator.inject" ], "edited_modules": [ "lightstep/b3_propagator.py:B3Propagator" ] }, "file": "lightstep/b3_propagator.py" } ]
lightstep/lightstep-tracer-python
d11a9435d0ff53aa05a706731a9f7522f66b3690
B3 headers value not passed as str We've instrumented our service with LightStep and OpenTracing but have run into a snag when using B3 propagation. ```python opentracing.tracer = lightstep.Tracer( component_name=c.SERVICE_NAME, access_token=OPEN_TRACE_ACCESS_TOKEN, tags=tags ) ...
diff --git a/lightstep/b3_propagator.py b/lightstep/b3_propagator.py index 940a86b..1d4568c 100644 --- a/lightstep/b3_propagator.py +++ b/lightstep/b3_propagator.py @@ -36,12 +36,12 @@ class B3Propagator(Propagator): flags = baggage.pop(_FLAGS, None) if flags is not None: - carrier[_FLAGS...
lightstep__lightstep-tracer-python-109
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lightstep/http_connection.py:_HTTPConnection.report" ], "edited_modules": [ "lightstep/http_connection.py:_HTTPConnection" ] }, "file": "lightstep/http_connection.py" ...
lightstep/lightstep-tracer-python
1765cbd1266ef37c97bad19cd79941cb549cae14
Respecting sampling in recorders What is the intended functionality around the `sampled` span context? I've noticed that it's propagated from parent spans and it's serialized into carriers, but I couldn't find code to read it during recording or sending spans to the collector.
diff --git a/CHANGELOG.md b/CHANGELOG.md index 96b11a1..4b8a2f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ CHANGELOG.md +<a name="4.4.8"></a> +## [4.4.8](https://github.com/lightstep/lightstep-tracer-python/compare/4.4.7...4.4.8) +* Do not record non-sampled spans (#108) + <a name="4.4.7"></a> ##...
lightstep__lightstep-tracer-python-98
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "lightstep/http_converter.py:HttpConverter.create_runtime" ], "edited_modules": [ "lightstep/http_converter.py:HttpConverter" ] }, "file": "lightstep/http_converter.py" ...
lightstep/lightstep-tracer-python
540768ef727de0c0f00f14325a3b6cbf98add589
Add the tag `lightstep.hostname` Hola crew! I would like to propose the tag 'lightstep.hostname' is appended to this library. It is present in the Go and JavaScript libraries, and would be useful such that we do not have to append that tag to the tracing constructor manually. See: - https://github.com/lightst...
diff --git a/lightstep/http_converter.py b/lightstep/http_converter.py index c17573d..a05c582 100644 --- a/lightstep/http_converter.py +++ b/lightstep/http_converter.py @@ -1,8 +1,10 @@ +import socket +import sys + from lightstep.collector_pb2 import Auth, ReportRequest, Span, Reporter, KeyValue, Reference, SpanContex...
lightstep__otel-launcher-python-88
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "src/opentelemetry/launcher/configuration.py" } ]
lightstep/otel-launcher-python
74c8ff755342b47317ac0cbacbeddc1460fcb90a
Tracer endpoint is missing protocol The default traces endpoint is missing protocol. That makes it not being able to be parsed after [this](https://github.com/open-telemetry/opentelemetry-python/commit/e2a5b0b7439acfc16d474fdd0adb3fca41308e80#diff-5e434ee876fbf8ce33b335b092455e08d3ea6dffd52e3208797fb1c68a906682R202) ch...
diff --git a/src/opentelemetry/launcher/configuration.py b/src/opentelemetry/launcher/configuration.py index ea04bf3..f5c87ed 100644 --- a/src/opentelemetry/launcher/configuration.py +++ b/src/opentelemetry/launcher/configuration.py @@ -49,7 +49,9 @@ from opentelemetry.trace.propagation.tracecontext import ( _env = En...
lightstep__otel-launcher-python-91
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "src/opentelemetry/launcher/configuration.py" } ]
lightstep/otel-launcher-python
74c8ff755342b47317ac0cbacbeddc1460fcb90a
Update the documentation The current documentation needs to be updated.
diff --git a/README.md b/README.md index 318f93d..f2cea09 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ configure_opentelemetry( service_name="service-123", service_version="1.2.3", access_token="my-token", - span_exporter_endpoint="ingest.lightstep.com:443", + span_exporter_endpoint="ht...
lightstep__otel-launcher-python-93
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "src/opentelemetry/launcher/configuration.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": nul...
lightstep/otel-launcher-python
74c8ff755342b47317ac0cbacbeddc1460fcb90a
Update launcher to use 1.0.0 Update this launcher to use the new OtelPython 1.1.0
diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e96180..a0a7aa9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ ## Unreleased +## 1.1.0 + +- Updated dependencies to 1.1.0 +- Updated import paths +- Added protocol to default endpoints +- Updated documentation + ## 1.0.0 - Updated dependencies to 1.0...
lilydjwg__nvchecker-246
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "nvchecker_source/container.py:get_container_tag_update_time" ], "edited_modules": [ "nvchecker_source/container.py:get_container_tag_update_time" ] }, "file": "nvchecke...
lilydjwg/nvchecker
d35fb3b5bcb21704081a9e1777e91486e52bdd8a
test_container fails @bianjp <details> <summary>Test failure log</summary> ``` $ pytest tests/test_container.py::test_container_with_tag =========================================================================== test session starts ============================================================================ ...
diff --git a/nvchecker_source/container.py b/nvchecker_source/container.py index 6fec208..fc06505 100644 --- a/nvchecker_source/container.py +++ b/nvchecker_source/container.py @@ -109,7 +109,13 @@ async def get_container_tag_update_time(info: Tuple[str, str, str, AuthInfo]): headers = { 'Authorization': f'Bear...
lincc-frameworks__nested-pandas-102
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "src/nested_pandas/__init__.py" } ]
lincc-frameworks/nested-pandas
82fe541fd7b56c7b37ede4cff9be84da8820a757
Add `__version__` We should add the ability to see the package version.
diff --git a/src/nested_pandas/__init__.py b/src/nested_pandas/__init__.py index f1a0430..c19ba67 100644 --- a/src/nested_pandas/__init__.py +++ b/src/nested_pandas/__init__.py @@ -1,3 +1,4 @@ +from ._version import __version__ # noqa from .nestedframe import NestedFrame from .nestedframe.io import read_parquet @@...
lincc-frameworks__nested-pandas-105
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/nested_pandas/nestedframe/core.py:NestedFrame._resolve_dropna_target" ], "edited_modules": [ "src/nested_pandas/nestedframe/core.py:NestedFrame" ] }, "file": "src/n...
lincc-frameworks/nested-pandas
615258097faba3ced8ae4dbce517d62526c680a1
Allow Dropna to work on nested columns as base columns **Bug report** Current dropna logic assumes that if the user invokes a nested layer, that it then must be trying to dropna within the rows of that nested layer. We should fix dropna to also work with nested columns as base columns, which is particularly useful whe...
diff --git a/src/nested_pandas/nestedframe/core.py b/src/nested_pandas/nestedframe/core.py index 6142238..b3be03e 100644 --- a/src/nested_pandas/nestedframe/core.py +++ b/src/nested_pandas/nestedframe/core.py @@ -201,7 +201,6 @@ class NestedFrame(pd.DataFrame): """resolves the target layer for a given set of d...
lincc-frameworks__nested-pandas-121
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/nested_pandas/utils/utils.py:count_nested" ], "edited_modules": [ "src/nested_pandas/utils/utils.py:count_nested" ] }, "file": "src/nested_pandas/utils/utils.py" ...
lincc-frameworks/nested-pandas
307c904b8a148e7d5f95911bf69ef7ec974cede6
Count Nested: Sort output columns of `by` behavior alphabetically for nested-dask meta **Feature request** When `by` is set for count_nested, the output columns are ordered as per value_counts default behavior. This ordering is value-based and thus unpredictable for dask. We should have `by` output columns be sorted a...
diff --git a/src/nested_pandas/utils/utils.py b/src/nested_pandas/utils/utils.py index a1b0a9f..0f980d2 100644 --- a/src/nested_pandas/utils/utils.py +++ b/src/nested_pandas/utils/utils.py @@ -34,8 +34,9 @@ def count_nested(df, nested, by=None, join=True) -> NestedFrame: ) else: # this may be abl...
lincc-frameworks__nested-pandas-123
[ { "changes": { "added_entities": [ "src/nested_pandas/nestedframe/core.py:NestedFrame.from_flat" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "src/nested_pandas/nestedframe/core.py:NestedFrame" ] }, "file": "src/nested_pandas/...
lincc-frameworks/nested-pandas
3cd3baaa4c87973af20da3aed87c40f05106cfe1
Create NestedPandas from a flat source table assuming some columns to be object columns **Feature request** It would be really nice if we could generate NestedFrame with both "base" and "nested" columns from a single flat data-frame. ```python NestedFrame.from_flat(df, base_columns=["a", "b"]) ``` It would b...
diff --git a/src/nested_pandas/nestedframe/core.py b/src/nested_pandas/nestedframe/core.py index f0169b5..285c598 100644 --- a/src/nested_pandas/nestedframe/core.py +++ b/src/nested_pandas/nestedframe/core.py @@ -103,6 +103,62 @@ class NestedFrame(pd.DataFrame): new_df[label] = packed return new_df ...
lincc-frameworks__nested-pandas-128
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/nested_pandas/series/accessor.py:NestSeriesAccessor.query_flat" ], "edited_modules": [ "src/nested_pandas/series/accessor.py:NestSeriesAccessor" ] }, "file": "src/n...
lincc-frameworks/nested-pandas
71ae3ba21ecca1c1ebd2aaef3e5aa66d51aa5969
Queries that return empty results can fail **Bug report** @AndyTza ran into an issue recently, where he was applying a query on his nested-dask workflow. This query resulting in empty dataframes for a small subset of partitions in the dataset. The nested-pandas implementation of query has issues with this: https://git...
diff --git a/src/nested_pandas/series/accessor.py b/src/nested_pandas/series/accessor.py index f6253bd..b7936bb 100644 --- a/src/nested_pandas/series/accessor.py +++ b/src/nested_pandas/series/accessor.py @@ -223,8 +223,11 @@ class NestSeriesAccessor(Mapping): The filtered series. """ fla...
lincc-frameworks__nested-pandas-136
[ { "changes": { "added_entities": [ "src/nested_pandas/nestedframe/core.py:NestedFrame.from_lists" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "src/nested_pandas/nestedframe/core.py:NestedFrame" ] }, "file": "src/nested_pandas...
lincc-frameworks/nested-pandas
975fbc88de84b6d8d9ae309f71ae3f0b96831818
Add a shorthand `from_lists` NestedFrame generator function **Feature request** In the wild, users will frequently encounter data that is already stored as a dataframe with list columns or a mix of scalar and list columns. For example: ``` ndf = npd.NestedFrame({"a":[1,2,3], "b":[[1,1,1],[2,2,2],[3,3,3]]}) a b...
diff --git a/src/nested_pandas/nestedframe/core.py b/src/nested_pandas/nestedframe/core.py index a7ec7dc..cb743fc 100644 --- a/src/nested_pandas/nestedframe/core.py +++ b/src/nested_pandas/nestedframe/core.py @@ -214,6 +214,69 @@ class NestedFrame(pd.DataFrame): nested_columns = [col for col in df.columns if c...
lincc-frameworks__nested-pandas-139
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/nested_pandas/nestedframe/core.py:NestedFrame.from_flat" ], "edited_modules": [ "src/nested_pandas/nestedframe/core.py:NestedFrame" ] }, "file": "src/nested_pandas/...
lincc-frameworks/nested-pandas
6e2f433d2b9aeefedb57ffed24ffd71d1b2ff18d
NestedFrame.from_flat treats all non-base columns as nested columns **Bug report** Realized this when trying to implement on the dask side, the from_flat logic is flawed in that it will always define nested_columns as all columns not in base_columns, regardless of whether the user specifies a subset of nested_columns ...
diff --git a/src/nested_pandas/nestedframe/core.py b/src/nested_pandas/nestedframe/core.py index cb743fc..c7f2b38 100644 --- a/src/nested_pandas/nestedframe/core.py +++ b/src/nested_pandas/nestedframe/core.py @@ -211,7 +211,8 @@ class NestedFrame(pd.DataFrame): out_df = df[base_columns][~df.index.duplicated(ke...
lincc-frameworks__nested-pandas-143
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/nested_pandas/series/accessor.py:NestSeriesAccessor.get_flat_series", "src/nested_pandas/series/accessor.py:NestSeriesAccessor.get_list_series" ], "edited_modules": [ "sr...
lincc-frameworks/nested-pandas
0d8c2f35f919bff7245439fc78f75a02bebed377
Using `nest` accessor raises AttributeError with chunked array Using the `nest` accessor on a nested series that has chunked arrays in it raises the following error: ``` AttributeError: 'pyarrow.lib.ChunkedArray' object has no attribute 'field' ``` Code that caused it: ``` a["sources"].nest["source_ra"] ``...
diff --git a/src/nested_pandas/series/accessor.py b/src/nested_pandas/series/accessor.py index b7936bb..cf12b99 100644 --- a/src/nested_pandas/series/accessor.py +++ b/src/nested_pandas/series/accessor.py @@ -251,14 +251,18 @@ class NestSeriesAccessor(Mapping): The flat-array field. """ - ...
lincc-frameworks__nested-pandas-147
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/nested_pandas/nestedframe/core.py:NestedFrame.from_flat" ], "edited_modules": [ "src/nested_pandas/nestedframe/core.py:NestedFrame" ] }, "file": "src/nested_pandas/...
lincc-frameworks/nested-pandas
6101d396bc9f3d281393ff3bd6da819d6a473ded
NestedFrame.from_flat doesn't work with pd.DataFrame input **Bug report** ```python NestedFrame.from_flat( pd.DataFrame({'a': [1, 2], 'b': [3, None]}, index=[1, 1]), base_columns=[], ) ``` ``` AttributeError Traceback (most recent call last) <ipython-input-5-4df41e18d208>...
diff --git a/src/nested_pandas/nestedframe/core.py b/src/nested_pandas/nestedframe/core.py index c7f2b38..3f28a5e 100644 --- a/src/nested_pandas/nestedframe/core.py +++ b/src/nested_pandas/nestedframe/core.py @@ -210,6 +210,10 @@ class NestedFrame(pd.DataFrame): # drop duplicates on index out_df = df[...
lincc-frameworks__nested-pandas-177
[ { "changes": { "added_entities": [ "src/nested_pandas/nestedframe/core.py:_NestResolver._initialize_column_resolver", "src/nested_pandas/nestedframe/core.py:_identify_aliases", "src/nested_pandas/nestedframe/core.py:NestedFrame._parse_hierarchical_components" ], "added_...
lincc-frameworks/nested-pandas
a86a532e6caa3b258da762c3b031af0b52296d12
Fields within a nest should support non-identifier-like names for eval and query **Feature request** Follow up to #174 . A `NestedFrame` may contain both base columns and nested columns (columns containing a nest of fields) which have non-identifier-like names, for example having spaces or dots within them. In Pan...
diff --git a/src/nested_pandas/nestedframe/core.py b/src/nested_pandas/nestedframe/core.py index 26e0467..eddd80b 100644 --- a/src/nested_pandas/nestedframe/core.py +++ b/src/nested_pandas/nestedframe/core.py @@ -3,6 +3,7 @@ from __future__ import annotations import ast import os +import re import numpy as np i...
lincc-frameworks__nested-pandas-181
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/nested_pandas/series/packer.py:pack_lists" ], "edited_modules": [ "src/nested_pandas/series/packer.py:pack_lists" ] }, "file": "src/nested_pandas/series/packer.py" ...
lincc-frameworks/nested-pandas
3cb19bd5e63015fbcedab810efd2432361ad49eb
Error when nesting lists **Bug report** Something is wrong with packing code, error from lsdb: ```python import lsdb cat = lsdb.read_hats('/data3/epyc/data3/hats/catalogs/ztf_dr22/ztf_lc') lc_columns = ['hmjd', 'mag', 'magerr', 'clrcoeff', 'catflags'] cat = cat.nest_lists( base_columns=[col for col i...
diff --git a/src/nested_pandas/series/packer.py b/src/nested_pandas/series/packer.py index 1ea8abb..dedaaca 100644 --- a/src/nested_pandas/series/packer.py +++ b/src/nested_pandas/series/packer.py @@ -196,10 +196,34 @@ def pack_lists(df: pd.DataFrame, name: str | None = None, *, validate: bool = Tr nested_pandas.s...
lincc-frameworks__nested-pandas-190
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/nested_pandas/series/packer.py:view_sorted_series_as_list_array" ], "edited_modules": [ "src/nested_pandas/series/packer.py:view_sorted_series_as_list_array" ] }, "...
lincc-frameworks/nested-pandas
77a816ddfef6489e599f8f463f0855c1e2f90882
Cannot convert pyarrow.lib.ChunkedArray to pyarrow.lib.Array at view_sorted_series_as_list_array **Bug report** Another `Cannot convert pyarrow.lib.ChunkedArray to pyarrow.lib.Array` error, caught when working with ComCam data ``` File ~/.local/lib/python3.11/site-packages/nested_pandas/series/packer.py:272, in view_s...
diff --git a/src/nested_pandas/series/packer.py b/src/nested_pandas/series/packer.py index dedaaca..73dc58c 100644 --- a/src/nested_pandas/series/packer.py +++ b/src/nested_pandas/series/packer.py @@ -293,10 +293,17 @@ def view_sorted_series_as_list_array( if unique_index is None: unique_index = series.in...
lincc-frameworks__nested-pandas-195
[ { "changes": { "added_entities": [ "src/nested_pandas/series/ext_array.py:_is_called_from_func", "src/nested_pandas/series/ext_array.py:_is_called_from_ext_array_fmter_fmt_strings", "src/nested_pandas/series/ext_array.py:_DataFrameWrapperForRepresentation.__init__", "src/ne...
lincc-frameworks/nested-pandas
bbe1866d5dd8fb29857b75ced022e9e53e337b94
Better string representation for nested elements **Feature request** Current representation of nested elements is not so great, we should improve it. It is implemented by `NestedExtensionArray._formatter` Related to #41 **Before submitting** Please check the following: - [ ] I have described the purpose o...
diff --git a/src/nested_pandas/series/ext_array.py b/src/nested_pandas/series/ext_array.py index f63ca8b..b901e77 100644 --- a/src/nested_pandas/series/ext_array.py +++ b/src/nested_pandas/series/ext_array.py @@ -46,7 +46,9 @@ from pandas import Index from pandas._typing import InterpolateOptions, Self from pandas.ap...
lincc-frameworks__nested-pandas-213
[ { "changes": { "added_entities": [ "src/nested_pandas/series/accessor.py:NestSeriesAccessor.with_filled_field" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "src/nested_pandas/series/accessor.py:NestSeriesAccessor" ] }, "file":...
lincc-frameworks/nested-pandas
d12ec6ecc4c71457823670cc52106283e2c761e0
Add tooling to embed a base column into a nested column **Feature request** It would be nice if we have a way to convert a base column to a field of a nested column, so the values are repeated for each row. Possible interface: ```python ndf = generate_data(100, 10) ndf.add_repeated_nested(ndf["a"], name="nested.a") # ...
diff --git a/docs/tutorials/low_level.ipynb b/docs/tutorials/low_level.ipynb index 02f815b..e0004a5 100644 --- a/docs/tutorials/low_level.ipynb +++ b/docs/tutorials/low_level.ipynb @@ -17,7 +17,12 @@ "cell_type": "code", "execution_count": null, "id": "619f088e7ac0f327", - "metadata": {}, + "metadata": ...
lincc-frameworks__nested-pandas-221
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/nested_pandas/nestedframe/core.py:NestedFrame.reduce" ], "edited_modules": [ "src/nested_pandas/nestedframe/core.py:NestedFrame" ] }, "file": "src/nested_pandas/nes...
lincc-frameworks/nested-pandas
6b7a45f73c54a9062333877e65eaf246fd276861
Improve support for `reduce` returning nested information **Feature request** We expect users that are applying their functions via reduce to sometimes want more complex outputs. For example, if I'm applying Lombscargle to all lightcurves in my nested dataset, I may want a result that has a max power column, a frequen...
diff --git a/src/nested_pandas/nestedframe/core.py b/src/nested_pandas/nestedframe/core.py index ab08717..d86c1a4 100644 --- a/src/nested_pandas/nestedframe/core.py +++ b/src/nested_pandas/nestedframe/core.py @@ -845,7 +845,7 @@ class NestedFrame(pd.DataFrame): return None return new_df ...
lincc-frameworks__nested-pandas-23
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/nested_pandas/series/dtype.py:NestedDtype.construct_from_string" ], "edited_modules": [ "src/nested_pandas/series/dtype.py:NestedDtype" ] }, "file": "src/nested_pan...
lincc-frameworks/nested-pandas
136f2c50571728c795c6e8a08d0df4036353f4d6
dtype bug when attempting to use dropna on a flat representation **Bug report** The following code fails. I'm attempting to call dropna on the flat representation of a nested dataframe, and providing a subset of columns to use for that operation. This operation fails with a confusing error, see below: ``` from neste...
diff --git a/src/nested_pandas/series/dtype.py b/src/nested_pandas/series/dtype.py index 0d85409..3559b7b 100644 --- a/src/nested_pandas/series/dtype.py +++ b/src/nested_pandas/series/dtype.py @@ -70,32 +70,27 @@ class NestedDtype(ExtensionDtype): Raises ------ - ValueError + TypeError...
lincc-frameworks__nested-pandas-236
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/nested_pandas/series/ext_array.py:NestedExtensionArray.flat_length" ], "edited_modules": [ "src/nested_pandas/series/ext_array.py:NestedExtensionArray" ] }, "file":...
lincc-frameworks/nested-pandas
b59d701c95bc0a31ec51df2775f8097f1e002b4f
Cannot assign a new column to an empty NestedFrame **Bug report** ``` from nested_pandas.datasets import generate_data nf = generate_data(3, 10).iloc[:0] nf['nested.x'] = [] ``` ``` ValueError Traceback (most recent call last) Cell In[7], line 1 ----> 1 nf['nested.x'] = [] File ~/proj...
diff --git a/src/nested_pandas/series/ext_array.py b/src/nested_pandas/series/ext_array.py index 43735db..7536c7f 100644 --- a/src/nested_pandas/series/ext_array.py +++ b/src/nested_pandas/series/ext_array.py @@ -798,7 +798,10 @@ class NestedExtensionArray(ExtensionArray): @property def flat_length(self) -> i...
lincc-frameworks__nested-pandas-247
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/nested_pandas/nestedframe/core.py:NestedFrame.reduce" ], "edited_modules": [ "src/nested_pandas/nestedframe/core.py:NestedFrame" ] }, "file": "src/nested_pandas/nes...
lincc-frameworks/nested-pandas
c771a8b712f14c7721b8b375b1fdf4df338d0a68
Make it harder to pass a wrong column name to NestedFrame.reduce **Feature request** One of the bugs I make in my code all the time is passing a wrong column name to `NestedFrame.reduce(func, *args)`. This makes it a "constant" argument, instead of a variable value/array from the actual data frame. Sometimes this type...
diff --git a/src/nested_pandas/nestedframe/core.py b/src/nested_pandas/nestedframe/core.py index 36fed5f..69dcfa9 100644 --- a/src/nested_pandas/nestedframe/core.py +++ b/src/nested_pandas/nestedframe/core.py @@ -1007,8 +1007,9 @@ class NestedFrame(pd.DataFrame): columns to apply the function to. See the N...
lincc-frameworks__nested-pandas-51
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/nested_pandas/nestedframe/core.py:NestedFrame.add_nested" ], "edited_modules": [ "src/nested_pandas/nestedframe/core.py:NestedFrame" ] }, "file": "src/nested_pandas...
lincc-frameworks/nested-pandas
109c16c82efcb3b33fc770e552d6e0d1e021c61f
Provide a simpler way to build a nested series from a collection of dataframes **Feature request** Currently, `nested_series.apply(lambda x: x)` outputs a new series with `object` dtype. It would be nice if we'd provide a simple way to convert it back to nested series. Options: ```python # 1. Does it already wo...
diff --git a/src/nested_pandas/nestedframe/core.py b/src/nested_pandas/nestedframe/core.py index 1c8e182..71dd33f 100644 --- a/src/nested_pandas/nestedframe/core.py +++ b/src/nested_pandas/nestedframe/core.py @@ -3,6 +3,7 @@ from __future__ import annotations import numpy as np import pandas as pd +import pyarrow a...
lincc-frameworks__nested-pandas-73
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/nested_pandas/series/accessor.py:NestSeriesAccessor.to_flat" ], "edited_modules": [ "src/nested_pandas/series/accessor.py:NestSeriesAccessor" ] }, "file": "src/nest...
lincc-frameworks/nested-pandas
a196bd63cfa77bdb74ad2a00d1637de5b714c367
.nest.to_flat() should return pd.ArrowDtyped dataframe **Bug report** It is currently returning "native" pandas dtypes which is inconsistent with what `.nest["field"]` returns **Before submitting** Please check the following: - [ ] I have described the situation in which the bug arose, including what code was...
diff --git a/src/nested_pandas/series/accessor.py b/src/nested_pandas/series/accessor.py index 021fbd7..8a075a7 100644 --- a/src/nested_pandas/series/accessor.py +++ b/src/nested_pandas/series/accessor.py @@ -91,13 +91,15 @@ class NestSeriesAccessor(MutableMapping): index = None for field in fields: ...
lincc-frameworks__nested-pandas-79
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/nested_pandas/series/accessor.py:NestSeriesAccessor.get_flat_index" ], "edited_modules": [ "src/nested_pandas/series/accessor.py:NestSeriesAccessor" ] }, "file": "s...
lincc-frameworks/nested-pandas
725da0cb2664febac6a8e0fd7e352343c7b5d62f
Support multiindex **Bug report** Currently, `packer` module doesn't support multiindex frames and series. It should be fixed. ```python from nested_pandas.series.packer import pack_flat df = pd.DataFrame({ "survey": ["ztf"] * 100 + ["lsst"] * 100, "id": np.r_[np.repeat(np.arange(10), 10), np.repeat...
diff --git a/src/nested_pandas/series/accessor.py b/src/nested_pandas/series/accessor.py index 8a075a7..3bd967b 100644 --- a/src/nested_pandas/series/accessor.py +++ b/src/nested_pandas/series/accessor.py @@ -182,10 +182,10 @@ class NestSeriesAccessor(MutableMapping): def get_flat_index(self) -> pd.Index: ...
lincc-frameworks__nested-pandas-90
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/nested_pandas/series/accessor.py:NestSeriesAccessor.to_lists", "src/nested_pandas/series/accessor.py:NestSeriesAccessor.to_flat" ], "edited_modules": [ "src/nested_pandas...
lincc-frameworks/nested-pandas
81979076cfb33027caf29c349f40098b29ee9d9e
Struct_array casting sometimes produces a ChunkedArray **Bug report** There are cases we see on the nested-dask side currently where the accessor code fails. Take for example this: ``` # Load some ZTF data catalogs_dir = "https://epyc.astro.washington.edu/~lincc-frameworks/half_degree_surveys/ztf/" object_ndf ...
diff --git a/src/nested_pandas/series/accessor.py b/src/nested_pandas/series/accessor.py index 3bd967b..85ca6dc 100644 --- a/src/nested_pandas/series/accessor.py +++ b/src/nested_pandas/series/accessor.py @@ -1,6 +1,7 @@ # Python 3.9 doesn't support "|" for types from __future__ import annotations +from collections...
lincc-frameworks__nested-pandas-91
[ { "changes": { "added_entities": [ "src/nested_pandas/series/accessor.py:NestSeriesAccessor.with_field", "src/nested_pandas/series/accessor.py:NestSeriesAccessor.with_flat_field", "src/nested_pandas/series/accessor.py:NestSeriesAccessor.with_list_field", "src/nested_pandas/...
lincc-frameworks/nested-pandas
41cce93566304e9d391ffae8876f664884141240
NestedAccessor's .pop and .pop_field() do the same **Feature request** It is confusing, we should remove `.pop_field` **Before submitting** Please check the following: - [ ] I have described the purpose of the suggested change, specifying what I need the enhancement to accomplish, i.e. what problem it solves....
diff --git a/docs/tutorials/low_level.ipynb b/docs/tutorials/low_level.ipynb index 7672662..307366c 100644 --- a/docs/tutorials/low_level.ipynb +++ b/docs/tutorials/low_level.ipynb @@ -17,12 +17,7 @@ "cell_type": "code", "execution_count": null, "id": "619f088e7ac0f327", - "metadata": { - "ExecuteTime"...
lincolnloop__goodconf-49
[ { "changes": { "added_entities": [ "goodconf/__init__.py:_fieldinfo_to_str" ], "added_modules": [ "goodconf/__init__.py:_fieldinfo_to_str" ], "edited_entities": [ "goodconf/__init__.py:GoodConf.generate_markdown" ], "edited_modules": [ "g...
lincolnloop/goodconf
96b8c8ff3da484ba029c78434be719f00d0d07d5
Markdown generation issues in v5 We use `goodconf` and `cog` to generate a list of config values for lincolnloop/django-layout. After upgrading to v5, I'm seeing the following diff ```diff 63c63 < * type: `Literal['development', 'dev', 'production']` --- > * type: `typing.Literal['development', 'dev', 'pr...
diff --git a/CHANGES.rst b/CHANGES.rst index 076390a..0df2d34 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -3,9 +3,10 @@ Change Log ========== 5.0.1 (Unreleased) -================== +======================== - Support reading TOML files via ``tomllib`` on Python 3.11+ +- Update Markdown generation, so that outp...
lincolnloop__goodconf-51
[ { "changes": { "added_entities": [ "goodconf/__init__.py:Field" ], "added_modules": [ "goodconf/__init__.py:Field" ], "edited_entities": null, "edited_modules": null }, "file": "goodconf/__init__.py" } ]
lincolnloop/goodconf
501ee693ab92816e6718c54a4026f4e82350cd52
Using extra keyword arguments on `Field` is deprecated The custom `initial` kwarg is a problem ``` /usr/local/lib/python3.11/site-packages/pydantic/fields.py:814: PydanticDeprecatedSince20: Using extra keyword arguments on `Field` is deprecated and will be removed. Use `json_schema_extra` instead. (Extra keys: 'i...
diff --git a/.gitignore b/.gitignore index 376773d..c9e33a3 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ htmlcov env venv __pycache__ +uv.lock diff --git a/goodconf/__init__.py b/goodconf/__init__.py index d2472ad..1024231 100644 --- a/goodconf/__init__.py +++ b/goodconf/__init__.py @@ -16,7 +16,7 @@ fro...
line__line-bot-sdk-python-233
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "linebot/models/events.py:Event.__init__", "linebot/models/events.py:MessageEvent.__init__", "linebot/models/events.py:FollowEvent.__init__", "linebot/models/events.py:UnfollowEve...
line/line-bot-sdk-python
b51ffbb5fd7847b34844134a43932140eae25ed6
mode property added to webhook event https://developers.line.biz/en/news/2019/12/#mode-property-added-to-messaging-api-webhook-events-2019-12-17
diff --git a/README.rst b/README.rst index a0c2786..b576a2f 100644 --- a/README.rst +++ b/README.rst @@ -303,7 +303,7 @@ delete\_rich\_menu(self, rich\_menu\_id, timeout=None) Deletes a rich menu. https://developers.line.biz/en/reference/messaging-api/#delete-rich-menu - + .. code:: python line_bot_...
line__line-bot-sdk-python-272
[ { "changes": { "added_entities": [ "linebot/api.py:LineBotApi.get_group_summary", "linebot/api.py:LineBotApi.get_group_members_count", "linebot/api.py:LineBotApi.get_room_members_count" ], "added_modules": null, "edited_entities": null, "edited_modules": [ ...
line/line-bot-sdk-python
1753128db9654bf95fad8d13e06135a42fe40abf
Messaging API update for June 2020 News: https://developers.line.biz/en/news/2020/06/10/messaging-api-update-june-2020/ New endpoints are added to the Messaging API - [ ] [Get group summary](https://developers.line.biz/en/reference/messaging-api/#get-group-summary) - [ ] [Get members in group count](https://develo...
diff --git a/README.rst b/README.rst index ccf2c2c..368f99a 100644 --- a/README.rst +++ b/README.rst @@ -196,6 +196,20 @@ https://developers.line.biz/en/reference/messaging-api/#get-profile print(profile.picture_url) print(profile.status_message) +get\_group\_summary(self, group\_id, timeout=None) +^^^^^^^^...
line__line-bot-sdk-python-274
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "linebot/models/flex_message.py:BubbleContainer.__init__" ], "edited_modules": [ "linebot/models/flex_message.py:BubbleContainer" ] }, "file": "linebot/models/flex_messa...
line/line-bot-sdk-python
1753128db9654bf95fad8d13e06135a42fe40abf
Can't send FlexMessage with Hero block ## System Informations * Python version: 3.7.7 * SDK version: 1.16.0 * OS: macOS Mojave 10.14.3 ## Expected Behavior The docs say that box or image can be used for hero block. https://developers.line.biz/en/reference/messaging-api/#bubble > Hero block. Specify a box or ...
diff --git a/linebot/models/flex_message.py b/linebot/models/flex_message.py index afccc3e..bd95169 100644 --- a/linebot/models/flex_message.py +++ b/linebot/models/flex_message.py @@ -109,7 +109,12 @@ class BubbleContainer(FlexContainer): self.size = size self.direction = direction self.head...
line__line-bot-sdk-python-276
[ { "changes": { "added_entities": [ "linebot/api.py:LineBotApi.get_group_summary", "linebot/api.py:LineBotApi.get_group_members_count", "linebot/api.py:LineBotApi.get_room_members_count" ], "added_modules": null, "edited_entities": [ "linebot/api.py:LineBot...
line/line-bot-sdk-python
1753128db9654bf95fad8d13e06135a42fe40abf
WebhookHandler.add cannot cope with handler function with *args in its parameters ## Problem <!-- Describe a clear and concise description of what the problem is. --> When we add a function with `*args` to the WebhookHandler, WebhookHandler calls the function with 0 args. It causes some problems when we use ordinar...
diff --git a/.travis.yml b/.travis.yml index e30565b..7e26930 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,7 @@ python: - "3.5" - "3.6" - "3.7" + - "3.8" install: pip install tox-travis diff --git a/README.rst b/README.rst index ccf2c2c..368f99a 100644 --- a/README.rst +++ b/README.rst @@ -196,6...