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 |
|---|---|---|---|---|---|
DHI__mikeio-341 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"mikeio/__init__.py:read"
],
"edited_modules": [
"mikeio/__init__.py:read"
]
},
"file": "mikeio/__init__.py"
},
{
"changes": {
"added_entities": null,
... | DHI/mikeio | dd6ceecda25e116ecdd47d453da96c44a4ce2923 | mikeio.read string time argument not working as intended
mikeio.read("ts.dfs0", time="2018") gives different results for equidistant and non-equidistant files.
Reading non-equidistant files works as intended (i.e. gives all data in 2018 in the above example). If ts.dfs0 is equidistant, however, only one timestep i ... | diff --git a/mikeio/__init__.py b/mikeio/__init__.py
index f4d95f3c..507c0c6b 100644
--- a/mikeio/__init__.py
+++ b/mikeio/__init__.py
@@ -38,7 +38,9 @@ from .spatial.grid_geometry import Grid1D, Grid2D, Grid3D
from .eum import ItemInfo, EUMType, EUMUnit
-def read(filename, *, items=None, time_steps=None, time=Non... |
DHI__mikeio-427 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"mikeio/dataset.py:Dataset.rename"
],
"edited_modules": [
"mikeio/dataset.py:Dataset"
]
},
"file": "mikeio/dataset.py"
}
] | DHI/mikeio | 1eedc89b30d5778a39eed63a22a9ae0b6f6ad396 | attribute not registered after rename?
**Describe the bug**
I get unexpected behavior after renaming an item of a mikeio dataset.
**Screenshots**

