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
Bogdanp__django_dramatiq-170
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "django_dramatiq/management/commands/rundramatiq.py:Command.add_arguments" ], "edited_modules": [ "django_dramatiq/management/commands/rundramatiq.py:Command" ] }, "file...
Bogdanp/django_dramatiq
e005c31684efd38cf7ffa82bcea3d82161e313b1
`rundramatiq` thread count defaults to `CPU_COUNT` If an explicit thread count is not supplied to `rundramatiq`, it defaults to `CPU_COUNT`. This is inconsistent with the `dramatiq` cli, which is `8`. This seems like a sensible default, as the threads param is threads _per process_. Should the `rundramatiq` default be ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 3d3c397..c5629bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,25 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). ## Unreleased +### Chang...
BouchardLab__process_nwb-17
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "process_nwb/wavelet_transform.py:wavelet_transform", "process_nwb/wavelet_transform.py:store_wavelet_transform" ], "edited_modules": [ "process_nwb/wavelet_transform.py:wavel...
BouchardLab/process_nwb
19704f1cb5a03187366910d83164346d1c75fcd9
Add ability to just calculate and save HG.
diff --git a/docs/source/introduction.rst b/docs/source/introduction.rst index 1c1e025..283bb73 100644 --- a/docs/source/introduction.rst +++ b/docs/source/introduction.rst @@ -8,3 +8,12 @@ Processing ECoG stored in the NWB format ECoG data stored in the Neurodata Without Borders (NWB) format. It contains low-level s...
BrandonLMorris__auacm-cli-11
[ { "changes": { "added_entities": [ "src/auacm/competition.py:get_one_comp", "src/auacm/competition.py:_cid_from_name" ], "added_modules": [ "src/auacm/competition.py:get_one_comp", "src/auacm/competition.py:_cid_from_name" ], "edited_entities": [ ...
BrandonLMorris/auacm-cli
5c13a4843e281aa1470d2bd28fe39c07f4e39e92
List recent and ongoing competitions A `comp[etition]` command that will simply list (chronologically) the recent and ongoing competitions.
diff --git a/src/auacm/competition.py b/src/auacm/competition.py index f2d9561..794f8a4 100644 --- a/src/auacm/competition.py +++ b/src/auacm/competition.py @@ -1,6 +1,6 @@ """Subcommands related to competitions""" -import auacm, requests, textwrap +import auacm, requests, textwrap, argparse from datetime import da...
BurnzZ__scrapy-loader-upkeep-3
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "scrapy_loader_upkeep/loader.py:ItemLoader.get_selector_values", "scrapy_loader_upkeep/loader.py:ItemLoader.write_to_stats" ], "edited_modules": [ "scrapy_loader_upkeep/loader...
BurnzZ/scrapy-loader-upkeep
0b36309d1c9ea814e097e06e9d7220cfef6e6f9e
Allow paths to be named When having several amounts of xpaths for each field, is really difficult to determine which one was added firsts, specially when there are different workflows on the code. To make easier the task to identify the paths on the stats, it would be great if we could name them. For example: ```...
diff --git a/README.rst b/README.rst index 6fb0e87..3112d48 100644 --- a/README.rst +++ b/README.rst @@ -58,8 +58,8 @@ This only works for the following ``ItemLoader`` methods: - ``add_xpath()`` - ``replace_xpath()`` -Spider Example -~~~~~~~~~~~~~~ +Basic Spider Example +~~~~~~~~~~~~~~~~~~~~ This is taken fr...
CDCgov__PyRenew-482
[ { "changes": { "added_entities": [ "pyrenew/math.py:_positive_ints_like", "pyrenew/math.py:neg_MGF", "pyrenew/math.py:neg_MGF_del_r", "pyrenew/math.py:r_approx_from_R" ], "added_modules": [ "pyrenew/math.py:_positive_ints_like", "pyrenew/math.py:...
CDCgov/PyRenew
bbaf1b9b629d861ba534dd5b4c5693f84676bfe8
Add infection initialization at stable age distribution given R
diff --git a/pyrenew/math.py b/pyrenew/math.py index db94200..b8bfd74 100755 --- a/pyrenew/math.py +++ b/pyrenew/math.py @@ -12,6 +12,146 @@ from jax.typing import ArrayLike from pyrenew.distutil import validate_discrete_dist_vector +def _positive_ints_like(vec: ArrayLike) -> jnp.ndarray: + """ + Given an ar...
CDCgov__cfa-viral-lineage-model-51
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "linmod/data.py:main" ], "edited_modules": [ "linmod/data.py:main" ] }, "file": "linmod/data.py" }, { "changes": { "added_entities": [ "linmod/eval...
CDCgov/cfa-viral-lineage-model
060d63ef58c3d6ed310c15593aad0475df4a1f43
Syncing lineages between model and eval data I'm looking at the pair of `model.csv` and `eval.csv` for a 2022-01-01 forecast date, and the evaluation data has one more lineage than the model data, namely `22C`. We need to make sure that the set of lineages is consistent across modeling and evaluation. Part of the aw...
diff --git a/README.md b/README.md index 5580414..95758a3 100644 --- a/README.md +++ b/README.md @@ -57,17 +57,6 @@ Rows are uniquely identified by `(fd_offset, division, lineage, sample_index)`. - [ ] (9) Study more on how to set priors on the logit scale to induce priors on the probability simplex - [ ] (10) Does o...
CLOVER-energy__CLOVER-96
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/clover/simulation/storage.py:get_electric_battery_storage_profile" ], "edited_modules": [ "src/clover/simulation/storage.py:get_electric_battery_storage_profile" ] }, ...
CLOVER-energy/CLOVER
38b1c3e63dc6fb3db8f1406fa8f32db8b39cc71c
Prioitise self-generation bug ### Describe the bug When running CLOVER, there are two possible flows for how the code selects its source of power, which are set within the `scenario_inputs.yaml` file: - `prioiritise_self_generation: true`, where CLOVER should attempt to get power from the solar and storage first, - ...
diff --git a/src/clover/simulation/storage.py b/src/clover/simulation/storage.py index 9b4a58a..44061d6 100644 --- a/src/clover/simulation/storage.py +++ b/src/clover/simulation/storage.py @@ -640,16 +640,43 @@ def get_electric_battery_storage_profile( # pylint: disable=too-many-locals, to grid_energy = p...
CMakePP__CMinx-151
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/cminx/aggregator.py:DefinitionCommand.__init__", "src/cminx/aggregator.py:DocumentationAggregator.__init__", "src/cminx/aggregator.py:DocumentationAggregator.process_function", ...
CMakePP/CMinx
ea6d33ebc88237c5f2dd3a1d166d7bc4b078223f
Add a regex filter for parameter names to make longer names more readable **Is your feature request related to a problem? Please describe.** A regex filter was requested in discussions for https://github.com/CMakePP/CMakeTest/issues/5
diff --git a/docs/source/developer/api.rst b/docs/source/developer/api.rst index a397b37..e836a7e 100644 --- a/docs/source/developer/api.rst +++ b/docs/source/developer/api.rst @@ -25,10 +25,12 @@ Python Modules .. autosummary:: :toctree: .autosummary - - cminx.rstwriter - cminx.documenter cminx.aggregat...
CODAIT__exchange-metadata-converter-25
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "metadata_converter/apply.py:replace" ], "edited_modules": [ "metadata_converter/apply.py:replace" ] }, "file": "metadata_converter/apply.py" }, { "changes": { ...
CODAIT/exchange-metadata-converter
a5432d877fe947a12c169d2d84c22e034d555289
Support optional properties Currently all `{{...}}` placeholders in https://github.com/CODAIT/exchange-metadata-converter/tree/main/templates are considered to be required and therefore each placeholder input file must define them. Annotations would solve this issue. Investigate what it takes to support something like ...
diff --git a/metadata_converter/apply.py b/metadata_converter/apply.py index f20d451..34cd14f 100644 --- a/metadata_converter/apply.py +++ b/metadata_converter/apply.py @@ -16,6 +16,8 @@ from argparse import ArgumentParser from pathlib import Path from ruamel.yaml import YAML +from ruamel.yaml.tokens import CommentT...
CODAIT__exchange-metadata-converter-38
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "setup.py" } ]
CODAIT/exchange-metadata-converter
c306552b0a2fc25f868cfc7daee7b26a1c99f31b
Non-compliant metadata.name in the generated DLF YAML The `metadata.name` in the generated DLF YAML does not comply with the Kubernetes spec for DNS-1123 subdomain names. ```JSON { "kind": "Status", "apiVersion": "v1", "metadata": {}, "status": "Failure", "message": "Dataset.com.ie.ibm.hpsys \"Fina...
diff --git a/setup.py b/setup.py index 1e62eb5..afb9bf4 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ with open('README.md') as readme: setup( name='exchange-metadata-converter', packages=find_packages(), - version='0.0.8', + version='0.0.9', license='Apache-2.0', description='exchange metadata ...
CORE-GATECH-GROUP__serpent-tools-100
[ { "changes": { "added_entities": [ "serpentTools/objects/containers.py:isNonNeg", "serpentTools/objects/containers.py:HomogUniv.__str__", "serpentTools/objects/containers.py:BranchContainer.hasDays" ], "added_modules": [ "serpentTools/objects/containers.py:isNon...
CORE-GATECH-GROUP/serpent-tools
433d55710b85805c9dee609ad77f81bc3c202b72
Universes from branching file can be stored with negative burnup ## Summary of issue The burnup values in coefficient files can be negative, indicating units of days, not MWd/kgU [Link to SERPENT coef card](http://serpent.vtt.fi/mediawiki/index.php/Input_syntax_manual#coef_.28coefficient_matrix_definition.29). This l...
diff --git a/docs/examples/Branching.rst b/docs/examples/Branching.rst index 32e10ca..7544198 100644 --- a/docs/examples/Branching.rst +++ b/docs/examples/Branching.rst @@ -1,3 +1,9 @@ +.. |branchReader| replace:: :py:class:`~serpentTools.parsers.branching.BranchingReader` + +.. |branchContainer| replace:: :py:class:`~...
CORE-GATECH-GROUP__serpent-tools-141
[ { "changes": { "added_entities": [ "serpentTools/objects/containers.py:HomogUniv.reshaped" ], "added_modules": null, "edited_entities": [ "serpentTools/objects/containers.py:HomogUniv.__init__", "serpentTools/objects/containers.py:HomogUniv.addData" ], ...
CORE-GATECH-GROUP/serpent-tools
d96de5b0f4bc4c93370cf508e0ea89701054ff41
[Feature] Auto-reshape scattering matrices for homogenized universes Implement a setting that will automatically reshape scattering matrices for homogenized universes. This should be done in such a way that both the BranchingReader and ResultsReader honor this request. Possibly a setting like `xs.reshapeScatter`?
diff --git a/docs/defaultSettings.rst b/docs/defaultSettings.rst index aa16202..8893098 100644 --- a/docs/defaultSettings.rst +++ b/docs/defaultSettings.rst @@ -206,6 +206,19 @@ If true, store the infinite medium cross sections. Type: bool +.. _xs-reshapeScatter: + +--------------------- +``xs.reshapeScatter``...
CORE-GATECH-GROUP__serpent-tools-154
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "serpentTools/objects/containers.py:HomogUniv.numGroups", "serpentTools/objects/containers.py:HomogUniv.numMicroGroups" ], "edited_modules": [ "serpentTools/objects/containers...
CORE-GATECH-GROUP/serpent-tools
911894d67eb9677c4430a1aee91e9d1461ffc44b
[BUG] number of groups stored as a float; causes reshape scatter matrices to fail ## Summary of issue The `addData` routine stores the number of energy groups as a float. This causes numpy to fail during the reshaping of scattering matrices. ## Code for reproducing the issue ``` import serpentTools from serpentToo...
diff --git a/serpentTools/objects/containers.py b/serpentTools/objects/containers.py index 8c30e1b..bcc9103 100644 --- a/serpentTools/objects/containers.py +++ b/serpentTools/objects/containers.py @@ -35,8 +35,8 @@ for xsSpectrum, xsType in product({'INF', 'B1'}, for xx in range(SCATTER_ORDERS)...
CORE-GATECH-GROUP__serpent-tools-220
[ { "changes": { "added_entities": [ "serpentTools/messages.py:addHandler", "serpentTools/messages.py:removeHandler", "serpentTools/messages.py:DictHandler.__init__", "serpentTools/messages.py:DictHandler.flush", "serpentTools/messages.py:DictHandler.close", "...
CORE-GATECH-GROUP/serpent-tools
9429173b3a7a42bad6e4e0b791f8456f99eb606a
Determine and implement a way to test our message/logging systems Working on the comparison feature, I realize we don't have a way to ensure that our logging system is actually logging what we want. This is more relevant for the testing the comparison utilities, and making sure that we are correctly notifying the user ...
diff --git a/docs/develop/logging.rst b/docs/develop/logging.rst index 8f36e03..c5c061c 100644 --- a/docs/develop/logging.rst +++ b/docs/develop/logging.rst @@ -31,3 +31,10 @@ or removed in the future. .. autofunction:: serpentTools.messages.willChange + +Custom Handlers +=============== + +.. autoclass:: serpentT...
CORE-GATECH-GROUP__serpent-tools-243
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "serpentTools/parsers/results.py:ResultsReader._storeUnivData" ], "edited_modules": [ "serpentTools/parsers/results.py:ResultsReader" ] }, "file": "serpentTools/parsers/...
CORE-GATECH-GROUP/serpent-tools
67846baca60f959ac92bdf208e6f1c6744688890
[BUG] ResultsReader fails when only group constants are requested ## Summary of issue When restricting the scope of the variables extracted from the results file to only group constants, the reader fails. It is also worth noting that, when non-group constant data are requested as well, 'ABS_KEFF' and 'INF_FLX', fo...
diff --git a/serpentTools/parsers/results.py b/serpentTools/parsers/results.py index d46a7fd..095cb6c 100644 --- a/serpentTools/parsers/results.py +++ b/serpentTools/parsers/results.py @@ -183,9 +183,10 @@ class ResultsReader(XSReader): """Process universes' data""" brState = self._getBUstate() # obt...
CORE-GATECH-GROUP__serpent-tools-288
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "serpentTools/parsers/results.py:ResultsReader._storeResData", "serpentTools/parsers/results.py:ResultsReader._getBUstate", "serpentTools/parsers/results.py:ResultsReader.getUniv" ]...
CORE-GATECH-GROUP/serpent-tools
1c730ef70c6f9ce98247e1d8b935d3bb98366e4a
Universes in results reader are not zero-indexed ## Summary of issue The first index for universes is 1, likely taken directly from the result file burnup index. This misconstrues some of the style and pythonicness of the layout, as python arrays start at 0. ## Code for reproducing the issue Read a result file wit...
diff --git a/docs/changelog.rst b/docs/changelog.rst index dd57dbc..90d13c3 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -39,6 +39,15 @@ Next The API for the |branchCollector| may be subject to change through revisions until ``0.7.0`` +Incompatible API Changes +------------------------ + +* |ho...
CORE-GATECH-GROUP__serpent-tools-289
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": [ "serpentTools/objects/base.py:DetectorBase" ] }, "file": "serpentTools/objects/base.py" }, { "changes": { "added_entities": null, "added_mo...
CORE-GATECH-GROUP/serpent-tools
85f47bd559fdc8b1bef3bdea7d64db4a1c5b6271
[API] Detector tallies of a single bin are difficult to work with ## Summary of issue When using a detector w/ a single bin, e.g. one group flux, the bin data in the output file is a single bin. Rather than a proper array, these are floats cast into array form. Indexing doesn't work, but you can get the "values" by co...
diff --git a/docs/changelog.rst b/docs/changelog.rst index 90d13c3..f7dec84 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -47,6 +47,9 @@ Incompatible API Changes burnup step was one. All burnup indices are now decreased by one. Similarly, if no burnup was present in the file, the values of burnup...
CORE-GATECH-GROUP__serpent-tools-306
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "serpentTools/utils/core.py:str2vec" ], "edited_modules": [ "serpentTools/utils/core.py:str2vec" ] }, "file": "serpentTools/utils/core.py" } ]
CORE-GATECH-GROUP/serpent-tools
fb197b44d97ef3ae24d95662dcbdeb1cd9e9694e
BUG ADFs in results file fail in numeric conversion ## Summary of issue When reading a file with assembly discontinuity factors (ADFs), there is a string that serpentTools attempts to convert to a vector. This causes a ValueError ## Code for reproducing the issue Add the following code to a section of a result file ...
diff --git a/serpentTools/utils/core.py b/serpentTools/utils/core.py index e56468e..c1b35ad 100644 --- a/serpentTools/utils/core.py +++ b/serpentTools/utils/core.py @@ -4,7 +4,7 @@ Core utilities from re import compile -from numpy import array, ndarray +from numpy import array, ndarray, fromiter # Regular exp...
CORE-GATECH-GROUP__serpent-tools-321
[ { "changes": { "added_entities": [ "serpentTools/objects/containers.py:_BranchContainerUnivDict.__getitem__", "serpentTools/objects/containers.py:_BranchContainerUnivDict.get" ], "added_modules": [ "serpentTools/objects/containers.py:_BranchContainerUnivDict" ], ...
CORE-GATECH-GROUP/serpent-tools
b3f3c39609319985f7047dd6fed52654e285cd0b
Support for non-integer named universes for branching reader ## Summary of issue Serpent 2 allows universe names to be quite generic string literals. However, the branching reader of serpentTools only seems to support universe names that are integers. This seems to be related to the int conversion on line 113 of ...
diff --git a/docs/changelog.rst b/docs/changelog.rst index 706620d..97aee8a 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -21,6 +21,16 @@ Bug fixes --------- * Tally data for detectors with time-bins are properly handled - :issue:`312` +* Support for generic string universe names for |BranchingReader|...
CORE-GATECH-GROUP__serpent-tools-346
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "serpentTools/parsers/results.py:ResultsReader.__init__", "serpentTools/parsers/results.py:ResultsReader._read", "serpentTools/parsers/results.py:ResultsReader._getBUstate", "serp...
CORE-GATECH-GROUP/serpent-tools
09a5feab5b95f98aef4f7dc7b07edbf8e458f955
BUG Burnup and day values wrong for results with multiple gcu, no burnup ## Summary of issue When reading a result file with multiple homogenized universes and no burnup, the homogenized universes have incorrect values of burnup and days. ## Code for reproducing the issue Reading a file with four homogenized univ...
diff --git a/docs/changelog.rst b/docs/changelog.rst index 2c68415..5e70766 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -13,6 +13,12 @@ Next * |HomogUniv| objects no longer automatically convert data to arrays * Serpent 2.1.31 is the default version for :ref:`serpentVersion` setting +Bug Fixes +----...
CORE-GATECH-GROUP__serpent-tools-377
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "serpentTools/parsers/detector.py:DetectorReader._read" ], "edited_modules": [ "serpentTools/parsers/detector.py:DetectorReader" ] }, "file": "serpentTools/parsers/detec...
CORE-GATECH-GROUP/serpent-tools
3d11b98046c48eb8a1c625e1dd534bc3af0a7be6
BUG DetectorReader misses detectors that start with and contain identical names ## Summary of issue A colleague has a detector file with the following energy dependent detectors: `spectrum`, `spectrumA`, and `spectrumB`. The DetectorReader fails to capture the later two detectors, and messes up the data stored on `spe...
diff --git a/docs/changelog.rst b/docs/changelog.rst index e651937..3862113 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -6,6 +6,18 @@ Changelog ========= +.. _v0.9.2: + +0.9.2 +===== + +.. _v0.9.2-bugs: + +Bug Fixes +--------- + +* Detector reader can handle sequential detectors with very similar + ...
CORE-GATECH-GROUP__serpent-tools-412
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "serpentTools/parsers/depletion.py:DepletionReader._addMetadata" ], "edited_modules": [ "serpentTools/parsers/depletion.py:DepletionReader" ] }, "file": "serpentTools/pa...
CORE-GATECH-GROUP/serpent-tools
a69471eb211a18768aa55c695be906e006b4b4a6
BUG ResultsReader drops last digit of scalar data ## Summary of issue When reading a result file, we expect scalar data to have a space between the last digit and the colon due to https://github.com/CORE-GATECH-GROUP/serpent-tools/blob/dd886ff2b2cd19e8dc681245134cef8815d61f31/serpentTools/utils/core.py#L14 and https:...
diff --git a/serpentTools/parsers/depletion.py b/serpentTools/parsers/depletion.py index aa730d8..6e5e05a 100644 --- a/serpentTools/parsers/depletion.py +++ b/serpentTools/parsers/depletion.py @@ -262,7 +262,7 @@ class DepletionReader(DepPlotMixin, MaterialReader): if varName == 'NAMES': ...
CORE-GATECH-GROUP__serpent-tools-447
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "serpentTools/settings.py" } ]
CORE-GATECH-GROUP/serpent-tools
f7eb3e1c843f7d2506fe7ffa378584d7602a3bb9
ENH Support Serpent 2.1.32 **Is your feature request related to a problem? Please describe.** Warning messages like ``` WARN SERPENT Serpent 2.1.32 found in godiva_res.m, but version 2.1.31 is defined in settings Attemping to read anyway. Please report strange behaviors/failures to developers. ``` (also a typo)...
diff --git a/docs/variableGroups.rst b/docs/variableGroups.rst index 8b2fd56..723a8a5 100644 --- a/docs/variableGroups.rst +++ b/docs/variableGroups.rst @@ -30,19 +30,227 @@ variable names converted to ``mixedCaseNames``. This conversion is done to fit the style of the project and reduce a few keystrokes for accessing...
CORE-GATECH-GROUP__serpent-tools-456
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "serpentTools/objects/xsdata.py:XSData.__init__" ], "edited_modules": [ "serpentTools/objects/xsdata.py:XSData" ] }, "file": "serpentTools/objects/xsdata.py" }, { ...
CORE-GATECH-GROUP/serpent-tools
e8cd0943cafd7f1cbc5f5a74fabf652097a12777
Can't Parse Cross Section Data From Serpent 2.1.32 ## Summary of issue I am getting `ValueError: Unidentifiable entry` when trying to load my `*_xs0.m` file, because `serpentTools` doesn't know what to do with entries suffixed by `pspec`. These appear to be new to Serpent 2.1.32, and the code runs fine when I manuall...
diff --git a/docs/changelog.rst b/docs/changelog.rst index 5f652a4..5da1ed1 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -16,6 +16,10 @@ Changelog .. _v0.9.4: +0.9.4rc1 +======== +* Support for reading ``pspec`` fields in xsplot files + :release-tag:`0.9.4rc0` ==================== diff --git a/s...
CS-SI__eodag-1108
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "eodag/api/core.py:EODataAccessGateway._prune_providers_list" ], "edited_modules": [ "eodag/api/core.py:EODataAccessGateway" ] }, "file": "eodag/api/core.py" }, { ...
CS-SI/eodag
e619c88de826047b8f46f4485ca5537a58e60678
move external python apis and server to extras_require Get external python apis out of `install_requires` (`usgs`, `ecmwf-api-client`), in order to keep `eodag` core as light as possible. Also move server mode the same way. Raise a well formatted error message if the external api is needed: ``` Access to ECMWF dat...
diff --git a/README.rst b/README.rst index 0eff4243..441dd1c6 100644 --- a/README.rst +++ b/README.rst @@ -84,6 +84,9 @@ And with ``conda`` from the `conda-forge channel <https://anaconda.org/conda-for conda install -c conda-forge eodag +Please note that EODAG comes with a minimal set of dependencies. If you wa...
CS-SI__eodag-1262
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "eodag/plugins/apis/usgs.py:UsgsApi.query" ], "edited_modules": [ "eodag/plugins/apis/usgs.py:UsgsApi" ] }, "file": "eodag/plugins/apis/usgs.py" } ]
CS-SI/eodag
f7efdd09236091864c16b46822730cf1b97317c9
USGS Search by ID lists many products instead of just the matching one When I try to use `eodag.search` method with setting the `id` parameter, it lists many (millions) of products instead of just the product matching the ID, and the only work around I found is to iterate through all the pages and look for the matching...
diff --git a/eodag/plugins/apis/usgs.py b/eodag/plugins/apis/usgs.py index 2e552f0b..d4ecf61f 100644 --- a/eodag/plugins/apis/usgs.py +++ b/eodag/plugins/apis/usgs.py @@ -172,11 +172,39 @@ class UsgsApi(Api): max_results=items_per_page, starting_number=(1 + (page - 1) * items_per_page)...
CS-SI__eodag-1271
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "eodag/plugins/apis/usgs.py:UsgsApi.query", "eodag/plugins/apis/usgs.py:UsgsApi.download" ], "edited_modules": [ "eodag/plugins/apis/usgs.py:UsgsApi" ] }, "file"...
CS-SI/eodag
97b7b6f881714b4c40029a174c2539085cd50868
rename camelCase parameters and methods Rename: - `sortBy` to `sortby` - `orderDownload` to `order_download` - `orderDownloadStatus` to `order_download_status`
diff --git a/docs/notebooks/api_user_guide/4_search.ipynb b/docs/notebooks/api_user_guide/4_search.ipynb index c131f344..ac416c2b 100644 --- a/docs/notebooks/api_user_guide/4_search.ipynb +++ b/docs/notebooks/api_user_guide/4_search.ipynb @@ -2140,14 +2140,14 @@ "cell_type": "markdown", "metadata": {}, "sou...
CS-SI__eodag-1338
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "eodag/plugins/download/http.py:HTTPDownload.order_download" ], "edited_modules": [ "eodag/plugins/download/http.py:HTTPDownload" ] }, "file": "eodag/plugins/download/ht...
CS-SI/eodag
1a1a40f4c4ec7d7672aa917fa0d6a28326df25da
Raise an error when a request to a backend provider fails When a request to a provider such as cop_ads fails because of a malformed request (e.g. providing a date range with an end date before the start date), eodag logs the error, which may be unnotified by the user. Instead it should raise an error.
diff --git a/docs/plugins_reference/auth.rst b/docs/plugins_reference/auth.rst index 8f4b0206..fbad669f 100644 --- a/docs/plugins_reference/auth.rst +++ b/docs/plugins_reference/auth.rst @@ -9,6 +9,8 @@ Multiple authentication plugins can be defined per provider under ``auth``, ``se using *matching settings* :attr:`~e...
CS-SI__eodag-1357
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "eodag/api/core.py:EODataAccessGateway._search_by_id", "eodag/api/core.py:EODataAccessGateway._do_search" ], "edited_modules": [ "eodag/api/core.py:EODataAccessGateway" ...
CS-SI/eodag
cdee784fa2d227c8e908610422140188df4ed142
Support geodes provider Support geodes provider : https://geodes.cnes.fr/migration-de-peps-vers-geodes/ Deprecate peps provider Add geodes provider
diff --git a/docs/getting_started_guide/providers.rst b/docs/getting_started_guide/providers.rst index 55b28631..d3bc844e 100644 --- a/docs/getting_started_guide/providers.rst +++ b/docs/getting_started_guide/providers.rst @@ -23,6 +23,7 @@ Products from the following providers are made avaiable through ``eodag``: S...
CS-SI__eodag-1536
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "eodag/config.py:provider_config_init" ], "edited_modules": [ "eodag/config.py:provider_config_init" ] }, "file": "eodag/config.py" } ]
CS-SI/eodag
b7cc06e19025e5bbf14e28a0975f1749e21e9be3
Geodes & Geodes_s3 have the same key in pre release 3.1.0b2 **Describe the bug** - The latest pre-release adds geodes_s3 for internal access the CNES data lake - The latest provider config uses the same key ``` - geodes: priority: # Lower value means lower priority (Default: 0) search: # Search parameters conf...
diff --git a/eodag/config.py b/eodag/config.py index 0ceb1f1f..db5ae7a0 100644 --- a/eodag/config.py +++ b/eodag/config.py @@ -779,6 +779,7 @@ def provider_config_init( and provider_config.search.type in [ "StacSearch", + "StacListAssets", "Stat...
CS-SI__eodag-1551
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "eodag/plugins/apis/usgs.py:UsgsApi.authenticate" ], "edited_modules": [ "eodag/plugins/apis/usgs.py:UsgsApi" ] }, "file": "eodag/plugins/apis/usgs.py" } ]
CS-SI/eodag
643cb3c0e6228ebf83ba01bf38a80b05162a7ab4
deprecated usgs login endpoint to login-token endpoint The current `login` endpoint, which is used for authentication within the API, will be deprecated in February of 2025. Users are encouraged to create one or more M2M Application Tokens and to transition to using the `login-token` endpoint in lieu of the current `lo...
diff --git a/docs/_static/params_mapping_extra.csv b/docs/_static/params_mapping_extra.csv index c048a7cf..ba9cdbb3 100644 --- a/docs/_static/params_mapping_extra.csv +++ b/docs/_static/params_mapping_extra.csv @@ -1,17 +1,14 @@ parameter,cop_ads,cop_cds,cop_dataspace,cop_ewds,cop_marine,creodias,dedt_lumi,earth_searc...
CS-SI__eodag-190
[ { "changes": { "added_entities": [ "eodag/api/core.py:EODataAccessGateway.search_iter_page", "eodag/api/core.py:EODataAccessGateway.search_all", "eodag/api/core.py:EODataAccessGateway._prepare_search" ], "added_modules": null, "edited_entities": [ "eodag/a...
CS-SI/eodag
af9afc8f4e21f6af129c10a1763fb560ac0dfbe2
Search for all the products matching some criteria with a given provider We have had a lot of discussions on a private GitLab instance before we moved to GitHub about how to search/download all the products matching some criteria. The problems we observed with the current API were: * The method `search` returns a t...
diff --git a/eodag/api/core.py b/eodag/api/core.py index 4655c3e3..6b84203c 100644 --- a/eodag/api/core.py +++ b/eodag/api/core.py @@ -59,6 +59,10 @@ logger = logging.getLogger("eodag.core") # pagination defaults DEFAULT_PAGE = 1 DEFAULT_ITEMS_PER_PAGE = 20 +# Default maximum number of items per page requested by se...
CS-SI__eodag-200
[ { "changes": { "added_entities": [ "eodag/api/core.py:EODataAccessGateway.search_iter_page", "eodag/api/core.py:EODataAccessGateway.search_all", "eodag/api/core.py:EODataAccessGateway._prepare_search" ], "added_modules": null, "edited_entities": [ "eodag/a...
CS-SI/eodag
af9afc8f4e21f6af129c10a1763fb560ac0dfbe2
Improve the signature of setup_logging Which is currently ```python def setup_logging(**kwargs): ``` while: ```python def setup_logging(verbose=None): ``` would be more explicit. To make it exactly backwards compatible we'd need to raise a KeyError if called with `setup_logging()`. I don't expect anyone to r...
diff --git a/CHANGES.rst b/CHANGES.rst index 59bcdfc1..9998e581 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,6 +1,11 @@ Release history --------------- +2.2.0 (2021-xx-xx) +++++++++++++++++++ + +- More explicit signature for ``setup_logging``, fixes `GH-197 <https://github.com/CS-SI/eodag/issues/197>`_ + 2.1.1...
CS-SI__eodag-201
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "eodag/api/core.py:EODataAccessGateway.guess_product_type" ], "edited_modules": [ "eodag/api/core.py:EODataAccessGateway" ] }, "file": "eodag/api/core.py" } ]
CS-SI/eodag
ab1c1054e802d7a25980c331eb19a1c48f1ffc53
guess_product_type doesn't return all the matching products The method `Searcher.search()` of *whoosh* [accepts a `limit` parameter](https://whoosh.readthedocs.io/en/latest/searching.html#the-searcher-object) that can be set to `None` to get all the results. By default `limit` is set to 10. I think we should set `limit...
diff --git a/eodag/api/core.py b/eodag/api/core.py index 6b84203c..31a214cd 100644 --- a/eodag/api/core.py +++ b/eodag/api/core.py @@ -428,7 +428,7 @@ class EODataAccessGateway(object): kwargs[search_key] ) if results is None: - results = searche...
CS-SI__eodag-204
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "eodag/api/core.py:EODataAccessGateway.guess_product_type" ], "edited_modules": [ "eodag/api/core.py:EODataAccessGateway" ] }, "file": "eodag/api/core.py" }, { "...
CS-SI/eodag
ab1c1054e802d7a25980c331eb19a1c48f1ffc53
Add to the search command the ability to search for all the products matching some criteria The API will soon get a `search_all` method that will allow to collect at once all the products from a provider that match a set of criteria. The CLI should also benefit from this enhancement. I suggest that we add a `--all` opt...
diff --git a/CHANGES.rst b/CHANGES.rst index 59bcdfc1..9998e581 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,6 +1,11 @@ Release history --------------- +2.2.0 (2021-xx-xx) +++++++++++++++++++ + +- More explicit signature for ``setup_logging``, fixes `GH-197 <https://github.com/CS-SI/eodag/issues/197>`_ + 2.1.1...
CS-SI__eodag-228
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "eodag/plugins/download/aws.py:AwsDownload.download" ], "edited_modules": [ "eodag/plugins/download/aws.py:AwsDownload" ] }, "file": "eodag/plugins/download/aws.py" } ...
CS-SI/eodag
fec965f791a74dbf658e0833e1507b7ac950d09d
Sentinel SAFE / non-SAFE product types distinction All providers do not provide Sentinel products in SAFE format, which means for example that searching `S2_MSI_L1C` products on `peps` or `astraea_eod` can return products packaged differently, and differently formatted ids. We should add more product types to be abl...
diff --git a/eodag/plugins/download/aws.py b/eodag/plugins/download/aws.py index 84fc9ea9..2f0b132d 100644 --- a/eodag/plugins/download/aws.py +++ b/eodag/plugins/download/aws.py @@ -163,6 +163,12 @@ class AwsDownload(Download): def download(self, product, auth=None, progress_callback=None, **kwargs): """...
CS-SI__eodag-244
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "eodag/api/core.py:EODataAccessGateway.download" ], "edited_modules": [ "eodag/api/core.py:EODataAccessGateway" ] }, "file": "eodag/api/core.py" }, { "changes": ...
CS-SI/eodag
0632e4147f26119bea43e0672f6d06e75d216a20
Inconsistent filepaths returned by the download methods `download_all` returns for instance: ```python ['/home/maxime/TRAVAIL/06_EODAG/01_eodag/eodag/docs/notebooks/api_user_guide/eodag_workspace_download/S2A_MSIL1C_20201229T110451_N0209_R094_T31TCL_20201229T131620/S2A_MSIL1C_20201229T110451_N0209_R094_T31TCL_2020122...
diff --git a/eodag/api/core.py b/eodag/api/core.py index 6efceb2a..1e91f5d9 100644 --- a/eodag/api/core.py +++ b/eodag/api/core.py @@ -47,6 +47,7 @@ from eodag.utils import ( _deprecated, get_geometry_from_various, makedirs, + uri_to_path, ) from eodag.utils.exceptions import ( NoMatchingProduc...
CS-SI__eodag-248
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "eodag/api/core.py:EODataAccessGateway.guess_product_type", "eodag/api/core.py:EODataAccessGateway._prepare_search", "eodag/api/core.py:EODataAccessGateway.download" ], "edite...
CS-SI/eodag
0632e4147f26119bea43e0672f6d06e75d216a20
Kwargs passed to guess a product type are propagated A search made with the following criteria guesses that it should use the product type `S2_MSI_L1C`: ```python from eodag import EODataAccessGateway dag = EODataAccessGateway() dag.set_preferred_provider("peps") search_criteria = { 'start': '2021-03-01', 'e...
diff --git a/eodag/api/core.py b/eodag/api/core.py index 6efceb2a..556d03c9 100644 --- a/eodag/api/core.py +++ b/eodag/api/core.py @@ -47,6 +47,7 @@ from eodag.utils import ( _deprecated, get_geometry_from_various, makedirs, + uri_to_path, ) from eodag.utils.exceptions import ( NoMatchingProduc...
CS-SI__eodag-249
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "eodag/plugins/download/base.py:Download._finalize" ], "edited_modules": [ "eodag/plugins/download/base.py:Download" ] }, "file": "eodag/plugins/download/base.py" } ]
CS-SI/eodag
84aac9405cd346a366e7499d043e1e6959a66f30
Default behaviour for extracting products I've just used `eodag-sentinelsat` and was surprised to see I had to set the `extract` parameter to a value (True or False). Before that, I never set this value and it seems to me that products were always extracted. Currently in providers.yml: * usgs: true * aws_eos: (irr...
diff --git a/eodag/plugins/download/base.py b/eodag/plugins/download/base.py index bfcb8ac1..46632f7d 100644 --- a/eodag/plugins/download/base.py +++ b/eodag/plugins/download/base.py @@ -199,7 +199,7 @@ class Download(PluginTopic): """ extract = kwargs.pop("extract", None) extract = ( - ...
CS-SI__eodag-253
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "eodag/api/core.py:EODataAccessGateway.guess_product_type", "eodag/api/core.py:EODataAccessGateway._prepare_search", "eodag/api/core.py:EODataAccessGateway.download" ], "edite...
CS-SI/eodag
0632e4147f26119bea43e0672f6d06e75d216a20
download_all removes the products contained by the passed SearchResult The items of a `SearchResult` (it could also just be a list of `EOProduct`) passed to `download_all` can get cleared by the method. I observed this behaviour with downloading products from *peps*. If it is the intended behaviour, it should be well d...
diff --git a/eodag/api/core.py b/eodag/api/core.py index 6efceb2a..556d03c9 100644 --- a/eodag/api/core.py +++ b/eodag/api/core.py @@ -47,6 +47,7 @@ from eodag.utils import ( _deprecated, get_geometry_from_various, makedirs, + uri_to_path, ) from eodag.utils.exceptions import ( NoMatchingProduc...
CS-SI__eodag-254
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "eodag/api/core.py:EODataAccessGateway.guess_product_type", "eodag/api/core.py:EODataAccessGateway._prepare_search", "eodag/api/core.py:EODataAccessGateway.download" ], "edite...
CS-SI/eodag
0632e4147f26119bea43e0672f6d06e75d216a20
Error while downloading a quicklook in a directory where the product has already been downloaded and extracted It might be an edge case but I got caught by this one. ``` Traceback (most recent call last): File "/home/maxime/TRAVAIL/06_EODAG/01_eodag/eodag/snippet_quicklook_peps.py", line 20, in <module> pro...
diff --git a/eodag/api/core.py b/eodag/api/core.py index 6efceb2a..556d03c9 100644 --- a/eodag/api/core.py +++ b/eodag/api/core.py @@ -47,6 +47,7 @@ from eodag.utils import ( _deprecated, get_geometry_from_various, makedirs, + uri_to_path, ) from eodag.utils.exceptions import ( NoMatchingProduc...
CS-SI__eodag-257
[ { "changes": { "added_entities": [ "eodag/api/product/metadata_mapping.py:MetadataFormatter.convert_datetime_to_timestamp_milliseconds" ], "added_modules": null, "edited_entities": [ "eodag/api/product/metadata_mapping.py:MetadataFormatter.convert_utc_to_timestamp_millise...
CS-SI/eodag
d18287d37a7deb98457d7068402218983150c7f8
ISO8601 formatted time fails on some providers Time formatted using ISO8601 (`yyyy-MM-ddThh:mm:ss.SSSZ`) fails for some providers like `sobloo` or `astraea_eod`, when `yyyy-MM-ddThh:mm:ss` is ok. Fix is needed to make both work
diff --git a/eodag/api/core.py b/eodag/api/core.py index 25fe07bb..8cd4814c 100644 --- a/eodag/api/core.py +++ b/eodag/api/core.py @@ -487,9 +487,13 @@ class EODataAccessGateway(object): :param raise_errors: When an error occurs when searching, if this is set to True, the error ...
CS-SI__eodag-260
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "eodag/api/core.py:EODataAccessGateway.guess_product_type", "eodag/api/core.py:EODataAccessGateway._prepare_search", "eodag/api/core.py:EODataAccessGateway.download" ], "edite...
CS-SI/eodag
0632e4147f26119bea43e0672f6d06e75d216a20
providers chaining for search Actually, if a productType is not available for a provider, eodag will use the first matching provider with the highest priority. We can keep this behavior, and add the `search(providers=["theia"])` feature (see also #163 ). - this code will still look for products in the 1st available...
diff --git a/eodag/api/core.py b/eodag/api/core.py index 6efceb2a..92e4b6f5 100644 --- a/eodag/api/core.py +++ b/eodag/api/core.py @@ -47,6 +47,7 @@ from eodag.utils import ( _deprecated, get_geometry_from_various, makedirs, + uri_to_path, ) from eodag.utils.exceptions import ( NoMatchingProduc...
CS-SI__eodag-367
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "eodag/api/product/metadata_mapping.py:MetadataFormatter.convert_to_rounded_wkt", "eodag/api/product/metadata_mapping.py:MetadataFormatter.convert_to_bounds_lists", "eodag/api/product/met...
CS-SI/eodag
3963758fc5fda86da4799a26eb64fbc610c444da
implement STAC API Query fragment For STAC providers, STAC API Item Search has limited filtering capabilities (`collections`, `ids`, `bbox` / `intersects`, `datetime`). However, it does not contain a formalized way to filter based on arbitrary fields in an Item. For example, there is no way to express the filter *"`...
diff --git a/docs/_static/params_mapping_extra.csv b/docs/_static/params_mapping_extra.csv index b677c5ad..cf6647c4 100644 --- a/docs/_static/params_mapping_extra.csv +++ b/docs/_static/params_mapping_extra.csv @@ -10,7 +10,7 @@ herbaceousCover,,,:green:`queryable metadata`,,,,,,,,, iceCover,,,:green:`queryable metada...
CS-SI__eodag-380
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "eodag/api/core.py:EODataAccessGateway._do_search" ], "edited_modules": [ "eodag/api/core.py:EODataAccessGateway" ] }, "file": "eodag/api/core.py" } ]
CS-SI/eodag
6e6e6890a52ac8ad4d0f989f41a726b35d9cf5d8
prevent mixed results between earth_search and earth_search_cog See #362 . @GriffinBabe pointed out that if we omit to specify the product type when searching on `earth_search_cog`, we get also results from `earth_search` that cannot be downloaded with the wrong download plugin: ```py from eodag import EODataAcces...
diff --git a/eodag/api/core.py b/eodag/api/core.py index 0ce2f7fe..7d5d039b 100644 --- a/eodag/api/core.py +++ b/eodag/api/core.py @@ -17,6 +17,7 @@ # limitations under the License. import logging import os +import re import shutil from operator import itemgetter @@ -1055,6 +1056,31 @@ class EODataAccessGateway(...
CS-SI__eodag-381
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "eodag/api/core.py:EODataAccessGateway.download_all" ], "edited_modules": [ "eodag/api/core.py:EODataAccessGateway" ] }, "file": "eodag/api/core.py" }, { "change...
CS-SI/eodag
df05c353836883546e47db4057123ac501e003c6
download_all callback **[Original report](https://bitbucket.org/geostorm/eodag/issue/121) by me.** ---------------------------------------- When using download_all, provide the availability to launch a callback when each individual download in finished
diff --git a/docs/api_reference/utils.rst b/docs/api_reference/utils.rst index dec68622..315bf26f 100644 --- a/docs/api_reference/utils.rst +++ b/docs/api_reference/utils.rst @@ -10,9 +10,10 @@ Logging .. automodule:: eodag.utils.logging :members: -Progress callback +Callbacks ----------------- +.. autofuncti...
CS-SI__eodag-405
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "eodag/plugins/download/aws.py:AwsDownload.download", "eodag/plugins/download/aws.py:AwsDownload.check_manifest_file_list", "eodag/plugins/download/aws.py:AwsDownload.finalize_s2_safe_pro...
CS-SI/eodag
d9f16f411fdf5eb6ad752f984782dd06ed882dc8
finalize_s2_safe_product: Fails when missing manifest.safe When downloading some products on `earth_search`, I have a problem when converting the product format to `.SAFE`: ![2022-02-22_14h47_27](https://user-images.githubusercontent.com/67311115/155145249-38c42542-b9bd-4888-9573-2f7d1cc24c6d.png) ![2022-02-22_14h48_...
diff --git a/eodag/plugins/download/aws.py b/eodag/plugins/download/aws.py index 3202c76a..fe7d3573 100644 --- a/eodag/plugins/download/aws.py +++ b/eodag/plugins/download/aws.py @@ -253,11 +253,17 @@ class AwsDownload(Download): bucket_names_and_prefixes = [self.get_bucket_name_and_prefix(product)] ...
CS-SI__eodag-458
[ { "changes": { "added_entities": [ "eodag/api/search_result.py:SearchResult.filter_online" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "eodag/api/search_result.py:SearchResult" ] }, "file": "eodag/api/search_result.py" } ]
CS-SI/eodag
909354f089a3e08e810a194a10ce54858b26e6f6
Avoid trying to order an OFFLINE product From @remi-braun in https://github.com/CS-SI/eodag/issues/214 > Maybe add the LTA order as a parameter, as it is not needed in every usecase (sometimes, sb just want to download everything he can without triggering any LTA retrieval) LTA: Long Term Archive The `HTTPDown...
diff --git a/docs/api_reference/searchresult.rst b/docs/api_reference/searchresult.rst index cb845cfe..7957cf0b 100644 --- a/docs/api_reference/searchresult.rst +++ b/docs/api_reference/searchresult.rst @@ -22,6 +22,7 @@ Crunch SearchResult.filter_latest_by_name SearchResult.filter_overlap SearchResult.filt...
CS-SI__eodag-490
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "eodag/api/product/_product.py:EOProduct.download" ], "edited_modules": [ "eodag/api/product/_product.py:EOProduct" ] }, "file": "eodag/api/product/_product.py" } ]
CS-SI/eodag
0a782d7f476a993170f7d60c006be09b4cfa2b47
progress bar and int id If product id is an integer, it makes download progress bar crash: ```py >>> from eodag import EODataAccessGateway ...
diff --git a/eodag/api/product/_product.py b/eodag/api/product/_product.py index 683870ba..45162a1f 100644 --- a/eodag/api/product/_product.py +++ b/eodag/api/product/_product.py @@ -282,7 +282,7 @@ class EOProduct(object): # update units as bar may have been previously used for extraction pro...
CS-SI__eodag-508
[ { "changes": { "added_entities": [ "eodag/plugins/apis/usgs.py:UsgsApi.authenticate" ], "added_modules": null, "edited_entities": [ "eodag/plugins/apis/usgs.py:UsgsApi.query", "eodag/plugins/apis/usgs.py:UsgsApi.download", "eodag/plugins/apis/usgs.py:UsgsA...
CS-SI/eodag
b57fc768c1a08e1e255b8fa44b3785255bc8ca23
Add S2_MSI_L1C productType to the USGS provider When trying to download Sentinel2 images using the USGS provider, the "S2_MSI_L1C" product type is not recognized, even though it is available using the earth explorer website. It would be great to add this one (and more precisely in my case I'd like that because I onl...
diff --git a/eodag/plugins/apis/usgs.py b/eodag/plugins/apis/usgs.py index 5a7162bd..ecf1b113 100644 --- a/eodag/plugins/apis/usgs.py +++ b/eodag/plugins/apis/usgs.py @@ -19,6 +19,7 @@ import copy import logging import shutil import tarfile +import zipfile import requests from jsonpath_ng.ext import parse @@ -35...
CS-SI__eodag-524
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "eodag/plugins/download/aws.py:AwsDownload.get_bucket_name_and_prefix" ], "edited_modules": [ "eodag/plugins/download/aws.py:AwsDownload" ] }, "file": "eodag/plugins/dow...
CS-SI/eodag
58335e728fff5b98bd85b96fead271429773a593
Capella Bucket Download issue **Bucket Issue** Hi there, I'm trying to download Capella's Open data from [this stac index]](https://www.stacindex.org/catalogs/capella-space-open-data#/BrVjRL9LGRjg8ipuaKLhdHr1kD4sbvyd8QTYGwbMTTtkR4fzPd4yeiApxyrQkiq/LGziSG3zruu42mUQkBqrXkRPLdBZyfQ9WBqmakLW8v6Q2jtwGXLNgDPJyeVfFR6XkZHa8...
diff --git a/eodag/plugins/download/aws.py b/eodag/plugins/download/aws.py index e27ffe9c..e5d9d2a9 100644 --- a/eodag/plugins/download/aws.py +++ b/eodag/plugins/download/aws.py @@ -34,7 +34,12 @@ from eodag.api.product.metadata_mapping import ( properties_from_xml, ) from eodag.plugins.download.base import Dow...
CS-SI__eodag-545
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "eodag/api/core.py:EODataAccessGateway.download" ], "edited_modules": [ "eodag/api/core.py:EODataAccessGateway" ] }, "file": "eodag/api/core.py" } ]
CS-SI/eodag
837c127b5068fd87a99b875206b95d44e48fdb50
accepts all file URI formats EODAG should support `file:/path/to/file` formatting the same way it already supports `file:///path/to/file`. See https://datatracker.ietf.org/doc/html/rfc8089#appendix-B
diff --git a/eodag/api/core.py b/eodag/api/core.py index cd5d696b..a88a3212 100644 --- a/eodag/api/core.py +++ b/eodag/api/core.py @@ -1708,7 +1708,7 @@ class EODataAccessGateway(object): If the metadata mapping for ``downloadLink`` is set to something that can be interpreted as a link on a l...
CS-SI__eodag-554
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "eodag/plugins/search/qssearch.py:QueryStringSearch.do_search" ], "edited_modules": [ "eodag/plugins/search/qssearch.py:QueryStringSearch" ] }, "file": "eodag/plugins/se...
CS-SI/eodag
12e3cdc83bb46a2384b2821e28833b0fdb15c799
Connection timeout bug in search API **Describe the bug** No result from provider 'creodias' due to an error during the search. `urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0x7f0614fa07f0>, 'Connection to finder.creodias.eu timed out. (connect timeout=5)')` Timeout er...
diff --git a/eodag/plugins/search/qssearch.py b/eodag/plugins/search/qssearch.py index f349b760..a9625b53 100644 --- a/eodag/plugins/search/qssearch.py +++ b/eodag/plugins/search/qssearch.py @@ -597,8 +597,7 @@ class QueryStringSearch(Search): "instance:".format(self.provider, self.__class__.__name...
CS-SI__eodag-566
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "eodag/plugins/download/http.py:HTTPDownload._download_assets" ], "edited_modules": [ "eodag/plugins/download/http.py:HTTPDownload" ] }, "file": "eodag/plugins/download/...
CS-SI/eodag
9af685574aa465456bca01f245b830b324db2c5c
http asset filesize using GET method Following #542, in `HTTPDownload` try getting asset filesize from header while downloading with GET method if the filesize could not be obtained with HEAD method (`total_size == 0`). Implement something like: ```py if total_size == 0: asset_size = parse_header(asset_content_d...
diff --git a/eodag/plugins/download/http.py b/eodag/plugins/download/http.py index 58fe8a89..9b9b66ba 100644 --- a/eodag/plugins/download/http.py +++ b/eodag/plugins/download/http.py @@ -252,6 +252,9 @@ class HTTPDownload(Download): assets_urls = [ a["href"] for a in getattr(product, "assets", {})...
CS-SI__eodag-576
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "eodag/plugins/download/aws.py:AwsDownload.download" ], "edited_modules": [ "eodag/plugins/download/aws.py:AwsDownload" ] }, "file": "eodag/plugins/download/aws.py" },...
CS-SI/eodag
73e95cb6407329faf860cb775e1dd61838e6a2c4
NITF files are not downloaded **Describe the bug** I don't know if its intended, but some STAC catalog have.... .ntf files 🙄, and eodag doesn't download them For example, all [SICD Capella products](https://www.stacindex.org/catalogs/capella-space-open-data#/item/2fCZzY4MUXqhFCKQyCHq5xs9yKEtav6SUMVtn8XotXoG3UL99iGK...
diff --git a/eodag/plugins/download/aws.py b/eodag/plugins/download/aws.py index e5d9d2a9..8c28dcce 100644 --- a/eodag/plugins/download/aws.py +++ b/eodag/plugins/download/aws.py @@ -19,7 +19,6 @@ import logging import os import re -import shutil from pathlib import Path import boto3 @@ -36,6 +35,7 @@ from eodag...
CS-SI__eodag-586
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "eodag/api/product/_product.py:EOProduct.register_downloader" ], "edited_modules": [ "eodag/api/product/_product.py:EOProduct" ] }, "file": "eodag/api/product/_product.p...
CS-SI/eodag
3465afe00a492e73bfd517f19c409ba21196f85f
percent variables parsing error in product location If product location contains some percent variables, it may conflict with `register_downloader()` internal parsing mechanism and raise: ``` Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/eodag/api/core.py", line 1474, in _do_searc...
diff --git a/eodag/api/product/_product.py b/eodag/api/product/_product.py index 777b3026..a0a3d78c 100644 --- a/eodag/api/product/_product.py +++ b/eodag/api/product/_product.py @@ -221,15 +221,30 @@ class EOProduct(object): """ self.downloader = downloader self.downloader_auth = authenticat...
CS-SI__eodag-588
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "eodag/plugins/authentication/token.py:TokenAuth.authenticate" ], "edited_modules": [ "eodag/plugins/authentication/token.py:TokenAuth" ] }, "file": "eodag/plugins/authe...
CS-SI/eodag
c91cba779c1913985640b99e2c019c9c000bb4a0
TokenAuth should raise AuthenticationError In `TokenAuth`, catch `RequestException` the same way as it was done for https://github.com/CS-SI/eodag/pull/555 and redirect to an `AuthenticationError`
diff --git a/eodag/plugins/authentication/header.py b/eodag/plugins/authentication/header.py index 48d27cf9..0913296d 100644 --- a/eodag/plugins/authentication/header.py +++ b/eodag/plugins/authentication/header.py @@ -22,7 +22,7 @@ from eodag.plugins.authentication import Authentication class HTTPHeaderAuth(Authe...
CS-SI__eodag-592
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "eodag/api/product/metadata_mapping.py:MetadataFormatter.convert_csv_list" ], "edited_modules": [ "eodag/api/product/metadata_mapping.py:MetadataFormatter" ] }, "file": ...
CS-SI/eodag
870580e4565e533838a1b3c1b2acd2edd335de11
Add keywords to discovered product types Automatically add default keywords to discovered product types to help finding them using [guess_product_type()](https://eodag.readthedocs.io/en/stable/api_reference/core.html#eodag.api.core.EODataAccessGateway.guess_product_type). See also [Guess a product type documentation]...
diff --git a/eodag/api/product/metadata_mapping.py b/eodag/api/product/metadata_mapping.py index e449a643..3f014290 100644 --- a/eodag/api/product/metadata_mapping.py +++ b/eodag/api/product/metadata_mapping.py @@ -302,7 +302,10 @@ def format_metadata(search_param, *args, **kwargs): @staticmethod de...
CS-SI__eodag-616
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "eodag/api/product/metadata_mapping.py:properties_from_json" ], "edited_modules": [ "eodag/api/product/metadata_mapping.py:properties_from_json" ] }, "file": "eodag/api/...
CS-SI/eodag
4a0d68987de913040e0ba16f9fe1d00cd10fe6e5
onda search optimize with expand=Metadata Avoid per-product metadata query using https://catalogue.onda-dias.eu/dias-catalogue/Products?$expand=Metadata link documented in https://www.onda-dias.eu/cms/knowledge-base/odata-querying-products-showing-all-metadata-together-with-their-properties/. Use a new `ODataV4Sea...
diff --git a/docs/_static/params_mapping_opensearch.csv b/docs/_static/params_mapping_opensearch.csv index 3e98c49f..053fe5dc 100644 --- a/docs/_static/params_mapping_opensearch.csv +++ b/docs/_static/params_mapping_opensearch.csv @@ -8,7 +8,7 @@ antennaLookDirection,,,,,,,,,metadata only,,,,metadata only, archivingCe...
CS-SI__eodag-634
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "eodag/utils/__init__.py:flatten_top_directories" ], "edited_modules": [ "eodag/utils/__init__.py:flatten_top_directories" ] }, "file": "eodag/utils/__init__.py" } ]
CS-SI/eodag
69d24e856d04abbf44a81786b67cc26e98d43ee5
flatten_top_directories on single file The following error is raised when trying to use `flatten_top_directories()` on a directory containing a single file or when downloading a product having a single asset and the download plugin configured with `flatten_top_dirs: true`: ``` Traceback (most recent call last): Fi...
diff --git a/eodag/utils/__init__.py b/eodag/utils/__init__.py index 35841aaf..d968c733 100644 --- a/eodag/utils/__init__.py +++ b/eodag/utils/__init__.py @@ -1148,6 +1148,9 @@ def flatten_top_directories(nested_dir_root, common_subdirs_path=None): subpaths_list = [p for p in Path(nested_dir_root).glob("**/*")...
CS-SI__eodag-645
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "eodag/plugins/authentication/token.py:TokenAuth.validate_config_credentials", "eodag/plugins/authentication/token.py:TokenAuth.authenticate" ], "edited_modules": [ "eodag/plu...
CS-SI/eodag
216edc2a7e22676ecfcbc77b71795fc319cb3dc4
404 error when trying to download mundi OFFLINE product ```py from eodag import EODataAccessGateway dag = EODataAccessGateway() prods, _ = dag.search(productType="S2_MSI_L1C", start="2019-01-01", end="2019-02-01") print("storageStatus: %s" % prods[0].properties["storageStatus"]) dag.download(prods[0]) ``` output...
diff --git a/eodag/plugins/authentication/token.py b/eodag/plugins/authentication/token.py index 9419f85c..75151f22 100644 --- a/eodag/plugins/authentication/token.py +++ b/eodag/plugins/authentication/token.py @@ -36,6 +36,11 @@ class TokenAuth(Authentication): self.config.auth_uri = self.config.auth_uri....
CS-SI__eodag-751
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "eodag/rest/utils.py:download_stac_item_by_id" ], "edited_modules": [ "eodag/rest/utils.py:download_stac_item_by_id" ] }, "file": "eodag/rest/utils.py" } ]
CS-SI/eodag
92a537f7811a06f336712de6b8c07a9b80cf6de6
Impossible to download data with providers using api plugin in REST mode In REST mode, when a provider does not get the download plugin, data download fails with the following error : `AttributeError: 'ProviderConfig' object has no attribute 'download'`
diff --git a/eodag/rest/utils.py b/eodag/rest/utils.py index de5d168a..e9955275 100644 --- a/eodag/rest/utils.py +++ b/eodag/rest/utils.py @@ -589,8 +589,6 @@ def download_stac_item_by_id(catalogs, item_id, provider=None): product = search_product_by_id(item_id, product_type=catalogs[0])[0] - eodag_api.prov...
CS-SI__eodag-756
[ { "changes": { "added_entities": [ "eodag/plugins/authentication/keycloak.py:KeycloakOIDCPasswordAuth.validate_config_credentials" ], "added_modules": null, "edited_entities": [ "eodag/plugins/authentication/keycloak.py:KeycloakOIDCPasswordAuth.authenticate" ], ...
CS-SI/eodag
c38d36ec0be2c490d04060030c10726ecf327972
better document how to guess a product type see https://github.com/CS-SI/eodag/issues/242#issuecomment-877068032 - [x] Add more examples showing how to guess the product type in https://eodag.readthedocs.io/en/latest/notebooks/api_user_guide/4_search.html#Guess-a-product-type - [x] Link the `guess_product_type()` met...
diff --git a/docker/stac-server.dockerfile b/docker/stac-server.dockerfile index 543e1ea8..f7fb4b6c 100644 --- a/docker/stac-server.dockerfile +++ b/docker/stac-server.dockerfile @@ -65,7 +65,7 @@ RUN chmod +x /eodag/run-stac-server.sh # add user RUN addgroup --system user \ - && adduser --system --group user + ...
CS-SI__eodag-757
[ { "changes": { "added_entities": [ "eodag/plugins/authentication/keycloak.py:KeycloakOIDCPasswordAuth.validate_config_credentials" ], "added_modules": null, "edited_entities": [ "eodag/plugins/authentication/keycloak.py:KeycloakOIDCPasswordAuth.authenticate" ], ...
CS-SI/eodag
c38d36ec0be2c490d04060030c10726ecf327972
downloadLink usage for STAC providers Implement a way to use `downloadLink` if specified, to dowload a product coming from a STAC provider - [ ] remove or set `downloadLink` to `None` by default on STAC providers - [ ] if `downloadLink` exists, first try using it before downloading all assets `ignore_assets` can...
diff --git a/docker/stac-server.dockerfile b/docker/stac-server.dockerfile index 543e1ea8..f7fb4b6c 100644 --- a/docker/stac-server.dockerfile +++ b/docker/stac-server.dockerfile @@ -65,7 +65,7 @@ RUN chmod +x /eodag/run-stac-server.sh # add user RUN addgroup --system user \ - && adduser --system --group user + ...
CS-SI__eodag-763
[ { "changes": { "added_entities": [ "eodag/plugins/authentication/keycloak.py:KeycloakOIDCPasswordAuth.validate_config_credentials" ], "added_modules": null, "edited_entities": [ "eodag/plugins/authentication/keycloak.py:KeycloakOIDCPasswordAuth.authenticate" ], ...
CS-SI/eodag
c38d36ec0be2c490d04060030c10726ecf327972
[URGENT] Unable to download products from CreoDIAS due to authentification change **Describe the bug** When searching for Sentinel-1 GRD products with CreoDIAS as a provider, the `download` command returns an error. It seems than CreoDIAS has recently updated their website (see new website "[CreoDIAS 2.0](https://c...
diff --git a/docs/getting_started_guide/configure.rst b/docs/getting_started_guide/configure.rst index 7c2b22ad..2193594a 100644 --- a/docs/getting_started_guide/configure.rst +++ b/docs/getting_started_guide/configure.rst @@ -246,3 +246,62 @@ Or with the CLI: -p S2_MSI_L1C \ --storage...
CS-SI__eodag-790
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "eodag/api/core.py:EODataAccessGateway.search", "eodag/api/core.py:EODataAccessGateway._search_by_id", "eodag/api/core.py:EODataAccessGateway._prepare_search" ], "edited_modul...
CS-SI/eodag
9acf017451f71c5488011f3add086a9936cfffc8
[eodag-server] setting provider parameter in a request, default this provider as preferred for future requests **Describe the bug** A clear and concise description of what the bug is. You first request a product type from a specific provider to EODAG Server. This provider is set as the preferred one for all future...
diff --git a/eodag/api/core.py b/eodag/api/core.py index 0d589122..9b394f4a 100644 --- a/eodag/api/core.py +++ b/eodag/api/core.py @@ -832,6 +832,7 @@ class EODataAccessGateway(object): end=None, geom=None, locations=None, + provider=None, **kwargs, ): """Look fo...
CS-SI__eodag-795
[ { "changes": { "added_entities": [ "eodag/rest/server.py:list_queryables", "eodag/rest/server.py:list_collection_queryables" ], "added_modules": [ "eodag/rest/server.py:list_queryables", "eodag/rest/server.py:list_collection_queryables" ], "edited_en...
CS-SI/eodag
2eb52b8300e3859712c74412a97d15181865ce97
server mode queryables Add queryables, available through `/queryables` and `/collections/<PRODUCT_TYPE>/queryables`. See https://github.com/radiantearth/stac-api-spec/blob/master/fragments/filter/README.md#queryables for documentation and https://planetarycomputer.microsoft.com/api/stac/v1/collections/sentinel-2-l2a...
diff --git a/eodag/rest/server.py b/eodag/rest/server.py index 57cc4381..541da3a8 100755 --- a/eodag/rest/server.py +++ b/eodag/rest/server.py @@ -18,11 +18,12 @@ import io import logging import os +import re import traceback from contextlib import asynccontextmanager from distutils import dist from json.decoder...
CS-SI__eodag-802
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "eodag/api/core.py:EODataAccessGateway.search", "eodag/api/core.py:EODataAccessGateway.search_iter_page", "eodag/api/core.py:EODataAccessGateway.search_all", "eodag/api/core.py:EO...
CS-SI/eodag
4b1397bfdc79b0b9be0be3fc825df40949f4acae
prevent authentication during search preparation Following https://github.com/CS-SI/eodag/pull/753, authentication is performed for all providers needing auth for search in `_prepare_search()`. Only auth plugin should be passed as argument, and authentication should be performed before search for the given provider.
diff --git a/eodag/api/core.py b/eodag/api/core.py index 9b394f4a..bff4f2cc 100644 --- a/eodag/api/core.py +++ b/eodag/api/core.py @@ -20,6 +20,7 @@ import os import re import shutil from operator import itemgetter +from typing import List import geojson import pkg_resources @@ -45,6 +46,7 @@ from eodag.config i...
CS-SI__eodag-836
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "eodag/config.py:load_default_config", "eodag/config.py:load_config" ], "edited_modules": [ "eodag/config.py:load_default_config", "eodag/config.py:load_config" ...
CS-SI/eodag
db336ebe9e3359bc3549e546948ef59c54b632ae
configure providers.yml path Implement a way to configure where `providers.yml` is located. - through a environment variable
diff --git a/docs/getting_started_guide/configure.rst b/docs/getting_started_guide/configure.rst index c7814106..ac0559c5 100644 --- a/docs/getting_started_guide/configure.rst +++ b/docs/getting_started_guide/configure.rst @@ -20,10 +20,10 @@ for products in a provider's catalog, how to download products, etc. However,...
CS-SI__eodag-918
[ { "changes": { "added_entities": [ "eodag/plugins/download/http.py:HTTPDownload._check_product_filename" ], "added_modules": null, "edited_entities": [ "eodag/plugins/download/http.py:HTTPDownload.orderDownload", "eodag/plugins/download/http.py:HTTPDownload.order_...
CS-SI/eodag
4286d132c8500c968a82445c2e3509216c4a1e65
staging status in server mode download When downloading an OFFLINE product in server mode, use min values for `wait` and `time` and return a 202 status until product is available
diff --git a/eodag/plugins/download/http.py b/eodag/plugins/download/http.py index 140f1e12..c1b03a36 100644 --- a/eodag/plugins/download/http.py +++ b/eodag/plugins/download/http.py @@ -130,7 +130,7 @@ class HTTPDownload(Download): product: EOProduct, auth: Optional[AuthBase] = None, **kwarg...
CS-SI__eodag-927
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "eodag/api/core.py:EODataAccessGateway.__init__" ], "edited_modules": [ "eodag/api/core.py:EODataAccessGateway" ] }, "file": "eodag/api/core.py" } ]
CS-SI/eodag
72e7a48eba23f7debb89903f31d67555b53fcbce
EODataAccessGateway constructor fails on AWS Lambda **Describe the bug** `makedirs` [invocation](https://github.com/CS-SI/eodag/blob/develop/eodag/api/core.py#L98) within the EODataAccessGateway constructor causes `OSError: [Errno 30] Read-only file system` when run on AWS Lambda **Code To Reproduce** CLI comman...
diff --git a/docs/_static/product_types_information.csv b/docs/_static/product_types_information.csv index 21b10020..61464555 100644 --- a/docs/_static/product_types_information.csv +++ b/docs/_static/product_types_information.csv @@ -28,10 +28,10 @@ CLMS_GLO_GDMP_333M,"Gross dry matter Productivity (GDMP) is an indica...
CS-SI__eodag-961
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "eodag/rest/stac.py:StacItem.__get_item_list" ], "edited_modules": [ "eodag/rest/stac.py:StacItem" ] }, "file": "eodag/rest/stac.py" } ]
CS-SI/eodag
0dcc36d255600669d69fd757f7af6d20e5a4faf1
eodag-authenticated and origin raw assets both available in server mode In server mode, once #721 is done, make available both eodag-authenticated and origin raw assets using https://github.com/stac-extensions/alternate-assets: ```json { "features": [ { "id": "some-product", "assets": { "B01":...
diff --git a/eodag/rest/stac.py b/eodag/rest/stac.py index 4114e3c5..8f84ddea 100644 --- a/eodag/rest/stac.py +++ b/eodag/rest/stac.py @@ -275,20 +275,28 @@ class StacItem(StacCommon): "href" ] = f"{without_arg_url}?{urlencode(query_dict, doseq=True)}" - # add origin a...
CS-SI__eodag-987
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "eodag/api/core.py:EODataAccessGateway.list_queryables" ], "edited_modules": [ "eodag/api/core.py:EODataAccessGateway" ] }, "file": "eodag/api/core.py" }, { "cha...
CS-SI/eodag
fe2a51497fa806f856e9bbb4e3911e7c78dad17e
convert timeout type when loaded from environment variable Following #973, ```py import os from eodag import EODataAccessGateway os.environ["EODAG__HYDROWEB_NEXT__SEARCH__TIMEOUT"] = "10" dag = EODataAccessGateway() dag.search_all(productType="HYDROWEB_RIVERS") ``` raises ``` Traceback (most recent call la...
diff --git a/eodag/api/core.py b/eodag/api/core.py index 5bd91ddc..a7a08e78 100644 --- a/eodag/api/core.py +++ b/eodag/api/core.py @@ -83,6 +83,7 @@ from eodag.utils.exceptions import ( from eodag.utils.stac_reader import fetch_stac_items if TYPE_CHECKING: + from pydantic.fields import FieldInfo from shapel...
CSCfi__beacon-python-26
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "beacon_api/__init__.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "beacon_api/ap...
CSCfi/beacon-python
49539e81197255007a6978c102b4a7eb1cf16b9f
Differentiate wildcard results #### Proposed solution Currently in a wildcard search it is difficult to differentiate between wildcard results, as illustrated. ![image](https://user-images.githubusercontent.com/47524/47644992-5c8b6d80-db78-11e8-813f-e4454c681819.png) The idea is to add values in the `info` key to ...
diff --git a/beacon_api/__init__.py b/beacon_api/__init__.py index f20f8a5..42894f9 100644 --- a/beacon_api/__init__.py +++ b/beacon_api/__init__.py @@ -28,4 +28,4 @@ __org_address__ = 'empty' __org_welcomeUrl__ = 'https://www.csc.fi/' __org_contactUrl__ = 'empty' __org_logoUrl__ = 'https://www.csc.fi/documents/1018...
CSCfi__swift-browser-ui-20
[ { "changes": { "added_entities": [ "swift_browser_ui/middlewares.py:return_error_response" ], "added_modules": [ "swift_browser_ui/middlewares.py:return_error_response" ], "edited_entities": [ "swift_browser_ui/middlewares.py:error_middleware" ], ...
CSCfi/swift-browser-ui
316d76f77f93701289188d0d461d4fc30fdccf96
Failure to retrieve containers after switching to a a project with no containers #### Describe the bug Failure to retrieve containers after switching to a a project with no containers #### To Reproduce Steps to reproduce the behaviour: 1. Log in 2.1 If there is a project with some containers available switch to ...
diff --git a/swift_browser_ui/middlewares.py b/swift_browser_ui/middlewares.py index 3a857ab8..3f08bf77 100644 --- a/swift_browser_ui/middlewares.py +++ b/swift_browser_ui/middlewares.py @@ -5,41 +5,40 @@ from aiohttp import web from .settings import setd +def return_error_response(error_code): + """Return the ...
CSCfi__swift-browser-ui-21
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "docs/source/conf.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules...
CSCfi/swift-browser-ui
316d76f77f93701289188d0d461d4fc30fdccf96
Failure to retrieve containers after switching to a a project with no containers #### Describe the bug Failure to retrieve containers after switching to a a project with no containers #### To Reproduce Steps to reproduce the behaviour: 1. Log in 2.1 If there is a project with some containers available switch to ...
diff --git a/docs/source/conf.py b/docs/source/conf.py index 861c746a..c2766881 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -28,7 +28,7 @@ copyright = f'{current_year}, CSC Developers' author = 'CSC Developers' # The full version, including alpha/beta/rc tags -version = release = '0.3.2' +version ...
CTFd__ctfcli-148
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "ctfcli/cli/challenges.py:ChallengeCommand.push", "ctfcli/cli/challenges.py:ChallengeCommand.pull" ], "edited_modules": [ "ctfcli/cli/challenges.py:ChallengeCommand" ] ...
CTFd/ctfcli
26bcec897fcc1f5f23c8117e2a225a130a8b0dea
Support Buildkit drivers for image builds [Buildkit drivers](https://docs.docker.com/build/drivers/) offer a lot of additional features over the default `docker` driver, like multi-arch images and remote builders. They could be supported by moving tag/push to `docker build --push`, depending on docker buildx which b...
diff --git a/ctfcli/cli/challenges.py b/ctfcli/cli/challenges.py index b56525c..51755e6 100644 --- a/ctfcli/cli/challenges.py +++ b/ctfcli/cli/challenges.py @@ -1,3 +1,4 @@ +import contextlib import logging import os import subprocess @@ -203,167 +204,253 @@ class ChallengeCommand: click.secho(f"Could not p...
CWorthy-ocean__C-Star-219
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "cstar/base/input_dataset.py:InputDataset.__init__" ], "edited_modules": [ "cstar/base/input_dataset.py:InputDataset" ] }, "file": "cstar/base/input_dataset.py" }, {...
CWorthy-ocean/C-Star
3d82b4914f32520568a752924e0ac3cb4252b71d
Avoid copying and modifying a yaml on-disk > The method first calls `InputDataset.get()` on the yaml file itself, as usual, making a local copy. Is this a good pattern to enshrine? The whole point of separating the concept of a "case" from a "blueprint" was that the blueprint is the on-disk serialisation format for ...
diff --git a/cstar/base/input_dataset.py b/cstar/base/input_dataset.py index cd96d80..b60e69d 100644 --- a/cstar/base/input_dataset.py +++ b/cstar/base/input_dataset.py @@ -51,11 +51,15 @@ class InputDataset(ABC): """ self.source: DataSource = DataSource(location=location, file_hash=file_hash) - ...
CWorthy-ocean__C-Star-226
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "cstar/base/utils.py:_get_hash_from_checkout_target" ], "edited_modules": [ "cstar/base/utils.py:_get_hash_from_checkout_target" ] }, "file": "cstar/base/utils.py" } ]
CWorthy-ocean/C-Star
70c35baf4e6664de208500686b5a0a9c1af22e73
ValueError: supplied checkout_target does not appear to be a valid reference for this repository Running the first two cells of the example notebook gives ```python --------------------------------------------------------------------------- ValueError Traceback (most recent call last...
diff --git a/cstar/base/utils.py b/cstar/base/utils.py index a9078e1..d87d0e1 100644 --- a/cstar/base/utils.py +++ b/cstar/base/utils.py @@ -1,5 +1,6 @@ import re import hashlib +import warnings import subprocess from pathlib import Path @@ -109,10 +110,9 @@ def _get_hash_from_checkout_target(repo_url: str, check...
CWorthy-ocean__C-Star-227
[ { "changes": { "added_entities": [ "cstar/base/additional_code.py:AdditionalCode.checkout_target" ], "added_modules": null, "edited_entities": [ "cstar/base/additional_code.py:AdditionalCode.__init__" ], "edited_modules": [ "cstar/base/additional_code....
CWorthy-ocean/C-Star
70c35baf4e6664de208500686b5a0a9c1af22e73
Git information should be read-only I’m able to alter properties like `roms_base_model.checkout_hash` by assigning to them, when they should probably be read-only properties
diff --git a/cstar/base/additional_code.py b/cstar/base/additional_code.py index 1499840..fb3264e 100644 --- a/cstar/base/additional_code.py +++ b/cstar/base/additional_code.py @@ -71,7 +71,7 @@ class AdditionalCode: """ self.source: DataSource = DataSource(location) self.subdir: str = subdir...
Cadair__parfive-146
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "parfive/downloader.py:Downloader._format_results", "parfive/downloader.py:Downloader._get_http", "parfive/downloader.py:Downloader._get_ftp" ], "edited_modules": [ "p...
Cadair/parfive
293133c9c3d50fdcc90e01b0a9dad8049fc6cd91
Propagate the URL which is associated with each file path through to the Results object It would be useful if the `Results` object had a property which mapped input URL to output filename, as the filename is normally provided by the `Content-Disposition` headers on the download request, so is not known to the user at t...
diff --git a/parfive/downloader.py b/parfive/downloader.py index 540d2b6..4b3a6fe 100644 --- a/parfive/downloader.py +++ b/parfive/downloader.py @@ -319,7 +319,8 @@ class Downloader: elif isinstance(res, Exception): raise res else: - results.append(res) + ...
Cadair__parfive-73
[ { "changes": { "added_entities": [ "parfive/downloader.py:Downloader.simple_download" ], "added_modules": null, "edited_entities": [ "parfive/downloader.py:Downloader._get_http", "parfive/downloader.py:Downloader._http_download_worker" ], "edited_modul...
Cadair/parfive
ad816aab60ed6a44f916d853fe89ee54c6ac3762
Add a class method for quick download If you have an iterable of URLs it should be easy to download all of them in one go, at the moment you have to instantiate `Downloader` call `enqueue_file` for each URL and then call `download`. It would be nice to add a classmethod which looks like this: ```python @classmetho...
diff --git a/docs/index.rst b/docs/index.rst index ee5ad91..1fb093c 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -40,6 +40,11 @@ A simple example is:: dl.enqueue_file("http://data.sunpy.org/sample-data/predicted-sunspot-radio-flux.txt", path="./") files = dl.download() +It's also possible to download a l...
Cadair__parfive-8
[ { "changes": { "added_entities": [ "parfive/downloader.py:Downloader.queued_downloads" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "parfive/downloader.py:Downloader" ] }, "file": "parfive/downloader.py" } ]
Cadair/parfive
349aeab485279d5156500e87654ffff5c3fbbe63
Way to find number of queued files It would be nice if `Downloader` could have an attribute that is the number of files queued for download. (just starting to play with this for HelioPy)
diff --git a/parfive/downloader.py b/parfive/downloader.py index 90e7f52..0c13d2d 100644 --- a/parfive/downloader.py +++ b/parfive/downloader.py @@ -89,6 +89,14 @@ class Downloader: self.http_tokens.put_nowait(Token(i + 1)) self.ftp_tokens.put_nowait(Token(i + 1)) + @property + def que...
California-Planet-Search__radvel-348
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "radvel/prior.py:EccentricityPrior.__init__" ], "edited_modules": [ "radvel/prior.py:EccentricityPrior" ] }, "file": "radvel/prior.py" } ]
California-Planet-Search/radvel
e4847e576aafc91a30956efc6eeb91e419ac460e
Using a list in EccentricityPrior raises TypeError Hi, When using a list to initialize `EccentricityPrior`, I get the following error: ```python ----> 1 radvel.prior.EccentricityPrior([1, 2]) ~/astro/radvel/radvel/prior.py in __init__(self, num_planets, upperlims) 96 97 if type(upperlims) == f...
diff --git a/radvel/prior.py b/radvel/prior.py index b60ff71..eb1d934 100644 --- a/radvel/prior.py +++ b/radvel/prior.py @@ -89,10 +89,10 @@ class EccentricityPrior(Prior): if type(num_planets) == int: self.planet_list = range(1, num_planets+1) - npl = len(self.planet_list) + ...
CartoDB__cartoframes-1093
[ { "changes": { "added_entities": [ "cartoframes/data/observatory/category.py:Category.geographies" ], "added_modules": null, "edited_entities": [ "cartoframes/data/observatory/category.py:Category.datasets" ], "edited_modules": [ "cartoframes/data/obse...
CartoDB/cartoframes
a95185bcde797044d5ac10a7ad4cd8a13e87e492
Catalog by smart classes Pandas implementation of the catalog doesn't work pretty well because of these two main issues: - Cannot implement a full extension of the classes without corner cases: https://github.com/CartoDB/cartoframes/issues/1032 - The logic of the classes is delegated to the user and it makes quit...
diff --git a/cartoframes/data/observatory/category.py b/cartoframes/data/observatory/category.py index 50a36bb6..20b62dc8 100644 --- a/cartoframes/data/observatory/category.py +++ b/cartoframes/data/observatory/category.py @@ -1,5 +1,9 @@ from __future__ import absolute_import +from cartoframes.data.observatory.repo...
CartoDB__cartoframes-1105
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "cartoframes/data/observatory/__init__.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ ...
CartoDB/cartoframes
73b03157e292b89c8736750883ffce5bd3322380
Small tweaks to catalog [x] 1. Return slug at every object with slug. For example, Dataset.slug doesn't work but it appears at dataset.to_dict. We talked about removing slug for the model but I'm regretting it after I've played a little bit with the library. [x] 2. Dataset.to_dict(): remove summary_jsonb. [x] 3...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 980b6e94..113591ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,10 +8,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] ## Added - Add nested filters for catalog search (#1038, #1069) +- Get list of catalog enti...
CartoDB__cartoframes-1272
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": [ "cartoframes/data/observatory/catalog/entity.py:CatalogEntity" ] }, "file": "cartoframes/data/observatory/catalog/entity.py" } ]
CartoDB/cartoframes
d42dbbf8f907a6e7e561a7330586bda624f42ddb
[Guides] Discovery of financial data Include a financial dataset discovery in the Discovery guide. Change title to `Looking for demographics and financial data in the US in the catalog` and include a MC dataset discovery.
diff --git a/cartoframes/data/observatory/catalog/entity.py b/cartoframes/data/observatory/catalog/entity.py index 8cbe3202..95ce73a5 100644 --- a/cartoframes/data/observatory/catalog/entity.py +++ b/cartoframes/data/observatory/catalog/entity.py @@ -33,7 +33,7 @@ class CatalogEntity(ABC): id_field = 'id' _...
CartoDB__cartoframes-241
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "cartoframes/context.py:CartoContext.write", "cartoframes/context.py:CartoContext.map" ], "edited_modules": [ "cartoframes/context.py:CartoContext" ] }, "file": ...
CartoDB/cartoframes
a694cfa6e9f7ff39954ef5045649eb2518632338
include voyager as a basemap option e.g., ``` https://cartodb-basemaps-a.global.ssl.fastly.net/rastertiles/voyager_nolabels/{z}/{x}/{y}.png ```
diff --git a/cartoframes/context.py b/cartoframes/context.py index e5885a97..c88bee6f 100644 --- a/cartoframes/context.py +++ b/cartoframes/context.py @@ -18,7 +18,7 @@ from carto.sql import SQLClient, BatchSQLClient from carto.exceptions import CartoException from .credentials import Credentials -from .utils impor...
CartoDB__cartoframes-319
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "cartoframes/context.py:CartoContext._geom_type" ], "edited_modules": [ "cartoframes/context.py:CartoContext" ] }, "file": "cartoframes/context.py" }, { "changes...
CartoDB/cartoframes
8dcdd8361140d6e087c7301042bd5ba9dc475001
null column values in styling not handled correctly Dataset is earthquakes and styling for both color and size is ramp of magnitude (5 bins, equal interval). Null values in the column used for styling are being colored as though they are in the highest color bin using CARTOframes. ![image](https://user-images.github...
diff --git a/cartoframes/context.py b/cartoframes/context.py index acac1b3e..f05c9f3b 100644 --- a/cartoframes/context.py +++ b/cartoframes/context.py @@ -1013,6 +1013,9 @@ class CartoContext(object): query=layer.orig_query, geoms=','.join(g['geom_type'] for g in resp['rows']),...
CartoDB__cartoframes-368
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "cartoframes/layer.py:QueryLayer._setup" ], "edited_modules": [ "cartoframes/layer.py:QueryLayer" ] }, "file": "cartoframes/layer.py" } ]
CartoDB/cartoframes
6977ce422f9c1ac4e45f70d10438c36b34f52bd9
extra conditional shows up in cartocss for category torque maps It maybe happening in others...
diff --git a/cartoframes/layer.py b/cartoframes/layer.py index f3173cb8..6ddaa641 100644 --- a/cartoframes/layer.py +++ b/cartoframes/layer.py @@ -408,7 +408,7 @@ class QueryLayer(AbstractLayer): ]).format(col=self.color, query=self.orig_query) agg_func = '\'CDB_Math_Mode(cf_value_{})\...
CartoDB__cartoframes-379
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "cartoframes/layer.py:BaseMap.__init__" ], "edited_modules": [ "cartoframes/layer.py:BaseMap" ] }, "file": "cartoframes/layer.py" } ]
CartoDB/cartoframes
86069f44058986062a2af21ef1f6690864784596
Update basemap URLs Basemap URL domains have fastly.net (e.g. here: https://github.com/CartoDB/cartoframes/blob/master/cartoframes/layer.py#L63), this should be replaced by basemaps.cartocdn.com in whole code and tests: * Old: https://cartodb-basemaps-{s}.global.ssl.fastly.net/ * New: https://{s}.basemaps.cartocdn.co...
diff --git a/cartoframes/layer.py b/cartoframes/layer.py index 6ddaa641..49143e33 100644 --- a/cartoframes/layer.py +++ b/cartoframes/layer.py @@ -60,9 +60,7 @@ class BaseMap(AbstractLayer): self.source = source self.labels = labels - stem = 'https://cartodb-basemaps-{s}.global.ssl.fastly.net...
CartoDB__cartoframes-445
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "cartoframes/credentials.py:Credentials.__init__", "cartoframes/credentials.py:Credentials._norm_creds", "cartoframes/credentials.py:Credentials.base_url" ], "edited_modules":...
CartoDB/cartoframes
b45ab4800eef0ef114ad707887833fd028b54b5a
add base url validation on `https` to ensure all requests occur as expected `POST api/v1/imports` forwards to `GET api/v1/imports` if the base url is not `https`. This causes some unexpected behaviors and perplexing errors, so we need to add base url validation to ensure all the services work as expected. We can bundle...
diff --git a/README.rst b/README.rst index a5839a12..7f985b28 100644 --- a/README.rst +++ b/README.rst @@ -110,7 +110,7 @@ Get table from CARTO, make changes in pandas, sync updates with CARTO: .. code:: python import cartoframes - # `base_url`s are of the form `http://{username}.carto.com/` for most users +...
CartoDB__cartoframes-523
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "cartoframes/context.py:CartoContext._send_batches", "cartoframes/context.py:CartoContext._set_schema", "cartoframes/context.py:_dtypes2pg", "cartoframes/context.py:_pg2dtypes", ...
CartoDB/cartoframes
8a4341ab6fa63cb8b4f3ac14327cd2670daaa5e1
don't try to update schema if only columns are cartodb_id / the_geom and/or the_geom_webmercator If a dataset is written to carto with `CartoContext.write`, the schema will be updated using `alter table alter column` statements. But if the only columns are carto utility columns the_geom and cartodb_id, this schema-upda...
diff --git a/.gitignore b/.gitignore index 1c419964..963aa610 100644 --- a/.gitignore +++ b/.gitignore @@ -32,6 +32,8 @@ wheels/ *.egg-info/ .installed.cfg *.egg +Pipfile +Pipfile.lock # Swap files .*.sw[nop] @@ -40,3 +42,4 @@ wheels/ CARTOCREDS.json SITEKEY.txt test/secret.json +examples/scratch/* diff --git...
Ch00k__ffmpy-85
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "ffmpy/ffmpy.py:FFmpeg.__init__", "ffmpy/ffmpy.py:FFmpeg.run" ], "edited_modules": [ "ffmpy/ffmpy.py:FFmpeg" ] }, "file": "ffmpy/ffmpy.py" } ]
Ch00k/ffmpy
fbe56cb67b317b4457a932c99716ac306fac76f6
[Feature] Replace subprocess.Popen with psutil.Popen This is more so to gauge interest in this feature. The `psutil` library is used for finding process information (such as CPU / memory usage) and overall system information. It also provides a wrapper to `subprocess.Popen` in their own `psutil.Popen` that makes tracki...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 534b3bb..c3f51c0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,8 +47,10 @@ jobs: architecture: x64 - run: | pip install "cryptography<44.0.0" poetry # cryptography 44.0.0 is not compatible ...
CharJon__GeCO-104
[ { "changes": { "added_entities": [ "geco/mips/scheduling/generic.py:late_tasks_formulation", "geco/mips/scheduling/generic.py:heinz_formulation" ], "added_modules": [ "geco/mips/scheduling/generic.py:late_tasks_formulation", "geco/mips/scheduling/generic.py:hein...
CharJon/GeCO
23d2fb0889249b003af9dda267e64d7d22f27c89
More scheduling generators (Hookers c-instances) Hooker lists additional parameters for generating scheduling instances [here](http://public.tepper.cmu.edu/jnh/instances.htm). - [ ] c-instances generator - [ ] check c-instance generation against supplied files (e.g. are the correct ranges [a,b] listed)
diff --git a/geco/mips/scheduling/generic.py b/geco/mips/scheduling/generic.py index b695be6..b4919e0 100644 --- a/geco/mips/scheduling/generic.py +++ b/geco/mips/scheduling/generic.py @@ -1,6 +1,225 @@ import itertools from networkx.utils import py_random_state +from pyscipopt import scip + + +def late_tasks_formu...
CharJon__GeCO-11
[ { "changes": { "added_entities": [ "geco/mips/facility_location.py:cornuejols_instance", "geco/mips/facility_location.py:cornuejols_instance_params" ], "added_modules": [ "geco/mips/facility_location.py:cornuejols_instance", "geco/mips/facility_location.py:cornu...
CharJon/GeCO
d39ca20573da84b79d58315c7f17e125b24470ff
Make facility location compliant to develop.md For this the parameter generator needs to be split from the mip generator.
diff --git a/geco/mips/facility_location.py b/geco/mips/facility_location.py index 7139f3e..e02f2ab 100644 --- a/geco/mips/facility_location.py +++ b/geco/mips/facility_location.py @@ -6,7 +6,12 @@ from networkx.utils import py_random_state @py_random_state(3) -def capacitated_facility_location(n_customers, n_faci...
CharJon__GeCO-19
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "geco/mips/facility_location.py:cornuejols_instance_params" ], "edited_modules": [ "geco/mips/facility_location.py:cornuejols_instance_params" ] }, "file": "geco/mips/fa...
CharJon/GeCO
e8cf0c229ca7c16edd61d6d2a97df1c9f343ef3d
mips.max_cut: Add tests if seeding works as intended. There should be some testcases that ensure different seeds are creating different instances.
diff --git a/geco/mips/facility_location.py b/geco/mips/facility_location.py index 8675a33..f11fb20 100644 --- a/geco/mips/facility_location.py +++ b/geco/mips/facility_location.py @@ -93,7 +93,7 @@ def capacitated_facility_location( return model -@py_random_state(3) +@py_random_state(-1) def cornuejols_insta...
CharJon__GeCO-83
[ { "changes": { "added_entities": [ "geco/mips/miplib/base.py:Loader._successful_response" ], "added_modules": null, "edited_entities": [ "geco/mips/miplib/base.py:Loader._generate_path_for_instance", "geco/mips/miplib/base.py:Loader._download_instance" ], ...
CharJon/GeCO
67ae9b29a921e033312dfd30022beed224f2316e
Expand loader functionality to allow downloads from older miplib libraries Some instances did rotate out of the current miplib completely. To reproduce experiments of older papers it would be nice to be able do download instances from [2010](http://miplib2010.zib.de/miplib2010.php) and [2003](http://miplib2010.zib.de/m...
diff --git a/geco/mips/miplib/base.py b/geco/mips/miplib/base.py index d0c3cc0..f110683 100644 --- a/geco/mips/miplib/base.py +++ b/geco/mips/miplib/base.py @@ -1,11 +1,16 @@ import tempfile -from urllib.request import urlretrieve +from urllib.request import urlretrieve, urlopen +from urllib.error import URLError imp...
CharJon__GeCO-9
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "geco/mips/facility_location.py:capacitated_facility_location" ], "edited_modules": [ "geco/mips/facility_location.py:capacitated_facility_location" ] }, "file": "geco/m...
CharJon/GeCO
1d6c60958173ef26b28d5d6288b1cfa120664d48
Avoid side effects when using random numbers. Networkx decorator might be usefull. See e.g. [here](https://networkx.org/documentation/stable/reference/randomness.html).
diff --git a/geco/mips/facility_location.py b/geco/mips/facility_location.py index ec8c2d4..7139f3e 100644 --- a/geco/mips/facility_location.py +++ b/geco/mips/facility_location.py @@ -2,8 +2,10 @@ import itertools import numpy as np import pyscipopt as scip +from networkx.utils import py_random_state +@py_rand...
CharJon__GeCO-92
[ { "changes": { "added_entities": [ "geco/mips/miplib/base.py:benchmark_instances", "geco/mips/miplib/base.py:easy_instances", "geco/mips/miplib/base.py:hard_instances", "geco/mips/miplib/base.py:open_instances", "geco/mips/miplib/base.py:custom_list" ], ...
CharJon/GeCO
0f31ba4453c1037a28ad2f86580e2f5000a26369
Add convenience wrapper for miplib. A function to easily get all (easy, hard, open) instances that are (or are not) part of the benchmark set would be nice to have.
diff --git a/geco/mips/miplib/base.py b/geco/mips/miplib/base.py index 881f9cf..87f27b1 100644 --- a/geco/mips/miplib/base.py +++ b/geco/mips/miplib/base.py @@ -3,15 +3,10 @@ from urllib.request import urlretrieve, urlopen from urllib.error import URLError import pyscipopt as scip import os +import pandas as pd ...