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
dwavesystems__dwave-cloud-client-96
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "dwave/cloud/cli.py:configure" ], "edited_modules": [ "dwave/cloud/cli.py:configure" ] }, "file": "dwave/cloud/cli.py" }, { "changes": { "added_entities": ...
dwavesystems/dwave-cloud-client
ef95323a55249230fb6673697edcdbe8cac2d6c1
Progressive config files override Make CWD config partially overrides user-local config, which partially overrides the system-wide config files. For example, if `/usr/local/share/dwave/dwave.conf` has: ``` [defaults] endpoint = <production> client = qpu [prod] token = <token> ``` and `~/.config/dwave/dwa...
diff --git a/dwave/cloud/cli.py b/dwave/cloud/cli.py index 5914660..3189154 100644 --- a/dwave/cloud/cli.py +++ b/dwave/cloud/cli.py @@ -8,8 +8,8 @@ from dwave.cloud.utils import readline_input from dwave.cloud.exceptions import ( SolverAuthenticationError, InvalidAPIResponseError, UnsupportedSolverError) from d...
dwavesystems__dwave-system-269
[ { "changes": { "added_entities": [ "dwave/system/samplers/dwave_sampler.py:DWaveSampler.sample" ], "added_modules": null, "edited_entities": [ "dwave/system/samplers/dwave_sampler.py:DWaveSampler.sample_ising", "dwave/system/samplers/dwave_sampler.py:DWaveSampler....
dwavesystems/dwave-system
6b4c9f790f41fda29b6391fbb7add702fa4d582a
Implement DWaveSampler.sample method To replace `.sample_ising` and `.sample_qubo` Pros: * reduce code duplication * avoid bugs like #197 * rely on dimod for handling input formats (e.g. #201 would be covered by https://github.com/dwavesystems/dimod/issues/503) Cons: * performance, this would construct a BQM...
diff --git a/dwave/system/samplers/dwave_sampler.py b/dwave/system/samplers/dwave_sampler.py index 10aee29..d6280b4 100644 --- a/dwave/system/samplers/dwave_sampler.py +++ b/dwave/system/samplers/dwave_sampler.py @@ -285,21 +285,13 @@ class DWaveSampler(dimod.Sampler, dimod.Structured): return nodelist ...
dwavesystems__dwave-system-276
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "dwave/system/composites/embedding.py:EmbeddingComposite.sample" ], "edited_modules": [ "dwave/system/composites/embedding.py:EmbeddingComposite" ] }, "file": "dwave/sys...
dwavesystems/dwave-system
6b4c9f790f41fda29b6391fbb7add702fa4d582a
Warning "Some quadratic biases are stronger than the given chain strength" comes up even when there are no chains The warning is showing up on the bottom, even on a 2-qubit problem with no chains.Please use this code: import dimod import dwave.inspector from dwave.system import DWaveSampler, EmbeddingComposite ...
diff --git a/dwave/system/composites/embedding.py b/dwave/system/composites/embedding.py index 5c4e60d..060906b 100644 --- a/dwave/system/composites/embedding.py +++ b/dwave/system/composites/embedding.py @@ -235,7 +235,7 @@ class EmbeddingComposite(dimod.ComposedSampler): warninghandler = WarningHandler(war...
dwavesystems__dwave-system-277
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "dwave/embedding/transforms.py:embed_bqm" ], "edited_modules": [ "dwave/embedding/transforms.py:embed_bqm" ] }, "file": "dwave/embedding/transforms.py" }, { "cha...
dwavesystems/dwave-system
6b4c9f790f41fda29b6391fbb7add702fa4d582a
Empty target array yields ZeroDivisionError **Description** An embedding with an empty chain, such as `embedding = {0: []}` yields a `ZeroDivisionError: float division by zero` error at https://github.com/dwavesystems/dwave-system/blob/8e7ffe9e9fa209572d508e7515d36aced2929a5f/dwave/embedding/transforms.py#L123 **To...
diff --git a/dwave/embedding/transforms.py b/dwave/embedding/transforms.py index 7506fc1..b72d317 100644 --- a/dwave/embedding/transforms.py +++ b/dwave/embedding/transforms.py @@ -120,7 +120,10 @@ def embed_bqm(source_bqm, embedding, target_adjacency, chain_strength=1.0, if any(u not in target_adjacency for u...
dwavesystems__dwave-system-279
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "dwave/system/composites/embedding.py:EmbeddingComposite.sample" ], "edited_modules": [ "dwave/system/composites/embedding.py:EmbeddingComposite" ] }, "file": "dwave/sys...
dwavesystems/dwave-system
d0fd4c0163e984dfd2adae43f7bc7ee7f4edc829
LeapHybridSampler fails on default QPU-only config Since `LeapHybridSampler` instantiates the cloud client instance based on user config, but does not override the client classname setting, if `client=qpu` is set in the `dwave.conf`, or in the environment variable, the instantiation will fail because a hybrid solver wi...
diff --git a/dwave/system/composites/embedding.py b/dwave/system/composites/embedding.py index 060906b..5c4e60d 100644 --- a/dwave/system/composites/embedding.py +++ b/dwave/system/composites/embedding.py @@ -235,7 +235,7 @@ class EmbeddingComposite(dimod.ComposedSampler): warninghandler = WarningHandler(war...
dwavesystems__dwave-system-317
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "dwave/system/samplers/clique.py:DWaveCliqueSampler.__init__" ], "edited_modules": [ "dwave/system/samplers/clique.py:DWaveCliqueSampler" ] }, "file": "dwave/system/samp...
dwavesystems/dwave-system
fd1d5936ffa5ae3fa2539e619202c3f0e07fd64d
Specialized samplers for QPU & hybrid solvers + a new general one Continuing the discussion from #278 here. In short, the proposal so far is: - [x] (A) Specialize `DWaveSampler` for QPU solvers by using `client=qpu` and leave `solver` features undefined. - [x] (B) Specialize `LeapHybridSampler` for hybrid solvers...
diff --git a/docs/reference/minimize_energy/dwave.embedding.chain_breaks.MinimizeEnergy.rst b/docs/reference/minimize_energy/dwave.embedding.chain_breaks.MinimizeEnergy.rst index 0dcfd20..71e3b63 100644 --- a/docs/reference/minimize_energy/dwave.embedding.chain_breaks.MinimizeEnergy.rst +++ b/docs/reference/minimize_en...
dwavesystems__dwave-system-364
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "dwave/system/warnings.py:WarningHandler.chain_strength" ], "edited_modules": [ "dwave/system/warnings.py:WarningHandler" ] }, "file": "dwave/system/warnings.py" } ]
dwavesystems/dwave-system
2f82124f518f7a57ae6b7f74c84a8aa62715ca4d
dwave.system.warnings not compatible with iterable as chain strength parameter Newer versions of the code allow the user to specify an individual value of chain strength for each chain by passing a dictionary to the sample function. However, calling `sample_qubo` with `chain_strength = dict_of_chain_strengths`, `war...
diff --git a/dwave/system/warnings.py b/dwave/system/warnings.py index e646ce3..3dc5d51 100644 --- a/dwave/system/warnings.py +++ b/dwave/system/warnings.py @@ -19,6 +19,7 @@ import logging import dimod import numpy as np import six +import collections.abc as abc from dwave.embedding import broken_chains @@ -18...
dwavesystems__dwave-system-368
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "dwave/system/composites/reversecomposite.py:ReverseAdvanceComposite.sample", "dwave/system/composites/reversecomposite.py:ReverseBatchStatesComposite.sample", "dwave/system/composites/re...
dwavesystems/dwave-system
fb54cce35866a879bfce56dfb2de28fb3629c804
Reverse-annealing composites should not silently forward anneal **Current Problem** If `ReverseAdvanceComposite.sample` is not given an `anneal_schedules` parameter it samples directly from the child without doing any reverse annealing at all ([`reversecomposite.py` lines 86–87](https://github.com/dwavesystems/dwave-s...
diff --git a/dwave/system/composites/reversecomposite.py b/dwave/system/composites/reversecomposite.py index 7f9f54b..669dbeb 100644 --- a/dwave/system/composites/reversecomposite.py +++ b/dwave/system/composites/reversecomposite.py @@ -84,17 +84,21 @@ class ReverseAdvanceComposite(dimod.ComposedSampler): retu...
dwavesystems__dwave-system-373
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "dwave/system/samplers/leap_hybrid_sampler.py:LeapHybridSampler.__init__", "dwave/system/samplers/leap_hybrid_sampler.py:LeapHybridDQMSampler.__init__" ], "edited_modules": [ ...
dwavesystems/dwave-system
01d3c061440d94c22234dbf99ecd277def4259b9
Fix version filter in hybrid samplers Both `LeapHybridDQMSampler` and `LeapHybridSampler`/`LeapHybridBQMSampler` encode the intent of preferring the latest solver (by version), but the exact order_by expression is wrong.
diff --git a/dwave/system/samplers/leap_hybrid_sampler.py b/dwave/system/samplers/leap_hybrid_sampler.py index b6ac546..91473e5 100644 --- a/dwave/system/samplers/leap_hybrid_sampler.py +++ b/dwave/system/samplers/leap_hybrid_sampler.py @@ -93,7 +93,7 @@ class LeapHybridSampler(dimod.Sampler): raise Va...
dwavesystems__dwave-system-422
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "dwave/system/__init__.py" }, { "changes": { "added_entities": [ "dwave/system/samplers/leap_hybrid_sampler.py:classproperty.__get__", ...
dwavesystems/dwave-system
d4d83992067336f9e63ba48d67a7560077d4c108
Hybrid samplers ignore user's config value for solver `LeapHybridSampler` and `LeapHybridDQMSampler` [update required solver features](https://github.com/dwavesystems/dwave-system/blob/2f82124f518f7a57ae6b7f74c84a8aa62715ca4d/dwave/system/samplers/leap_hybrid_sampler.py#L82-L90) on kwargs level only, effectively ignori...
diff --git a/docs/reference/samplers.rst b/docs/reference/samplers.rst index e4659b3..444a51f 100644 --- a/docs/reference/samplers.rst +++ b/docs/reference/samplers.rst @@ -102,6 +102,7 @@ Properties LeapHybridSampler.properties LeapHybridSampler.parameters + LeapHybridSampler.default_solver Methods @@...
dynamicslab__pysindy-481
[ { "changes": { "added_entities": [ "pysindy/utils/axes.py:ravel" ], "added_modules": [ "pysindy/utils/axes.py:ravel" ], "edited_entities": [ "pysindy/utils/axes.py:AxesArray.__array_finalize__" ], "edited_modules": [ "pysindy/utils/axes.p...
dynamicslab/pysindy
a0e36ddb08080ebbf2aeff47b7bae3e51ff8bc2a
[BUG] AxesArray `ravel()` needed for some plotting functions. Currently, `AxesArray` tries to implement the most commonly used numpy functions that preserve certain axis information. For others, the numpy function executes and then calls `AxesArray.__array_finalize__(self, obj)`, which tries to guess how to assign ax...
diff --git a/pysindy/utils/axes.py b/pysindy/utils/axes.py index ed27957..25c42db 100644 --- a/pysindy/utils/axes.py +++ b/pysindy/utils/axes.py @@ -346,11 +346,23 @@ class AxesArray(np.lib.mixins.NDArrayOperatorsMixin, np.ndarray): elif all( ( isinstance(obj, AxesArray), + ...
e2nIEE__pandapower-1029
[ { "changes": { "added_entities": [ "pandapower/powerflow.py:_bypass_pf_and_set_results" ], "added_modules": [ "pandapower/powerflow.py:_bypass_pf_and_set_results" ], "edited_entities": [ "pandapower/powerflow.py:_run_pf_algorithm", "pandapower/powerf...
e2nIEE/pandapower
31073a6f1b1b91c787ff20610448149ddaf48d18
Multiple ext_grids in a single network ## Assumptions - An ext_grid in pandapower is synonymous to an ideal voltage source in circuit analysis. - Since a circuit can have multiple voltage sources, and be perfectly well behaved - a pandapower model should be able to have multiple ext_grids. The key idea being t...
diff --git a/pandapower/powerflow.py b/pandapower/powerflow.py index 4309008e..cace0b8e 100644 --- a/pandapower/powerflow.py +++ b/pandapower/powerflow.py @@ -14,6 +14,7 @@ from pandapower.pf.run_bfswpf import _run_bfswpf from pandapower.pf.run_dc_pf import _run_dc_pf from pandapower.pf.run_newton_raphson_pf import _...
e2nIEE__pandapower-1618
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pandapower/toolbox.py:get_connected_elements", "pandapower/toolbox.py:get_connected_buses" ], "edited_modules": [ "pandapower/toolbox.py:get_connected_elements", "pan...
e2nIEE/pandapower
851df89b40bee62079c471027070961bb96c2791
PandaPower Toolbox.py get_connected_elements for respect_in_service = True leads to error Pandapower has a bug in the toolbox.py function where in for the respect_in_service = True option as parameter to find all the connected elements to a bus leads to the following error. This is also the case for simple pandapower ...
diff --git a/pandapower/toolbox.py b/pandapower/toolbox.py index 3c932254..4128a83f 100644 --- a/pandapower/toolbox.py +++ b/pandapower/toolbox.py @@ -2870,6 +2870,7 @@ def get_connected_elements(net, element, buses, respect_switches=True, respect_i connected_elements = set(net["impedance"].index[(net.impedanc...
e2nIEE__pandapower-797
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pandapower/timeseries/output_writer.py:OutputWriter.log_variable" ], "edited_modules": [ "pandapower/timeseries/output_writer.py:OutputWriter" ] }, "file": "pandapower/...
e2nIEE/pandapower
eb8f45f03588d13d6f4947436af268b27fb47572
log variable with specific name in outputwriter I just came across a peculiarity of the outputwriter. When adding an eval_name to a log variable (e.g. "maximum" for the minimum of a variable in some table), it is precisely stored as "maximum" globally in the numpy-output. As I am just a user and mainly working with the...
diff --git a/pandapower/timeseries/output_writer.py b/pandapower/timeseries/output_writer.py index 487dfed3..d7908d10 100644 --- a/pandapower/timeseries/output_writer.py +++ b/pandapower/timeseries/output_writer.py @@ -323,9 +323,9 @@ class OutputWriter(JSONSerializableClass): **eval_function** (function, None...
e2nIEE__pandapower-870
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pandapower/results.py:verify_results" ], "edited_modules": [ "pandapower/results.py:verify_results" ] }, "file": "pandapower/results.py" } ]
e2nIEE/pandapower
2add154ba3d445ef7813bad9a0bcad2d62f41bb7
Bug in rundcpp failed to initialize result table ```python import pandapower as pp import pandapower.networks as nw net = nw.case57() pp.rundcpp(net) net.pop("res_gen") # Problem by executing this pp.rundcpp(net) # No problem doing this pp.runpp(net) ``` Can anyone recreate this? I tries pp 2.2....
diff --git a/pandapower/results.py b/pandapower/results.py index 99b424df..5a6a5d97 100644 --- a/pandapower/results.py +++ b/pandapower/results.py @@ -70,7 +70,15 @@ def verify_results(net, mode="pf"): suffix = suffix_mode.get(mode, None) for element in elements: res_element, res_empty_element = get_...
eEcoLiDAR__laserchicken-135
[ { "changes": { "added_entities": [ "laserchicken/feature_extractor/pulse_penetration_feature_extractor.py:_is_ground" ], "added_modules": [ "laserchicken/feature_extractor/pulse_penetration_feature_extractor.py:_is_ground" ], "edited_entities": [ "laserchick...
eEcoLiDAR/laserchicken
6bcc443bbe4ee93b0a51ff5eeb39d0ade4a64ae9
density absolute mean bug uses ground points only where it should use everything but ground points
diff --git a/laserchicken/feature_extractor/pulse_penetration_feature_extractor.py b/laserchicken/feature_extractor/pulse_penetration_feature_extractor.py index f32c94a..65b7abb 100644 --- a/laserchicken/feature_extractor/pulse_penetration_feature_extractor.py +++ b/laserchicken/feature_extractor/pulse_penetration_feat...
eEcoLiDAR__laserchicken-181
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "laserchicken/feature_extractor/band_ratio_feature_extractor.py:BandRatioFeatureExtractor.provides" ], "edited_modules": [ "laserchicken/feature_extractor/band_ratio_feature_extractor...
eEcoLiDAR/laserchicken
a393326c8c78b0ada048a09328c0587d3ff44505
Rename band ratio Drop the "<" symbols from the band ratio features. This significantly simplify the handling of files named after these features on Windows (which does not support such characters in the file name).
diff --git a/laserchicken/feature_extractor/band_ratio_feature_extractor.py b/laserchicken/feature_extractor/band_ratio_feature_extractor.py index 318dd7c..3bf65eb 100644 --- a/laserchicken/feature_extractor/band_ratio_feature_extractor.py +++ b/laserchicken/feature_extractor/band_ratio_feature_extractor.py @@ -47,10 +...
eWaterCycle__era5cli-102
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "era5cli/cli.py:main" ], "edited_modules": [ "era5cli/cli.py:main" ] }, "file": "era5cli/cli.py" } ]
eWaterCycle/era5cli
ad5508a481add3116da9b7f95aad6eafe7cc0b4b
Add integration tests At the moment, we test era5cli in two ways: - Test if arguments given on the command line are parsed correctly and entered correctly to the Fetch class (`test_cli.py`) - Test if information given to the Fetch class result in a correct CDS query (`test_fetch.py`). It would be good to also add ...
diff --git a/era5cli/cli.py b/era5cli/cli.py index fadea62..f7cb0d7 100644 --- a/era5cli/cli.py +++ b/era5cli/cli.py @@ -425,10 +425,12 @@ def _execute(args): return True -def main(): +def main(argv=None): """Main.""" # get arguments - args = _parse_args(sys.argv[1:]) + if argv is None: + ...
eWaterCycle__era5cli-131
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "era5cli/cli.py:_build_parser", "era5cli/cli.py:_construct_year_list" ], "edited_modules": [ "era5cli/cli.py:_build_parser", "era5cli/cli.py:_construct_year_list" ...
eWaterCycle/era5cli
2b8e44948f11f3247187ca18e231227b5476cb9e
No error message if using --land and --ensemble While I was changing the test for `--land` and `--prelimbe` flags, I have realized that a request for a combination of `--land` and `--ensemble` goes through and [https://github.com/eWaterCycle/era5cli/blob/main/era5cli/fetch.py](url) doesn't raise an error. Should I add...
diff --git a/.zenodo.json b/.zenodo.json index 8c63ee1..233162f 100644 --- a/.zenodo.json +++ b/.zenodo.json @@ -72,6 +72,11 @@ "affiliation": "Netherlands eScience Center", "name": "Verhoeven, Stefan", "orcid": "0000-0002-5821-2060" + }, + { + "affiliatio...
eWaterCycle__era5cli-143
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "era5cli/args/common.py:add_common_args" ], "edited_modules": [ "era5cli/args/common.py:add_common_args" ] }, "file": "era5cli/args/common.py" }, { "changes": { ...
eWaterCycle/era5cli
634d323a5b2067199452d34578331a5566a45c8e
An option for overwriting the existing file and checking its size Implement an option for checking the existing file in the downloading directory and its size. to find out the size, it might be useful to have a look at: **Use MARS "list" verb to find out the size of your request** https://confluence.ecmwf.int/pages...
diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 216f9be..71d3e3c 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Change CDS keys from `.cdsapirc` file to `.config/eracli.txt` file. This will avoid conf...
eWaterCycle__era5cli-58
[ { "changes": { "added_entities": [ "era5cli/cli.py:_construct_year_list" ], "added_modules": [ "era5cli/cli.py:_construct_year_list" ], "edited_entities": [ "era5cli/cli.py:_build_parser", "era5cli/cli.py:_set_period_args", "era5cli/cli.py:_e...
eWaterCycle/era5cli
2c2dffd3aabe02e29461e8e8bfb6ac9ce85c4465
Unexpected behavior for --statistics flag When downloading hourly data you can select the `--statistics` flag without using the `--ensemble` flag. This will result in downloading the reanalysis data instead and will ignore the `--statistics` flag. The `--statistics` flag without `--ensemble` should at least give a warn...
diff --git a/era5cli/cli.py b/era5cli/cli.py index a13ce9c..4dc2de2 100644 --- a/era5cli/cli.py +++ b/era5cli/cli.py @@ -5,6 +5,8 @@ import argparse import textwrap import sys +from datetime import datetime + import era5cli.inputref as ref import era5cli.info as einfo import era5cli.fetch as efetch @@ -127,6 +12...
eWaterCycle__era5cli-67
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "era5cli/cli.py:_build_parser", "era5cli/cli.py:_construct_year_list", "era5cli/cli.py:_set_period_args", "era5cli/cli.py:_execute" ], "edited_modules": [ "era...
eWaterCycle/era5cli
39d16397e219e938d2332819f197efd775325e64
Add support for ERA5 back extention and ERA5-Land ERA5 now has a preliminary back extension (1950-1978). As it has a seprate entry in the CDS, we need to teach era5cli how to download this and other era5 variants such as ERA5-Land See here for an overview: https://confluence.ecmwf.int/display/CKB/The+family+of+ER...
diff --git a/era5cli/cli.py b/era5cli/cli.py index a231604..4b3d65f 100644 --- a/era5cli/cli.py +++ b/era5cli/cli.py @@ -139,7 +139,22 @@ def _build_parser(): downloads data from the preliminary back extension. Note that when "--prelimbe" is used, ...
eWaterCycle__era5cli-70
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "era5cli/cli.py:_build_parser", "era5cli/cli.py:_execute" ], "edited_modules": [ "era5cli/cli.py:_build_parser", "era5cli/cli.py:_execute" ] }, "file": "...
eWaterCycle/era5cli
ff1bb4dd21146f370a6b65818aee0610c01dae6b
Add support for regional subselection From the [CDS documentation](https://confluence.ecmwf.int/display/CKB/How+to+download+ERA5): > Currently the interactive CDS forms don't allow users to perform a regional sub-selection or an interpolation of the selected data. However, both actions can be performed using the fol...
diff --git a/README.rst b/README.rst index 3078fdd..e0a0c30 100644 --- a/README.rst +++ b/README.rst @@ -33,9 +33,10 @@ With era5cli you can: ​ - select multiple variables for several months and years - split outputs by years, producing a separate file for every year instead of merging them in one file - download mu...
eadhost__eadator-2
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "eadator/eadator.py:main", "eadator/eadator.py:validate" ], "edited_modules": [ "eadator/eadator.py:main", "eadator/eadator.py:validate" ] }, "file": "ea...
eadhost/eadator
9ca6058a79729250f0c4399ac54e48d1543017c3
Add the number of errors Hello, Could you add the number of errors at the end of the list of errors? It could be useful for verify if a modification adds or deletes an error. Thanks.
diff --git a/eadator/eadator.py b/eadator/eadator.py index d1734ea..6a0c32e 100755 --- a/eadator/eadator.py +++ b/eadator/eadator.py @@ -16,14 +16,20 @@ def main(argv=None): type=argparse.FileType('r')) parser.add_argument('--dtd', required=False, ) parser.add_argument('--xsd', requir...
eadwinCode__shoutcast_api-9
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "shoutcast_api/genres.py:_handle_url_action_json", "shoutcast_api/genres.py:get_all_genres", "shoutcast_api/genres.py:get_primary_genres_json", "shoutcast_api/genres.py:get_second...
eadwinCode/shoutcast_api
4f591de98da96826bf82cd20cf00e430ddacd9b6
Caching requests Hello @eadwinCode, I noticed you are using [python-requests](https://requests.readthedocs.io/). I think you can quite easily implement a way to cache queries using [requests-cache](https://github.com/reclosedev/requests-cache) See how it's being used in https://pandas-datareader.readthedocs.io/e...
diff --git a/shoutcast_api/genres.py b/shoutcast_api/genres.py index 020f8e2..d9d02f4 100755 --- a/shoutcast_api/genres.py +++ b/shoutcast_api/genres.py @@ -4,9 +4,9 @@ from .models import Genre, GenreList from .utils import genre_xml_strip -def _handle_url_action_json(url): +def _handle_url_action_json(endpoint, ...
ealcobaca__pymfe-107
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pymfe/complexity.py:MFEComplexity.ft_f2", "pymfe/complexity.py:MFEComplexity.ft_cls_coef" ], "edited_modules": [ "pymfe/complexity.py:MFEComplexity" ] }, "file"...
ealcobaca/pymfe
c8f5d4a5ae342d7a630620aebd196dc651c35531
Method for extracting meta-feature names before extraction **Is your feature request related to a problem? Please describe.** Sometimes it is convenient to extract the list of meta-feature names before the meta-feature extraction. ```python #An example to motivate the requested feature from pymfe.mfe import MFE ...
diff --git a/pymfe/complexity.py b/pymfe/complexity.py index d4eb9e9..c626bb1 100644 --- a/pymfe/complexity.py +++ b/pymfe/complexity.py @@ -813,7 +813,7 @@ class MFEComplexity: y: np.ndarray, ovo_comb: t.Optional[np.ndarray] = None, cls_inds: t.Optional[np.ndarray] = None, - ) -> float: +...
earth-chris__elapid-22
[ { "changes": { "added_entities": [ "elapid/geo.py:parse_crs_string", "elapid/geo.py:string_to_crs", "elapid/geo.py:crs_match" ], "added_modules": [ "elapid/geo.py:parse_crs_string", "elapid/geo.py:string_to_crs", "elapid/geo.py:crs_match" ]...
earth-chris/elapid
8025c7971bb4812769cdb1c464e8ca6c60a17ff0
Report progress for raster annotation The `raster_values_from_geoseries()` function has iterables for reading data 1) for each raster input and 2) for each point feature. We should add some way to track the progress for each of these with `tqdm`. Since one of the iterations is via `df.apply()`, we could use [this fe...
diff --git a/elapid/geo.py b/elapid/geo.py index 7a9481e..6b3111f 100644 --- a/elapid/geo.py +++ b/elapid/geo.py @@ -20,6 +20,7 @@ from elapid.utils import ( ) tqdm = get_tqdm() +tqdm.pandas(desc="Geometry", leave=False) def xy_to_geoseries(x, y, crs="epsg:4236"): @@ -33,6 +34,11 @@ def xy_to_geoseries(x, y, c...
earth-chris__elapid-43
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "elapid/__version__.py" }, { "changes": { "added_entities": null, "added_modules": [ "elapid/config.py:NicheEnvelopeConfig" ]...
earth-chris/elapid
4def55db652cf6859a6f1197868769de26a9b753
Create a niche envelope model class This is a presence-only empirical model (no absence/pseudoabsence required). It would find the min/max range of all covariates in the training data, and use boolean logic to flag all predictions to be inside (`True`) or outside (`False`) the range of suitability for ech covariate. Ro...
diff --git a/elapid/__version__.py b/elapid/__version__.py index 7a13148..02ed9ef 100644 --- a/elapid/__version__.py +++ b/elapid/__version__.py @@ -1,1 +1,1 @@ -"0.3.2" +"0.3.3" diff --git a/elapid/config.py b/elapid/config.py index 16f2178..04e36f9 100644 --- a/elapid/config.py +++ b/elapid/config.py @@ -1,5 +1,5 @@ ...
earthlab__abc-classroom-369
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "abcclassroom/github.py:_call_git", "abcclassroom/github.py:check_student_repo_exists", "abcclassroom/github.py:_master_branch_to_main", "abcclassroom/github.py:git_init" ],...
earthlab/abc-classroom
17104c5355d69e98fd9de4cfd5c36b2efd23b99f
check for main branch before trying to change As noted in [this comment](https://github.com/earthlab/abc-classroom/pull/335#discussion_r533625441) on PR #335, we should check whether the `master` branch exists before trying to change it. Suggested fix is: `git show-ref --quiet --verify refs/heads/master` which r...
diff --git a/.github/workflows/code-cov.yml b/.github/workflows/code-cov.yml index 0f46cc3..295ef9d 100644 --- a/.github/workflows/code-cov.yml +++ b/.github/workflows/code-cov.yml @@ -1,5 +1,11 @@ name: Codecov -on: [push] +on: + push: + branches: + - '*' + pull_request: + branches: + - '*' jobs: ...
earthlab__earthpy-693
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "earthpy/plot.py:_stretch_im", "earthpy/plot.py:plot_rgb", "earthpy/plot.py:hist" ], "edited_modules": [ "earthpy/plot.py:_stretch_im", "earthpy/plot.py:plot_r...
earthlab/earthpy
bc95fd3ec0692decf311c68972931a67207e0795
Issue with plotting nan values. When plotting `nan` values, occasionally the plots will be broken because of how we stretch values. Need a fix to make sure `earthpy.plot.plot_rgb()` can account for `nan` values and gracefully plot the data regardless.
diff --git a/dev-requirements.txt b/dev-requirements.txt index 5d0fe81..bd5c149 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -1,13 +1,13 @@ -pre-commit==2.11.1 +pre-commit==2.13.0 bumpversion==0.6.0 codecov==2.1.11 -importlib-metadata==3.10.0 -pytest==6.2.3 +importlib-metadata==4.5.0 +pytest==6.2.4...
earthobservations__wetterdienst-1359
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "examples/provider/dwd/mosmix/dwd_mosmix_forecasts.py:mosmix_example" ], "edited_modules": [ "examples/provider/dwd/mosmix/dwd_mosmix_forecasts.py:mosmix_example" ] }, "...
earthobservations/wetterdienst
1c67190c4c3f8596bb6f3fd3a33bf3a0011b6038
No SI unit conversion for mosmix and dmo requests **Describe the bug** I am collecting observation and mosmix data. Thereby, I found that the mosmix data seems to always be in non-SI-units, no matter what is defined in the Settings. This is at least true for the "radiation_global" parameter. You can check it by yourse...
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index f3752942..cb9a2ad6 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -5,6 +5,8 @@ Development *********** - Bump polars to `>=1.0.0` +- Change `DWDMosmixValues` and `DWDDmoValues` to follow the core `_collect_station_parameter` method +- Allow only single issue retri...
easy-as-python__django-webmention-24
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/webmention/resolution.py:fetch_and_validate_source" ], "edited_modules": [ "src/webmention/resolution.py:fetch_and_validate_source" ] }, "file": "src/webmention/res...
easy-as-python/django-webmention
9faab3dad9529d14399eb8dad016370adbd3054a
response_body saving bytes instead of a decoded string I noticed a subtle bug in the [resolution.py::fetch_and_validate_source](https://github.com/easy-as-python/django-webmention/blob/9faab3dad9529d14399eb8dad016370adbd3054a/src/webmention/resolution.py#L19-L27). While response.content is a bytes-string ( [docs](ht...
diff --git a/setup.cfg b/setup.cfg index a6d40d4..65e0534 100644 --- a/setup.cfg +++ b/setup.cfg @@ -13,9 +13,6 @@ classifiers = Development Status :: 5 - Production/Stable Intended Audience :: Developers Framework :: Django - Framework :: Django :: 1.11 - Framework :: Django :: 2.0 - Framework ...
ebroecker__canmatrix-470
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/canmatrix/canmatrix.py:CanMatrix.attribute" ], "edited_modules": [ "src/canmatrix/canmatrix.py:CanMatrix" ] }, "file": "src/canmatrix/canmatrix.py" }, { "ch...
ebroecker/canmatrix
09c32eaff27d4957e2b1c819231d11cb891a999a
"Title" field in .sym files not processed One of my use cases is to read .sym files modify them in python and then to export them again. The title field is written by PCAN symbol editor and I think it makes sense to have it be preserved if the file if read and then written back to file.
diff --git a/src/canmatrix/canmatrix.py b/src/canmatrix/canmatrix.py index cbeef4a..355b7c3 100644 --- a/src/canmatrix/canmatrix.py +++ b/src/canmatrix/canmatrix.py @@ -1485,10 +1485,11 @@ class CanMatrix(object): """ if attributeName in self.attributes: return self.attributes[attributeNa...
ebroecker__canmatrix-475
[ { "changes": { "added_entities": [ "src/canmatrix/canmatrix.py:ArbitrationId.j1939_pdu_format", "src/canmatrix/canmatrix.py:ArbitrationId.j1939_dp" ], "added_modules": null, "edited_entities": [ "src/canmatrix/canmatrix.py:ArbitrationId.pgn", "src/canmatri...
ebroecker/canmatrix
08ec80e87dc8144f68716bb981a78903428192f6
J1939 PGN does not include Extended Data Page (EDP) and Data Page (DP) bits I think the code for parsing J1939 IDs isn't quite up to date. In the code for the PGN property of the ArbitrationId class, the PGN is only constructed from the PS and PF fields. However, there are two more bits in the 29 bit ID which contr...
diff --git a/src/canmatrix/canmatrix.py b/src/canmatrix/canmatrix.py index 355b7c3..78dd771 100644 --- a/src/canmatrix/canmatrix.py +++ b/src/canmatrix/canmatrix.py @@ -606,25 +606,25 @@ class ArbitrationId(object): def pgn(self): if not self.extended: raise J1939needsExtendedIdetifier + ...
ebroecker__canmatrix-479
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": [ "src/canmatrix/canmatrix.py:Signal" ] }, "file": "src/canmatrix/canmatrix.py" }, { "changes": { "added_entities": null, "added_modules": nu...
ebroecker/canmatrix
4ab128cb9cfd01def8dbfc3a7faff82cbf86977d
Cannot parse "Char", "String" or "Raw" signal types in .Sym files The PCAN Symbol editor allows several types to be set for signals. These are: - Bit - Char - String - Signed - Unsigned - Float - Enum - Double - Raw Currently Canmatrix will accept some of these but not all. The ones which do not wor...
diff --git a/src/canmatrix/canmatrix.py b/src/canmatrix/canmatrix.py index 9a5dd66..bb21b55 100644 --- a/src/canmatrix/canmatrix.py +++ b/src/canmatrix/canmatrix.py @@ -156,6 +156,8 @@ class Signal(object): mux_value = attr.ib(default=None) is_float = attr.ib(default=False) # type: bool + is_ascii = att...
ebroecker__canmatrix-481
[ { "changes": { "added_entities": [ "src/canmatrix/formats/sym.py:create_enum_from_signal_values" ], "added_modules": [ "src/canmatrix/formats/sym.py:create_enum_from_signal_values" ], "edited_entities": [ "src/canmatrix/formats/sym.py:create_signal", ...
ebroecker/canmatrix
ef4d76ebed8d1fc49279bd027372856bdaa7c4ae
Value Tables/Enums not exported when using sym.dump() The sym dump method doesn't seem to actually save the enumerations into the output file if they aren't used by any signals within the matrix. I'm a bit confused by how the code is structured as it seems to expect the enums to all be saved in a gloabal variable cal...
diff --git a/src/canmatrix/formats/sym.py b/src/canmatrix/formats/sym.py index 7567864..b9557d5 100644 --- a/src/canmatrix/formats/sym.py +++ b/src/canmatrix/formats/sym.py @@ -38,8 +38,6 @@ import canmatrix import canmatrix.utils logger = logging.getLogger(__name__) -enum_dict = {} # type: typing.Dict[str, str] -...
ebroecker__canmatrix-482
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/canmatrix/formats/sym.py:load" ], "edited_modules": [ "src/canmatrix/formats/sym.py:load" ] }, "file": "src/canmatrix/formats/sym.py" } ]
ebroecker/canmatrix
0caf5fe0c80259bb8ac9e4709c973c7d965d849d
Cannot parse "Enum" signal types in .Sym files The PCAN Symbol editor allows several types to be set for signals. These are: - Bit - Char - String - Signed - Unsigned - Float - Enum - Double - Raw Currently Canmatrix will accept some of these but not all. The ones which do not work yet are: - Char - ...
diff --git a/src/canmatrix/formats/sym.py b/src/canmatrix/formats/sym.py index b9557d5..cac6bab 100644 --- a/src/canmatrix/formats/sym.py +++ b/src/canmatrix/formats/sym.py @@ -440,6 +440,7 @@ def load(f, **options): # type: (typing.IO, **typing.Any) -> canmatrix.CanMatri is_float = False ...
ebroecker__canmatrix-517
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/canmatrix/formats/sym.py:load" ], "edited_modules": [ "src/canmatrix/formats/sym.py:load" ] }, "file": "src/canmatrix/formats/sym.py" } ]
ebroecker/canmatrix
3ac536499424c7fdea3f84142e7ded8e2e1afcbd
Mux value field is interpreted as a signed value when importing a .Sym file When a can db is loaded from a .sym file the mux value fields are interpreted as signed integers. This means that when decoding, if the mux value is greater than half the max value (so the msb is 1) the number is interpreted incorrectly and is ...
diff --git a/.travis.yml b/.travis.yml index c3ea345..2ff1def 100644 --- a/.travis.yml +++ b/.travis.yml @@ -36,8 +36,9 @@ script: deploy: provider: pypi - user: ebroecker + username: __token__ skip_existing: true + skip_cleanup: true on: tags: true branch: master diff --git a/src/canmatrix/fo...
ebu__ebu_adm_renderer-72
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "doc/conf.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "ear/cmdline/render_file....
ebu/ebu_adm_renderer
f47fb093833d8e0bfcbbb7bd885f41a259665ade
AttributeError: 'NoneType' object has no attribute 'audioIDs' ![image](https://user-images.githubusercontent.com/24452502/150906974-a19bc4f9-e1a1-458d-bc76-bd6ff10c642a.png)
diff --git a/doc/conf.py b/doc/conf.py index 0631f64..e3c9891 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -59,7 +59,7 @@ html_theme_options = { # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file nam...
ecmwf__pdbufr-50
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pdbufr/bufr_structure.py:make_message_uid" ], "edited_modules": [ "pdbufr/bufr_structure.py:make_message_uid" ] }, "file": "pdbufr/bufr_structure.py" } ]
ecmwf/pdbufr
8e6c1f15694d0c9b02a73de13f6b033031e0f7ae
Message structure not identified correctly **pdbufr** uses an in memory cache to identify and reuse the message structure as it is processing the messages in a BUFR file. Cache entries are identified by the following header keys and contain all the keys for a given message (structure): "edition", "masterTableNumber"...
diff --git a/docs/release_notes/version_0.10_updates.rst b/docs/release_notes/version_0.10_updates.rst index 50f4814..8dcffe7 100644 --- a/docs/release_notes/version_0.10_updates.rst +++ b/docs/release_notes/version_0.10_updates.rst @@ -2,6 +2,12 @@ Version 0.10 Updates ///////////////////////// + +Version 0.10.2 +...
ecmwf__pdbufr-54
[ { "changes": { "added_entities": [ "pdbufr/bufr_structure.py:wrap_message", "pdbufr/bufr_structure.py:MessageWrapper.__init__", "pdbufr/bufr_structure.py:MessageWrapper.__enter__", "pdbufr/bufr_structure.py:MessageWrapper.__exit__", "pdbufr/bufr_structure.py:Message...
ecmwf/pdbufr
b77c1cd5985f83c9a0ce81690359a8a6a5b08527
pdbufr can take a very long time to filter certain BUFR files/messages The following refers to a BUFR file in ECMWF internal file system under my username: `$PERM/public/i0tp_07062020_00.buf`. It contains 364,359 messages and 715,925 subsets. The following call to pdbufr takes around 41 minutes on the HPC: ``` impor...
diff --git a/pdbufr/bufr_structure.py b/pdbufr/bufr_structure.py index 6d0d528..834bc5b 100644 --- a/pdbufr/bufr_structure.py +++ b/pdbufr/bufr_structure.py @@ -8,7 +8,6 @@ import collections import datetime -import re import typing as T import attr @@ -90,20 +89,53 @@ class UncompressedBufrKey: IS_KEY_COORD =...
econ-ark__HARK-1039
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "HARK/ConsumptionSaving/ConsIndShockModel.py:PerfForesightConsumerType.sim_death", "HARK/ConsumptionSaving/ConsIndShockModel.py:IndShockConsumerType.get_shocks" ], "edited_modules": [...
econ-ark/HARK
4f2ef4da3d56a442e0c0bc2f79744759a5187e0a
Consistent t-index for time varying shock parameters. Referring to #1021 and #326 Parameters for a time-varying income process are entered like this: ``` # Parameters that specify the income distribution over the lifecycle "PermShkStd" : [0.1,0.2,0.1,0.2,0.1,0.2,0.1,0,0,0], "PermShkCount" : 7, ...
diff --git a/Documentation/CHANGELOG.md b/Documentation/CHANGELOG.md index 73722e10..e24fd84e 100644 --- a/Documentation/CHANGELOG.md +++ b/Documentation/CHANGELOG.md @@ -14,6 +14,7 @@ Release Data: TBD #### Major Changes +* Input parameters for cyclical models now indexed by t [#1039](https://github.com/econ-ark/...
econ-ark__HARK-1432
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "HARK/distribution.py:Bernoulli.__init__" ], "edited_modules": [ "HARK/distribution.py:Bernoulli" ] }, "file": "HARK/distribution.py" } ]
econ-ark/HARK
3eb9a09337fbbb2fabf0dcab08931e03dc9e827c
Cannot make a DiscreteDistributionLabeled from a Bernoulli variable ``` foo = Bernoulli(.4) DiscreteDistributionLabeled.from_unlabeled( foo, var_names = ['foo'] ) ``` ``` File ~/projects/HARK/HARK/distribution.py:1087, in DiscreteDistributionLabeled.from_unlabeled(cls...
diff --git a/HARK/distribution.py b/HARK/distribution.py index 40c88c93..d26ecec8 100644 --- a/HARK/distribution.py +++ b/HARK/distribution.py @@ -769,6 +769,10 @@ class Bernoulli(DiscreteFrozenDistribution): # Set up the RNG super().__init__(stats.bernoulli, p=self.p, seed=seed) + self.pmv =...
econ-ark__HARK-691
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "HARK/ConsumptionSaving/ConsAggShockModel.py:AggShockMarkovConsumerType.getShocks", "HARK/ConsumptionSaving/ConsAggShockModel.py:CobbDouglasEconomy.makeAggShkHist", "HARK/ConsumptionSavin...
econ-ark/HARK
23aee8a7a6276aa7d69c0132c8fbea3f585cca56
discrete distributions should get a random seed on initialization `DiscreteDistribution.drawDiscrete` takes a `seed` argument. Instead, this seed can be an argument to the DiscreteDistribution upon initialization.
diff --git a/HARK/ConsumptionSaving/ConsAggShockModel.py b/HARK/ConsumptionSaving/ConsAggShockModel.py index 1fb54229..7b04d578 100644 --- a/HARK/ConsumptionSaving/ConsAggShockModel.py +++ b/HARK/ConsumptionSaving/ConsAggShockModel.py @@ -480,8 +480,7 @@ class AggShockMarkovConsumerType(AggShockConsumerType): ...
econ-ark__HARK-812
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "HARK/core.py:AgentType.__init__", "HARK/core.py:AgentType.makeShockHistory", "HARK/core.py:AgentType.getMortality", "HARK/core.py:AgentType.readShocks" ], "edited_mod...
econ-ark/HARK
0f906bfed5582f047ce774ec8ee9cd5df41f10b0
track_vars cannot track PrefShkNow **Describe the bug** Adding `PrefShkNow` to `track_vars` results in broken history records. **To Reproduce** Run this code: https://gist.github.com/sbenthall/e398fd3c389a9cc094974c397e49b160 See this output: ``` python pref_test.py 0.6904681186891202 0.69046812 /home...
diff --git a/Documentation/CHANGELOG.md b/Documentation/CHANGELOG.md index 0f5d1487..f3e7bc0f 100644 --- a/Documentation/CHANGELOG.md +++ b/Documentation/CHANGELOG.md @@ -19,6 +19,7 @@ Release Data: TBD #### Minor Changes +* Use shock_history namespace for pre-evaluated shock history [#812](https://github.com/eco...
econ-ark__HARK-918
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "HARK/ConsumptionSaving/ConsAggShockModel.py:AggShockConsumerType.addAggShkDstn", "HARK/ConsumptionSaving/ConsAggShockModel.py:AggShockMarkovConsumerType.addAggShkDstn", "HARK/Consumption...
econ-ark/HARK
af562318fd29b088445901239874ded9070f095e
"Income" should be replaced with IncShkDstn or something like that As it stands currently, most of the components of HARK that are keeping track of the income shocks use the tag "Income". That is confusing to users, who might not realize that the object being referenced is a distribution of income *shocks*, rather tha...
diff --git a/Documentation/CHANGELOG.md b/Documentation/CHANGELOG.md index 7e73b40f..d828e39d 100644 --- a/Documentation/CHANGELOG.md +++ b/Documentation/CHANGELOG.md @@ -28,10 +28,10 @@ interpolation for problems with CRRA utility. See [#888](https://github.com/econ * Move AgentType constructor parameters docs to c...
econ-ark__HARK-919
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "HARK/ConsumptionSaving/ConsAggShockModel.py:AggShockMarkovConsumerType.getShocks", "HARK/ConsumptionSaving/ConsAggShockModel.py:CobbDouglasEconomy.makeAggShkHist", "HARK/ConsumptionSavin...
econ-ark/HARK
2d7b8ab732236cd71ed0de18f2147dc1b31d3a7d
DiscreteDistribution.drawDiscrete() -> DiscreteDistribution.draw() Rename this method.
diff --git a/Documentation/CHANGELOG.md b/Documentation/CHANGELOG.md index fac4d72a..acef26bb 100644 --- a/Documentation/CHANGELOG.md +++ b/Documentation/CHANGELOG.md @@ -28,6 +28,7 @@ interpolation for problems with CRRA utility. See [#888](https://github.com/econ * Move AgentType constructor parameters docs to cla...
econ-ark__HARK-935
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "HARK/ConsumptionSaving/ConsAggShockModel.py:AggShockMarkovConsumerType.__init__", "HARK/ConsumptionSaving/ConsAggShockModel.py:AggShockMarkovConsumerType.getShocks", "HARK/ConsumptionSav...
econ-ark/HARK
fcf846cb0ef5925d89d7af0e83d80dcfc18b598e
refactor MrkvNow into model state variable in ConsAggShockModel In ConsAggShockModel, the model variable MrkvNow is currently stored as an object attribute. Is it a state? A shock? Either way, it should be changed into a namespaced variable for consistency with the new style.
diff --git a/Documentation/CHANGELOG.md b/Documentation/CHANGELOG.md index 3b83b45d..0cee9541 100644 --- a/Documentation/CHANGELOG.md +++ b/Documentation/CHANGELOG.md @@ -27,6 +27,8 @@ interpolation for problems with CRRA utility. See [#888](https://github.com/econ * Fix the return fields of `dcegm/calcCrossPoints`[#9...
edelooff__kalpa-9
[ { "changes": { "added_entities": [ "kalpa/__init__.py:Branch._child" ], "added_modules": null, "edited_entities": [ "kalpa/__init__.py:Branch._sprout", "kalpa/__init__.py:Branch._sprout_resource" ], "edited_modules": [ "kalpa/__init__.py:Branch...
edelooff/kalpa
c351347bec34e43a01572d9cc5490bafc7be8ea9
Roll child-class spawning methods into one The `_sprout` and `_sprout_resource` methods can be rolled into one with a variable number of positional arguments. The first one should be the key, the second (optional) argument is the resource class to use, which falls back to the child resource class.
diff --git a/README.rst b/README.rst index 1fe1c2f..fe1556a 100644 --- a/README.rst +++ b/README.rst @@ -20,10 +20,10 @@ Pyramid's traversal. class UserCollection(Branch): """User collection, for listings, or loading single users.""" - def __load__(self, path): + def __load__(self, key): ...
edgedb__edgedb-841
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "edb/edgeql/parser/grammar/lexer.py:EdgeQLLexer.token_from_text" ], "edited_modules": [ "edb/edgeql/parser/grammar/lexer.py:EdgeQLLexer" ] }, "file": "edb/edgeql/parser/...
edgedb/edgedb
6f970c2d6e3dc43efea0c6f61641610b90bb9f61
Identifier quoting clashes with fully-qualified names The point of identifier quoting is that it allows using non-alphanumeric characters or reserved keywords as identifiers. So consider the following: ``` CREATE TYPE `foo::Bar`; ``` It will be interpreted as a single identifier, which then gets prefixed with the `...
diff --git a/docs/edgeql/lexical.rst b/docs/edgeql/lexical.rst index 3263eda6d..e37024031 100644 --- a/docs/edgeql/lexical.rst +++ b/docs/edgeql/lexical.rst @@ -25,11 +25,12 @@ There are two ways of writing identifiers in EdgeQL: plain and quoted. The plain identifiers are similar to many other languages, they are al...
edgewall__genshi-53
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "genshi/template/markup.py:MarkupTemplate._extract_directives" ], "edited_modules": [ "genshi/template/markup.py:MarkupTemplate" ] }, "file": "genshi/template/markup.py"...
edgewall/genshi
4c402aa08c37fe979487abf3ccd866417052f44d
Translator filter merge sub-directives I have wrote a test that shows the problem: https://github.com/cedk/genshi/commit/53f60233156b87190f03b7dca3f59cd6acaba56b
diff --git a/genshi/template/markup.py b/genshi/template/markup.py index 22f0602..dd441b9 100644 --- a/genshi/template/markup.py +++ b/genshi/template/markup.py @@ -172,11 +172,14 @@ class MarkupTemplate(Template): ] elif kind is SUB: - directives, substream = data - ...
edgewall__genshi-87
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "genshi/input.py:HTMLParser.parse" ], "edited_modules": [ "genshi/input.py:HTMLParser" ] }, "file": "genshi/input.py" } ]
edgewall/genshi
ca08e57c90b352a39d9ebf0de5d6a6107c48288f
Exception handler tries to use nonexistent error class (html.HTMLParseError) At line 349 of `input.py` the exception handler tries to access html.HTMLParseError, an error class, that used to exist in the cPython's html library but has been [removed](https://github.com/python/cpython/blob/d57f8a9f76e75384ec997686c2a826b...
diff --git a/genshi/input.py b/genshi/input.py index fa18c38..c21990a 100644 --- a/genshi/input.py +++ b/genshi/input.py @@ -346,9 +346,13 @@ class HTMLParser(html.HTMLParser, object): for tag in open_tags: yield END, QName(tag), pos break -...
edgi-govdata-archiving__wayback-159
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/wayback/_client.py:WaybackSession.send", "src/wayback/_client.py:WaybackSession.should_retry" ], "edited_modules": [ "src/wayback/_client.py:WaybackSession" ] }...
edgi-govdata-archiving/wayback
477c44439abdebaf4d9942c7cb2aa55c3099b846
WaybackSession not properly handling archived 429 (rate limit) responses As per the memento spec and as noted in the comments in _client.py (line ~987), 4XX status responses should also be returned by the memento server exactly as they were archived. WaybackClient has code to work around this, but Wayback session curre...
diff --git a/src/wayback/_client.py b/src/wayback/_client.py index 0593e8f..4d1a3cf 100644 --- a/src/wayback/_client.py +++ b/src/wayback/_client.py @@ -455,7 +455,11 @@ def send(self, request: requests.PreparedRequest, **kwargs): response = super().send(request, **kwargs) retry_delay ...
edkrueger__python-tree-2
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "resc/tree.py:Tree.__init__", "resc/tree.py:Tree._find_steps_from_leaf", "resc/tree.py:Tree.find_steps_from_leaf" ], "edited_modules": [ "resc/tree.py:Tree" ] ...
edkrueger/python-tree
b8bddb1f03218e59ea8027c76e6900017d281382
change find_steps_from_leaf into find_min_steps_from_leaf, find_max_steps_from_leaf
diff --git a/resc/tree.py b/resc/tree.py index a280c8e..647f16a 100644 --- a/resc/tree.py +++ b/resc/tree.py @@ -13,7 +13,8 @@ class Tree: self.node_id = node_id self.children = children self.steps_from_root = None - self.steps_from_leaf = None + self.min_steps_from_leaf = None ...
eerimoq__bincopy-41
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "bincopy.py:Segment.chunks", "bincopy.py:Segments.chunks" ], "edited_modules": [ "bincopy.py:Segment", "bincopy.py:Segments" ] }, "file": "bincopy.py" ...
eerimoq/bincopy
e608554fc8f0f828ca9a5547e87916f17f9f52ca
First chunk is misaligned if segment has non-aligned start address ```python records = """ :02000004000AF0 :10B8440000000000000000009630000007770000B0 """ hexfile = bincopy.BinFile() hexfile.add_ihex(records) align = 8 chunks = hexfile.segments.chunks(size=16, alignment=align) assert not any(c.address ...
diff --git a/bincopy.py b/bincopy.py index c26b486..fbe3ba5 100755 --- a/bincopy.py +++ b/bincopy.py @@ -361,22 +361,39 @@ class Segment: def address(self): return self.minimum_address // self.word_size_bytes - def chunks(self, size=32, alignment=1): - """Return chunks of the data aligned as g...
eigenein__protobuf-174
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pure_protobuf/message.py:BaseMessage.__setattr__" ], "edited_modules": [ "pure_protobuf/message.py:BaseMessage" ] }, "file": "pure_protobuf/message.py" } ]
eigenein/protobuf
2bb35d3490851cfcea7dfdd7d8f4b23d2fa09924
Decoding of oneof fields only works for the last specified field I am finding that only the last specified field can be successfully decoded for a `oneof` field. For example, the assertion in this round-trip test fails: ```python #!/usr/bin/env python3 from pure_protobuf.annotations import Field from pure_prot...
diff --git a/Makefile b/Makefile index 27b8642..b67a61d 100644 --- a/Makefile +++ b/Makefile @@ -49,3 +49,7 @@ build: .PHONY: docs docs: poetry run mkdocs build --site-dir _site + +.PHONY: docs/serve +docs/serve: + poetry run mkdocs serve diff --git a/docs/annotating_fields.md b/docs/annotating_fields.md index 054a...
eigenein__protobuf-37
[ { "changes": { "added_entities": [ "pure_protobuf/dataclasses_.py:get_optional" ], "added_modules": [ "pure_protobuf/dataclasses_.py:get_optional" ], "edited_entities": [ "pure_protobuf/dataclasses_.py:make_field", "pure_protobuf/dataclasses_.py:remo...
eigenein/protobuf
774403668782a332f1a5382268712ba092c8500f
Skip None values when serialising With the `dataclasses` interface it's not possible to omit values while serialising a message.
diff --git a/README.md b/README.md index 2f30b57..6f72ed6 100644 --- a/README.md +++ b/README.md @@ -101,12 +101,12 @@ class Message: foo: List[int32] = field(1, default_factory=list) ``` +It's also possible to wrap a field type with [`typing.Optional`](https://docs.python.org/3/library/typing.html#typing.Optio...
eigenein__protobuf-39
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pure_protobuf/serializers.py:UnsignedInt32Serializer.validate", "pure_protobuf/serializers.py:UnsignedInt64Serializer.validate", "pure_protobuf/serializers.py:SignedInt32Serializer.valid...
eigenein/protobuf
3fc159a57eccb2fb380369004bc5cdf09687014d
Improve serializers.py test coverage
diff --git a/pure_protobuf/serializers.py b/pure_protobuf/serializers.py index bd643d3..2a467f3 100644 --- a/pure_protobuf/serializers.py +++ b/pure_protobuf/serializers.py @@ -139,7 +139,7 @@ class UnsignedInt32Serializer(Serializer): def validate(self, value: Any): unsigned_varint_serializer.validate(va...
eigenfoo__littlemcmc-52
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "littlemcmc/sampling.py:init_nuts" ], "edited_modules": [ "littlemcmc/sampling.py:init_nuts" ] }, "file": "littlemcmc/sampling.py" } ]
eigenfoo/littlemcmc
0c75163e2afe5aff0cdcce17c60c7998d2ace91d
New commits to pymc3/step_methods/hmc/ > This is an auto-generated issue, triggered by the `even-with-pymc3` workflow. There have been new commits to `pymc3/step_methods/hmc/` since yesterday: please see [the latest run of the `even-with-pymc3` GitHub Action](https://github.com/eigenfoo/littlemcmc/actions?query=workfl...
diff --git a/littlemcmc/sampling.py b/littlemcmc/sampling.py index 2c13ed8..87d046a 100644 --- a/littlemcmc/sampling.py +++ b/littlemcmc/sampling.py @@ -248,8 +248,10 @@ def init_nuts( on the variance of the tuning samples. * jitter+adapt_diag : Same as `'adapt_diag'`, but use uniform jitter in [-1,...
eigenfoo__littlemcmc-62
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "littlemcmc/base_hmc.py:BaseHMC.__init__" ], "edited_modules": [ "littlemcmc/base_hmc.py:BaseHMC" ] }, "file": "littlemcmc/base_hmc.py" }, { "changes": { "...
eigenfoo/littlemcmc
18380c9f2dba16e0cc842b548fd00ffa76a63ec1
s/size/model_ndim/g Currently we have the `size` parameter in `lmc.sample`. However, `model_ndim` might be a more descriptive variable name (and also mirrors what PyMC3 uses).
diff --git a/docs/_static/notebooks/quickstart.ipynb b/docs/_static/notebooks/quickstart.ipynb index 3ea0e3d..c171dbc 100644 --- a/docs/_static/notebooks/quickstart.ipynb +++ b/docs/_static/notebooks/quickstart.ipynb @@ -72,10 +72,6 @@ "name": "stderr", "output_type": "stream", "text": [ - "/home...
eigenfoo__littlemcmc-63
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "littlemcmc/sampling.py:sample" ], "edited_modules": [ "littlemcmc/sampling.py:sample" ] }, "file": "littlemcmc/sampling.py" } ]
eigenfoo/littlemcmc
6ab62cc644efde9aec9258c7a5477c3ecdc16284
Use a better shape for trace object Currently we flatten the `trace` object to have shape `[num_variables, num_chains * num_samples]`. Really, it ought to be `[num_chains, num_samples, num_variables]` (or whatever reasonable choice ArviZ makes: we should target compatibility with them. https://github.com/eigenfoo/li...
diff --git a/littlemcmc/sampling.py b/littlemcmc/sampling.py index 50a3c96..74e22fd 100644 --- a/littlemcmc/sampling.py +++ b/littlemcmc/sampling.py @@ -210,13 +210,18 @@ def sample( for i, seed in enumerate(random_seed) ) - # Flatten `trace` to have shape [num_variables, num_chains * num_samples] - ...
eight04__pip-outdated-26
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "cute.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pip_outdated/check_outdated....
eight04/pip-outdated
f7583c4daa765fb3c698e0f12a5ef558d07489ae
pip-outdated chokes with pytz When pytz is in my requirements file, running pip-outdated gives this error: ``` (.venv) harry@eagle04 django-base % pip-outdated requirements/common.txt Traceback (most recent call last): File "/Users/harry/Code/django-base/.venv/bin/pip-outdated", line 8, in <module> sys.ex...
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d18b2cf..c6a9f09 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,11 +6,12 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-python@v2 with: - python-version: '3.10' + ...
eight04__vpip-33
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "vpip/commands/__init__.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "vpip/comma...
eight04/vpip
ad6bc73ab91c2de0f180fc06eadda9b4bb21427d
Version is not always numbers https://github.com/eight04/vpip/blob/ad6bc73ab91c2de0f180fc06eadda9b4bb21427d/vpip/pypi.py#L77 https://pypi.org/pypi/setuptools/json
diff --git a/.pylintrc b/.pylintrc index 0ab6440..7908cd6 100644 --- a/.pylintrc +++ b/.pylintrc @@ -7,6 +7,7 @@ disable= bad-whitespace, anomalous-backslash-in-string, + consider-using-f-string, duplicate-code, global-statement, inconsistent-return-statements, diff --git a/.travis.yml b/.travis.yml...
einsteinpy__einsteinpy-177
[ { "changes": { "added_entities": [ "src/einsteinpy/plotting/geodesics_scatter.py:ScatterGeodesicPlotter.animate" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "src/einsteinpy/plotting/geodesics_scatter.py:ScatterGeodesicPlotter" ] ...
einsteinpy/einsteinpy
a36299c5949fcd3521fbca63822842951178770b
Simulation of orbits - Animations Simulating orbits with coordinate time running and correspondingly plot radial and angular coordinates and showing plots in animation format
diff --git a/src/einsteinpy/plotting/geodesics_scatter.py b/src/einsteinpy/plotting/geodesics_scatter.py index a022401..8bd2d9a 100644 --- a/src/einsteinpy/plotting/geodesics_scatter.py +++ b/src/einsteinpy/plotting/geodesics_scatter.py @@ -1,6 +1,7 @@ import astropy.units as u import matplotlib.pyplot as plt import...
einsteinpy__einsteinpy-196
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/einsteinpy/metric/kerr.py:Kerr.f_vec", "src/einsteinpy/metric/kerr.py:Kerr.calculate_trajectory", "src/einsteinpy/metric/kerr.py:Kerr.calculate_trajectory_iterator" ], "e...
einsteinpy/einsteinpy
948947d5ca7a0461316327a9cd0bdf8cee3945b9
Organize and reorder utils for Kerr, Kerr-Newman and Schwarzschild metrics 🐞 **Problem** As of now, various useful functions used by `metric/schwarzschild.py` are in `utils/schwarzschild_utils.py`. Same goes for `metric/kerr.py` and `metric/kerrnewman.py`. We need to move these functions out of `utils` and make them ...
diff --git a/docs/source/examples/Visualizing_event_horizon_and_ergosphere_of_Kerr_black_hole.ipynb b/docs/source/examples/Visualizing_event_horizon_and_ergosphere_of_Kerr_black_hole.ipynb index 14e5766..81d69d4 100644 --- a/docs/source/examples/Visualizing_event_horizon_and_ergosphere_of_Kerr_black_hole.ipynb +++ b/do...
einsteinpy__einsteinpy-203
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/einsteinpy/metric/kerr.py:Kerr.__init__", "src/einsteinpy/metric/kerr.py:Kerr._classmethod_handler", "src/einsteinpy/metric/kerr.py:Kerr.from_BL", "src/einsteinpy/metric/kerr...
einsteinpy/einsteinpy
d780783584e1535b9f782ac80dbe80577669cd2e
Change the internal coordinate handling functions in metric modules 🐞 **Problem** `.py` files in `metric` still rely on `utils` for coordinate handling. 🎯 **Goal** - Change them to newly created `coordinates` module functions 📋 **Steps to solve the problem** * Comment below about what you've started w...
diff --git a/src/einsteinpy/coordinates/core.py b/src/einsteinpy/coordinates/core.py index a07d2b4..320acf5 100644 --- a/src/einsteinpy/coordinates/core.py +++ b/src/einsteinpy/coordinates/core.py @@ -14,9 +14,10 @@ class Cartesian: Parameters ---------- - x : ~astropy.units - y : ~ast...
einsteinpy__einsteinpy-258
[ { "changes": { "added_entities": [ "src/einsteinpy/symbolic/tensor.py:Tensor.subs" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "src/einsteinpy/symbolic/tensor.py:Tensor" ] }, "file": "src/einsteinpy/symbolic/tensor.py" } ]
einsteinpy/einsteinpy
e869ea7a87b2c182adc0e7363db2c5983985e12e
Support substitution of variables in Tensor (symbolic module) 🐞 **Problem** - The title is self explanatory 📋 **Steps to solve the problem** * Comment below about what you've started working on. * Add, commit, push your changes * Submit a pull request and add this in comments - `Addresses #<put issue n...
diff --git a/docs/source/examples/Symbolically_Understanding_Christoffel_Symbol_and_Riemann_Curvature_Tensor_using_EinsteinPy.ipynb b/docs/source/examples/Symbolically_Understanding_Christoffel_Symbol_and_Riemann_Curvature_Tensor_using_EinsteinPy.ipynb index 1af3a91..e3c163b 100644 --- a/docs/source/examples/Symbolical...
einsteinpy__einsteinpy-322
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/einsteinpy/symbolic/ricci.py:RicciScalar.__init__", "src/einsteinpy/symbolic/ricci.py:RicciScalar.parent_metric" ], "edited_modules": [ "src/einsteinpy/symbolic/ricci.py:...
einsteinpy/einsteinpy
f2a9856b6be7fe81b21f302cbce0accd2b4383f6
Extend support of Tensor Class(symbolic) to support scalars 🐞 **Problem** Scalars are also zero order tensors. The Tensor class currently supports 1st order tensors and above. 🎯 **Goal** - Make `Tensor` support scalars. This issue can also help in #287 . 📋 **Steps to solve the problem** * Comment be...
diff --git a/src/einsteinpy/symbolic/constants.py b/src/einsteinpy/symbolic/constants.py index 0ab4863..509082c 100644 --- a/src/einsteinpy/symbolic/constants.py +++ b/src/einsteinpy/symbolic/constants.py @@ -5,19 +5,24 @@ class SymbolicConstant(Symbol): """ This class inherits from ~sympy.core.symbol.Symbol ...
einsteinpy__einsteinpy-325
[ { "changes": { "added_entities": [ "src/einsteinpy/symbolic/tensor.py:BaseRelativityTensor.tensor_lambdify" ], "added_modules": null, "edited_entities": [ "src/einsteinpy/symbolic/tensor.py:BaseRelativityTensor.__init__" ], "edited_modules": [ "src/ein...
einsteinpy/einsteinpy
f64c25fd58564bf43e071a4e77b790779457b5ea
Integrate Sympy's Lambdify in EinsteinPy  Our tensors should have the ability to represent arrays of numpy-like functions rather than sympy expressions
diff --git a/src/einsteinpy/symbolic/tensor.py b/src/einsteinpy/symbolic/tensor.py index fbd55ff..80dfcc9 100644 --- a/src/einsteinpy/symbolic/tensor.py +++ b/src/einsteinpy/symbolic/tensor.py @@ -272,6 +272,7 @@ class BaseRelativityTensor(Tensor): self.variables = [ v for v in sel...
einsteinpy__einsteinpy-357
[ { "changes": { "added_entities": [ "src/einsteinpy/symbolic/einstein.py:EinsteinTensor.lorentz_transform" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "src/einsteinpy/symbolic/einstein.py:EinsteinTensor" ] }, "file": "src/eins...
einsteinpy/einsteinpy
094d896d431b92ef2e20646a4dac9eab1420d195
Add lorentz_tranform to all the classes in symbolic module 🐞 **Problem** Many classes like `MetricTensor`, `RiemannCurvatureTensor` does not have the `lorentz_transform()` function as of now! 🎯 **Goal** Implement it in a similar way as that in `GenericVector` class in `symbolic/vector.py` - [x] `GenericVect...
diff --git a/src/einsteinpy/symbolic/einstein.py b/src/einsteinpy/symbolic/einstein.py index 10fa945..1eb2dc1 100644 --- a/src/einsteinpy/symbolic/einstein.py +++ b/src/einsteinpy/symbolic/einstein.py @@ -90,3 +90,23 @@ class EinsteinTensor(BaseRelativityTensor): new_tensor, self.syms, config=newconfig, pa...
einsteinpy__einsteinpy-368
[ { "changes": { "added_entities": [ "src/einsteinpy/symbolic/christoffel.py:ChristoffelSymbols.lorentz_transform" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "src/einsteinpy/symbolic/christoffel.py:ChristoffelSymbols" ] }, "fi...
einsteinpy/einsteinpy
d7537470f4e89e41a92ad99e363d197c9cab071e
Add lorentz_tranform to all the classes in symbolic module 🐞 **Problem** Many classes like `MetricTensor`, `RiemannCurvatureTensor` does not have the `lorentz_transform()` function as of now! 🎯 **Goal** Implement it in a similar way as that in `GenericVector` class in `symbolic/vector.py` - [x] `GenericVect...
diff --git a/src/einsteinpy/symbolic/christoffel.py b/src/einsteinpy/symbolic/christoffel.py index 00420e1..3a19137 100644 --- a/src/einsteinpy/symbolic/christoffel.py +++ b/src/einsteinpy/symbolic/christoffel.py @@ -107,3 +107,23 @@ class ChristoffelSymbols(BaseRelativityTensor): new_tensor, self.syms, co...
einsteinpy__einsteinpy-383
[ { "changes": { "added_entities": [ "src/einsteinpy/geodesic.py:Geodesic.__repr__", "src/einsteinpy/geodesic.py:Geodesic.__str__" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "src/einsteinpy/geodesic.py:Geodesic" ] }, "...
einsteinpy/einsteinpy
ad3a490b332185d19042c8a34f9ccedca37171fe
Add __repr__ and __str__ for Geodesic Class 🐞 **Problem** The Geodesic class is missing these methods. More can be discusses in comments. 🎯 **Goal** <!--- Why is this change important to you? How would you use it? --> <!--- How can it benefit other users? --> 💡 **Possible solutions** <!--- Not obliga...
diff --git a/src/einsteinpy/geodesic.py b/src/einsteinpy/geodesic.py index 31b0700..7537371 100644 --- a/src/einsteinpy/geodesic.py +++ b/src/einsteinpy/geodesic.py @@ -32,6 +32,22 @@ class Geodesic: return_cartesian=True, )[1] + def __repr__(self): + return "body name= ({0}) , metric=...
einsteinpy__einsteinpy-387
[ { "changes": { "added_entities": [ "src/einsteinpy/coordinates/core.py:Cartesian.__getitem__", "src/einsteinpy/coordinates/core.py:Spherical.__getitem__", "src/einsteinpy/coordinates/core.py:BoyerLindquist.__getitem__" ], "added_modules": null, "edited_entities": ...
einsteinpy/einsteinpy
d4559cfcf54f705152a095b183922f01fdde01b3
Make coordinate objects subscriptable 🐞 **Problem** We can't do a[0] with the coordinates right now, which is very intuitive. Thanks to @shilpi1958 , we know what needs to be done! 🎯 **Goal** <!--- Why is this change important to you? How would you use it? --> <!--- How can it benefit other users? --> 💡 *...
diff --git a/src/einsteinpy/coordinates/core.py b/src/einsteinpy/coordinates/core.py index a0611bc..16c8936 100644 --- a/src/einsteinpy/coordinates/core.py +++ b/src/einsteinpy/coordinates/core.py @@ -30,6 +30,13 @@ class Cartesian(CartesianConversion): self.z = z super().__init__(x.si.value, y.si.val...
einsteinpy__einsteinpy-435
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/einsteinpy/geodesic.py:Geodesic.__repr__", "src/einsteinpy/geodesic.py:Geodesic.__str__" ], "edited_modules": [ "src/einsteinpy/geodesic.py:Geodesic" ] }, "...
einsteinpy/einsteinpy
59351601faffe539d12e846139847371ed392590
Update Notebooks due to addition of predefined metrics 🐞 **Problem** Now, there are predefined metrics available in symbolic module. Use them in example notebooks 🎯 **Goal** - [ ] [Notebook I](https://docs.einsteinpy.org/en/latest/examples/Playing%20with%20Contravariant%20and%20Covariant%20Indices%20in%20Ten...
diff --git a/docs/source/examples/Playing with Contravariant and Covariant Indices in Tensors(Symbolic).ipynb b/docs/source/examples/Playing with Contravariant and Covariant Indices in Tensors(Symbolic).ipynb index 97c58f5..a160873 100644 --- a/docs/source/examples/Playing with Contravariant and Covariant Indices in Te...
einsteinpy__einsteinpy-458
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/einsteinpy/symbolic/tensor.py:Tensor.__init__", "src/einsteinpy/symbolic/tensor.py:Tensor.__str__", "src/einsteinpy/symbolic/tensor.py:BaseRelativityTensor.__init__" ], "...
einsteinpy/einsteinpy
84df2764bc3cc42d9d5ddbbad9c99562c9280906
Add Tensor name to __str__ and __repr__ in Tensor Class <!-- WELCOME ABOARD! Hi and welcome to the einsteinpy project. We appreciate bug reports, questions about documentation, and suggestions for new features. IMPORTANT: If you are reporting a problem with einsteinpy, please follow the template below. If it...
diff --git a/src/einsteinpy/symbolic/tensor.py b/src/einsteinpy/symbolic/tensor.py index eee06a4..2416859 100644 --- a/src/einsteinpy/symbolic/tensor.py +++ b/src/einsteinpy/symbolic/tensor.py @@ -71,7 +71,7 @@ class Tensor: Base Class for Tensor manipulation """ - def __init__(self, arr, config="ll"): +...
einsteinpy__einsteinpy-472
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/einsteinpy/metric/kerrnewman.py:KerrNewman.f_vec", "src/einsteinpy/metric/kerrnewman.py:KerrNewman.calculate_trajectory", "src/einsteinpy/metric/kerrnewman.py:KerrNewman.calculate_tr...
einsteinpy/einsteinpy
0e311bec1be2508a28ebd8a3f8b7b944db997269
Coding the right event horizon for Kerr & Kerr-Newman space-time 🐞 **Problem** As of now, in calculation of time-like trajectory in Kerr metric stops and raises a warning on reaching schwarzschild radius. But event horizon in kerr spacetime is smaller than schwarzschild radius. But the exact values need to be researc...
diff --git a/src/einsteinpy/metric/kerrnewman.py b/src/einsteinpy/metric/kerrnewman.py index 0c8cde9..166f00c 100644 --- a/src/einsteinpy/metric/kerrnewman.py +++ b/src/einsteinpy/metric/kerrnewman.py @@ -85,32 +85,32 @@ class KerrNewman: for i in range(4): vals[i] = vec[i + 4] vals[4] = ...
einsteinpy__einsteinpy-490
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/einsteinpy/symbolic/tensor.py:Tensor.__init__" ], "edited_modules": [ "src/einsteinpy/symbolic/tensor.py:Tensor" ] }, "file": "src/einsteinpy/symbolic/tensor.py" ...
einsteinpy/einsteinpy
88a93a10d14ba0d75a86bf4072e75def34031501
Error handling for `config` variable in Tensor class 🐞 **Problem** `config` variable denotes the contravariance-covariance of the tensor. It's lenrth is supposed to be equal to that the order of the tensor. 🎯 **Goal** - [x] Introduce this error handling into `Tensor` class in `symbolic` module - [ ] Afte...
diff --git a/src/einsteinpy/symbolic/tensor.py b/src/einsteinpy/symbolic/tensor.py index 64ef407..238fd0b 100644 --- a/src/einsteinpy/symbolic/tensor.py +++ b/src/einsteinpy/symbolic/tensor.py @@ -90,6 +90,8 @@ class Tensor: Raised when arr is not a list or sympy array TypeError Raise...
ej2__python-quickbooks-322
[ { "changes": { "added_entities": [ "quickbooks/mixins.py:VoidMixin.get_void_params", "quickbooks/mixins.py:VoidMixin.get_void_data" ], "added_modules": null, "edited_entities": [ "quickbooks/mixins.py:VoidMixin.void" ], "edited_modules": [ "qui...
ej2/python-quickbooks
a02ca1ba6bac7ced8e1af07e6a04d7a46818df22
Add the ability to void all voidable QB types Currently, the [VoidMixin](https://github.com/ej2/python-quickbooks/blob/master/quickbooks/mixins.py#L127) is built to be able to void Invoices and uses the `operation=void` param. When it comes to voidable types in QB, we have * Payment * SalesReceipt * BillPayment *...
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 31d4992..808e269 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,10 +1,5 @@ Changelog ========= -* 0.9.5 (November 1, 2023) - * Added to_ref to CreditMemo object - * Added ProjectRef and ShipFromAddr to Estimate - * Added missing initialization for object...
ej2__python-quickbooks-381
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "quickbooks/client.py:QuickBooks.__new__", "quickbooks/client.py:QuickBooks.make_request", "quickbooks/client.py:QuickBooks.get", "quickbooks/client.py:QuickBooks.post", "...
ej2/python-quickbooks
5efc53561e31a71870d0ed5417d07847d25502c0
Minor version should be 75 by default I see in `client.py` there is a condition that raises a deprecation warning if the minor version is less than 75. However, if the minor version is not passed as an argument it stays `None`. In this case, there is a condition in the method `make_request` that will not send the minor...
diff --git a/quickbooks/client.py b/quickbooks/client.py index ef2a251..45d6ca4 100644 --- a/quickbooks/client.py +++ b/quickbooks/client.py @@ -76,14 +76,19 @@ class QuickBooks(object): if 'company_id' in kwargs: instance.company_id = kwargs['company_id'] - if 'minorversion' in kwargs: -...
ejulio__spider-feeder-12
[ { "changes": { "added_entities": [ "spider_feeder/loaders.py:BaseLoader.from_crawler", "spider_feeder/loaders.py:BaseLoader.spider_opened", "spider_feeder/loaders.py:BaseLoader.set_spider_input_data", "spider_feeder/loaders.py:StartUrlsLoader.set_spider_input_data", ...
ejulio/spider-feeder
242d2ed0056b4885350248856e1e7fe410eaa22d
Send extra data from input files as request.meta After https://github.com/ejulio/spider-feeder/pull/8 we'll be able to read any type of input file. Usually we don't want only the URL field, but also the extra content for further processing/filtering. So, it would be nice to store this data in the spider as well. H...
diff --git a/CHANGES.md b/CHANGES.md index 3d51515..4832876 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -18,6 +18,7 @@ Whenever possible, link the given PR with the feature/fix. * Support for `.csv` and `.json` input files [PR#8](https://github.com/ejulio/spider-feeder/pull/8) * Support for Scrapinghub Collections ...
ejulio__spider-feeder-18
[ { "changes": { "added_entities": [ "spider_feeder/store/file_store.py:FileStore._file_format" ], "added_modules": null, "edited_entities": [ "spider_feeder/store/file_store.py:FileStore.__init__", "spider_feeder/store/file_store.py:FileStore._open", "spide...
ejulio/spider-feeder
33b16cc74b46b119cf3fd483c789dad70f3a9102
Add a setting for input format Currently the input format is inferred from the URI extension. However, it may fail in cases of URLs or files without extension. Add a new setting, `SPIDERFEEDER_INPUT_FORMAT`? that sets the file format. If it is not set, the it falls back to the file extension
diff --git a/CHANGES.md b/CHANGES.md index c610c2f..ed13d9e 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -11,6 +11,12 @@ Whenever possible, link the given PR with the feature/fix. [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## Development + ...
ejulio__spider-feeder-20
[ { "changes": { "added_entities": [ "spider_feeder/store/file_handler/s3.py:_get_aws_keys" ], "added_modules": [ "spider_feeder/store/file_handler/s3.py:_get_aws_keys" ], "edited_entities": [ "spider_feeder/store/file_handler/s3.py:open" ], "edite...
ejulio/spider-feeder
b00dbb19cb120d8583ce6213389b9a49e81de4db
Fallback to scrapy AWS settings if not provided Currently, when loading files from _S3_, we need to set `SPIDERFEEDER_AWS_ACCESS_KEY_ID`. However, it should be common to have the same user for data delivery and loading the files from _S3_. So, to avoid configuring `spider-feeder` and `scrapy`, we can fallback in `spi...
diff --git a/CHANGES.md b/CHANGES.md index 56a5d28..31b5399 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -16,6 +16,7 @@ Whenever possible, link the given PR with the feature/fix. ### Added * New setting `SPIDERFEEDER_INPUT_FORMAT` to set the file format or fall back to the file extension. [PR#18](https://github.com/...
ekalinin__nodeenv-118
[ { "changes": { "added_entities": [ "nodeenv.py:_py2_cmp", "nodeenv.py:compare_versions" ], "added_modules": [ "nodeenv.py:_py2_cmp", "nodeenv.py:compare_versions" ], "edited_entities": [ "nodeenv.py:get_node_versions", "nodeenv.py:Get...
ekalinin/nodeenv
677df66038d8ef2a5180a41e8335a857af5494f0
nodeenv --list is raising TypeError When installed globally with `sudo pip install nodeenv`, `nodeenv --list` raises an exception. This is due to `pkg_resources.parse_version` method having different return types in older versions. ![nodeenv_bug](https://cloud.githubusercontent.com/assets/6031925/6599860/d253a2b...
diff --git a/nodeenv.py b/nodeenv.py index c00a75c..ec9e358 100644 --- a/nodeenv.py +++ b/nodeenv.py @@ -36,13 +36,15 @@ except ImportError: # pragma: no cover (py3 only) from pkg_resources import parse_version - nodeenv_version = '0.13.0' join = os.path.join abspath = os.path.abspath src_domain = "nodejs.o...
ekalinin__nodeenv-281
[ { "changes": { "added_entities": [ "nodeenv.py:get_last_lts_node_version" ], "added_modules": [ "nodeenv.py:get_last_lts_node_version" ], "edited_entities": [ "nodeenv.py:parse_args", "nodeenv.py:main" ], "edited_modules": [ "node...
ekalinin/nodeenv
fb6f195bee0451d38c6c5d6b0323c1318e731188
Add ability to install latest LTS version It would be great to have a flag to allow users to install the latest LTS build of node.
diff --git a/nodeenv.py b/nodeenv.py index 3686bc1..0610db1 100755 --- a/nodeenv.py +++ b/nodeenv.py @@ -226,6 +226,7 @@ def parse_args(check=True): '--node=0.4.3 will use the node-v0.4.3 ' 'to create the new environment. ' 'The default is last stable version (`latest`). ' + 'Use `lts`...
ekalinin__nodeenv-329
[ { "changes": { "added_entities": [ "nodeenv.py:_download_node_file" ], "added_modules": [ "nodeenv.py:_download_node_file" ], "edited_entities": [ "nodeenv.py:download_node_src" ], "edited_modules": [ "nodeenv.py:download_node_src" ...
ekalinin/nodeenv
a5d94e5168c184e577e8a14bd250f6608f2bcb9c
download_node_src does not properly handle multipart downloads The method ``download_node_src`` fails if the download doesn't complete in a single part. In my case this lead to a seemingly unrelated error ``AttributeError: 'bytes' object has no attribute 'tell'`` deep in the tarfile module. The exception handler, ``...
diff --git a/nodeenv.py b/nodeenv.py index 53ff5d7..f9c1d9e 100644 --- a/nodeenv.py +++ b/nodeenv.py @@ -582,17 +582,28 @@ def tarfile_open(*args, **kwargs): tf.close() +def _download_node_file(node_url, n_attempt=3): + """Do multiple attempts to avoid incomplete data in case + of unstable network"""...
ekzhu__datasketch-234
[ { "changes": { "added_entities": [ "datasketch/lshforest.py:MinHashLSHForest.get_minhash_hashvalues" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "datasketch/lshforest.py:MinHashLSHForest" ] }, "file": "datasketch/lshforest.py...
ekzhu/datasketch
9973b09852a5018f23d831b1868da3a5d2ce6a3b
Implementing MinHash retrieval from keys for MinHashLSHForest Hi, I've been using the `MinHashLSHForest` class to do some deduplication, and part of that pipeline is to retrieve the top-k items and then estimate the Jaccard similarities with each of those items, obviously this requires reconstructing the `MinHash` obje...
diff --git a/datasketch/lshforest.py b/datasketch/lshforest.py index 9f3455b..a02569d 100644 --- a/datasketch/lshforest.py +++ b/datasketch/lshforest.py @@ -1,5 +1,6 @@ from collections import defaultdict from typing import Hashable, List +import numpy as np from datasketch.minhash import MinHash @@ -128,6 +129,...
elastic__apm-agent-python-1483
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": [ "elasticapm/conf/__init__.py:Config" ] }, "file": "elasticapm/conf/__init__.py" }, { "changes": { "added_entities": null, "added_modules": ...
elastic/apm-agent-python
6ddc15579c70f2a44476cb4184caec44012b3f8f
[Python] elastic-apm 6.8.0 : no more SQL informations in the timeline **Describe the bug**: ... **To Reproduce** 1. Python project with elastic-apm 6.8.0 2. Python project with databases/queries... **Environment (please complete the following information)** - OS: Docker / Python 3.10.2 / Debian bullseye - P...
diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc index 96fdab78..59f69e72 100644 --- a/CHANGELOG.asciidoc +++ b/CHANGELOG.asciidoc @@ -38,8 +38,10 @@ endif::[] * Add OpenTelemetry API bridge {pull}1411[#1411] -//[float] -//===== Bug fixes +[float] +===== Bug fixes + +* Fix `exit_span_min_duration` and disable ...
elastic__apm-agent-python-1489
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "elasticapm/contrib/serverless/aws.py:capture_serverless.__init__", "elasticapm/contrib/serverless/aws.py:capture_serverless.__call__", "elasticapm/contrib/serverless/aws.py:capture_serve...
elastic/apm-agent-python
515ee3239fadc37b9de2fa65750c51ec991c3557
ELASTIC_APM_SERVICE_NAME env var for Python Lambda not working We have a test Python lambda function using the elastic-apm-extension-ver-0-0-4-arm64 layer and have set 'ELASTIC_APM_SERVICE_NAME' environment variable to 'python-apm-enabled'. However, within Elastic under APM we are seeing the original function name ...
diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc index 80ddecd5..0ff16179 100644 --- a/CHANGELOG.asciidoc +++ b/CHANGELOG.asciidoc @@ -42,6 +42,7 @@ endif::[] ===== Bug fixes * Fix Sanic integration to properly respect the `capture_body` config {pull}1485[#1485] +* Lambda fixes to align with the cross-agent spe...
elastic__apm-agent-python-1568
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "elasticapm/handlers/logbook.py:LogbookHandler.emit" ], "edited_modules": [ "elasticapm/handlers/logbook.py:LogbookHandler" ] }, "file": "elasticapm/handlers/logbook.py"...
elastic/apm-agent-python
986c86820b6e2ec7a9f05941bbf376706f6d5d26
exception logging an error with a big local variable **Describe the bug**: apm python agent tries to log an exception with a big local variable in the execution stack results in unexpected behavior **To Reproduce** ```python # serializers.py from rest_framework import serializers class UploadFileSerializer...
diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc index 37e0861b..493810f6 100644 --- a/CHANGELOG.asciidoc +++ b/CHANGELOG.asciidoc @@ -48,7 +48,7 @@ endif::[] * Fix return for `opentelemetry.Span.is_recording()` {pull}1530[#1530] * Fix error logging for bad SERVICE_NAME config {pull}1546[#1546] * Do not instrume...
elastic__apm-agent-python-1596
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "elasticapm/traces.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "elasticapm/util...
elastic/apm-agent-python
79b58ce7e32969889f1023a31326cc0e9bc2b91c
elasticapm.label fails when trying to warn that no transaction is present **Describe the bug**: https://github.com/elastic/apm-agent-python/blob/main/elasticapm/traces.py#L1092 When neither Transaction nor client is present, `elasticapm.label( . . .)` will fail while trying do print a warning. This can happen for ...
diff --git a/elasticapm/traces.py b/elasticapm/traces.py index f7224e80..15dd9799 100644 --- a/elasticapm/traces.py +++ b/elasticapm/traces.py @@ -1089,7 +1089,8 @@ def label(**labels): """ transaction = execution_context.get_transaction() if not transaction: - if elasticapm.get_client().config.en...
elastic__apm-agent-python-1605
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "elasticapm/contrib/serverless/aws.py:capture_serverless.__enter__", "elasticapm/contrib/serverless/aws.py:capture_serverless.__exit__", "elasticapm/contrib/serverless/aws.py:capture_serv...
elastic/apm-agent-python
046b6e91742624a7b0c828a54cacbd456bd76e0a
AWS lambda: capture_serverless does not provide information when lambda is connected to ELB (not to API GW) Event that lambda handler receiving in case of attachment through the ELB you can find in attachment: [elb-lambda-event.txt](https://github.com/elastic/apm-agent-python/files/9103558/elb-lambda-event.txt) Plea...
diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc index e03b47b3..55b7a387 100644 --- a/CHANGELOG.asciidoc +++ b/CHANGELOG.asciidoc @@ -29,6 +29,18 @@ endif::[] //===== Bug fixes // +=== Unreleased + +// Unreleased changes go here +// When the next release happens, nest these changes under the "Python Agent vers...
elastic__apm-agent-python-1619
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "elasticapm/events.py:Exception.capture" ], "edited_modules": [ "elasticapm/events.py:Exception" ] }, "file": "elasticapm/events.py" } ]
elastic/apm-agent-python
4395a2f39680440f5ae740af5c89f5fddc38a4a9
FastAPI/Starlette: Truncate exception message to prevent "event exceeded the permitted size" error from APM Server **Describe the bug**: The capture_exception() method is sending the whole exception message to the APM Server and when the message exceeds the maximum size, the APM Server returns the "event exceeded th...
diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc index e5210f3a..07b09fb6 100644 --- a/CHANGELOG.asciidoc +++ b/CHANGELOG.asciidoc @@ -41,6 +41,7 @@ endif::[] * Differentiate Lambda URLs from API Gateway in AWS Lambda integration {pull}#1609[#1609] * Restrict the size of Django request bodies to prevent APM Ser...
elastic__apm-agent-python-1623
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "elasticapm/contrib/serverless/aws.py:capture_serverless.set_metadata_and_context" ], "edited_modules": [ "elasticapm/contrib/serverless/aws.py:capture_serverless" ] }, ...
elastic/apm-agent-python
b4edea3ca7885f5cbbad202a8f12325d131225ce
[META 679] Add support for ELB and Lambda URL metadata in lambda integrations See meta issue for the description and details: - Meta issue: https://github.com/elastic/apm/issues/679
diff --git a/elasticapm/contrib/serverless/aws.py b/elasticapm/contrib/serverless/aws.py index 8fc14cbc..4bd2ae2f 100644 --- a/elasticapm/contrib/serverless/aws.py +++ b/elasticapm/contrib/serverless/aws.py @@ -261,8 +261,7 @@ class capture_serverless(object): elif self.source == "elb": elb_target...
elastic__ecs-logging-python-118
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "ecs_logging/_stdlib.py:StdlibFormatter.format_to_ecs" ], "edited_modules": [ "ecs_logging/_stdlib.py:StdlibFormatter" ] }, "file": "ecs_logging/_stdlib.py" }, { ...
elastic/ecs-logging-python
e6993eb706f56bc2bb01d172968014b51861d279
Update ecs.version to match spec The [updated spec](https://github.com/elastic/ecs-logging-python/pull/87) expects `ecs.version` to be dotted, not nested, to match `log.level`.
diff --git a/.github/workflows/periodic.yml b/.github/workflows/periodic.yml index 89fee9f..adc42e9 100644 --- a/.github/workflows/periodic.yml +++ b/.github/workflows/periodic.yml @@ -15,7 +15,7 @@ jobs: timeout-minutes: 10 strategy: matrix: - python: [ '3.7', '3.8', '3.9', '3.10' ] + py...
elastic__elastic-otel-python-117
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/elasticotel/distro/__init__.py:ElasticOpenTelemetryDistro._configure" ], "edited_modules": [ "src/elasticotel/distro/__init__.py:ElasticOpenTelemetryDistro" ] }, "f...
elastic/elastic-otel-python
82f17c53404606ea15f0a151790ad472ef7ea3c9
Easier authentication configuration **Is your feature request related to a problem? Please describe.** Url-quoting the authentication header is annoying **Describe the solution you'd like** We can expose two different Elastic specific configuration variable to send just the Bearer token or the plain API Key s...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 673b9bb..898b02f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,10 +46,11 @@ jobs: py39: 3.9 py310: "3.10" py311: "3.11" + py312: "3.12" strategy: fail-fast: false matrix: - ...
elastic__elastic-otel-python-197
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/elasticotel/distro/__init__.py:ElasticOpenTelemetryDistro._configure" ], "edited_modules": [ "src/elasticotel/distro/__init__.py:ElasticOpenTelemetryDistro" ] }, "f...
elastic/elastic-otel-python
0f5d604179bddf51c2322ffc057905a3cd15ffb6
cumulative histograms and cumulative exponential histograms should be converted to delta For a better experience out of the box cumulative histograms and cumulative exponential histograms should be converted to delta. Need to sort out if the histogram temporality may be changed by default or we need to employ some tri...
diff --git a/src/elasticotel/distro/__init__.py b/src/elasticotel/distro/__init__.py index ae2c631..f1025be 100644 --- a/src/elasticotel/distro/__init__.py +++ b/src/elasticotel/distro/__init__.py @@ -48,6 +48,7 @@ from opentelemetry.sdk._logs.export import BatchLogRecordProcessor from opentelemetry.sdk.environment_va...
elastic__elasticsearch-dsl-py-1131
[ { "changes": { "added_entities": [ "elasticsearch_dsl/response/hit.py:Hit.__getstate__", "elasticsearch_dsl/response/hit.py:Hit.__setstate__" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "elasticsearch_dsl/response/hit.py:Hit" ...
elastic/elasticsearch-dsl-py
2ae3c8bd59996a1e2f42f0285196d3a8b71f821d
Hit objects are not pickleable `Hit` obejcts are not properly serialized when using `pickle` because the `meta` member is not available after loading the object using `pickle.load`. This happens because of the [way ](https://github.com/elastic/elasticsearch-dsl-py/blob/master/elasticsearch_dsl/response/hit.py#L13) the ...
diff --git a/elasticsearch_dsl/response/hit.py b/elasticsearch_dsl/response/hit.py index 4093f01..29a6d95 100644 --- a/elasticsearch_dsl/response/hit.py +++ b/elasticsearch_dsl/response/hit.py @@ -12,6 +12,14 @@ class Hit(AttrDict): # assign meta as attribute and not as key in self._d_ super(AttrDict,...
elastic__elasticsearch-dsl-py-1416
[ { "changes": { "added_entities": null, "added_modules": [ "elasticsearch_dsl/aggs.py:Boxplot" ], "edited_entities": null, "edited_modules": null }, "file": "elasticsearch_dsl/aggs.py" } ]
elastic/elasticsearch-dsl-py
2087f466d0ee4fa0452bffcfa14a965b84cd1f9a
"boxplot" is not available as an aggregation ES 7.x includes the "boxplot" [aggregation](https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-aggregations-metrics-boxplot-aggregation.html#_syntax), which will return the max, min and 25/50/75 percentiles (1st, 2nd, 3rd quartiles) values - the source for a ...
diff --git a/elasticsearch_dsl/aggs.py b/elasticsearch_dsl/aggs.py index 547a593..3e86892 100644 --- a/elasticsearch_dsl/aggs.py +++ b/elasticsearch_dsl/aggs.py @@ -306,6 +306,10 @@ class ExtendedStats(Agg): name = "extended_stats" +class Boxplot(Agg): + name = "boxplot" + + class GeoBounds(Agg): name...
elastic__elasticsearch-dsl-py-1456
[ { "changes": { "added_entities": null, "added_modules": [ "elasticsearch_dsl/field.py:ConstantKeyword" ], "edited_entities": null, "edited_modules": null }, "file": "elasticsearch_dsl/field.py" } ]
elastic/elasticsearch-dsl-py
e2753443eae73cbf1476f55e9e11c4749a2e32de
Support for constant_keyword When trying to add a field of type [constant_keyword](https://www.elastic.co/guide/en/elasticsearch/reference/7.7/constant-keyword.html) to a Mapping, an exception is returned: ``` DSL class `constant_keyword` does not exist in field. ```
diff --git a/elasticsearch_dsl/field.py b/elasticsearch_dsl/field.py index 6a1ed99..6e79b40 100644 --- a/elasticsearch_dsl/field.py +++ b/elasticsearch_dsl/field.py @@ -316,6 +316,10 @@ class Keyword(Field): name = "keyword" +class ConstantKeyword(Keyword): + name = "constant_keyword" + + class Boolean(Fie...
elastic__elasticsearch-dsl-py-1458
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "elasticsearch_dsl/search.py:Search.to_dict" ], "edited_modules": [ "elasticsearch_dsl/search.py:Search" ] }, "file": "elasticsearch_dsl/search.py" }, { "changes...
elastic/elasticsearch-dsl-py
5487df02e12e39e16946267d2125620fe48900cf
Search `to_dict()` does not serialize `rescore_query` Hi. It seems like `to_dict()` method of `Search` class does not serialize `rescore_query`content. Example code: ```python search = Search(index=index_name) positive_query = Q( "function_score", query=Q('term', tags='a'), script_score={"scrip...
diff --git a/elasticsearch_dsl/search.py b/elasticsearch_dsl/search.py index b8323c1..761f661 100644 --- a/elasticsearch_dsl/search.py +++ b/elasticsearch_dsl/search.py @@ -31,7 +31,7 @@ from .connections import get_connection from .exceptions import IllegalOperation from .query import Bool, Q from .response import ...