**Expected behavior**
I expected to also be able to... | diff --git a/mikeio/dataset.py b/mikeio/dataset.py
index 2e5ffa72..e8fd3869 100644
--- a/mikeio/dataset.py
+++ b/mikeio/dataset.py
@@ -673,8 +673,8 @@ class Dataset(DataUtilsMixin, TimeSeries, collections.abc.MutableMapping):
da = ds._data_vars.pop(old_name)
da.name = new_name
ds.... |
DHI__mikeio-442 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"mikeio/pfs.py:Pfs.__init__",
"mikeio/pfs.py:Pfs._pfs2yaml",
"mikeio/pfs.py:Pfs._parse_line"
],
"edited_modules": [
"mikeio/pfs.py:Pfs"
]
},
"file": "mik... | DHI/mikeio | 3f8bb643a6d4e0fefae07356fcf6a16ac2972035 | PFS. read write of parameter list, which contains both boolean and string
MIKE IO version 1.2.dev0
This is probably a rare case, but it seems that this line will fail:
fill_list = false, 'TEST'
if you read it from a pfs file and try to write it again you will get this:
fill_list = 'false, 'TEST''
... | diff --git a/mikeio/pfs.py b/mikeio/pfs.py
index 10d80fce..55754e1f 100644
--- a/mikeio/pfs.py
+++ b/mikeio/pfs.py
@@ -243,7 +243,7 @@ class Pfs:
"""
def __init__(self, input, encoding="cp1252", names=None, unique_keywords=True):
- if isinstance(input, (str, Path)):
+ if isinstance(input, (str... |
DHI__mikeio-505 | [
{
"changes": {
"added_entities": [
"mikeio/data_utils.py:DataUtilsMixin._n_selected_timesteps"
],
"added_modules": null,
"edited_entities": [
"mikeio/data_utils.py:DataUtilsMixin._get_time_idx_list"
],
"edited_modules": [
"mikeio/data_utils.py:DataUtil... | DHI/mikeio | b6e12b95bc99a17f270efd43ff49f3fe3bca7b0c | isel() always returns a copy of the data
If you want to change a subset of the values in a DataArray, you may try something like:
da.isel(time=0).values[:] = 7.0
or
da[0].values[:] = 7.0
This will unfortunately not work as isel() (and getitem) returns a *copy* of the data even when it does not ... | diff --git a/docs/dataarray.md b/docs/dataarray.md
index ad4b0073..41a223ec 100644
--- a/docs/dataarray.md
+++ b/docs/dataarray.md
@@ -60,6 +60,33 @@ geometry: GeometryPoint2D(x=607002.7094112666, y=6906734.833048992)
values: [0.4591, 0.8078, ..., -0.6311]
```
+## Modifying values
+
+You can modify the values of a ... |
DHI__mikeio-690 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"mikeio/dfsu/_dfsu.py:Dfsu2DH.read"
],
"edited_modules": [
"mikeio/dfsu/_dfsu.py:Dfsu2DH"
]
},
"file": "mikeio/dfsu/_dfsu.py"
},
{
"changes": {
"added_enti... | DHI/mikeio | 7882682439f554b4a2b1e47bb62cced1c60d8a97 | Dfsu read elements reordered
`Dfsu.read(...,elements=)` only works if the list of elements is ordered.
 | diff --git a/mikeio/dfsu/_dfsu.py b/mikeio/dfsu/_dfsu.py
index 1e75f6ff..5e4f1e77 100644
--- a/mikeio/dfsu/_dfsu.py
+++ b/mikeio/dfsu/_dfsu.py
@@ -1,7 +1,8 @@
from __future__ import annotations
from dataclasses import dataclass
from pathlib import Path
-from typing import Any, Collection, Literal, Sequence, Tuple
+
... |
DIAGNijmegen__rse-gcapi-162 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"gcapi/client.py:ClientBase.run_external_job",
"gcapi/client.py:ClientBase.update_archive_item",
"gcapi/client.py:ClientBase._validate_display_set_values",
"gcapi/client.py:Client... | DIAGNijmegen/rse-gcapi | dee79317c443389b8a7f98cfb62aa2c9ed6ab2ef | Deprecate the get item/set item way of interacting with objects
This is a hack for API consistency. Users need help in working out where to make the changes though. | diff --git a/gcapi/client.py b/gcapi/client.py
index 14500af..5287f89 100644
--- a/gcapi/client.py
+++ b/gcapi/client.py
@@ -654,7 +654,7 @@ class ClientBase(ApiDefinitions, ClientInterface):
The created job
"""
alg = yield from self.__org_api_meta.algorithms.detail(slug=algorithm)
- i... |
DOV-Vlaanderen__pydov-156 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "pydov/__init__.py"
},
{
"changes": {
"added_entities": [
"pydov/util/caching.py:AbstractCache._get_remote",
"pydov/util/caching.... | DOV-Vlaanderen/pydov | 95f0dda9191806eca8b72ee5f007d1c76c294696 | Use gzip to compress cached files
When downloading larger XML files, this can save quite a lot of diskspace. | diff --git a/docs/caching.rst b/docs/caching.rst
index 0579e24..b3811dd 100644
--- a/docs/caching.rst
+++ b/docs/caching.rst
@@ -47,18 +47,18 @@ your own cache, as follows::
import pydov.util.caching
- pydov.cache = pydov.util.caching.TransparentCache(
+ pydov.cache = pydov.util.caching.GzipTextFileCache... |
DOV-Vlaanderen__pydov-211 | [
{
"changes": {
"added_entities": [
"pydov/util/query.py:PropertyInList.toXML"
],
"added_modules": null,
"edited_entities": [
"pydov/util/query.py:PropertyInList.__init__",
"pydov/util/query.py:Join.__init__"
],
"edited_modules": [
"pydov/util/q... | DOV-Vlaanderen/pydov | 325fad8fd06d5b2077366869c2f5a0017d59941b | Support Join with a dataframe containing a single element too
<!-- You can ask questions about the DOV webservices or about the `pydov` package. If you have a question about the `pydov` Python package, please use following template. -->
* PyDOV version: master
* Python version: 3.6
* Operating System: Windows 10
... | diff --git a/pydov/util/query.py b/pydov/util/query.py
index f7cd9a2..dae02b5 100644
--- a/pydov/util/query.py
+++ b/pydov/util/query.py
@@ -7,7 +7,7 @@ from owslib.fes import (
)
-class PropertyInList(Or):
+class PropertyInList(object):
"""Filter expression to test whether a given property has one of the
... |
DOV-Vlaanderen__pydov-214 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"pydov/util/query.py:PropertyInList.__init__"
],
"edited_modules": [
"pydov/util/query.py:PropertyInList"
]
},
"file": "pydov/util/query.py"
}
] | DOV-Vlaanderen/pydov | 9941821d5a041417935e96edcbd3212e1b56cdcf | Join and PropertyInList broken: Query should be an owslib.fes.OgcExpression
<!-- You can ask questions about the DOV webservices or about the `pydov` package. If you have a question about the `pydov` Python package, please use following template. -->
* PyDOV version: 0.3.0
* Python version: 3.6
* Operating System:... | diff --git a/pydov/util/query.py b/pydov/util/query.py
index dae02b5..4baf144 100644
--- a/pydov/util/query.py
+++ b/pydov/util/query.py
@@ -4,10 +4,11 @@
from owslib.fes import (
Or,
PropertyIsEqualTo,
+ OgcExpression,
)
-class PropertyInList(object):
+class PropertyInList(OgcExpression):
"""Fi... |
DOV-Vlaanderen__pydov-220 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": [
"pydov/types/grondwaterfilter.py:GrondwaterFilter"
]
},
"file": "pydov/types/grondwaterfilter.py"
}
] | DOV-Vlaanderen/pydov | e1416c87f12a3290b37fe380a3ee4961df21d432 | GrondwaterFilter: meetnet_code should be string
The `meetnet_code` XML attribute of the GrondwaterFilter type should be of type 'string' instead of 'integer'.
The next release of the DOV XML schema introduces "meetnet 20 – eDOV erkende boorbedrijven" with code `edov`.
This will cause issues in current pydov imple... | diff --git a/docs/output_fields.rst b/docs/output_fields.rst
index 9943774..f469125 100644
--- a/docs/output_fields.rst
+++ b/docs/output_fields.rst
@@ -214,7 +214,7 @@ Groundwater screens (grondwaterfilters)
y,1,float,194090
start_grondwaterlocatie_mtaw,1,float,NaN
gemeente,1,string,Destelbergen
- me... |
DOV-Vlaanderen__pydov-221 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"pydov/search/abstract.py:AbstractSearch._init_wfs",
"pydov/search/abstract.py:AbstractSearch._get_schema"
],
"edited_modules": [
"pydov/search/abstract.py:AbstractSearch"
... | DOV-Vlaanderen/pydov | e1416c87f12a3290b37fe380a3ee4961df21d432 | Make DOV base URL configurable
In order to be able to foresee future problems in pydov regarding changes in the DOV webservices, we need to be able to run pydov (and/or pydov tests) against the DOV development environment.
This would for example have prevented issue #188 to have occurred at the point it did.
At t... | diff --git a/.travis.yml b/.travis.yml
index 9ef1e62..6c899e2 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -30,6 +30,10 @@ matrix:
env: TOXENV=py37-nolxml
- python: 3.7
env: TOXENV=py37-lxml
+ - python: 3.7
+ env: TOXENV=update-oefen
+ - python: 3.7
+ env: TOXENV=update-productie
- python: 3.7
... |
DOV-Vlaanderen__pydov-227 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": [
"pydov/types/grondwaterfilter.py:GrondwaterFilter"
]
},
"file": "pydov/types/grondwaterfilter.py"
}
] | DOV-Vlaanderen/pydov | 8b909209e63455fb06251d73e32958d66c6e14ed | Add the 'mv_mtaw' field to GrondwaterFilter
It would be interesting to add the 'mv_mtaw' field to the GrondwaterFilter type, in order to be able to compare the water level measurements to the ground level.
The information needs to be added to the Filter XML export serverside, and can afterwards be added as a new Xml... | diff --git a/.github/CONTRIBUTING.rst b/.github/CONTRIBUTING.rst
index 9430fc2..ad5c3f1 100644
--- a/.github/CONTRIBUTING.rst
+++ b/.github/CONTRIBUTING.rst
@@ -249,6 +249,48 @@ The workflow is provided for command line usage and using the `Github for Deskto
If any of the above seems like magic to you, please look u... |
DOV-Vlaanderen__pydov-320 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": [
"pydov/types/sondering.py:Sondering"
]
},
"file": "pydov/types/sondering.py"
}
] | DOV-Vlaanderen/pydov | 7af07dc3add800b3b2cc170a13b399e170bce34a | Missing fields in Sondering and documentation (mv_mtaw and sondeernummer)
The return field ‘mv_mtaw’ does not exist for CPT
The return field ‘sondeernummer’ exists but isn't mentioned in the documentation
| diff --git a/docs/output_fields.rst b/docs/output_fields.rst
index 4f95915..6f4412e 100644
--- a/docs/output_fields.rst
+++ b/docs/output_fields.rst
@@ -181,8 +181,10 @@ CPT measurements (sonderingen)
Field,Cost,Datatype,Example
pkey_sondering,1,string,https://www.dov.vlaanderen.be/data/sondering/2002-01031... |
DOV-Vlaanderen__pydov-380 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"pydov/search/abstract.py:AbstractSearch._search"
],
"edited_modules": [
"pydov/search/abstract.py:AbstractSearch"
]
},
"file": "pydov/search/abstract.py"
},
{
"... | DOV-Vlaanderen/pydov | 3d5eb0a8c67dc2acad2106c7269c12595d48e460 | Custom fields not populated if source fields not explicitly requested
<!-- You can ask questions about the DOV webservices or about the `pydov` package. If you have a question about the `pydov` Python package, please use following template. -->
* PyDOV version: master
* Python version: 3.10
* Operating System: Ubu... | diff --git a/pydov/search/abstract.py b/pydov/search/abstract.py
index 486c649..1e5868e 100644
--- a/pydov/search/abstract.py
+++ b/pydov/search/abstract.py
@@ -768,7 +768,12 @@ class AbstractSearch(AbstractCommon):
for i in self._map_df_wfs_source
... |
DOV-Vlaanderen__pydov-48 | [
{
"changes": {
"added_entities": [
"examples/boring_search.py:get_deep_boreholes_in_bounding_box"
],
"added_modules": [
"examples/boring_search.py:get_deep_boreholes_in_bounding_box"
],
"edited_entities": null,
"edited_modules": null
},
"file": "exampl... | DOV-Vlaanderen/pydov | f65f1848a17074280c5686eb7f106570bafe36fb | Combine WFS attribute and location on search | diff --git a/examples/boring_search.py b/examples/boring_search.py
index 09349e9..86053d8 100644
--- a/examples/boring_search.py
+++ b/examples/boring_search.py
@@ -104,6 +104,22 @@ def get_boreholes_in_bounding_box():
print(df)
+def get_deep_boreholes_in_bounding_box():
+ """Get all details of the borehole... |
DOV-Vlaanderen__pydov-79 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"pydov/types/abstract.py:AbstractDovType.get_df_array"
],
"edited_modules": [
"pydov/types/abstract.py:AbstractDovType"
]
},
"file": "pydov/types/abstract.py"
}
] | DOV-Vlaanderen/pydov | 68d5a639fa77fb9b03a89ca11a3dc49b1c823b27 | Cannot use fields from a subtype as return fields.
* PyDOV version: master
* Python version: 3.6
* Operating System: Windows 10
### Description
Specifying a field from a subtype as return field gives an error if the resulting dataframe is non-empty.
### What I Did
```
import pydov.search.boring
from ows... | diff --git a/pydov/types/abstract.py b/pydov/types/abstract.py
index e0398f9..b5217b0 100644
--- a/pydov/types/abstract.py
+++ b/pydov/types/abstract.py
@@ -520,8 +520,7 @@ class AbstractDovType(AbstractCommon):
"""
fields = self.get_field_names(return_fields)
- ownfields = self.get_field_nam... |
DRMacIver__shrinkray-7 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/shrinkray/__main__.py:interrupt_wait_and_kill"
],
"edited_modules": [
"src/shrinkray/__main__.py:interrupt_wait_and_kill"
]
},
"file": "src/shrinkray/__main__.py"
... | DRMacIver/shrinkray | 6bf13612eb5789611975db03aadd50361d955f08 | getting "Could not kill subprocess with pid {sp.pid}. Something has gone seriously wrong.", logic bug?
Hi David!
I'm shrinking input to Z3 that I feed it via a Python script. Z3 ignores `SIGINT` and continues, so when shrinkray tries to kill a process it really needs to use `SIGKILL`. However, I'm getting "Could not... | diff --git a/src/shrinkray/__main__.py b/src/shrinkray/__main__.py
index 6035e10..921c2c0 100644
--- a/src/shrinkray/__main__.py
+++ b/src/shrinkray/__main__.py
@@ -73,7 +73,7 @@ async def interrupt_wait_and_kill(sp: "trio.Process", delay: float = 0.1) -> Non
with trio.move_on_after(delay):
await ... |
DS4SD__docling-824 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"docling/backend/md_backend.py:MarkdownDocumentBackend.__init__",
"docling/backend/md_backend.py:MarkdownDocumentBackend.process_inline_text",
"docling/backend/md_backend.py:MarkdownDocum... | DS4SD/docling | 6875913e34abacb8d71b5d31543adbf7b5bd5e92 | Bug: Docling misinterprets linebreaks in markdown input as paragraph breaks
### Bug
When feeding a markdown with line-wrapped content (ie a text editor or human user has wrapped all lines at 72, 80, or some number of characters), Docling is misinterpreting this single linebreak between lines as separate paragraphs in t... | diff --git a/docling/backend/md_backend.py b/docling/backend/md_backend.py
index 8171085..0a08398 100644
--- a/docling/backend/md_backend.py
+++ b/docling/backend/md_backend.py
@@ -65,7 +65,7 @@ class MarkdownDocumentBackend(DeclarativeDocumentBackend):
self.in_table = False
self.md_table_buffer: li... |
DS4SD__docling-852 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"docling/backend/msword_backend.py:MsWordDocumentBackend.walk_linear"
],
"edited_modules": [
"docling/backend/msword_backend.py:MsWordDocumentBackend"
]
},
"file": "docl... | DS4SD/docling | 2c037ae62e123967eddf065ccb2abbaf78cdcab3 | Accept a page range as parameter for conversion
### Requested feature
Several use cases demand that conversion is limited to a given page range. Passing in a desired page range (like in printing options), and oututting partial documents, would make docling more useful for these cases.
### Alternatives
<!-- Describe ... | diff --git a/docling/backend/msword_backend.py b/docling/backend/msword_backend.py
index 32e69b9..02f8c86 100644
--- a/docling/backend/msword_backend.py
+++ b/docling/backend/msword_backend.py
@@ -137,6 +137,7 @@ class MsWordDocumentBackend(DeclarativeDocumentBackend):
namespaces = {
"a": ... |
DS4SD__docling-core-135 | [
{
"changes": {
"added_entities": [
"docling_core/types/doc/base.py:BoundingBox.resize_by_scale",
"docling_core/types/doc/base.py:BoundingBox.scale_to_size",
"docling_core/types/doc/base.py:BoundingBox.expand_by_scale",
"docling_core/types/doc/base.py:BoundingBox.intersectio... | DS4SD/docling-core | b787d53173e9e2325f25f03a7e442d5b4194e5a4 | feat: add escaping_underscores option to markdown export
If you use docling to prepare documents for input to gpt models using [RAG](https://en.wikipedia.org/wiki/Retrieval-augmented_generation), which uses [full-text-search](https://en.wikipedia.org/wiki/Full-text_search) or hybrid search, then you need to convert to ... | diff --git a/docling_core/types/doc/base.py b/docling_core/types/doc/base.py
index 74daacc..5ad50d8 100644
--- a/docling_core/types/doc/base.py
+++ b/docling_core/types/doc/base.py
@@ -1,6 +1,5 @@
"""Models for the base data types."""
-import copy
from enum import Enum
from typing import Tuple
@@ -53,33 +52,53 @... |
DakaraProject__dakara-base-16 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/dakara_base/progress_bar.py:progress_bar",
"src/dakara_base/progress_bar.py:null_bar"
],
"edited_modules": [
"src/dakara_base/progress_bar.py:progress_bar",
"src/... | DakaraProject/dakara-base | 6de07604ea982d516dfd0234495bef9fad2cd824 | Unknown exceptions are not displayed when progress bar is used
It looks like when an unknown exception is caught, the stderr wrapper is still active and the logs are hidden. | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 64cf9a6..4c45890 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -35,6 +35,14 @@
- You can now specify custom log format and log level in `dakara_base.config.create_logger` with arguments `custom_log_format` and `custom_log_level`.
- Access to and create user-level store... |
DakaraProject__dakara-base-21 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/dakara_base/config.py:create_logger"
],
"edited_modules": [
"src/dakara_base/config.py:create_logger"
]
},
"file": "src/dakara_base/config.py"
}
] | DakaraProject/dakara-base | ad366e6c53babfe7de856e17ae59063bd7545932 | Allow to set log format and level
Currently, `dakara_base.config.create_logger` setups logger using a fixed log format string and log level. This format and level should be adjustable. | diff --git a/CHANGELOG.md b/CHANGELOG.md
index c55cb8e..89002dd 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -30,6 +30,10 @@
## Unreleased
+### Added
+
+- You can now specify custom log format and log level in `dakara_base.config.create_logger` with arguments `custom_log_format` and `custom_log_level`.
+
## 1.... |
DakaraProject__dakara-base-41 | [
{
"changes": {
"added_entities": [
"src/dakara_base/directory.py:AppDirsPath.user_documents_dir",
"src/dakara_base/directory.py:AppDirsPath.user_runtime_dir"
],
"added_modules": null,
"edited_entities": null,
"edited_modules": [
"src/dakara_base/directory.py... | DakaraProject/dakara-base | 80ce6c447b218b7926976323b1c2a0ae8e7f5205 | Windows directories should use roaming | diff --git a/setup.cfg b/setup.cfg
index a1ad068..a29a50b 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -27,12 +27,12 @@ package_dir =
packages = find:
# dependencies are pinned by interval
install_requires =
- appdirs>=1.4.4,<1.5.0
coloredlogs>=15.0.1,<15.1.0
environs>=9.5.0,<9.6.0
fur... |
DakaraProject__dakara-base-63 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/dakara_base/config.py:create_config_file"
],
"edited_modules": [
"src/dakara_base/config.py:create_config_file"
]
},
"file": "src/dakara_base/config.py"
}
] | DakaraProject/dakara-base | 1f609b415994ce8cde460eb47ac41df93278d037 | Use `as_file` to get resources
[In `importlib.resources`](https://docs.python.org/3.11/library/importlib.resources.html), the `path` method has been deprecated since Python 3.11, the `as_file` method has been available since Python 3.9. | diff --git a/src/dakara_base/config.py b/src/dakara_base/config.py
index c53c198..504ec69 100644
--- a/src/dakara_base/config.py
+++ b/src/dakara_base/config.py
@@ -33,8 +33,9 @@ the configuration directory:
"""
import logging
-import shutil
from collections import UserDict
+from importlib.resources import as_file... |
DakaraProject__dakara-feeder-19 | [
{
"changes": {
"added_entities": [
"src/dakara_feeder/customization.py:split_path_object",
"src/dakara_feeder/customization.py:dir_in_path",
"src/dakara_feeder/customization.py:import_from_file",
"src/dakara_feeder/customization.py:import_from_module"
],
"added_... | DakaraProject/dakara-feeder | d8d63ae44586a2c220735a9a93500a5126d34024 | Set custom Song class with file path
The parameters could be:
```yaml
custom_song_module = mymodule
# or
custom_song_file = path/to/mymodule.py
custom_song_class = Song
``` | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 87259a7..0f0d16a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -41,6 +41,7 @@
- Name of the command changed from `dakara-feed` to `dakara-feeder`.
- Feed command for songs changed from `dakara-feed` to `dakara-feeder feed songs`.
+- Custom song class can be indicated... |
DanielSank__constraintula-14 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "constraintula/__init__.py"
},
{
"changes": {
"added_entities": [
"constraintula/core.py:NoSolution.__init__"
],
"added_modul... | DanielSank/constraintula | ce8db824210673e74b99a8ef7868db9535823682 | raise non-ValueError
In 8feb313825706ebc5e1ac2d1e0d3076576a0cc11 I added a `ValueError` when a system has no solution. I was thinking it would be a bit nicer to introduce a new error class (`NoSolution`?) to make this easier to catch. | diff --git a/constraintula/__init__.py b/constraintula/__init__.py
index 87b9c83..51e7acd 100644
--- a/constraintula/__init__.py
+++ b/constraintula/__init__.py
@@ -14,7 +14,7 @@
from sympy import sqrt, Symbol, symbols # type: ignore
-from .core import constrain, make_wrapper, System
+from .core import constrain,... |
DarekRepos__PanTadeuszWordFinder-92 | [
{
"changes": {
"added_entities": [
"ptwordfinder/commands/PTWordFinder.py:count_multiple_words_in_file",
"ptwordfinder/commands/PTWordFinder.py:count_word_in_file",
"ptwordfinder/commands/PTWordFinder.py:count_pattern_in_file"
],
"added_modules": [
"ptwordfinder... | DarekRepos/PanTadeuszWordFinder | 0e53db6553a68c2c37f126026ce31f7e58cf323a | Add search words from a patern | diff --git a/README.rst b/README.rst
index 8a1c5ad..7e9bc10 100644
--- a/README.rst
+++ b/README.rst
@@ -1,70 +1,118 @@
-PTWordFinder
-============
-
-|Build| |Tests Status| |Coverage Status| |Flake8 Status|
-
-“What specific words would you like to read?” Counting words in “Pan
-Tadeusz” poem
-
-Python version
-------... |
DarekRepos__PanTadeuszWordFinder-94 | [
{
"changes": {
"added_entities": [
"ptwordfinder/commands/PTWordFinder.py:count_multiple_words_in_file",
"ptwordfinder/commands/PTWordFinder.py:count_word_in_file",
"ptwordfinder/commands/PTWordFinder.py:count_pattern_in_file"
],
"added_modules": [
"ptwordfinder... | DarekRepos/PanTadeuszWordFinder | c6043e3a32adb7a7fab662d2ef07a6a32afb75e5 | Add search words from a patern | diff --git a/README.rst b/README.rst
index 8a1c5ad..11ed052 100644
--- a/README.rst
+++ b/README.rst
@@ -1,70 +1,120 @@
-PTWordFinder
-============
-
-|Build| |Tests Status| |Coverage Status| |Flake8 Status|
-
-“What specific words would you like to read?” Counting words in “Pan
-Tadeusz” poem
-
-Python version
-------... |
DarkEnergySurvey__mkauthlist-16 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"mkauthlist/mkauthlist.py:write_contributions"
],
"edited_modules": [
"mkauthlist/mkauthlist.py:write_contributions"
]
},
"file": "mkauthlist/mkauthlist.py"
}
] | DarkEnergySurvey/mkauthlist | 15365e9ab90a623e3109739dd3f9c7d1fbb91fb7 | Python 3 byte strings
The Python 3 `str` object is based on Unicode, which means that `file.write(..., 'wb')` doesn't work anymore. We need to change this, but we should probably also understand why we were specifying `'wb'` in the first place.
Some documentation on the Python 3 change:
https://www.python.org/dev/p... | diff --git a/.gitignore b/.gitignore
index 5b6ffac..086cdcc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,4 +10,5 @@ dist
*.out
*.aux
*.log
-*.spl
\ No newline at end of file
+*.spl
+*.cls
\ No newline at end of file
diff --git a/data/author_order.csv b/data/author_order.csv
index 3749293..de4b8f3 100644
--- a/dat... |
DarkEnergySurvey__mkauthlist-29 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "mkauthlist/mkauthlist.py"
}
] | DarkEnergySurvey/mkauthlist | 2644d26323e073616ccad45dea426bb9c485ee3a | Ordering with duplicate lastnames
We currently throw an error when ordering on non-unique last names. We should be able to explicitly use author first names in ordering, but we currently don't require first names be included in the ordering file. This was causing issues for @joezuntz. | diff --git a/data/author_order.csv b/data/author_order.csv
index de4b8f3..e3bd9af 100644
--- a/data/author_order.csv
+++ b/data/author_order.csv
@@ -3,4 +3,5 @@ Sheldon, Erin
#Commented, Name
Drlica-Wagner
Rykoff
-Plazas Malagón
\ No newline at end of file
+Plazas Malagón
+Sanchez, Carles
diff --git a/data/example_a... |
DataBiosphere__toil-4044 | [
{
"changes": {
"added_entities": [
"src/toil/batchSystems/kubernetes.py:KubernetesBatchSystem._apply_placement_constraints"
],
"added_modules": null,
"edited_entities": [
"src/toil/batchSystems/kubernetes.py:KubernetesBatchSystem._create_affinity",
"src/toil/batch... | DataBiosphere/toil | 29ebf5374d00821346991493e7b2ab10bc29faf4 | Preemptable Toil Kubernetes pods should tolerate the `cloud.google.com/gke-preemptible="true"` taint
A Kubernetes cluster might want to taint preemptable nodes. The only vaguely standard taint I have found for this is `cloud.google.com/gke-preemptible="true"`. I'm going to put it on some autoscaling nodes on the GI Kub... | diff --git a/src/toil/batchSystems/kubernetes.py b/src/toil/batchSystems/kubernetes.py
index 6f561c7b..362b18ac 100644
--- a/src/toil/batchSystems/kubernetes.py
+++ b/src/toil/batchSystems/kubernetes.py
@@ -332,48 +332,101 @@ class KubernetesBatchSystem(BatchSystemCleanupSupport):
self.user_script = userScript... |
DataBiosphere__toil-4077 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "docker/Dockerfile.py"
},
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/toil/batchS... | DataBiosphere/toil | b6b33030b165ac03a823f08b00f8fd8fa7590520 | Toil can't start when the current user has no username
As reported in https://github.com/ComparativeGenomicsToolkit/cactus/issues/677, the Kubernetes batch system calls `getpass.getuser()` when composing command line options, as Toil is starting up, but doesn't handle the `KeyError` it raises if you're running as a UID... | diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 89ac5dfe..901f7a19 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -97,9 +97,7 @@ py37_main:
- virtualenv -p python3.7 venv && . venv/bin/activate && pip install -U pip wheel && make prepare && make develop extras=[all] packages='htcondor awscli'
- make t... |
DataBiosphere__toil-4082 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"contrib/admin/cleanup_aws_resources.py:main"
],
"edited_modules": [
"contrib/admin/cleanup_aws_resources.py:main"
]
},
"file": "contrib/admin/cleanup_aws_resources.py"
... | DataBiosphere/toil | a98acdb5cbe0f850b2c11403d147577d9971f4e1 | Keep workflow metadata between Toil server container restarts, on AGC
AGC gets mad if an engine ever forgets about a workflow that ran.
Toil _can_ remember workflows between server invocations, if its workflow directories are kept around. But right now the Toil server container we use for AGC keeps all its state in th... | diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e5aaf392..23a3fd0d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -36,7 +36,7 @@ before_script:
- sudo apt-get install -y software-properties-common build-essential virtualenv
- sudo add-apt-repository -y ppa:deadsnakes/ppa
- sudo apt-get update
- - sudo... |
DataBiosphere__toil-4161 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/toil/server/wes/abstract_backend.py:WESBackend.collect_attachments"
],
"edited_modules": [
"src/toil/server/wes/abstract_backend.py:WESBackend"
]
},
"file": "src/to... | DataBiosphere/toil | 483c24f9e00d7a9795e43a440e0f5416e4d91004 | Toil WES support change workflow_params to be optional
When launching a workflow using a Toil WES server, the `workflow_params` (input JSON file) is required, even if the workflow itself takes no inputs. Not including the `workflow_params` body part in the HTTP request causes the WEs server to return an error:
```
io.o... | diff --git a/src/toil/server/wes/abstract_backend.py b/src/toil/server/wes/abstract_backend.py
index 2033913d..d37d1636 100644
--- a/src/toil/server/wes/abstract_backend.py
+++ b/src/toil/server/wes/abstract_backend.py
@@ -256,7 +256,8 @@ class WESBackend:
else:
raise MalformedRequestException("Mi... |
DataBiosphere__toil-4445 | [
{
"changes": {
"added_entities": [
"src/toil/common.py:Config.prepare_start",
"src/toil/common.py:Config.prepare_restart"
],
"added_modules": null,
"edited_entities": [
"src/toil/common.py:Config.__init__",
"src/toil/common.py:Toil.__enter__"
],
... | DataBiosphere/toil | 2804edfc6128c2c9e66ff348696eda95cb63b400 | Toil relying on tmpfile directory structure during --restart
This came up here: https://github.com/ComparativeGenomicsToolkit/cactus/issues/987 and, from the stack trace, doesn't look like it's coming from Cactus (?).
The user reruns with `--restart` and Toil tries to write a temporary file into a temporary direct... | diff --git a/src/toil/common.py b/src/toil/common.py
index d0eb1bc8..d4a8c73c 100644
--- a/src/toil/common.py
+++ b/src/toil/common.py
@@ -198,7 +198,7 @@ class Config:
self.writeLogs = None
self.writeLogsGzip = None
self.writeLogsFromAllJobs: bool = False
- self.write_messages: str = ... |
DataBiosphere__toil-4524 | [
{
"changes": {
"added_entities": [
"src/toil/wdl/wdltoil.py:WDLBaseJob.then_underlay",
"src/toil/wdl/wdltoil.py:WDLBaseJob.then_remove",
"src/toil/wdl/wdltoil.py:WDLBaseJob.then_namespace",
"src/toil/wdl/wdltoil.py:WDLBaseJob.then_overlay",
"src/toil/wdl/wdltoil.py:... | DataBiosphere/toil | 167a6ccfb198141c9dd59b19d5b1f1b2fb92a355 | Refactor WDL interpreter to run multiple WDL workflow nodes per Toil job
The other half of #4388 is to divide up the WDL workflow node graph into components that can be run as units on the leader node, so we don't need so many distinct Toil jobs.
┆Issue is synchronized with this [Jira Story](https://ucsc-cgl.atlassian... | diff --git a/requirements-wdl.txt b/requirements-wdl.txt
index 334a1ed6..3ca204aa 100644
--- a/requirements-wdl.txt
+++ b/requirements-wdl.txt
@@ -1,2 +1,3 @@
miniwdl==1.10.0
wdlparse==0.1.0
+graphlib-backport==1.0 ; python_version < '3.9'
diff --git a/src/toil/common.py b/src/toil/common.py
index 82b418f2..0faedf4c ... |
DataBiosphere__toil-4755 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/toil/cwl/cwltoil.py:CWLJob.run"
],
"edited_modules": [
"src/toil/cwl/cwltoil.py:CWLJob"
]
},
"file": "src/toil/cwl/cwltoil.py"
},
{
"changes": {
"adde... | DataBiosphere/toil | 1821782b9ec40431e8afa36030fb8ee5df943003 | Feature request: workflow logs for toil-wdl-runner
I'd like to request a new feature added to toil-wdl-runner, for outputting a log file that only includes stderr and stdout from the wdl itself, and doesn't include any of the toil log messages. Currently, when using --log-Debug I see the stdout from my wdl task intersp... | diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 70cfd070..aff41a13 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -39,7 +39,7 @@ before_script:
# a service account bearer token for auth and triggers https://github.com/docker/buildx/issues/267
# where buildx can't use a bearer token from a kube config and ... |
DataBiosphere__toil-4802 | [
{
"changes": {
"added_entities": [
"src/toil/batchSystems/abstractBatchSystem.py:BatchJobExitReason.to_string"
],
"added_modules": null,
"edited_entities": null,
"edited_modules": [
"src/toil/batchSystems/abstractBatchSystem.py:UpdatedBatchJobInfo",
"src/toi... | DataBiosphere/toil | 7166aa20554e02638d8afc638d2fadc30e23066d | Slurm job timeout doesn't seem to register as failure
I just ran into the Slurm time limit for the first time. From the Toil logs, it looks like my job starts again, with no job failure or error message. Since there's nothing about deprecating `retryCount`, I suspect it may go on forever. It's only by looking in the... | diff --git a/src/toil/batchSystems/abstractBatchSystem.py b/src/toil/batchSystems/abstractBatchSystem.py
index 9da541de..fd0b30f9 100644
--- a/src/toil/batchSystems/abstractBatchSystem.py
+++ b/src/toil/batchSystems/abstractBatchSystem.py
@@ -59,13 +59,28 @@ class BatchJobExitReason(enum.IntEnum):
MEMLIMIT: int = ... |
DataBiosphere__toil-4805 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/toil/options/common.py:add_base_toil_options"
],
"edited_modules": [
"src/toil/options/common.py:add_base_toil_options"
]
},
"file": "src/toil/options/common.py"
... | DataBiosphere/toil | 6558c7f97fb37c6ef6f469c7ae614109050322f4 | FileJobStore's default_caching() result of False is not respected
The `FileJobStore` is supposed to be able to set a default of no caching on the workflow:
https://github.com/DataBiosphere/toil/blob/e45b27cb3086fc57f35653562357ab9537f45d4e/src/toil/jobStores/fileJobStore.py#L70-L78
But this no longer works. If I run a... | diff --git a/src/toil/options/common.py b/src/toil/options/common.py
index 61086f3d..5c041f3b 100644
--- a/src/toil/options/common.py
+++ b/src/toil/options/common.py
@@ -733,4 +733,4 @@ def add_base_toil_options(parser: ArgumentParser, jobstore_as_flag: bool = False
# dest is set to enableCaching to not conflic... |
DataBiosphere__toil-4809 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/toil/worker.py:nextChainable"
],
"edited_modules": [
"src/toil/worker.py:nextChainable"
]
},
"file": "src/toil/worker.py"
}
] | DataBiosphere/toil | c37f123ef2c67637f2aeec09ef2d6dddcfce90fd | toil-wdl-runner can run task containers on the leader
@jeizenga has a workflow where the first task doesn't ask for more than the default amount of resources. So we kick off the `WDLRootJob` locally on the leader, and it chains to a call-a-task job, which chains to the actual task job, which doesn't need to reschedule ... | diff --git a/src/toil/worker.py b/src/toil/worker.py
index 13d9a668..2f086c9f 100644
--- a/src/toil/worker.py
+++ b/src/toil/worker.py
@@ -118,6 +118,14 @@ def nextChainable(predecessor: JobDescription, jobStore: AbstractJobStore, confi
logger.debug("Next job is checkpoint, so finishing")
return None
... |
DataBiosphere__toil-4873 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/toil/batchSystems/abstractGridEngineBatchSystem.py:AbstractGridEngineBatchSystem.__init__",
"src/toil/batchSystems/abstractGridEngineBatchSystem.py:AbstractGridEngineBatchSystem.killBatchJob... | DataBiosphere/toil | c566f315393f65804ead58e8f3878b010fff1cfe | Failed `sbatch` may hang a workflow
Mira noticed that a workflow she was running reported a failed `sbatch` command, and then reported a long run of `squeue` commands succeeding while apparently doing nothing.
It may be that a failed `sbatch` can kill a job submission thread that we need to be alive for the workflow n... | diff --git a/src/toil/batchSystems/abstractGridEngineBatchSystem.py b/src/toil/batchSystems/abstractGridEngineBatchSystem.py
index 98b48945..f41b3d0c 100644
--- a/src/toil/batchSystems/abstractGridEngineBatchSystem.py
+++ b/src/toil/batchSystems/abstractGridEngineBatchSystem.py
@@ -45,20 +45,21 @@ class AbstractGridEng... |
DataBiosphere__toil-5046 | [
{
"changes": {
"added_entities": [
"src/toil/wdl/wdltoil.py:choose_human_readable_directory"
],
"added_modules": [
"src/toil/wdl/wdltoil.py:choose_human_readable_directory"
],
"edited_entities": [
"src/toil/wdl/wdltoil.py:pack_toil_uri",
"src/toil/wd... | DataBiosphere/toil | 7d4d0749e9f5ffcc2a4507e13e940e46400a020d | Name WDL output subdirectories with human-readable names instead of UUIDs
I ran a WDL workflow, and I got an output directory that looks like this:
```
.
├── 045a7e47-d56d-4fcc-809f-c710bb9dee26
│ ├── HG002.chr1.bam
│ ├── HG002.chr1.bam.bai
│ ├── HG002.chr10.bam
│ ├── HG002.chr10.bam.bai
│ ├── HG002.chr11.ba... | diff --git a/src/toil/wdl/wdltoil.py b/src/toil/wdl/wdltoil.py
index 8d560719..72a8a372 100755
--- a/src/toil/wdl/wdltoil.py
+++ b/src/toil/wdl/wdltoil.py
@@ -593,17 +593,24 @@ TOIL_URI_SCHEME = 'toilfile:'
# We also want to store the filename even if it does not exist, so use a sentinel URI scheme (can be useful in e... |
DataBiosphere__toil-5047 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/toil/common.py:Config.setOptions"
],
"edited_modules": [
"src/toil/common.py:Config"
]
},
"file": "src/toil/common.py"
},
{
"changes": {
"added_entiti... | DataBiosphere/toil | b5fd30759e998efd6295b6e39c9a4a55f4badd1d | Allow CWL and WDL workflows to minimize access to a shared-filesystem file job store
We're having some trouble on our Phoenix Slurm cluster, where Toil workflows are putting a high load on the NFS share where the input data and/or file job store are kept.
This is probably due to using symlinks and hardlinks as much as... | diff --git a/docs/running/cliOptions.rst b/docs/running/cliOptions.rst
index c66c69c4..e4a8a96e 100644
--- a/docs/running/cliOptions.rst
+++ b/docs/running/cliOptions.rst
@@ -286,6 +286,13 @@ Allows configuring Toil's data storage.
to use a batch system that does not support
... |
DataBiosphere__toil-5061 | [
{
"changes": {
"added_entities": [
"src/toil/batchSystems/abstractGridEngineBatchSystem.py:ExceededRetryAttempts.__init__"
],
"added_modules": [
"src/toil/batchSystems/abstractGridEngineBatchSystem.py:ExceededRetryAttempts"
],
"edited_entities": null,
"edited_... | DataBiosphere/toil | 9e0ab6cae7360b5694b22580a3421179342ea7fc | run cactus on the grid_engine cluster
Hi,
I am trying to run `cactus v2.8.4` on a grid_engine cluster with the following command:
```
cactus ./js ./test.txt test.hal --workDir ./temp --maxCores 24 --maxMemory 200G --doubleMem true --realTimeLogging True --batchSystem grid_engine
```
I am keeping to get the error `NotI... | diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e67f1ecd..b277e5cc 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -477,6 +477,22 @@ mesos:
- make test threads="${TEST_THREADS}" tests=src/toil/test/src/promisedRequirementTest.py::MesosPromisedRequirementsTest
- make test threads="${TEST_THREADS}" tests... |
DataDog__datadog-lambda-python-214 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"datadog_lambda/tag_object.py:tag_object"
],
"edited_modules": [
"datadog_lambda/tag_object.py:tag_object"
]
},
"file": "datadog_lambda/tag_object.py"
}
] | DataDog/datadog-lambda-python | 1f59f3a8821aef37a02e5099a5112d938e57e9c1 | When the response of lambda contain data of type Decimal, datadog raise except TypeError: 'decimal.Decimal' object is not iterable
## Expected Behavior
When return response from DynamoDB and DynamoDB contains data of type Decimal
## Actual Behavior
Get data of DynamoDB that contains data of type Decimal and raise... | diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 0d00bfc..7d7884d 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -101,7 +101,7 @@ jobs:
run: sudo yarn global add serverless@^2.72.2 --prefix /usr/local
- name: Install Crossbuild Deps
run... |
DataDog__datadogpy-118 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"datadog/dogstatsd/base.py:DogStatsd.__init__",
"datadog/dogstatsd/base.py:DogStatsd._report"
],
"edited_modules": [
"datadog/dogstatsd/base.py:DogStatsd"
]
},
"... | DataDog/datadogpy | c8bc9d6cce1caebea0be16366f2cd0c3efb47571 | Prefix support
Please, add prefix support like Java and C#:
https://github.com/DataDog/dogstatsd-csharp-client/blob/master/src/StatsdClient/StatsdConfig.cs#L8
https://github.com/indeedeng/java-dogstatsd-client/blob/master/src/main/java/com/timgroup/statsd/NonBlockingStatsDClient.java#L120 | diff --git a/datadog/dogstatsd/base.py b/datadog/dogstatsd/base.py
index 7e0e11d..2f7725c 100644
--- a/datadog/dogstatsd/base.py
+++ b/datadog/dogstatsd/base.py
@@ -22,7 +22,7 @@ log = logging.getLogger('dogstatsd')
class DogStatsd(object):
OK, WARNING, CRITICAL, UNKNOWN = (0, 1, 2, 3)
- def __init__(self, h... |
DataDog__datadogpy-382 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"datadog/api/resources.py:ActionAPIResource._trigger_class_action",
"datadog/api/resources.py:ActionAPIResource._trigger_action"
],
"edited_modules": [
"datadog/api/resources.... | DataDog/datadogpy | 500e96369108eee6eef6378a64efbe2dab898f3b | api.Monitor.search() returns "400 malformed request" html
Any call to _api.Monitor.search()_ with parameters or without returns a 400 status code as response. For this call the request body is an empty JSON object('{}') rather than being _None_ (as for other 'GET' requests) and the headers accordingly contain _'Content... | diff --git a/datadog/api/resources.py b/datadog/api/resources.py
index ad53a50..23b3663 100644
--- a/datadog/api/resources.py
+++ b/datadog/api/resources.py
@@ -373,7 +373,9 @@ class ActionAPIResource(object):
resource_id=id,
action_name=name
)
-
+ if method == "GET... |
DataDog__datadogpy-545 | [
{
"changes": {
"added_entities": [
"datadog/threadstats/base.py:ThreadStats.set"
],
"added_modules": null,
"edited_entities": null,
"edited_modules": [
"datadog/threadstats/base.py:ThreadStats"
]
},
"file": "datadog/threadstats/base.py"
},
{
"c... | DataDog/datadogpy | 0ac41036382b9dc418afe367923ce14d7cdc4314 | Threadstatsd set metric
There appears to be a disconnect between dogstatd and threadstatsd.
the `set` method is not supported. What is the equivalent in the thread version?
https://github.com/DataDog/datadogpy/blob/master/datadog/dogstatsd/base.py#L227
| diff --git a/datadog/threadstats/base.py b/datadog/threadstats/base.py
index ec89c3e..87421a0 100644
--- a/datadog/threadstats/base.py
+++ b/datadog/threadstats/base.py
@@ -7,20 +7,21 @@ performance. It collects metrics in the application thread with very little over
and allows flushing metrics in process, in a thread... |
DataDog__datadogpy-555 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"datadog/dogshell/wrap.py:build_event_body"
],
"edited_modules": [
"datadog/dogshell/wrap.py:build_event_body"
]
},
"file": "datadog/dogshell/wrap.py"
}
] | DataDog/datadogpy | 6319ebde0e6bce51c5f6c21f253204c3a13f4d92 | String decode in dogwrap
**Describe the bug**
The parameters `notify_success`, `notify_warning` and `notify_error` cause the `AttributeError` shown below to be thrown when used.
```
Traceback (most recent call last):
File "/usr/local/bin/dogwrap", line 8, in <module>
sys.exit(main())
File "/usr/local/li... | diff --git a/datadog/dogshell/wrap.py b/datadog/dogshell/wrap.py
index 022b333..a454d33 100644
--- a/datadog/dogshell/wrap.py
+++ b/datadog/dogshell/wrap.py
@@ -211,8 +211,9 @@ def build_event_body(cmd, returncode, stdout, stderr, notifications):
)
if notifications:
+ notifications = notification... |
DataDog__datadogpy-585 | [
{
"changes": {
"added_entities": [
"datadog/api/http_client.py:_get_user_agent_header"
],
"added_modules": [
"datadog/api/http_client.py:_get_user_agent_header"
],
"edited_entities": [
"datadog/api/http_client.py:RequestClient.request",
"datadog/api/... | DataDog/datadogpy | 3b5b03198899bee8d4d1bb6cc0ee1f398f6bafc0 | Fails to install with pip 8.1.1
**Describe the bug**
A minor issue, since it only happens with very old pip versions, but datadogpy fails to install because configparser>=5 is not compatible with any python2. [Their documentation ](https://github.com/jaraco/configparser/blob/master/CHANGES.rst#v500) says "this should ... | diff --git a/datadog/api/http_client.py b/datadog/api/http_client.py
index fa5be42..6d1f599 100644
--- a/datadog/api/http_client.py
+++ b/datadog/api/http_client.py
@@ -9,7 +9,9 @@ Priority:
2. `urlfetch` 3p module - Google App Engine only
"""
# stdlib
+import copy
import logging
+import platform
import urllib
fr... |
DataDog__datadogpy-625 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"datadog/threadstats/base.py:ThreadStats.__init__"
],
"edited_modules": [
"datadog/threadstats/base.py:ThreadStats"
]
},
"file": "datadog/threadstats/base.py"
}
] | DataDog/datadogpy | b9449d6ae2a378ed6986b7977ed547f2c63beeef | DD_ENV (SERVICE, VERSION) are not used in ThreadStats
https://github.com/DataDog/datadogpy/pull/548 added support for taking unified tags from env vars, but it doesn't works when using ThreadStats in the following way:
```
>>> from datadog import initialize, ThreadStats
>>> initialize(api_key='my_api_key')
>>> st... | diff --git a/datadog/threadstats/base.py b/datadog/threadstats/base.py
index 5fc8a4e..84041bb 100644
--- a/datadog/threadstats/base.py
+++ b/datadog/threadstats/base.py
@@ -31,6 +31,12 @@ from datadog.threadstats.reporters import HttpReporter
# Loggers
log = logging.getLogger('datadog.threadstats')
+DD_ENV_TAGS_MAP... |
DataDog__datadogpy-76 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"datadog/__init__.py:initialize"
],
"edited_modules": [
"datadog/__init__.py:initialize"
]
},
"file": "datadog/__init__.py"
},
{
"changes": {
"added_entiti... | DataDog/datadogpy | 2c49469f45e6f84f17ba72875a97976277ce1a14 | Error handling: APIError is never raised
This library never returns the status code of the http request.
Instead, when the status code is 400, 403 or 404, it is supposed to raise an APIError exception with the content of the errors field received from the dispatcher.(https://github.com/DataDog/datadogpy/blob/master/da... | diff --git a/datadog/__init__.py b/datadog/__init__.py
index 92c4d55..2dbe54e 100644
--- a/datadog/__init__.py
+++ b/datadog/__init__.py
@@ -7,14 +7,17 @@ It contains:
without hindering performance.
* datadog.dogshell: a command-line tool, wrapping datadog.api, to interact with Datadog REST API.
"""
+# stdlib
from ... |
DataDog__dd-trace-py-1054 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"ddtrace/tracer.py:Tracer.__init__",
"ddtrace/tracer.py:Tracer.configure"
],
"edited_modules": [
"ddtrace/tracer.py:Tracer"
]
},
"file": "ddtrace/tracer.py"
}
... | DataDog/dd-trace-py | 3576559cfcfe8491bb4deef498c059080f3162f6 | Request: set uds_path via an environment variable
dd-trace-py supports unix domain socket connection https://github.com/DataDog/dd-trace-py/pull/975.
It would be nice dd-trace-py allows us to set uds_path via an environment variable,
say `DATADOG_TRACE_UDS_PATH=/path/to/apm.socket`. | diff --git a/ddtrace/tracer.py b/ddtrace/tracer.py
index bc238ca5d..8ecba7564 100644
--- a/ddtrace/tracer.py
+++ b/ddtrace/tracer.py
@@ -38,11 +38,14 @@ class Tracer(object):
DEFAULT_HOSTNAME = environ.get('DD_AGENT_HOST', environ.get('DATADOG_TRACE_AGENT_HOSTNAME', 'localhost'))
DEFAULT_PORT = int(environ.ge... |
DataDog__dd-trace-py-1080 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"ddtrace/utils/sizeof.py:iter_object"
],
"edited_modules": [
"ddtrace/utils/sizeof.py:iter_object"
]
},
"file": "ddtrace/utils/sizeof.py"
}
] | DataDog/dd-trace-py | 1f84908909070e9ae75f97a21a159e7de1063edb | Exception raised with sizeof of some spans
With `master`:
```
Exception in thread AgentWriter:
Traceback (most recent call last):
File "/opt/dogweb/pyenv/versions/2.7.12/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/opt/dogweb/pyenv/versions/2.7.12/lib/python2.7/threading... | diff --git a/ddtrace/utils/sizeof.py b/ddtrace/utils/sizeof.py
index 1b4e56132..4fcb0e675 100644
--- a/ddtrace/utils/sizeof.py
+++ b/ddtrace/utils/sizeof.py
@@ -2,10 +2,16 @@ import collections
import sys
from itertools import chain
+_UNSET = object()
+
def iter_object(o):
if hasattr(o, '__slots__'):
- ... |
DataDog__dd-trace-py-1106 | [
{
"changes": {
"added_entities": [
"ddtrace/internal/writer.py:AgentWriter.recreate"
],
"added_modules": null,
"edited_entities": [
"ddtrace/internal/writer.py:AgentWriter.__init__",
"ddtrace/internal/writer.py:AgentWriter._reset_queue",
"ddtrace/internal/... | DataDog/dd-trace-py | d25109514bf4488a5e7f3042a960f92122fc8f1e | Django API APM traces disappeared after upgrade from 0.29.0 to 0.30.0
In talking with @brettlangdon we couldn't find a quick solution, but downgrading the library version brought them back. Interestingly enough, even the custom traces we were using within the API disappeared but all the ones that exist outside of Djang... | diff --git a/ddtrace/internal/writer.py b/ddtrace/internal/writer.py
index 64dbe15dd..7ee814c52 100644
--- a/ddtrace/internal/writer.py
+++ b/ddtrace/internal/writer.py
@@ -1,7 +1,6 @@
# stdlib
import itertools
import random
-import os
import time
from .. import api
@@ -33,7 +32,7 @@ class AgentWriter(_worker.Pe... |
DataDog__dd-trace-py-1116 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"ddtrace/internal/logger.py:DDLogger.handle"
],
"edited_modules": [
"ddtrace/internal/logger.py:DDLogger"
]
},
"file": "ddtrace/internal/logger.py"
}
] | DataDog/dd-trace-py | 63b0463482dfad78f7801ef784d709950ff3cea1 | DDLogger rewrites LogRecord.msg, which causes Sentry events duplication
Sentry uses `LogRecord.msg` to identify log events. LogRecord.msg is the log message template, to be formatted on demand.
When rewriting `msg`, one should not enrich it with arbitrary values, like `logging_bucket.skipped`.
The line
```
... | diff --git a/ddtrace/internal/logger.py b/ddtrace/internal/logger.py
index f14037cc9..6b9930531 100644
--- a/ddtrace/internal/logger.py
+++ b/ddtrace/internal/logger.py
@@ -110,7 +110,8 @@ class DDLogger(logging.Logger):
if logging_bucket.bucket != current_bucket:
# Append count of skipped message... |
DataDog__dd-trace-py-1193 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"ddtrace/_worker.py:PeriodicWorkerThread._atexit",
"ddtrace/_worker.py:PeriodicWorkerThread.__init__",
"ddtrace/_worker.py:PeriodicWorkerThread.start"
],
"edited_modules": [
... | DataDog/dd-trace-py | 1e87c9bdf7769032982349c4ccc0e1c2e6866a16 | `ddtrace>=0.30.0` starts a thread at import, leading to issues with gevent.monkey.patch_all
# Package versions
```
% python --version
Python 3.7.6
```
```
% pip freeze
ddtrace==0.33.0
gevent==1.4.0
greenlet==0.4.15
psutil==5.6.7
```
This occurs with `python>=3.6`, `gevent>=1.3` (older versions are not... | diff --git a/ddtrace/_worker.py b/ddtrace/_worker.py
index ed25db418..8b2b6db7a 100644
--- a/ddtrace/_worker.py
+++ b/ddtrace/_worker.py
@@ -32,13 +32,14 @@ class PeriodicWorkerThread(object):
self._thread = threading.Thread(target=self._target, name=name)
self._thread.daemon = daemon
self._s... |
DataDog__dd-trace-py-1607 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"ddtrace/contrib/aiohttp/middlewares.py:on_prepare"
],
"edited_modules": [
"ddtrace/contrib/aiohttp/middlewares.py:on_prepare"
]
},
"file": "ddtrace/contrib/aiohttp/midd... | DataDog/dd-trace-py | d6c77e6f8d9a337774312ce02ee124eb81029c12 | Global config of query string tracing fails with `AttributeError`
### Which version of dd-trace-py are you using?
`0.40.0`
### Which version of the libraries are you using?
on python 3.6.10
can provide library list if really necessary
### How can we reproduce your problem?
As per the instructions in [advanc... | diff --git a/ddtrace/contrib/aiohttp/middlewares.py b/ddtrace/contrib/aiohttp/middlewares.py
index e38237d2b..f053ee679 100644
--- a/ddtrace/contrib/aiohttp/middlewares.py
+++ b/ddtrace/contrib/aiohttp/middlewares.py
@@ -108,7 +108,7 @@ def on_prepare(request, response):
# DEV: aiohttp is special case maintains se... |
DataDog__dd-trace-py-887 | [
{
"changes": {
"added_entities": [
"ddtrace/internal/runtime/runtime_metrics.py:RuntimeWorker.join"
],
"added_modules": null,
"edited_entities": [
"ddtrace/internal/runtime/runtime_metrics.py:RuntimeWorker.__init__"
],
"edited_modules": [
"ddtrace/inte... | DataDog/dd-trace-py | 9bd0bd2e4b499c817492b3bf9ee4d5fba49c9751 | tests.internal.runtime.test_runtime_metrics.TestRuntimeWorker.test_worker_metrics fails randomly
```
def test_worker_metrics(self):
self.tracer.configure(collect_metrics=True)
with self.override_global_tracer(self.tracer):
self.tracer._dogstatsd_client = DogStatsd()
... | diff --git a/ddtrace/internal/runtime/runtime_metrics.py b/ddtrace/internal/runtime/runtime_metrics.py
index 1ef7c3d88..b7b2c8482 100644
--- a/ddtrace/internal/runtime/runtime_metrics.py
+++ b/ddtrace/internal/runtime/runtime_metrics.py
@@ -60,10 +60,10 @@ class RuntimeWorker(object):
FLUSH_INTERVAL = 10
- ... |
DataDog__dd-trace-py-959 | [
{
"changes": {
"added_entities": [
"ddtrace/sampler.py:RateByServiceSampler._key",
"ddtrace/sampler.py:RateByServiceSampler._get_new_by_service_sampler"
],
"added_modules": null,
"edited_entities": [
"ddtrace/sampler.py:_key",
"ddtrace/sampler.py:RateBySer... | DataDog/dd-trace-py | 411f218f5ce906c2328ea0e4321d334a5d8e6705 | Stuck in "Waiting for GIL"
Hi,
We found a thread that seems blocked forever:
```
gdb python 30107
```
Here's the single thread:
```
(gdb) info threads
Id Target Id Frame
* 1 Thread 0x7f1dd852e4c0 (LWP 30107) "/opt/simon/rele" 0x00007f1dd7d2e146 in do_futex_wait.constprop () from /lib64/l... | diff --git a/ddtrace/sampler.py b/ddtrace/sampler.py
index 7d14005ee..11a43db9e 100644
--- a/ddtrace/sampler.py
+++ b/ddtrace/sampler.py
@@ -2,8 +2,6 @@
Any `sampled = False` trace won't be written, and can be ignored by the instrumentation.
"""
-from threading import Lock
-
from .compat import iteritems
from .in... |
DavAug__ErlotinibGefitinib-12 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "pkpd/plots/__init__.py"
},
{
"changes": {
"added_entities": [
"pkpd/plots/_scatter.py:plot_measurements_and_simulation",
"pkpd/p... | DavAug/ErlotinibGefitinib | f6fe6ede9e62da9a78b1130efc12d2a2fe95af5f | define a plot function with allows model exploration with parameter sliders | diff --git a/pkpd/plots/__init__.py b/pkpd/plots/__init__.py
index 055e5f0..d251bd5 100644
--- a/pkpd/plots/__init__.py
+++ b/pkpd/plots/__init__.py
@@ -7,7 +7,8 @@
from ._scatter import ( # noqa
plot_measurements,
- plot_measurements_and_predictions
+ plot_measurements_and_predictions,
+ plot_measure... |
DavAug__ErlotinibGefitinib-13 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "pkpd/__init__.py"
},
{
"changes": {
"added_entities": [
"pkpd/_likelihoods.py:PooledLogPDF.__init__",
"pkpd/_likelihoods.py:Pool... | DavAug/ErlotinibGefitinib | 407f42f622094cb7b2e43e9935ad71168f9098ca | SharedNoiseLogLikelihood
Implemement a pints.LogPDF that allows to share the noise parameters between problems. | diff --git a/pkpd/__init__.py b/pkpd/__init__.py
index bc620e0..52948fa 100644
--- a/pkpd/__init__.py
+++ b/pkpd/__init__.py
@@ -9,7 +9,8 @@ import os
from ._likelihoods import ( # noqa
ConstantAndMultiplicativeGaussianLogLikelihood,
- FixedEtaLogLikelihoodWrapper
+ FixedEtaLogLikelihoodWrapper,
+ Poo... |
David-Wobrock__sqlvalidator-17 | [
{
"changes": {
"added_entities": [
"sqlvalidator/file_formatter.py:is_select_string"
],
"added_modules": [
"sqlvalidator/file_formatter.py:is_select_string"
],
"edited_entities": [
"sqlvalidator/file_formatter.py:get_formatted_file_content"
],
"e... | David-Wobrock/sqlvalidator | 4b3ce553c8599a161144f168de41d8ee9b38d9ea | Implement automatic 'SELECT' detection
Currently to format a SQL string, you need to mark it with `# sqlformat` comment (so that it's easy to not format a SQL string when the sqlvalidator is buggy).
We should also be able to automatically let the `SELECT` statements be formatted (and have a comment to not format som... | diff --git a/README.md b/README.md
index fbfa604..2461e3f 100644
--- a/README.md
+++ b/README.md
@@ -15,7 +15,7 @@ SQL queries formatting, syntactic and semantic validation
_sql.py_
```
def fun():
- return "select col1, column2 from table" # sqlformat
+ return "select col1, column2 from table"
```
Command... |
David-Wobrock__sqlvalidator-40 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"sqlvalidator/grammar/lexer.py:ExpressionParser.parse"
],
"edited_modules": [
"sqlvalidator/grammar/lexer.py:ExpressionParser"
]
},
"file": "sqlvalidator/grammar/lexer.p... | David-Wobrock/sqlvalidator | f0b72774e2c45c2da199186d0f5afcbd7d7bbdb9 | `SELECT * REPLACE` isn't currently handled
Hi David,
https://cloud.google.com/bigquery/docs/reference/standard-sql/query-syntax#select_replace
sqlvalidator 0.0.18:
```diff
- SELECT * REPLACE('bar' AS foo)
+ SELECT * REPLACE
```
A quick unit test causes
```
self = <Alias: <Column: '*'> as=False 'REPLACE... | diff --git a/sqlvalidator/grammar/lexer.py b/sqlvalidator/grammar/lexer.py
index d48cf96..039d70c 100644
--- a/sqlvalidator/grammar/lexer.py
+++ b/sqlvalidator/grammar/lexer.py
@@ -35,6 +35,7 @@ from sqlvalidator.grammar.sql import (
OrderByClause,
OrderByItem,
Parenthesis,
+ ReplaceClause,
Selec... |
David-Wobrock__sqlvalidator-43 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"sqlvalidator/grammar/tokeniser.py:get_tokens_until_one_of"
],
"edited_modules": [
"sqlvalidator/grammar/tokeniser.py:get_tokens_until_one_of"
]
},
"file": "sqlvalidator... | David-Wobrock/sqlvalidator | 2827c2a16d0dbfeba6b90fb2e8ee2bdacc6d0286 | AssertionError is raised when using a CASE statement in a CASE statement
Hi David!
Thank you for `sqlvalidator`! :)
The following query seems correct:
```sql
SELECT
CASE
WHEN CASE
WHEN code = 1 THEN 'VALID'
WHEN code = 2 THEN 'INVALID'
END
= 'VALID' THEN 'OK'
ELSE
'KO'
END
FROM table... | diff --git a/sqlvalidator/grammar/tokeniser.py b/sqlvalidator/grammar/tokeniser.py
index df1e423..62f07fa 100644
--- a/sqlvalidator/grammar/tokeniser.py
+++ b/sqlvalidator/grammar/tokeniser.py
@@ -47,10 +47,12 @@ def get_tokens_until_one_of(tokens, stop_words, first_token=None, keep=None):
next_token = next(tokens... |
DavidVujic__python-hiccup-8 | [
{
"changes": {
"added_entities": [
"src/python_hiccup/html/core.py:_is_content"
],
"added_modules": [
"src/python_hiccup/html/core.py:_is_content"
],
"edited_entities": [
"src/python_hiccup/html/core.py:_to_html"
],
"edited_modules": [
"s... | DavidVujic/python-hiccup | 4fa5552e122f9a7b61777dbdbd3dd9cb2c3ac89c | Content (inner text) should be placed in the correct order
**Describe the bug**
Content is placed after any child elements of a html element. It should be able to use the position in the hiccup sequence.
**To Reproduce**
This test will fail:
```python
def test_order_of_items() -> None:
"""Assert that items ... | diff --git a/README.md b/README.md
index c659630..e62702a 100644
--- a/README.md
+++ b/README.md
@@ -1,8 +1,6 @@
# Python Hiccup
-This project started out as a fun challenge, and now evolving into something that could be useful.
-
-Current status: _experimental_
+Python Hiccup is a library for representing HTML usin... |
DavidVujic__python-polylith-143 | [
{
"changes": {
"added_entities": [
"components/polylith/libs/grouping.py:get_latest_standard_libs"
],
"added_modules": [
"components/polylith/libs/grouping.py:get_latest_standard_libs"
],
"edited_entities": [
"components/polylith/libs/grouping.py:get_standar... | DavidVujic/python-polylith | 26b8ddd2198056d9a0788e4a42a963a82c8bab94 | Add support for Python 3.12 when analyzing source code (poly libs)
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Add support for identifying the `stdlib` and usage of it in source code for Python 3.12.
... | diff --git a/components/polylith/libs/grouping.py b/components/polylith/libs/grouping.py
index fa05420..f0db7b9 100644
--- a/components/polylith/libs/grouping.py
+++ b/components/polylith/libs/grouping.py
@@ -11,8 +11,16 @@ def get_python_version() -> str:
return f"{sys.version_info.major}.{sys.version_info.minor}... |
DavidVujic__python-polylith-230 | [
{
"changes": {
"added_entities": [
"components/polylith/distributions/collect.py:extract_extras",
"components/polylith/distributions/collect.py:extract_library_names"
],
"added_modules": [
"components/polylith/distributions/collect.py:extract_extras",
"component... | DavidVujic/python-polylith | 23d3e91133661543c2439526ffecc48f93ae29c9 | (poetry plugin) Third-party import lookup fails for some libraries (example: python-jose).
**Describe the bug**
The `poly check` and `poly libs` commands should pick up the top level name from the distribution. But in this case - `python-jose` - it doesn't. Probably because of an unexpected format in the `top_level.tx... | diff --git a/components/polylith/distributions/collect.py b/components/polylith/distributions/collect.py
index 6fbe858..c55bc42 100644
--- a/components/polylith/distributions/collect.py
+++ b/components/polylith/distributions/collect.py
@@ -1,3 +1,4 @@
+from functools import reduce
from typing import Set
from polyl... |
DavidVujic__python-polylith-232 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"components/polylith/commands/diff.py:print_views"
],
"edited_modules": [
"components/polylith/commands/diff.py:print_views"
]
},
"file": "components/polylith/commands/d... | DavidVujic/python-polylith | 7af5064188a6d78b41260e04fe84c3f1bf402594 | Discrepency between `poly diff` and `poly create` for `tdd` theme
## Describe the bug
The command `poly diff` assumes the configured `tool.polylith.namespace` is a part of the path to a brick, when trying to determine the changed bricks in `polylith.diff.collect.py::_get_changed_bricks`. However, the namespace is no... | diff --git a/components/polylith/commands/diff.py b/components/polylith/commands/diff.py
index 478223d..a621592 100644
--- a/components/polylith/commands/diff.py
+++ b/components/polylith/commands/diff.py
@@ -7,8 +7,8 @@ from polylith import configuration, diff, info, repo
def print_views(root: Path, tag: str, short: ... |
DavidVujic__python-polylith-234 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"bases/polylith/cli/core.py:check_command"
],
"edited_modules": [
"bases/polylith/cli/core.py:check_command"
]
},
"file": "bases/polylith/cli/core.py"
},
{
"chan... | DavidVujic/python-polylith | 05d85327f0521adffd296bbf7720330ab4196f18 | poly libs and poly check: optionally return error for library version mismatch
**Is your feature request related to a problem? Please describe.**
Adding an option to the `poly libs` and `poly check` commands to return an error code when there are different versions of libraries specified across the repo.
**Describe... | diff --git a/bases/polylith/cli/core.py b/bases/polylith/cli/core.py
index 7e0d079..56f9cfc 100644
--- a/bases/polylith/cli/core.py
+++ b/bases/polylith/cli/core.py
@@ -63,17 +63,21 @@ def check_command(
cli_options = {
"verbose": verbose,
+ "short": False,
"quiet": quiet,
"stri... |
DavidVujic__python-polylith-238 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"components/polylith/alias/core.py:pick"
],
"edited_modules": [
"components/polylith/alias/core.py:pick"
]
},
"file": "components/polylith/alias/core.py"
}
] | DavidVujic/python-polylith | 1784d9197c110835c4c1696afe342588231a6b58 | poly check: library discovery when the name differs from the import.
**Describe the bug**
The `pyjwt` library is highlighted as missing when using the `--strict` flag with the `poly check` command.
This is because the Library name differs in three places:
the import `jwt`
the pypi package name `pyjwt`
and the in... | diff --git a/components/polylith/alias/core.py b/components/polylith/alias/core.py
index 4b3c647..370291f 100644
--- a/components/polylith/alias/core.py
+++ b/components/polylith/alias/core.py
@@ -16,7 +16,9 @@ def parse(aliases: List[str]) -> Dict[str, List[str]]:
def pick(aliases: Dict[str, List[str]], keys: Set... |
DavidVujic__python-polylith-243 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"bases/polylith/cli/core.py:diff_command"
],
"edited_modules": [
"bases/polylith/cli/core.py:diff_command"
]
},
"file": "bases/polylith/cli/core.py"
},
{
"change... | DavidVujic/python-polylith | 3cd9f5b6cc2765a6c6214b1def12633776ca7585 | Get a list of changed components plus all their transitive dependants for testing
### Discussed in https://github.com/DavidVujic/python-polylith/discussions/236
<div type='discussions-op-text'>
<sup>Originally posted by **jamesrobson-secondmind** July 30, 2024</sup>
What I would like is a way to find any compone... | diff --git a/bases/polylith/cli/core.py b/bases/polylith/cli/core.py
index 56f9cfc..72634bf 100644
--- a/bases/polylith/cli/core.py
+++ b/bases/polylith/cli/core.py
@@ -86,9 +86,14 @@ def diff_command(
since: Annotated[str, Option(help="Changed since a specific tag.")] = "",
short: Annotated[bool, options.sho... |
DavidVujic__python-polylith-260 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"components/polylith/project/create.py:create_project"
],
"edited_modules": [
"components/polylith/project/create.py:create_project"
]
},
"file": "components/polylith/pr... | DavidVujic/python-polylith | 6efe6f2a22f35ace2a65475af21e3d852b26bb43 | Allow optional PEP 621 fields (authors, description)
**Describe the bug**
Currently, `authors` and `description` are expected to be present in the root `pyproject.toml`, and the contents from the fields are fetched when creating new projects with `poly create project`.
According to PEP 621, these fields are optiona... | diff --git a/components/polylith/project/create.py b/components/polylith/project/create.py
index 1a227d0..3629b4a 100644
--- a/components/polylith/project/create.py
+++ b/components/polylith/project/create.py
@@ -18,12 +18,15 @@ def create_project(path: Path, template: str, name: str, description: str) -> No
autho... |
DavidVujic__python-polylith-265 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"components/polylith/commands/diff.py:run"
],
"edited_modules": [
"components/polylith/commands/diff.py:run"
]
},
"file": "components/polylith/commands/diff.py"
},
{... | DavidVujic/python-polylith | 6cfab10a32014fddc35f163b8aee2d1bbeb9daad | Allow diff from commit hash
**Is your feature request related to a problem? Please describe.**
The organization forces us to work with the branches and have four eyes review. We are looking to optimize for branch development testing time and would like to run only tests for modules that have changed since the branch w... | diff --git a/components/polylith/commands/diff.py b/components/polylith/commands/diff.py
index 501472b..abac0ed 100644
--- a/components/polylith/commands/diff.py
+++ b/components/polylith/commands/diff.py
@@ -99,10 +99,10 @@ def print_views(root: Path, tag: str, options: dict) -> None:
def run(tag_name: Union[str, Non... |
DavidVujic__python-polylith-268 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"components/polylith/commands/check.py:run"
],
"edited_modules": [
"components/polylith/commands/check.py:run"
]
},
"file": "components/polylith/commands/check.py"
},
... | DavidVujic/python-polylith | 58461f4a576da66f10c1afb1b0d1858ad779fe7b | poly check: should use data from project-specific lock files, and not use the loose comparison between names.
### Discussed in https://github.com/DavidVujic/python-polylith/discussions/266
<div type='discussions-op-text'>
<sup>Originally posted by **enadeau** September 21, 2024</sup>
The `poly check` command... | diff --git a/components/polylith/commands/check.py b/components/polylith/commands/check.py
index e44bc32..d0c282f 100644
--- a/components/polylith/commands/check.py
+++ b/components/polylith/commands/check.py
@@ -55,16 +55,21 @@ def run(root: Path, ns: str, project_data: dict, options: dict) -> bool:
deps = projec... |
DavidVujic__python-polylith-289 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"components/polylith/commands/diff.py:print_views"
],
"edited_modules": [
"components/polylith/commands/diff.py:print_views"
]
},
"file": "components/polylith/commands/d... | DavidVujic/python-polylith | 70a2d895b1afd3985041475beaf83c9c7f25d607 | poly diff is not working when structure is not at the root
**Describe the bug**
We have a mono repository that contains multiple languages.
The structure look like that
```
|- Python
|- bases
|- components
|- projects
|- ...
| Javascript
| IaC
| gitlab
| just
```
All Python c... | diff --git a/components/polylith/commands/diff.py b/components/polylith/commands/diff.py
index abac0ed..2672d17 100644
--- a/components/polylith/commands/diff.py
+++ b/components/polylith/commands/diff.py
@@ -66,7 +66,7 @@ def print_views(root: Path, tag: str, options: dict) -> None:
changed_bases = diff.collect.g... |
DavidVujic__python-polylith-296 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"components/polylith/configuration/core.py:_load_workspace_config",
"components/polylith/configuration/core.py:get_namespace_from_config",
"components/polylith/configuration/core.py:get_t... | DavidVujic/python-polylith | eb7cf13840d8fa0b0be7d40cfe0361191ccc1207 | poly error if config is in pyproject.toml in subfolder
**Describe the bug**
We moved the poly configuration to `pyproject.toml` which broke poly command line.
The problem is in the function `find_workspace_root`, which is not looking for the `pyproject.toml` to find the workspace root
https://github.com/DavidVu... | diff --git a/components/polylith/configuration/core.py b/components/polylith/configuration/core.py
index 0e6d95e..1f79c86 100644
--- a/components/polylith/configuration/core.py
+++ b/components/polylith/configuration/core.py
@@ -1,25 +1,11 @@
-from functools import lru_cache
from pathlib import Path
from typing impor... |
DavidVujic__python-polylith-76 | [
{
"changes": {
"added_entities": [
"components/polylith/libs/report.py:flatten_brick_imports",
"components/polylith/libs/report.py:filter_close_matches"
],
"added_modules": [
"components/polylith/libs/report.py:flatten_brick_imports",
"components/polylith/libs/r... | DavidVujic/python-polylith | 4fabe4b3185399c6f8ea4c7a2bca2e7b818febdc | poly libs: fails detecting library names with alias that differ
**Describe the bug**
A clear and concise description of what the bug is.
Example:
the library `python-youtube` is imported as `pyyoutube`. When running `polyl libs`, the library is reported as missing.
Possible solution: using difflib.
Example:
... | diff --git a/components/polylith/libs/report.py b/components/polylith/libs/report.py
index 03d59d5..6b75bd6 100644
--- a/components/polylith/libs/report.py
+++ b/components/polylith/libs/report.py
@@ -1,3 +1,4 @@
+import difflib
from pathlib import Path
from typing import Set
@@ -36,13 +37,22 @@ def flatten_imports... |
DavidVujic__python-polylith-86 | [
{
"changes": {
"added_entities": [
"components/polylith/libs/stdlib.py:omit",
"components/polylith/libs/stdlib.py:union",
"components/polylith/libs/stdlib.py:with_extras",
"components/polylith/libs/stdlib.py:to_py39",
"components/polylith/libs/stdlib.py:to_py310",
... | DavidVujic/python-polylith | 81f6c0774232ab0f2be61be85e77d80ed2575096 | poly libs is confused by some packages
**Describe the bug**
When I run poetry poly libs in my repo it complains for several of the projects about `dateutil` and `humps` and `pkg_resources`
Could not locate all libraries in book_server. Caused by missing dependencies?
🤔 dateutil, humps, pkg_resources
**To Repro... | diff --git a/components/polylith/libs/stdlib.py b/components/polylith/libs/stdlib.py
index 995f91c..398adba 100644
--- a/components/polylith/libs/stdlib.py
+++ b/components/polylith/libs/stdlib.py
@@ -1,868 +1,263 @@
""" Borrowed from github.com/PyCQA/isort library. Thank you! """
-standard_libs = {
- "3.11": {
-... |
Davidyz__VectorCode-27 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/vectorcode/chunking.py:TreeSitterChunker.chunk"
],
"edited_modules": [
"src/vectorcode/chunking.py:TreeSitterChunker"
]
},
"file": "src/vectorcode/chunking.py"
}
... | Davidyz/VectorCode | 014c3c3d7353a164ad7267c404a4c529343d343e | [BUG] Treesitter doesn't handle correctly when `chunk_size = -1`
**Describe the bug**
I was just trying this out on a rails project. It was able to index html.erb files, css, js, and configuration, but it seems like ruby does not work. I was looking for language support, it seems like anything tree sitter supports shou... | diff --git a/src/vectorcode/chunking.py b/src/vectorcode/chunking.py
index 40bbfad..58c5d46 100644
--- a/src/vectorcode/chunking.py
+++ b/src/vectorcode/chunking.py
@@ -111,6 +111,9 @@ class TreeSitterChunker(ChunkerBase):
assert os.path.isfile(data)
with open(data) as fin:
content = fin.... |
Davidyz__VectorCode-49 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/vectorcode/common.py:get_embedding_function"
],
"edited_modules": [
"src/vectorcode/common.py:get_embedding_function"
]
},
"file": "src/vectorcode/common.py"
}
] | Davidyz/VectorCode | 43df44ccf8bc43c1f0e9b0685bfdd8bf7446b3bd | [BUG] doc says to install vectorcode via pipx but logger error says to use pip install for optimum
**Describe the bug**
I follow the doc and installs via pipx vectorcode.
I see vectorcode is crazy slow (40 seconds each request) so I enabled openvivo (I have amd but it works on CPU AMD acceleration, but not GPU) (I also... | diff --git a/src/vectorcode/common.py b/src/vectorcode/common.py
index 7d1941c..349cdff 100644
--- a/src/vectorcode/common.py
+++ b/src/vectorcode/common.py
@@ -134,7 +134,7 @@ def get_collection_name(full_path: str) -> str:
return collection_id
-def get_embedding_function(configs: Config) -> chromadb.Embeddin... |
DeepRegNet__DeepReg-319 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"deepreg/dataset/loader/grouped_loader.py:GroupedDataLoader.validate_data_files"
],
"edited_modules": [
"deepreg/dataset/loader/grouped_loader.py:GroupedDataLoader"
]
},
... | DeepRegNet/DeepReg | 3bb693edcc396dbb5147fec3da7a8a9caec3b6d0 | Wrong message when labels and images names do not match
# Issue description
If the names of the images and the labels do not match (e.g., image0001.nii.gz and label0001.nii.gz) the following Tensorflow error is raised:
"WARNING:tensorflow:Your input ran out of data; interrupting training. Make sure that your data... | diff --git a/deepreg/dataset/loader/grouped_loader.py b/deepreg/dataset/loader/grouped_loader.py
index a8c8eb87..2b08f2c6 100644
--- a/deepreg/dataset/loader/grouped_loader.py
+++ b/deepreg/dataset/loader/grouped_loader.py
@@ -116,7 +116,11 @@ class GroupedDataLoader(AbstractUnpairedDataLoader, GeneratorDataLoader):
... |
DeepRegNet__DeepReg-699 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"deepreg/config/v011.py:parse_label_loss"
],
"edited_modules": [
"deepreg/config/v011.py:parse_label_loss"
]
},
"file": "deepreg/config/v011.py"
},
{
"changes": ... | DeepRegNet/DeepReg | 6a9a3ac865ca85ad3d576f0338bf87b7a7d023db | rename neg_weight to background_weight
## Subject of the documentation
As in https://github.com/DeepRegNet/DeepReg/blob/859df2a91564d16c43ea761ad272de568b8784bb/deepreg/model/loss/label.py#L224 and some other losses, we have the option to change the weight of background class (we only consider binary label for now).... | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 4356c5ac..32c6fdeb 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -36,7 +36,7 @@ repos:
hooks:
- id: prettier
- repo: https://gitlab.com/pycqa/flake8
- rev: 3.8.4
+ rev: 3.9.0
hooks:
- id: flake8... |
Deepwalker__trafaret-109 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "trafaret/__init__.py"
},
{
"changes": {
"added_entities": [
"trafaret/base.py:ToBytes.__init__",
"trafaret/base.py:ToBytes.check... | Deepwalker/trafaret | 6bd672cb84e5e7901afbda78a03e83d704bab7e7 | No FromString/ToBytes?
There is a FromBytes object to convert to string. It would be nice to have the inverse to convert to bytes. | diff --git a/trafaret/__init__.py b/trafaret/__init__.py
index 19f68e9..13a10af 100644
--- a/trafaret/__init__.py
+++ b/trafaret/__init__.py
@@ -23,6 +23,7 @@ from .base import (
String,
AnyString,
Bytes,
+ ToBytes,
FromBytes,
Callable,
Bool,
@@ -84,6 +85,7 @@ __all__ = (
"ToDateTi... |
Deepwalker__trafaret-110 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "trafaret/__init__.py"
},
{
"changes": {
"added_entities": [
"trafaret/internet.py:Hex.__repr__",
"trafaret/internet.py:URLSafe._... | Deepwalker/trafaret | 2e62930aef61316268dc3abbe4b30cf90d27a320 | Hex and URLSafe validators
Would be nice to have a couple more String validators that validated the string as e.g. hex or url safe. Matching for example, the output you'd get from `secrets.token_hex()` and `secrets.token_urlsafe()`. | diff --git a/trafaret/__init__.py b/trafaret/__init__.py
index 13a10af..43eb57c 100644
--- a/trafaret/__init__.py
+++ b/trafaret/__init__.py
@@ -51,10 +51,12 @@ from .numeric import (
ToInt,
ToDecimal,
)
-from .regexp import Regexp, RegexpRaw
+from .regexp import Regexp, RegexpRaw, RegexpString
from .intern... |
Delgan__loguru-1236 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"loguru/_colorizer.py:AnsiParser.feed"
],
"edited_modules": [
"loguru/_colorizer.py:AnsiParser"
]
},
"file": "loguru/_colorizer.py"
}
] | Delgan/loguru | 37f44eda5555ffed3b4c581925650fb939e55b94 | How to escape `\` before tag
In my server application, i'm using loguru logger to log messages from client. But in some case, the log failed with the error: https://github.com/nonebot/adapter-onebot/issues/74 `ValueError: Closing tag "</le>" has no corresponding opening tag`
Here is the example of the case:
```py... | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index e9eda00..a4aa622 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -4,6 +4,7 @@
- Fix possible ``RuntimeError`` when removing all handlers with ``logger.remove()`` due to thread-safety issue (`#1183 <https://github.com/Delgan/loguru/issues/1183>`_, thanks `@jeremyk <htt... |
Delgan__loguru-1239 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"loguru/_better_exceptions.py:ExceptionFormatter._format_list"
],
"edited_modules": [
"loguru/_better_exceptions.py:ExceptionFormatter"
]
},
"file": "loguru/_better_exce... | Delgan/loguru | 65fe4a8db9a8f297ae3648f51b5e3050b30945a9 | Add unit tests for traceback formatting of RecursionError
For example, the following snippet:
```python
from loguru import logger
def rec():
rec()
try:
rec()
except Exception:
logger.exception("Oups")
```
Should produce the following logs:
```txt
2024-02-17 12:06:00.577 | ERROR | __... | diff --git a/loguru/_better_exceptions.py b/loguru/_better_exceptions.py
index e9ee112..17d36d6 100644
--- a/loguru/_better_exceptions.py
+++ b/loguru/_better_exceptions.py
@@ -534,13 +534,39 @@ class ExceptionFormatter:
yield from self._indent("-" * 35, group_nesting + 1, prefix="+-")
def _form... |
Delgan__loguru-1297 | [
{
"changes": {
"added_entities": [
"loguru/_datetime.py:_fallback_tzinfo",
"loguru/_datetime.py:_get_tzinfo"
],
"added_modules": [
"loguru/_datetime.py:_fallback_tzinfo",
"loguru/_datetime.py:_get_tzinfo"
],
"edited_entities": [
"loguru/_date... | Delgan/loguru | e310e2029102b5d63a679a2b64501c045aa86336 | Won't handle future time
So my system clock was set in the future, year 2040 Feb, because of a battery issue.
And I was surprised that loguru refused to be included:
```
from loguru import logger as log
File "C:\py38_64\lib\site-packages\loguru\__init__.py", line 10, in <module>
from ._logger import Core as... | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 5adf50f..cd62613 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -2,6 +2,7 @@
=============
- Fix a regression preventing formatting of ``record["time"]`` when using ``zoneinfo.ZoneInfo`` timezones (`#1260 <https://github.com/Delgan/loguru/pull/1260>`_, thanks `@bi... |
Delgan__loguru-1299 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"loguru/_colorama.py:should_colorize"
],
"edited_modules": [
"loguru/_colorama.py:should_colorize"
]
},
"file": "loguru/_colorama.py"
}
] | Delgan/loguru | e17479bd0701e8fc0b26981339540599dc224d11 | Support the implementation of https://no-color.org/
It would be awesome to support the detection of the NO_COLOR environment variable and act according to the specification. | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index cd62613..5e0e34d 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -5,7 +5,8 @@
- Fix possible ``ValueError`` raised on Windows when system clock was set far ahead in the future (`#1291 <https://github.com/Delgan/loguru/issues/1291>`_).
- Allow the ``rotation`` argumen... |
Delgan__loguru-1303 | [
{
"changes": {
"added_entities": [
"loguru/_logger.py:isasyncgenfunction"
],
"added_modules": [
"loguru/_logger.py:isasyncgenfunction"
],
"edited_entities": [
"loguru/_logger.py:Logger.catch"
],
"edited_modules": [
"loguru/_logger.py:Logg... | Delgan/loguru | 7b6f6e3741eea7b56273e072a008dc2564592496 | Make "logger.catch()" compatible with asynchronous generators
Eg in:
```python
import asyncio
from loguru import logger
@logger.catch
async def foo():
yield 1
yield 2
raise ValueError
async def main():
async for i in foo():
print(i)
print("Done")
asyncio.run(main... | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 5e0e34d..1f575b8 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -7,6 +7,8 @@
- Update the default log format to include the timezone offset since it produces less ambiguous logs (`#856 <https://github.com/Delgan/loguru/pull/856>`_, thanks `@tim-x-y-z <https://github.... |
Delgan__loguru-1304 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"loguru/_logger.py:Logger.catch"
],
"edited_modules": [
"loguru/_logger.py:Logger"
]
},
"file": "loguru/_logger.py"
}
] | Delgan/loguru | 7748b6cde69880101a5cfb5dcc653ad7cf23402d | Make `.catch()` context manager async compatible
Hi,
First, thanks for a lot for loguru :)
I have a piece of code like this:
```python
import httpx
from loguru import logger as loguru_logger
@app.get("/") # some fastapi route
async def my_route(foo, bar):
logger = loguru_logger.bind(foo=foo, bar=ba... | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 1f575b8..1d48efc 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -7,6 +7,7 @@
- Update the default log format to include the timezone offset since it produces less ambiguous logs (`#856 <https://github.com/Delgan/loguru/pull/856>`_, thanks `@tim-x-y-z <https://github.... |
Delgan__loguru-1306 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"loguru/_colorama.py:should_colorize"
],
"edited_modules": [
"loguru/_colorama.py:should_colorize"
]
},
"file": "loguru/_colorama.py"
}
] | Delgan/loguru | 3cfd03fb6fd2176b90ad14223408f3c4ec803cb6 | Support for FORCE_COLOR
https://force-color.org/
Similar to #1178 / #1299 but forcing color to be enabled rather than disabled, which is useful for non TTY environments that do support color.
Prior art:
- [pytest](https://github.com/pytest-dev/pytest/blob/b0caf3d7adc45f773177424593431869fd2f82d8/src/_pytest/_io/termi... | diff --git a/loguru/_colorama.py b/loguru/_colorama.py
index b380536..220ddd8 100644
--- a/loguru/_colorama.py
+++ b/loguru/_colorama.py
@@ -7,9 +7,16 @@ def should_colorize(stream):
if stream is None:
return False
- if "NO_COLOR" in os.environ:
+ # Per the spec (https://no-color.org/), this needs... |
Delgan__loguru-852 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "loguru/_defaults.py"
},
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"loguru/_handler.... | Delgan/loguru | 9fc929a54ae6ef92208c90ebafd449b8f9e3e34a | Add new "context" option to specify the multiprocessing context internally used by handlers
A better fix should be implemented for #746, because changing the default context globally using `set_start_method()` is not always suitable.
Invalid use case example on Linux (will hang forever because child processes crash)... | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 230ff2e..d267126 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -1,3 +1,9 @@
+`Unreleased`_
+=============
+
+- Add a new ``context`` optional argument to ``logger.add()`` specifying ``multiprocessing`` context (like ``"spawn"`` or ``"fork"``) to be used internally in... |
Delgan__loguru-960 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": [
"loguru/_file_sink.py:Rotation"
]
},
"file": "loguru/_file_sink.py"
}
] | Delgan/loguru | e49dfa53cffc1116e25d58d727ff4eea34fafb64 | The log file is abnormal when the log is rotating
Hi, thank you so much for your project, it's really great. However, some problems have been found in the process of using it recently. Can you help to have a look?
I created a new file `logger.py`
```python
from loguru import logger
logger.remove()
logger.add(
... | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 47ca76e..8286a31 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -2,10 +2,11 @@
=============
- Add a new ``context`` optional argument to ``logger.add()`` specifying ``multiprocessing`` context (like ``"spawn"`` or ``"fork"``) to be used internally instead of the ... |
Delgan__loguru-963 | [
{
"changes": {
"added_entities": [
"loguru/_recattrs.py:RecordException._from_pickled_value"
],
"added_modules": null,
"edited_entities": [
"loguru/_recattrs.py:RecordException.__reduce__"
],
"edited_modules": [
"loguru/_recattrs.py:RecordException"
... | Delgan/loguru | 2718257fe1a393184e0e6e9222d93efa2193a95e | Logging error in Loguru Handler: TypeError: __init__() missing 1 required positional argument: 'message'
Hello,
i am getting the following error message sometimes which makes me assume that somewhere in my application i am writing `None` the logger.
```
--- Logging error in Loguru Handler #2 ---
Record was: Non... | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 4fdbfc6..e1e2097 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -5,7 +5,8 @@
- Add support for true colors on Windows using ANSI/VT console when available (`#934 <https://github.com/Delgan/loguru/issues/934>`_, thanks `@tunaflsh <https://github.com/tunaflsh>`_).
- F... |
Delgan__loguru-985 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"loguru/_handler.py:Handler.__init__"
],
"edited_modules": [
"loguru/_handler.py:Handler"
]
},
"file": "loguru/_handler.py"
},
{
"changes": {
"added_entiti... | Delgan/loguru | 14fa062bdb4388d77250b1f7224024fea3c84bbf | RuntimeError: context has already been set. When I use both Sanic and loguru
```python
from sanic import Sanic, text
from loguru import logger
app = Sanic(__name__)
@app.get('/')
async def run_shell(request):
return text('Hello world!')
if __name__ == '__main__':
app.run(host='0.0.0.0', port=6... | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 9ed0619..7a8d112 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -2,6 +2,7 @@
=============
- Add support for formatting of ``ExceptionGroup`` errors (`#805 <https://github.com/Delgan/loguru/issues/805>`_).
+- Fix possible ``RuntimeError`` when using ``multiprocess... |
DeltaRCM__DeltaMetrics-27 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"deltametrics/mask.py:BaseMask.__init__",
"deltametrics/mask.py:BaseMask.show",
"deltametrics/mask.py:OAM.compute_shoremask",
"deltametrics/mask.py:EdgeMask.compute_edgemask",
... | DeltaRCM/DeltaMetrics | ef0fe0fb8f0a09e483f21a520b05901d90cf1442 | Masks currently locked to sea level == 0
Are masks currently locked to sea level == 0? I think they might be. This should be relaxed, at least with an option to specify during mask creation.
related to #10. Should consider how we will include boundary conditions in an overhaul of the netcdf file output from pyDelta... | diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 8c71ab35..f18e5f56 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -48,10 +48,10 @@ jobs:
uses: actions/checkout@v2
with:
persist-credentials: false
- - name: Set up Python 3.x
+ - nam... |
DeltaRCM__DeltaMetrics-76 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"deltametrics/strat.py:compute_boxy_stratigraphy_volume",
"deltametrics/strat.py:compute_boxy_stratigraphy_coordinates",
"deltametrics/strat.py:_determine_strat_coordinates"
],
... | DeltaRCM/DeltaMetrics | e5df97e891f332ac3292cebcff98e1825a6550d5 | Implement options for `z`, `dz`, and `nz` at every entry point of the api, make sure consistent
implement options for `z`, `dz`, and `nz` at every entry point to the api, need to ensure the behavior is consistent, and a single default is set everywhere. Preferably a default would be set in only one location.
Could ... | diff --git a/deltametrics/strat.py b/deltametrics/strat.py
index f2bf71c7..ce9f7ba7 100644
--- a/deltametrics/strat.py
+++ b/deltametrics/strat.py
@@ -35,7 +35,7 @@ def compute_compensation(line1, line2):
pass
-def compute_boxy_stratigraphy_volume(elev, prop, dz=None, z=None,
+def compute_boxy_stratigraphy_vol... |
Deltares__hydromt-164 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"hydromt/data_adapter/data_adapter.py:DataAdapter.resolve_paths"
],
"edited_modules": [
"hydromt/data_adapter/data_adapter.py:DataAdapter"
]
},
"file": "hydromt/data_ada... | Deltares/hydromt | 0d74467456e13450336e173f5d9a9919d91da519 | create generic Model class (without abstract methods) in core with child classes for different types of models
The goal of this issue is to
- be more flexible in our assumptions on the type of model. Now there are some assumptions about that a model has a regular grid
- be able to provide tests and examples directly... | diff --git a/docs/changelog.rst b/docs/changelog.rst
index 1a7ccc48..34f64c28 100644
--- a/docs/changelog.rst
+++ b/docs/changelog.rst
@@ -13,6 +13,7 @@ Added
- New raster method for adding gdal_compliant() attributes to xarray object.
- Function ``to_datetimeindex`` in available preprocess functions for xr.open_data... |
Deltares__hydromt-351 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"hydromt/raster.py:XRasterBase.vector_grid"
],
"edited_modules": [
"hydromt/raster.py:XRasterBase"
]
},
"file": "hydromt/raster.py"
}
] | Deltares/hydromt | 9544afe89fb8e200ae8f8f034bd39171e1cb7a2b | ENH: improve speed of raster.vector_grid method.
### Feature Type
- Changing existing functionality in HydroMT
### Enhancement Description
The current vector grid implementation is slow. This is used to visualize the grid as well as for some GIS methods, hence speed is important.
### Feature Description
... | diff --git a/docs/changelog.rst b/docs/changelog.rst
index 9dcad562..def2d567 100644
--- a/docs/changelog.rst
+++ b/docs/changelog.rst
@@ -14,6 +14,7 @@ Added
Changed
-------
+- new geom_type argument in `RasterDataArray.vector_grid` to specify the geometry type {'polygon', 'line', 'points'} of the vector grid. PR ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.