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 |
|---|---|---|---|---|---|
Azure__iotedgedev-232 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"iotedgedev/args.py:Args.get_current_command"
],
"edited_modules": [
"iotedgedev/args.py:Args"
]
},
"file": "iotedgedev/args.py"
},
{
"changes": {
"added_e... | Azure/iotedgedev | 79bcd51b6ac99381fa0ab624f88ef173d4bccff9 | Add solution create to env check exclude list
(venv) C:\temp>iotedgedev solution create monitortest
=======================================
======== ENVIRONMENT VARIABLES ========
=======================================
.env file not found on disk. Without a file on disk, you must specify all Environment Variab... | diff --git a/iotedgedev/args.py b/iotedgedev/args.py
index a24e2cc..80ce565 100644
--- a/iotedgedev/args.py
+++ b/iotedgedev/args.py
@@ -1,12 +1,13 @@
import sys
-# We had to implement this custom arg parsing class because Click doesn't have a handler to detect command before any arguments are parsed, which we need ... |
Azure__iotedgedev-349 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"iotedgedev/dockercls.py:Docker.init_local_registry"
],
"edited_modules": [
"iotedgedev/dockercls.py:Docker"
]
},
"file": "iotedgedev/dockercls.py"
}
] | Azure/iotedgedev | 67c63047b53f7e1749d7d9c3985593deae566699 | Failed to push to local registry
- iotedgedev Version: 1.0.0rc0
- Python Version: Python2.7 Python3.6 Python3.7
- Pip Version:18.1
- Development machine OS Version: Windows10/Ubuntu18.04/Mac os high sierra 10.13.6
- IoT Edge device OS Version: Windows10/Ubuntu18.04/Mac os high sierra 10.13.6
Steps to Reproduce:
... | diff --git a/.vscode/launch.json b/.vscode/launch.json
index 4121a9a..d2519d0 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -5,20 +5,11 @@
"name": "Python Module",
"type": "python",
"request": "launch",
- "stopOnEntry": true,
"module": "iote... |
Azure__iotedgehubdev-159 | [
{
"changes": {
"added_entities": [
"iotedgehubdev/cli.py:_parse_config_json",
"iotedgehubdev/cli.py:_get_setup_command"
],
"added_modules": [
"iotedgehubdev/cli.py:_parse_config_json",
"iotedgehubdev/cli.py:_get_setup_command"
],
"edited_entities": [... | Azure/iotedgehubdev | a6fb00a5109860f12bec2b386f368abb20f8d979 | Provide more friendly information when starting if the user has not setup
From https://github.com/Azure/iotedgedev/pull/233#issuecomment-410917902
> @LazarusX - In start, can you automatically detect if setup hasn't been called and call it for the user?
>
> In start can you detect that it hasn't been build and let... | diff --git a/README.md b/README.md
index 23ad402..db93bf4 100644
--- a/README.md
+++ b/README.md
@@ -32,20 +32,42 @@ The following table compares the steps needed to run the solution on the IoT Edg
## Quickstart
1. Setup
+
+ Windows
```
- iotedgehubdev setup -c <edge-device-connection-string>
+ iotedg... |
Azure__msrest-for-python-167 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"msrest/pipeline/universal.py:RawDeserializer.deserialize_from_text"
],
"edited_modules": [
"msrest/pipeline/universal.py:RawDeserializer"
]
},
"file": "msrest/pipeline/... | Azure/msrest-for-python | c4086bfac4e45b11b6bd4267cff62aa302a51877 | Response content type json parser
Currently the deserializer only supports a list of content type values like "application/json" and "text/json". Based on HTTP spec, "application/<randomtext>+json" is also json. So we should have a type parser to accept this syntax. | diff --git a/msrest/pipeline/universal.py b/msrest/pipeline/universal.py
index f124ea7..b8dc40c 100644
--- a/msrest/pipeline/universal.py
+++ b/msrest/pipeline/universal.py
@@ -32,6 +32,7 @@ import os
import xml.etree.ElementTree as ET
import platform
import codecs
+import re
from typing import Mapping, Any, Opti... |
Azure__msrestazure-for-python-121 | [
{
"changes": {
"added_entities": [
"msrestazure/polling/arm_polling.py:LongRunningOperation.parse_resource"
],
"added_modules": null,
"edited_entities": [
"msrestazure/polling/arm_polling.py:LongRunningOperation.get_status_from_resource",
"msrestazure/polling/arm_... | Azure/msrestazure-for-python | ca3dceee99aee5aa4e5a25ec20c1794440510011 | If final GET on Location is empty, does not necessarily mean there is a problem
If Swagger explains to follow Location on final state, and there is not return type, it is expected that the final body is empty. However, msrestazure right now assume this final call must have a body.
Fix, update this code:
```python
... | diff --git a/msrestazure/polling/arm_polling.py b/msrestazure/polling/arm_polling.py
index 2f3aa2a..d299e6f 100644
--- a/msrestazure/polling/arm_polling.py
+++ b/msrestazure/polling/arm_polling.py
@@ -262,7 +262,17 @@ class LongRunningOperation(object):
status = self._get_provisioning_state(response)
... |
Azure__pykusto-150 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"pykusto/_src/client.py:RetryConfig.retry",
"pykusto/_src/client.py:PyKustoClient.__init__",
"pykusto/_src/client.py:PyKustoClient._get_client_for_cluster",
"pykusto/_src/client.p... | Azure/pykusto | 8a5785b422db13c5445425a36e8016d8683e24d7 | Allow `use_global_cache=True` with any authentication method
Use case: researcher was using pykusto from a Data Bricks notebook, and the default Azure CLI authentication was failing with the exception below.
When they provided their own `KustoClient` instance, they could no longer use `use_global_cache`.
```
FileN... | diff --git a/.idea/runConfigurations/Lint.xml b/.idea/runConfigurations/Lint.xml
index 5135e6a..aa679af 100644
--- a/.idea/runConfigurations/Lint.xml
+++ b/.idea/runConfigurations/Lint.xml
@@ -13,7 +13,7 @@
<option name="ADD_SOURCE_ROOTS" value="true" />
<EXTENSION ID="PythonCoverageRunConfigurationExtension"... |
Azure__pykusto-159 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"pykusto/_src/client.py:Table.execute"
],
"edited_modules": [
"pykusto/_src/client.py:Table"
]
},
"file": "pykusto/_src/client.py"
}
] | Azure/pykusto | 68121cdd79cc9c1d6b8f71e5e80df566ac6842c7 | Retry config causes an exception beacuse of bug in argumets order in client execute function
In `_src.client.py` the function `execute` is defined as follows:
`def execute(self, query: KQL, retry_config: RetryConfig = None) -> KustoResponse:
return self.__database.execute(query, retry_config)`
but the `datab... | diff --git a/pykusto/_src/client.py b/pykusto/_src/client.py
index 66c39f6..d18fa82 100644
--- a/pykusto/_src/client.py
+++ b/pykusto/_src/client.py
@@ -371,7 +371,7 @@ class Table(_ItemFetcher):
return KQL(table_names[0])
def execute(self, query: KQL, retry_config: RetryConfig = None) -> KustoResponse:... |
Azure__pykusto-20 | [
{
"changes": {
"added_entities": [
"pykusto/client.py:PyKustoClient.get_cluster_name",
"pykusto/client.py:Table.get_table",
"pykusto/client.py:Table.get_full_table",
"pykusto/client.py:Table._format_full_table_name"
],
"added_modules": null,
"edited_entiti... | Azure/pykusto | 13fc2f12a84ca19b0cc8c6d61d2c67da858fdae0 | Add support for cross-cluster join
If the joined table is from a different cluster, render it using the following syntax: cluster("a").database("b").table("c") | diff --git a/pykusto/client.py b/pykusto/client.py
index 1d708c7..2bc47e4 100644
--- a/pykusto/client.py
+++ b/pykusto/client.py
@@ -1,5 +1,8 @@
from typing import Union, List, Tuple
+# noinspection PyProtectedMember
+from urllib.parse import urlparse
+
# noinspection PyProtectedMember
from azure.kusto.data._respo... |
Azure__pykusto-22 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"pykusto/query.py:Query.__add__"
],
"edited_modules": [
"pykusto/query.py:Query"
]
},
"file": "pykusto/query.py"
}
] | Azure/pykusto | aff79137b6d310f33a2085ece2fbe41886c50c11 | query.__add__ only handles short queries | diff --git a/pykusto/query.py b/pykusto/query.py
index 42caba4..272bbaf 100644
--- a/pykusto/query.py
+++ b/pykusto/query.py
@@ -53,7 +53,12 @@ class Query:
self._table = head if isinstance(head, Table) else None
def __add__(self, other: 'Query'):
- other._head = self
+ other_base = other
... |
Azure__pykusto-34 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"pykusto/functions.py:iif",
"pykusto/functions.py:iff"
],
"edited_modules": [
"pykusto/functions.py:iif",
"pykusto/functions.py:iff"
]
},
"file": "pykust... | Azure/pykusto | a6f85c8015b59226608bafa1d2f5d862d1917ef4 | iff doesn't support sub expressions
The following syntax is not working:
.extend(timeDelta=iff(col.day-col.day1 == 0, timedelta(DAYS_BACK_DIFF), col.day-col.day1)) | diff --git a/pykusto/functions.py b/pykusto/functions.py
index 8450ef8..210958f 100644
--- a/pykusto/functions.py
+++ b/pykusto/functions.py
@@ -120,6 +120,8 @@ def ceiling(expr: NumberType) -> NumberExpression:
def cos(expr: NumberType) -> NumberExpression:
return expr.cos()
+
+
#
# def cot(self): return
@... |
Azure__pykusto-36 | [
{
"changes": {
"added_entities": [
"pykusto/expressions.py:ArrayBaseExpression.__getitem__",
"pykusto/expressions.py:MappingBaseExpression.__getitem__",
"pykusto/expressions.py:MappingBaseExpression.__getattr__",
"pykusto/expressions.py:DynamicExpression.__getitem__"
... | Azure/pykusto | 290b60fd7ed3b61c05a3959c1adc7d4ce943f5db | Refactor array, mapping dynamic types
* Introduce DynamicExpression and AnyExpression
* ArrayExpression and MappingExpression should return AnyExpression
* Delete Column.__getitem__
* Fix inheritance tree | diff --git a/pykusto/expressions.py b/pykusto/expressions.py
index d921749..e5ceedc 100644
--- a/pykusto/expressions.py
+++ b/pykusto/expressions.py
@@ -14,7 +14,7 @@ MappingType = Union[Mapping, 'MappingExpression']
DatetimeType = Union[datetime, 'DatetimeExpression']
TimespanType = Union[timedelta, 'TimespanExpress... |
Azure__pykusto-70 | [
{
"changes": {
"added_entities": [
"pykusto/functions.py:Functions.set_has_element",
"pykusto/functions.py:Functions.set_difference",
"pykusto/functions.py:Functions.set_intersect",
"pykusto/functions.py:Functions.set_union",
"pykusto/functions.py:Functions.array_co... | Azure/pykusto | 0930c481041f5165e870094d2716d9ebeb671c41 | add set_difference function
and while at it, more array operations... | diff --git a/pykusto/functions.py b/pykusto/functions.py
index bae1253..bbf711b 100644
--- a/pykusto/functions.py
+++ b/pykusto/functions.py
@@ -1,4 +1,5 @@
import json
+from itertools import chain
from typing import Union
from pykusto.expressions import AnyTypeColumn, NumberType, NumberExpression, TimespanType, \... |
Azure__pykusto-71 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"pykusto/item_fetcher.py:ItemFetcher.__dir__"
],
"edited_modules": [
"pykusto/item_fetcher.py:ItemFetcher"
]
},
"file": "pykusto/item_fetcher.py"
}
] | Azure/pykusto | 0930c481041f5165e870094d2716d9ebeb671c41 | Do not autocomplete to columns which contain a dot in their name | diff --git a/pykusto/item_fetcher.py b/pykusto/item_fetcher.py
index 406f8eb..6b3620a 100644
--- a/pykusto/item_fetcher.py
+++ b/pykusto/item_fetcher.py
@@ -92,7 +92,7 @@ class ItemFetcher(metaclass=ABCMeta):
return fallback()
def __dir__(self) -> Iterable[str]:
- return sorted(chain(super().__di... |
Azure__pykusto-84 | [
{
"changes": {
"added_entities": [
"pykusto/expressions.py:BooleanExpression.__rand__",
"pykusto/expressions.py:BooleanExpression.__ror__",
"pykusto/expressions.py:NumberExpression.__radd__",
"pykusto/expressions.py:NumberExpression.__rsub__",
"pykusto/expressions.p... | Azure/pykusto | 39a825859c499d219cb2c55e57bc3d3f71568ff7 | multiplying numbers and columns doesn't always work
examples:
Query().where(f.to_double(100 * t.numberField) > 0.2).render()
returns: TypeError: unsupported operand type(s) for *: 'int' and 'AnyTypeColumn'
Query().where(100 * f.to_double(t.numberField) > 0.2).render()
returns: TypeError: unsupported operand type(... | diff --git a/pykusto/expressions.py b/pykusto/expressions.py
index 70e8207..2dc2e4f 100644
--- a/pykusto/expressions.py
+++ b/pykusto/expressions.py
@@ -188,12 +188,24 @@ class BooleanExpression(BaseExpression):
"""
return BooleanExpression.binary_op(self, ' and ', other)
+ def __rand__(self, oth... |
Azure__pykusto-96 | [
{
"changes": {
"added_entities": [
"pykusto/expressions.py:BaseDynamicExpression.__new__",
"pykusto/expressions.py:BaseDynamicExpression.__getitem__",
"pykusto/expressions.py:BaseDynamicExpression.contains",
"pykusto/expressions.py:MappingExpression.bag_contains"
],
... | Azure/pykusto | 89235ad79caf383a1b5e719e8f83552025750896 | Converting a Python literal list to KQL fails
Should probably use dynamic() | diff --git a/pykusto/expressions.py b/pykusto/expressions.py
index b1eacc0..e50d754 100644
--- a/pykusto/expressions.py
+++ b/pykusto/expressions.py
@@ -107,12 +107,18 @@ class BaseExpression:
def __ne__(self, other: ExpressionType) -> 'BooleanExpression':
return BooleanExpression.binary_op(self, ' != ', ... |
BAMWelDX__weldx-243 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"weldx/utility.py:mat_vec_mul"
],
"edited_modules": [
"weldx/utility.py:mat_vec_mul"
]
},
"file": "weldx/utility.py"
}
] | BAMWelDX/weldx | cd4c0db3216baec7572cb42b3abd3a2cac5f6ac6 | CSM interp_time doesn't work with scalar values
The following script crashes
~~~ python
from weldx import CoordinateSystemManager
from weldx.constants import WELDX_QUANTITY as Q_
csm = CoordinateSystemManager("root")
csm.create_cs("lcs 1", "root", coordinates=[1, 2, -1])
csm.create_cs("lcs 2", "root", coordin... | diff --git a/.github/workflows/static_analysis.yml b/.github/workflows/static_analysis.yml
index 7257905..5ef3ea6 100644
--- a/.github/workflows/static_analysis.yml
+++ b/.github/workflows/static_analysis.yml
@@ -1,5 +1,5 @@
name: static analysis
-on: [push]
+on: [push, pull_request]
jobs:
pydocstyle:
diff --git... |
BAMWelDX__weldx-285 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"weldx/transformations/local_cs.py:LocalCoordinateSystem.__init__"
],
"edited_modules": [
"weldx/transformations/local_cs.py:LocalCoordinateSystem"
]
},
"file": "weldx/t... | BAMWelDX/weldx | 8c80ceadf7951de697012c457f983977fc07e9fe | create static LCS instance with time axis
The following code creates a static `LCS` instance even though a time axis with length 2 is set. The time dependency is simply dropped.
```python
import pandas as pd
import weldx
lcs = weldx.LocalCoordinateSystem(
coordinates=[0, 0, 1], time=pd.timedelta_range(start=... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 09621aa..47ac45a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,6 +10,12 @@
fix [#282](https://github.com/BAMWelDX/weldx/pull/282) [[#286]](https://github.com/BAMWelDX/weldx/pull/286)
- add examples to schema files [[#274]](https://github.com/BAMWelDX/weldx/pull/2... |
BAMWelDX__weldx-306 | [
{
"changes": {
"added_entities": [
"weldx/welding/groove/iso_9692_1.py:IsoBaseGroove.__post_init__"
],
"added_modules": null,
"edited_entities": null,
"edited_modules": [
"weldx/welding/groove/iso_9692_1.py:IsoBaseGroove"
]
},
"file": "weldx/welding/gr... | BAMWelDX/weldx | 616584b8d83933427f566930b3f087dcfc35786b | negative parameters for welding groove shapes
It is currently possible to create groove types with negative parameter values which has no technical application
We should probably add a quick check to verify | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4245aaa..338f58e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -16,6 +16,9 @@
- add validators to `rotation-1.0.0.yaml`
& `gas_component-1.0.0.yaml` [[#303]](https://github.com/BAMWelDX/weldx/pull/303)
+### fixes
+
+- prevent creation of `IsoBaseGroove` with negati... |
BAMWelDX__weldx-318 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"weldx/asdf/tags/weldx/core/transformations/rotation.py:WXRotationTypeASDF.from_tree"
],
"edited_modules": [
"weldx/asdf/tags/weldx/core/transformations/rotation.py:WXRotationTypeASDF... | BAMWelDX/weldx | bd643850b670a9da087e7739406bc7074a0dcc84 | support quantities in WXRotation.from_euler()
Now that we mostly use quantities we should add support to `WXRotation.from_euler()`
- allow quantities in ASDF schema
- use pint decorator
- maybe deprecate `tf.rotation_matrix_X` functions in favour of `WXRotation` | diff --git a/CHANGELOG.md b/CHANGELOG.md
index b5efffe..f89c75c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,11 @@
# Release Notes
+
+## 0.4.0 (unreleased)
+
+### changes
+- `WXRotation.from_euler()` now accepts a `pint.Quantity` as input. [[#318]](https://github.com/BAMWelDX/weldx/pull/318)
+
## 0.3.3 (... |
BAMWelDX__weldx-353 | [
{
"changes": {
"added_entities": [
"weldx/core.py:TimeSeries._initialize_discrete",
"weldx/core.py:TimeSeries._init_expression",
"weldx/core.py:TimeSeries._interp_time_discrete",
"weldx/core.py:TimeSeries._interp_time_expression"
],
"added_modules": null,
... | BAMWelDX/weldx | ca354e1720aa70c559bfef7cf90c8b9eb283dfb1 | TimeSeries.interp_time should return a new TimeSeries
Currently, `TimeSeries.interp_time` returns an `xarray.DataArray`. I think it does make more sense to return a new `TimeSeries` instead. If the user really wants to get the underlying xarray object, he can fetch it after the interpolation. | diff --git a/CHANGELOG.md b/CHANGELOG.md
index d4d1e28..ea5da23 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,13 +9,12 @@
structures. [[#328]](https://github.com/BAMWelDX/weldx/pull/328)
- added `WeldxFile` wrapper to handle asdf files with history and schemas more
easily. [[#341]](https://github.com/BAMWel... |
BAMWelDX__weldx-363 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"weldx/util.py:xr_interp_like"
],
"edited_modules": [
"weldx/util.py:xr_interp_like"
]
},
"file": "weldx/util.py"
}
] | BAMWelDX/weldx | 5aa82b1710fcc85d3bbc1d5d07775ac1828adff6 | add "step" interpolation to xr_interp_like
For simplicity and consistency we should implement the `"step"` interpolation from `TimeSeries` as an option to `utility.xr_interp_like` | diff --git a/CHANGELOG.md b/CHANGELOG.md
index b645721..820178a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,7 @@
structures. [[#328]](https://github.com/BAMWelDX/weldx/pull/328)
- added `WeldxFile` wrapper to handle asdf files with
history and schemas more easily. [[#341]](https://github.com/BAMWelDX... |
BAMWelDX__weldx-364 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"weldx/asdf/tags/weldx/core/geometry/spatial_data.py:SpatialDataTypeASDF.from_tree"
],
"edited_modules": [
"weldx/asdf/tags/weldx/core/geometry/spatial_data.py:SpatialDataTypeASDF"
... | BAMWelDX/weldx | a98a4bd73fee8effb12aa7c8a421106842400a96 | CSM SpatialData serialization
I didn't debug in detail but it appears the CSM serialization does not serialize `SpatialData` that is attached? | diff --git a/CHANGELOG.md b/CHANGELOG.md
index b143ff8..2297253 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -45,6 +45,8 @@
- add `core/graph/di_node`, `core/graph/di_edge` & `core/graph/di_graph` for implementing a
generic `networkx.DiGraph` [[#330]](https://github.com/BAMWelDX/weldx/pull/330)
- compatibility ... |
BAMWelDX__weldx-377 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"weldx/util.py:_Eq_compare_nested._visit"
],
"edited_modules": [
"weldx/util.py:_Eq_compare_nested"
]
},
"file": "weldx/util.py"
}
] | BAMWelDX/weldx | e19fbc491b5f92b87f18810cc71a9164e0a42abd | Compare_nested doesn't take additional dict items of RHS into account
~~~ python
from weldx.util import compare_nested
d1 = dict(a=1)
d2 = dict(a=1, b=1)
print(compare_nested(d1, d2))
print(compare_nested(d2, d1))
~~~
returns:
~~~
True
False
~~~
So the additional member `b` of `d2` is not consider... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4e0056d..0160192 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,11 +9,10 @@
structures. [[#328]](https://github.com/BAMWelDX/weldx/pull/328)
- added `WeldxFile` wrapper to handle asdf files with history and schemas more
easily. [[#341]](https://github.com/BAMWel... |
BAMWelDX__weldx-384 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"weldx/asdf/tags/weldx/core/common_types.py:VariableTypeASDF.to_tree",
"weldx/asdf/tags/weldx/core/common_types.py:VariableTypeASDF.from_tree"
],
"edited_modules": [
"weldx/as... | BAMWelDX/weldx | 1999c8dfc1e9346206680f55cd484381c6ef4121 | DataArray attributes missing from Dataset ASDF serialization
When serializing and reading back a `Dataset`, only the main Dataset attributes get restored. Attributes attached to the individual DataArrays are lost.
```python
da = xr.DataArray(np.arange(10),name="arr1",attrs={"name":"sample data"})
ds = da.to_datase... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index ea5da23..1e3a30b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -56,6 +56,7 @@
- replace references to base asdf tags with `-1.*` version wildcard [[#373]](https://github.com/BAMWelDX/weldx/pull/373)
- update `single-pass-weldx.1.0.0.schema` to allow groove types by
... |
BAMWelDX__weldx-412 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"weldx/asdf/file.py:WeldxFile.__init__"
],
"edited_modules": [
"weldx/asdf/file.py:WeldxFile"
]
},
"file": "weldx/asdf/file.py"
}
] | BAMWelDX/weldx | 0b0d4b770207a087f49aa0629a0ca87d69dafe29 | resolve custom schema files in WeldxFile
when providing a string as `custom_schema` that does not resolve directly to a file in the directory we could try to find the schema file using our `get_schema_path` function
this would for example allow the following simplification:
```python
wx_file = WeldxFile("./single_... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 32a48ea..2da0912 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -42,6 +42,9 @@
places [[#402]](https://github.com/BAMWelDX/weldx/pull/402)
- `LocalCoordinateSystem.__init__` now accepts a `TimeSeries` as input. All methods of the `CoordinateSystemManager`
also supp... |
BAMWelDX__weldx-414 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"weldx/geometry.py:Geometry.spatial_data",
"weldx/geometry.py:SpatialData.from_geometry_raster"
],
"edited_modules": [
"weldx/geometry.py:Geometry",
"weldx/geometry.py... | BAMWelDX/weldx | 426ad3a281739b1bfb63930684d98645d36d7004 | closed mesh generation for default geometries
update the `util.triangulate_geometry` to (optionally) close the triangulation around all sides for default groove geometries | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4bf0cca..99fae28 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,26 @@
# Release Notes
+## 0.4.1 (unreleased)
+
+### added
+
+- `closed_mesh` parameter to `Geometry.spatial_data`
+ and `SpatialData.from_geometry_raster` [[#414]](https://github.com/BAMWelDX/weld... |
BAMWelDX__weldx-429 | [
{
"changes": {
"added_entities": [
"weldx/core.py:TimeSeries._check_data_array"
],
"added_modules": null,
"edited_entities": [
"weldx/core.py:TimeSeries.__init__",
"weldx/core.py:TimeSeries._initialize_discrete"
],
"edited_modules": [
"weldx/co... | BAMWelDX/weldx | d29a2de0c74264db977ffd21677c823690133663 | TimeSeries __init__ should understand xarray structures
As the title says, a `TimeSeries` should be constructible from a xarray structure that matches the internal format. This is currently not possible but would make it much easier to convert the data from our lab. | diff --git a/CHANGELOG.md b/CHANGELOG.md
index ff8f2cb..28c2458 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -12,6 +12,9 @@
### changes
+- `TimeSeries.__init__` accepts `xarray.DataArray` as `data`
+ parameter [[#429]](https://github.com/BAMWelDX/weldx/pull/429)
+
### fixes
### documentation
diff --git a/w... |
BAMWelDX__weldx-430 | [
{
"changes": {
"added_entities": [
"weldx/asdf/tags/weldx/core/transformations/coordinate_system_hierarchy.py:CoordinateSystemManagerSubsystem.__post_init__"
],
"added_modules": null,
"edited_entities": null,
"edited_modules": [
"weldx/asdf/tags/weldx/core/transform... | BAMWelDX/weldx | a142185148fd64648e0beca7d67c71853696fc79 | sort string list output in asdf tree
in some places we store lists of strings in asdf files, most for the CSM and related functions notably here:
https://github.com/BAMWelDX/weldx/blob/9ffdba4c3594fe9bd73f214005d2a6ab8314369d/weldx/asdf/tags/weldx/core/transformations/coordinate_system_hierarchy.py#L83-L92
The sort... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 28c2458..55e6bbf 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -21,6 +21,9 @@
### ASDF
+- sort `List[str]` before serialization of most `weldx` classes to avoid random reordering in the same file and enforce
+ consistency. [[#430]](https://github.com/BAMWelDX/weldx... |
BAMWelDX__weldx-476 | [
{
"changes": {
"added_entities": [
"weldx/transformations/local_cs.py:LocalCoordinateSystem.has_timeseries",
"weldx/transformations/local_cs.py:LocalCoordinateSystem._interp_time_orientation",
"weldx/transformations/local_cs.py:LocalCoordinateSystem._interp_time_coordinates"
... | BAMWelDX/weldx | c31df4415105543858065f3835aa6e8ad0ce2000 | CSM interpolation outside of time range
When interpolating between systems with any time dependency along the path, the result will always be time dependent even if the transformation is known to be static because no "real" time dependencies exist (or can exists) for the interpolation timeline.
Here is an example:
... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0769365..bb2096a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -31,6 +31,10 @@
- move `sine` utility function to `weldx.welding.util` [[#439]](https://github.com/BAMWelDX/weldx/pull/439)
- `LocalCoordinateSystem` and `CoordinateSystemManager` function parameters relate... |
BAMWelDX__weldx-494 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"weldx/tags/core/transformations/coordinate_system_hierarchy.py:CoordinateSystemManagerConverter.to_yaml_tree"
],
"edited_modules": [
"weldx/tags/core/transformations/coordinate_syste... | BAMWelDX/weldx | a5bebcfe8b5f9aa01903e98d374af2909f885136 | CSM merge does not consider assigned data
As discussed with @marscher last Friday, I tested if merging two CSMs transfers data to the child CSM to the parent CSM:
~~~ python
from weldx import CoordinateSystemManager
csm_1 = CoordinateSystemManager("r")
csm_1.create_cs("a", "r", coordinates=[1, 3, 4])
csm_1.cre... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index e83d93c..56df9c9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -51,6 +51,8 @@
- `WeldxFile.show_asdf_header` prints output on console, before it only returned the header as parsed dict and string
representation. Also tweaked efficiency by not writing binary
blocks... |
BAMWelDX__weldx-523 | [
{
"changes": {
"added_entities": [
"weldx/asdf/util.py:get_highest_tag_version"
],
"added_modules": [
"weldx/asdf/util.py:get_highest_tag_version"
],
"edited_entities": [
"weldx/asdf/util.py:get_weldx_extension"
],
"edited_modules": [
"we... | BAMWelDX/weldx | 55c5f463b89a0c11ee456878435822608891dba3 | find latest supported tag from pattern
It would be helpful to have a utility function that can find the latest version of a supported tag in the loaded `WeldxExtensions` (identified by a pattern using `uri_match`) | diff --git a/CHANGELOG.md b/CHANGELOG.md
index f0c5b92..aa32fec 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -16,6 +16,7 @@
[[#469]](https://github.com/BAMWelDX/weldx/pull/469).
- added classes and functions at the top-level of the package to the documentation
[[#437]](https://github.com/BAMWelDX/weldx/pulls/... |
BAMWelDX__weldx-539 | [
{
"changes": {
"added_entities": [
"weldx/asdf/file.py:WeldxFile._write_tree"
],
"added_modules": null,
"edited_entities": [
"weldx/asdf/file.py:WeldxFile.__init__",
"weldx/asdf/file.py:WeldxFile.fromkeys"
],
"edited_modules": [
"weldx/asdf/fil... | BAMWelDX/weldx | 872a476bdaae8b97b1ad904302a6e8aed0116c88 | `WeldxFile` does not delete removed block data on update
Consider the following script where we update a file mostly by removing stuff:
~~~ python
import asdf
import numpy as np
from weldx import WeldxFile
d1 = np.ones((10, 3)) * 2
d2 = np.ones((3)) * 3
d3 = np.ones((17)) * 4
d4 = np.ones((10, 4)) * 5
d5... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index e3422f4..6d58b74 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -62,6 +62,8 @@
- Merging and unmerging multiple `CoordinateSystemManager` instances now correctly preserves all attached data.
[[#494]](https://github.com/BAMWelDX/weldx/pull/494).
- `compare_nested` can... |
BAMWelDX__weldx-621 | [
{
"changes": {
"added_entities": [
"weldx/core.py:MathematicalExpression.set_parameters"
],
"added_modules": null,
"edited_entities": [
"weldx/core.py:MathematicalExpression.__init__",
"weldx/core.py:MathematicalExpression.set_parameter",
"weldx/core.py:Ma... | BAMWelDX/weldx | 6e78782a219216e920524ad21048bd6b9b950d69 | `MathematicalExpression` should support `xarray.DataArrays`
I have not fully thought this through and there might be some issue that prevents my suggestion, but it would be pretty nice if the `MathematicalExpression` would support `DataArray`s as parameters and values (during evaluation). This would make the implementa... | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index b4da0f3..099d5a2 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -46,6 +46,12 @@ changes
- improve dimension handling of `SpatialData` `[#622]
<https://github.com/BAMWelDX/weldx/pull/622>`__
+- The `MathematicalExpression` now supports `xarray.DataArray` as
+ ... |
BAMWelDX__weldx-625 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"weldx/asdf/cli/welding_schema.py:single_pass_weld_example"
],
"edited_modules": [
"weldx/asdf/cli/welding_schema.py:single_pass_weld_example"
]
},
"file": "weldx/asdf/c... | BAMWelDX/weldx | bb1e2c308e673a7e642ba01ce2ca614ab263043d | weldxfile: consider removing asdf metadata from user dictionary like operations.
During writing examples (doctests) for WeldxFile, I noticed that it would be bad, if users are able to delete basic asdf meta data like history, software versions etc.
So I'd suggest to remove these data from the users view, restricting i... | diff --git a/.github/workflows/build_pkg.yml b/.github/workflows/build_pkg.yml
index 0b1d900..9812a0d 100644
--- a/.github/workflows/build_pkg.yml
+++ b/.github/workflows/build_pkg.yml
@@ -13,7 +13,7 @@ on:
- '!.github/workflows/build.yml'
release:
types:
- - created
+ - published
schedule:
... |
BAMWelDX__weldx-641 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"weldx/asdf/file.py:WeldxFile.__init__"
],
"edited_modules": [
"weldx/asdf/file.py:WeldxFile"
]
},
"file": "weldx/asdf/file.py"
},
{
"changes": {
"added_en... | BAMWelDX/weldx | 299d199e4520c9108434a12abdeae05fbfddfca9 | weldxfile: catch ASDFWarnings for error handling
Lately I stumbled again into an issue we already had. K3D depends on jupyterlab in its project requirements, but it does not in the current conda-forge release. This downstream issue prevents the loading of our ASDF extension. Unfortunately ASDF decided to catch this exc... | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 5fdff2d..19501b8 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -15,13 +15,24 @@ removed
changes
=======
+- `WeldxFile` now raises an exception, if a warning is emitted during loading the weldx
+ ASDF extension, this should prevent erroneous data during loading, ... |
BAMWelDX__weldx-643 | [
{
"changes": {
"added_entities": [
"weldx/asdf/file.py:WeldxFile._config_context"
],
"added_modules": null,
"edited_entities": [
"weldx/asdf/file.py:WeldxFile.__init__",
"weldx/asdf/file.py:WeldxFile._write_tree",
"weldx/asdf/file.py:WeldxFile.sync",
... | BAMWelDX/weldx | 22f6e1e585e31dc12e4fcc6231eef58fb747b9b1 | set default inline threshold
I think it would make sense to set a (sensible) default threshold to inline array values for most of our use cases
I think 10 should be a good value because it will inline a single (static) 3x rotation matrix and short list of vectors e.g. movements between two points
```yaml
coordinat... | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 19501b8..25677fa 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -9,6 +9,12 @@
added
=====
+- `WeldxFile` handles an ``array_inline_threshold`` parameter to indicate if short arrays
+ will be serialized as strings, or as binary block. Note that this does not affec... |
BAMWelDX__weldx-645 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": [
"weldx/time.py:Time"
]
},
"file": "weldx/time.py"
},
{
"changes": {
"added_entities": [
"weldx/transformations/cs_manager.py:CoordinateSy... | BAMWelDX/weldx | 595cc1af0910c7af280998e672ae6ab28eb734bb | [CSM] add possibility to remove assigned data again. | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 55814de..dc0d0f9 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -56,3 +56,8 @@ repos:
- id: jupyter-notebook-cleanup
args:
- --remove-kernel-metadata
+ - repo: https://github.com/codespell-project/cod... |
BAMWelDX__weldx-648 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"weldx/transformations/cs_manager.py:CoordinateSystemManager.__eq__"
],
"edited_modules": [
"weldx/transformations/cs_manager.py:CoordinateSystemManager"
]
},
"file": "w... | BAMWelDX/weldx | 37535aaed930a59f96db680c09f9b892d50e4c2d | CSM.__eq__ does not consider attached data
This is a really low priority issue since CSM comparison is mainly used in tests, but as the title says, attached data is not considered during the comparison. | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index dd121c5..2d31cf3 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -57,6 +57,10 @@ dependencies
- Removed ``ipykernel`` dependency. `[#634]
<https://github.com/BAMWelDX/weldx/pull/634>`__
+- The ``K3D`` implementation now uses the experimental
+ ``weldx-widget... |
BAMWelDX__weldx-699 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "weldx/__init__.py"
},
{
"changes": {
"added_entities": [
"weldx/core.py:SpatialSeries.__init__",
"weldx/core.py:SpatialSeries._p... | BAMWelDX/weldx | 71dd04deac60b01bdb2979bcf219f0182f63919c | `SpatialSeries` class
As a first step towards series-based trace and shape segments, we need to derive a `SpatialSeries` from the `GenericSeries`. This is basically a series of 2d or 3d coordinates. | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index b104a11..1e3d0a3 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -29,7 +29,7 @@ repos:
- mdformat-config
# ----- Python formatting -----
- repo: https://github.com/sondrelg/pep585-upgrade
- rev: v1
+ rev: v... |
BAMWelDX__weldx-759 | [
{
"changes": {
"added_entities": [
"weldx/asdf/util.py:_ProtectedViewDict._wrap_protected_non_existent"
],
"added_modules": null,
"edited_entities": [
"weldx/asdf/util.py:_ProtectedViewDict.__init__",
"weldx/asdf/util.py:_ProtectedViewDict._data",
"weldx/a... | BAMWelDX/weldx | 9af804a48c158637d171c0a8a1a4aa2e28ddcd2a | `WeldxFile` doesn't raise `KeyError` on missing key
When trying to access a non existing key from `WeldxFile`, `None` is returned instead of raising a `KeyError`.
```python
from weldx import WeldxFile
with WeldxFile(tree={"key":"value"}, mode="rw") as wxf:
print(wxf["key"])
print(wxf["anything"])
# val... | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 10fea55..8241115 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -15,6 +15,10 @@ removed
changes
=======
+- `WeldxFile` now raises a `KeyError`, if the user tries to directly read or manipulate a protected ASDF keyword
+ within the file. [:pull:`759`]
+
+
fixes... |
BAMWelDX__weldx-770 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"weldx/core.py:MathematicalExpression.__init__"
],
"edited_modules": [
"weldx/core.py:MathematicalExpression"
]
},
"file": "weldx/core.py"
},
{
"changes": {
... | BAMWelDX/weldx | eac3ca0adc70cf8130ae8a96f4bc123bb5bcaf9a | Optimize length calculation of `DynamicBaseSegment`
The length calculation for expressions can actually fail in its current form. Here is an example:
~~~ python
from weldx import Q_, DynamicShapeSegment
class MySegment(DynamicShapeSegment):
def __init__(self):
f = "x * sin(s) + y * s"
p ... | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 1558f9b..f834d8c 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -2,6 +2,16 @@
Release Notes
###############
+********************
+ 0.6.2 (tba)
+********************
+
+fixes
+=====
+
+- `MathematicalExpression` now uses SciPy and NumPy in numerical function eva... |
BAMWelDX__weldx-864 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"weldx/core/math_expression.py:MathematicalExpression.set_parameters"
],
"edited_modules": [
"weldx/core/math_expression.py:MathematicalExpression"
]
},
"file": "weldx/c... | BAMWelDX/weldx | 91140eb0ad7193e317aa5998f535dbcc417e94bd | Serializing MathematicalExpression with not quantified xarray.DataArray fails
IMO this snippet should work
``` python
import weldx
import xarray as xr
x = xr.DataArray([1,2,3])
m = weldx.MathematicalExpression("x**2 + 4*x + 7", {"x": x})
weldx.WeldxFile(tree={"m": m}, mode="rw")
```
but raises:
``` pyt... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4f84e0c..5d227fa 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,9 +2,13 @@
## 0.6.5 (unreleased)
+### Fixes
+
+- fix non quantified xarray parameter inputs to `MathematicalExpression` \[{pull}`864`\].
+
### Dependencies
-- require XArray >= 2022.9.0, as `LocalC... |
BBN-Q__Auspex-98 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/auspex/experiment.py:Experiment.__init__",
"src/auspex/experiment.py:Experiment.set_graph",
"src/auspex/experiment.py:Experiment.run_sweeps",
"src/auspex/experiment.py:Experi... | BBN-Q/Auspex | 783df41a1baaeb7a85611e5d599d07510df0d1ff | Defer update_descriptors() until run time
Many filters are quite confused about their lot in life before the experiment has all of its parameter sweeps added. Defer calling update_descriptors() until we actually want to run. | diff --git a/src/auspex/experiment.py b/src/auspex/experiment.py
index 936fa70f..6452b6f8 100644
--- a/src/auspex/experiment.py
+++ b/src/auspex/experiment.py
@@ -237,7 +237,6 @@ class Experiment(metaclass=MetaExperiment):
# Run the stream init
self.init_streams()
- self.update_descriptors()
... |
BME-MIT-IET__iet-hf2021-snek-19 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"algorithms/strings/validate_coordinates.py:is_valid_coordinates_regular_expression"
],
"edited_modules": [
"algorithms/strings/validate_coordinates.py:is_valid_coordinates_regular_ex... | BME-MIT-IET/iet-hf2021-snek | fefa5a063a3eaef3ea43d458d4aa12115e57f272 | validate_coordinates.py includes a bug
The regex used doesn't invalidate on integer numbers out of range. | diff --git a/algorithms/strings/validate_coordinates.py b/algorithms/strings/validate_coordinates.py
index 371214b..0520b92 100644
--- a/algorithms/strings/validate_coordinates.py
+++ b/algorithms/strings/validate_coordinates.py
@@ -46,4 +46,4 @@ def is_valid_coordinates_1(coordinates):
# using regular expression
d... |
BQSKit__bqskit-126 | [
{
"changes": {
"added_entities": [
"bqskit/passes/search/generators/fourparam.py:FourParamGenerator.count_outer_cnots"
],
"added_modules": null,
"edited_entities": [
"bqskit/passes/search/generators/fourparam.py:FourParamGenerator.gen_successors"
],
"edited_mo... | BQSKit/bqskit | 27e209149392231fdaccedfb39ae20b4173c844e | Synthesized circuits have 2-qubit gates with > 3 CNOTs
In some cases, synthesizing eg a 3-qubit unitary gives a block with 4 or 5 layers of e.g.
`cx q[1], q[2];`
separated by single-qubit gates.
This seems like an easy type of block to look for, then the number of CNOTs on the same pair of qubits can be limited t... | diff --git a/bqskit/passes/search/generators/fourparam.py b/bqskit/passes/search/generators/fourparam.py
index e03e883..f8ca437 100644
--- a/bqskit/passes/search/generators/fourparam.py
+++ b/bqskit/passes/search/generators/fourparam.py
@@ -76,8 +76,13 @@ class FourParamGenerator(LayerGenerator):
# Generate su... |
BQSKit__bqskit-134 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"bqskit/compiler/compile.py:_opt1_workflow",
"bqskit/compiler/compile.py:_opt2_workflow",
"bqskit/compiler/compile.py:_opt3_workflow"
],
"edited_modules": [
"bqskit/co... | BQSKit/bqskit | 27e209149392231fdaccedfb39ae20b4173c844e | Compiler ignores custom gate set when compiling a random 2-qubit circuit
Example to reproduce:
```
import bqskit
from bqskit.ext import qiskit_to_bqskit
import qiskit as qs
import qutip as qt
import numpy as np
circ = qs.QuantumCircuit(2)
u = qt.rand_unitary_haar(4)
random_unitary = qs.quantum_info.operators... | diff --git a/bqskit/compiler/compile.py b/bqskit/compiler/compile.py
index ee9fcbe..1237948 100644
--- a/bqskit/compiler/compile.py
+++ b/bqskit/compiler/compile.py
@@ -443,7 +443,7 @@ def _opt1_workflow(
if g.num_qudits != 1
)
non_native_gates = [
- g for g in circuit.gate_set... |
BQSKit__bqskit-173 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"bqskit/compiler/compile.py:compile"
],
"edited_modules": [
"bqskit/compiler/compile.py:compile"
]
},
"file": "bqskit/compiler/compile.py"
},
{
"changes": {
... | BQSKit/bqskit | c89112d15072e8ffffb68cf1757b184e2aeb3dc8 | `DaggerGate` vs actually inverting the gate, qasm output for `DaggerGate`
The `get_inverse` method currently returns `DaggerGate` objects. For small gates (single-qubit gates, CNOT, etc), is there a reason to save these as, eg, `DaggerGate(CNOTGate)` rather than just computing the adjoint (in this case, again CNOT)?
... | diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml
index 57e478b..34e4ce9 100644
--- a/.github/workflows/pre-commit.yml
+++ b/.github/workflows/pre-commit.yml
@@ -3,7 +3,7 @@ name: pre-commit
on:
pull_request:
push:
- branches: [main]
+ branches: [master]
jobs:
pre-commi... |
BQSKit__bqskit-215 | [
{
"changes": {
"added_entities": [
"bqskit/ir/gates/composed/controlled.py:ControlledGate.qasm_name"
],
"added_modules": null,
"edited_entities": null,
"edited_modules": [
"bqskit/ir/gates/composed/controlled.py:ControlledGate"
]
},
"file": "bqskit/ir/... | BQSKit/bqskit | 1ee59f11da206c3b18667c7691aded816016c8ed | Is it possible to get the QASM string representation of a BQSKit circuit?
Hi,
Is it possible to get the QASM string representation of a BQSKit circuit? | diff --git a/bqskit/ir/gates/composed/controlled.py b/bqskit/ir/gates/composed/controlled.py
index 3ed8a15..0056e18 100644
--- a/bqskit/ir/gates/composed/controlled.py
+++ b/bqskit/ir/gates/composed/controlled.py
@@ -286,6 +286,33 @@ class ControlledGate(ComposedGate, DifferentiableUnitary):
ctrl_U = np.kr... |
BQSKit__bqskit-267 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"bqskit/qis/unitary/unitary.py:Unitary.dim"
],
"edited_modules": [
"bqskit/qis/unitary/unitary.py:Unitary"
]
},
"file": "bqskit/qis/unitary/unitary.py"
}
] | BQSKit/bqskit | 200e79985cdfbca753dd833a3a50fa84f7afc5c4 | `circuit.dim` is 0 for large circuits
If you print `circuit.dim` for a large (e.g. 1024 qubit) circuit, you will get 0. The 0 is coming from an integer overflow that numpy does not report.
I don't expect the correct answer (2^1024 is absurdly large), but some feedback (an error or warning) would be nice. Since num... | diff --git a/bqskit/qis/unitary/unitary.py b/bqskit/qis/unitary/unitary.py
index fb797ec..b9f9966 100644
--- a/bqskit/qis/unitary/unitary.py
+++ b/bqskit/qis/unitary/unitary.py
@@ -54,7 +54,14 @@ class Unitary(metaclass=UnitaryMeta):
if hasattr(self, '_dim'):
return self._dim
- return int... |
BYUCamachoLab__simphony-96 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"simphony/circuit.py:Circuit.__init__"
],
"edited_modules": [
"simphony/circuit.py:Circuit"
]
},
"file": "simphony/circuit.py"
},
{
"changes": {
"added_ent... | BYUCamachoLab/simphony | e3b4057bd41468e91f65d3c93d69291290c3f2dd | Model objects should take a name option in the constructor
Model objects have a setter to set their name here, and a property for it here
https://github.com/BYUCamachoLab/simphony/blob/683843ccec7d59f39d6e4724f1e65def362349ac/simphony/models.py#L363C9-L363C9
but they don't take an optional name argument in their ... | diff --git a/docs/_config.yml b/docs/_config.yml
index 676172a..af539f1 100644
--- a/docs/_config.yml
+++ b/docs/_config.yml
@@ -70,7 +70,7 @@ sphinx:
config:
autosummary_generate: true
autodoc_typehints: 'signature'
- autodoc_mock_imports: []
+ autodoc_mock_imports: ["SiPANN", "parsimonious", "jax"]... |
BaPSF__bapsflib-30 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"bapsflib/_hdf/maps/digitizers/sis3301.py:HDFMapDigiSIS3301._adc_info_first_pass",
"bapsflib/_hdf/maps/digitizers/sis3301.py:HDFMapDigiSIS3301._adc_info_second_pass"
],
"edited_module... | BaPSF/bapsflib | c3d90ff2393aabd3dddaedb85c9b23bc5397333b | On the SmPD, the 'SIS 3301' digitizer labels the shot number field as 'Shot number' instead of 'Shot'
Traditionally, the `'SIS 3301'` digitizer header datasets label the shot number field as `'Shot'`. At some point this field was re-labeled as `'Shot number'`.
This is evident in the HDF5 files generated by the SmPD... | diff --git a/bapsflib/_hdf/maps/digitizers/sis3301.py b/bapsflib/_hdf/maps/digitizers/sis3301.py
index 65608c5..f86980c 100644
--- a/bapsflib/_hdf/maps/digitizers/sis3301.py
+++ b/bapsflib/_hdf/maps/digitizers/sis3301.py
@@ -143,10 +143,22 @@ class HDFMapDigiSIS3301(HDFMapDigiTemplate):
# add 'sample ave... |
BaPSF__bapsflib-41 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"bapsflib/_hdf/utils/helpers.py:condition_shotnum"
],
"edited_modules": [
"bapsflib/_hdf/utils/helpers.py:condition_shotnum"
]
},
"file": "bapsflib/_hdf/utils/helpers.py... | BaPSF/bapsflib | 08a56b9001c607982778b16f15a30dd88ba3cf31 | Function condition_shotnum() throws ValueError if conditioned shotnum is a single element ndarry
[`condition_shotnum()`](https://github.com/BaPSF/bapsflib/blob/b25f05370c0fc601aa7f8e1dff4f17eeec1f8e45/bapsflib/_hdf/utils/helpers.py#L476) throws a `ValueError` at [line 568](https://github.com/BaPSF/bapsflib/blob/b25f053... | diff --git a/bapsflib/_hdf/utils/helpers.py b/bapsflib/_hdf/utils/helpers.py
index 28cdde8..4e103c5 100644
--- a/bapsflib/_hdf/utils/helpers.py
+++ b/bapsflib/_hdf/utils/helpers.py
@@ -561,7 +561,8 @@ def condition_shotnum(shotnum: Any,
'array would be NULL')
elif isinstance(shotnum... |
Bachmann1234__diff_cover-210 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"diff_cover/diff_cover_tool.py:parse_coverage_args",
"diff_cover/diff_cover_tool.py:generate_coverage_report"
],
"edited_modules": [
"diff_cover/diff_cover_tool.py:parse_cover... | Bachmann1234/diff_cover | 5f7aeea8b95441f8286a38524ce0234e1716e304 | why HTML&JSON reports are prohibited and why they cannot be generated at the same time
Want to know why HTML&JSON reports are prohibited and why they cannot be generated at the same time
`output_format = parser.add_mutually_exclusive_group()` | diff --git a/diff_cover/diff_cover_tool.py b/diff_cover/diff_cover_tool.py
index 2894013..e74a453 100644
--- a/diff_cover/diff_cover_tool.py
+++ b/diff_cover/diff_cover_tool.py
@@ -60,9 +60,7 @@ def parse_coverage_args(argv):
parser.add_argument("coverage_xml", type=str, help=COVERAGE_XML_HELP, nargs="+")
- ... |
Bachmann1234__diff_cover-218 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"diff_cover/diff_cover_tool.py:parse_coverage_args",
"diff_cover/diff_cover_tool.py:generate_coverage_report",
"diff_cover/diff_cover_tool.py:main"
],
"edited_modules": [
... | Bachmann1234/diff_cover | 2f1c4377a9ca57d849b63874598487e1a7a50b15 | diff-quality doesn't consider untracked files
Hi,
so I just found out, that diff-quality doesn't consider untracked files. So new files which are staged are checked, but unstaged new files are ignore. The root cause is, that git-diff doesn't consider them as well. As far as I know, it's needed to include them manual... | diff --git a/README.rst b/README.rst
index c09d16a..6e184e3 100644
--- a/README.rst
+++ b/README.rst
@@ -224,6 +224,15 @@ The following is executed for every changed file:
#. if yes, check if the changed file is part of at least one include pattern
#. check if the file is part of any exclude pattern
+Ignore/Include... |
Bachmann1234__diff_cover-277 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"diff_cover/violationsreporters/violations_reporter.py:PylintDriver.__init__"
],
"edited_modules": [
"diff_cover/violationsreporters/violations_reporter.py:PylintDriver"
]
}... | Bachmann1234/diff_cover | d9efc6c0e5f1c94a25d0772d149d08ecb2542aa1 | diff-quality fails with ValueError: invalid literal for int() with base 10: '470]'
When running `diff-quality` tool I have the following exception:
```
Traceback (most recent call last):
File "/usr/local/bin/diff-quality", line 8, in <module>
sys.exit(main())
File "/home/jenkins/.local/lib/python3.8/site... | diff --git a/diff_cover/violationsreporters/violations_reporter.py b/diff_cover/violationsreporters/violations_reporter.py
index c61aff6..75ae51f 100644
--- a/diff_cover/violationsreporters/violations_reporter.py
+++ b/diff_cover/violationsreporters/violations_reporter.py
@@ -402,7 +402,7 @@ class PylintDriver(QualityD... |
Bachmann1234__diff_cover-300 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"diff_cover/report_generator.py:BaseReportGenerator._diff_violations"
],
"edited_modules": [
"diff_cover/report_generator.py:BaseReportGenerator"
]
},
"file": "diff_cove... | Bachmann1234/diff_cover | 72722598401aa2f4c0996c50841c560ad6492a40 | Add support for report generator plugins that process modified files as a batch, rather than individually
SQLFluff implements the `diff-quality` plugin protocol. SQLFluff users have requested that the `diff-quality` integration should take advantage of SQLFluff's multiprocessing capability (processing files in parallel... | diff --git a/README.rst b/README.rst
index f184bc5..6c8180b 100644
--- a/README.rst
+++ b/README.rst
@@ -64,7 +64,8 @@ To install the development version:
git clone https://github.com/Bachmann1234/diff-cover.git
cd diff-cover
- python setup.py install
+ poetry install
+ poetry shell
Getting St... |
Bachmann1234__diff_cover-413 | [
{
"changes": {
"added_entities": [
"diff_cover/diff_reporter.py:GitDiffReporter._get_file_lines",
"diff_cover/diff_reporter.py:GitDiffReporter._validate_path_to_diff"
],
"added_modules": null,
"edited_entities": [
"diff_cover/diff_reporter.py:GitDiffReporter.src_p... | Bachmann1234/diff_cover | e235b209d55dcec1867f71b6d52ab2dd798912e5 | UnicodeDecodeError when an untracked binary file is present in the repository
**Problem description**
I have discovered a bug in the diff-cover library. When an untracked binary file is present in the repository, the library fails to read it and throws the following error:
```
File "/Users/user/PycharmProjects/som... | diff --git a/diff_cover/diff_reporter.py b/diff_cover/diff_reporter.py
index a9404d4..8f404b9 100644
--- a/diff_cover/diff_reporter.py
+++ b/diff_cover/diff_reporter.py
@@ -165,18 +165,31 @@ class GitDiffReporter(BaseDiffReporter):
# Get the diff dictionary
diff_dict = self._git_diff()
-
# ... |
Backblaze__B2_Command_Line_Tool-173 | [
{
"changes": {
"added_entities": [
"b2/sync.py:SyncReport.local_access_error"
],
"added_modules": null,
"edited_entities": [
"b2/sync.py:SyncReport.__init__",
"b2/sync.py:SyncReport.close",
"b2/sync.py:AbstractFolder.all_files",
"b2/sync.py:LocalFo... | Backblaze/B2_Command_Line_Tool | ab2b5b4e3dc2c8b52b28592c7414ebb4646034e2 | Broken symlink break sync
I had this issue where one of my sysmlinks was broken and b2 tool broke, this is the stack trace:
```
Traceback (most recent call last):
File "/usr/local/bin/b2", line 9, in <module>
load_entry_point('b2==0.5.4', 'console_scripts', 'b... | diff --git a/b2/sync.py b/b2/sync.py
index c3c4ad9..cffdc81 100644
--- a/b2/sync.py
+++ b/b2/sync.py
@@ -67,12 +67,15 @@ class SyncReport(object):
self.closed = False
self.lock = threading.Lock()
self._update_progress()
+ self.warnings = []
def close(self):
with self.lo... |
Backblaze__B2_Command_Line_Tool-178 | [
{
"changes": {
"added_entities": [
"b2/bucket.py:LargeFileUploadState.get_error_message"
],
"added_modules": null,
"edited_entities": [
"b2/bucket.py:LargeFileUploadState.__init__"
],
"edited_modules": [
"b2/bucket.py:LargeFileUploadState"
]
... | Backblaze/B2_Command_Line_Tool | 761d24c8dbd00f94decbf14cf0136de0a0d9f054 | LargeFileUploadState object has no attribute get_error_message
In my backup log file I saw this line:
`b2_upload(/backup/#########.tar.gz,#########.tar.gz, 1466468375649): AttributeError("'LargeFileUploadState' object has no attribute 'get_error_message'",) 'LargeFileUploadState' object has no attribute 'get_error_m... | diff --git a/b2/bucket.py b/b2/bucket.py
index 9347570..6d4332a 100644
--- a/b2/bucket.py
+++ b/b2/bucket.py
@@ -34,7 +34,7 @@ class LargeFileUploadState(object):
"""
def __init__(self, file_progress_listener):
- self.lock = threading.Lock()
+ self.lock = threading.RLock()
self.error_... |
Backblaze__B2_Command_Line_Tool-259 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"b2/api.py:B2Api.download_file_by_id"
],
"edited_modules": [
"b2/api.py:B2Api"
]
},
"file": "b2/api.py"
},
{
"changes": {
"added_entities": null,
"ad... | Backblaze/B2_Command_Line_Tool | aad90d09c01c9a8fe4e91fca3d6a1a0a85ded02a | Feature request: Optional range parameter for download request
Hi!
Developer of B2Fuse here. An idea was put forth to use B2 CLI Python API as backend for B2Fuse to handle integration against B2. This is an excellent idea but requires an additional feature from B2 CLI. In order to use B2 CLI Python API in B2Fuse th... | diff --git a/README.md b/README.md
index a2de296..768e21b 100644
--- a/README.md
+++ b/README.md
@@ -11,7 +11,7 @@ The command-line tool that gives easy access to all of the capabilities of B2 Cl
This program provides command-line access to the B2 service.
-Version 0.6.9
+Version 0.6.7
# Installation
@@ -33,7... |
Backblaze__B2_Command_Line_Tool-295 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"b2/api.py:B2Api.create_bucket"
],
"edited_modules": [
"b2/api.py:B2Api"
]
},
"file": "b2/api.py"
},
{
"changes": {
"added_entities": [
"b2/bucket.... | Backblaze/B2_Command_Line_Tool | c76e29d47bf6e98b52f18858f6d91675f13eac74 | support for bucket info and lifecycle rules
The B2 service now supports storing bucket info with a bucket, and will soon support setting lifecycle rules to automatically delete old versions of files.
Any thoughts on what the interface to the command-line tool should be?
The obvious thing to do is to add `--bucket... | diff --git a/README.md b/README.md
index 74bdb06..e642d09 100644
--- a/README.md
+++ b/README.md
@@ -31,7 +31,7 @@ this:
b2 cancel_all_unfinished_large_files <bucketName>
b2 cancel_large_file <fileId>
b2 clear_account
- b2 create_bucket <bucketName> [allPublic | allPrivate]
+ b2 create_bucket [--bu... |
Backblaze__B2_Command_Line_Tool-302 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"b2/console_tool.py:UploadFile.run"
],
"edited_modules": [
"b2/console_tool.py:UploadFile"
]
},
"file": "b2/console_tool.py"
},
{
"changes": {
"added_entit... | Backblaze/B2_Command_Line_Tool | 0fe4f2d0faad6e4e86d668b54958d93bc116b85c | Set `src_last_modified_millis` in `b2 upload_file`
When you use `sync` to upload files, it always sets `src_last_modified_millis`. But uploading single files doesn't, which can cause later syncs to get confused.
I propose that `src_last_modified_millis` be set for every uploaded file. If the user doesn't specify a... | diff --git a/b2/console_tool.py b/b2/console_tool.py
index 0e7c7c7..bf15d7b 100644
--- a/b2/console_tool.py
+++ b/b2/console_tool.py
@@ -35,7 +35,7 @@ from .exception import (B2Error, BadFileInfo)
from .file_version import (FileVersionInfo)
from .parse_args import parse_arg_list
from .progress import (make_progress_... |
Backblaze__B2_Command_Line_Tool-304 | [
{
"changes": {
"added_entities": [
"b2/console_tool.py:mixed_case_to_hyphens"
],
"added_modules": [
"b2/console_tool.py:mixed_case_to_hyphens"
],
"edited_entities": [
"b2/console_tool.py:mixed_case_to_underscores",
"b2/console_tool.py:ConsoleTool.__i... | Backblaze/B2_Command_Line_Tool | 967dbda851bab6aa8adf7d61b46a337595d8480a | Underscore in command should be avoided
AFAIK I've never seen underscores in commands `authorize_account`.
Please consider moving to dashes. `authorize-account`
See https://github.com/pallets/click and http://click.pocoo.org/5/why/
| diff --git a/README.md b/README.md
index 2a38ff9..9ffca80 100644
--- a/README.md
+++ b/README.md
@@ -27,32 +27,32 @@ this:
# Usage
- b2 authorize_account [<accountId>] [<applicationKey>]
- b2 cancel_all_unfinished_large_files <bucketName>
- b2 cancel_large_file <fileId>
- b2 clear_account
- b2 creat... |
Backblaze__B2_Command_Line_Tool-332 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"b2/sync/policy.py:make_b2_keep_days_actions"
],
"edited_modules": [
"b2/sync/policy.py:make_b2_keep_days_actions"
]
},
"file": "b2/sync/policy.py"
}
] | Backblaze/B2_Command_Line_Tool | 26ba7c389b732b2202da62a28826a893a8d47749 | CLI Sync errors
Hi all,
after i finished my first sync to Cloud after 3 weeks, i have now errors while syncing new files to the Cloud.
The following lines occurs after a few seconds when i start my CLI Command
```
C:\Program Files\Python36\Scripts>b2.exe sync --excludeRegex DfsrPrivate --threads 10 --keepDays 30 ... | diff --git a/b2/sync/policy.py b/b2/sync/policy.py
index b8e7435..5b74f97 100644
--- a/b2/sync/policy.py
+++ b/b2/sync/policy.py
@@ -240,7 +240,6 @@ def make_b2_keep_days_actions(
only the 25-day old version can be deleted. The 15 day-old version
was visible 10 days ago.
"""
- prev_age_days = None
... |
Backblaze__B2_Command_Line_Tool-420 | [
{
"changes": {
"added_entities": [
"b2/sync/scan_policies.py:convert_dir_regex_to_dir_prefix_regex"
],
"added_modules": [
"b2/sync/scan_policies.py:convert_dir_regex_to_dir_prefix_regex"
],
"edited_entities": [
"b2/sync/scan_policies.py:ScanPoliciesManager._... | Backblaze/B2_Command_Line_Tool | 15a60ad1c71b75366061e4f742ef52eb9dcc23e7 | --excludeDirRegex does not work when source is B2
The new filtering that lets you exclude an entire directory works in the `LocalFolder` class, but not the `B2Folder` class.
I think there are two possible approaches to fixing it: (1) change B2Folder to simulate the existence of directories, and check them for exclus... | diff --git a/b2/sync/scan_policies.py b/b2/sync/scan_policies.py
index 198c079..dfb9413 100644
--- a/b2/sync/scan_policies.py
+++ b/b2/sync/scan_policies.py
@@ -27,10 +27,45 @@ class RegexSet(object):
return any(c.match(s) is not None for c in self._compiled_list)
+def convert_dir_regex_to_dir_prefix_regex... |
Backblaze__B2_Command_Line_Tool-488 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"b2/api.py:B2Api.get_bucket_by_name",
"b2/api.py:B2Api.list_buckets"
],
"edited_modules": [
"b2/api.py:B2Api"
]
},
"file": "b2/api.py"
},
{
"changes": {
... | Backblaze/B2_Command_Line_Tool | 4154652165dd475d79de606abd70b6debc4596d4 | b2.api.B2Api.get_bucket_by_name does not work with bucket-scoped application keys
I am using Duplicity 0.7.17 and b2 1.3.2.
duplicity is executed using
```
duplicity \
--verbosity debug \
/backup \
"b2://$B2_APP_KEY_ID:$B2_APP_KEY@$B2_BUCKET_NAME"
```
Where `$B2_APP_KEY_ID` and `$B2_APP_KEY` a... | diff --git a/b2/api.py b/b2/api.py
index 017f5ba..a1400e1 100644
--- a/b2/api.py
+++ b/b2/api.py
@@ -205,20 +205,27 @@ class B2Api(object):
def get_bucket_by_name(self, bucket_name):
"""
- Returns the bucket_id for the given bucket_name.
+ Returns the Bucket for the given bucket_name.
- ... |
Backblaze__B2_Command_Line_Tool-499 | [
{
"changes": {
"added_entities": [
"b2/account_info/abstract.py:AbstractAccountInfo.get_account_id_or_app_key_id"
],
"added_modules": null,
"edited_entities": [
"b2/account_info/abstract.py:AbstractAccountInfo.set_auth_data",
"b2/account_info/abstract.py:AbstractA... | Backblaze/B2_Command_Line_Tool | f0822f0207097d36b06e30a987b8210470f92930 | Automatic re-authorizing with application key does not work
When it re-authorizes, it should use the same application key used for the original authentication, but it's using the account ID. | diff --git a/b2/account_info/abstract.py b/b2/account_info/abstract.py
index 3b1f77f..44bbdbd 100644
--- a/b2/account_info/abstract.py
+++ b/b2/account_info/abstract.py
@@ -88,6 +88,10 @@ class AbstractAccountInfo(object):
def get_account_id(self):
""" returns account_id or raises MissingAccountData excep... |
Backblaze__B2_Command_Line_Tool-643 | [
{
"changes": {
"added_entities": [
"b2/console_tool.py:AuthorizeAccount._get_realm"
],
"added_modules": null,
"edited_entities": [
"b2/console_tool.py:AuthorizeAccount._setup_parser",
"b2/console_tool.py:AuthorizeAccount.run"
],
"edited_modules": [
... | Backblaze/B2_Command_Line_Tool | cd5618431964b317d1bfa03c03f2798afd0c5296 | Please add an option to authorize_account to let me specify a base url.
The goal is to let us run the CLI against other B2 instances without having to change the code to add additional arguments like the "--staging" and "--dev" arguments that currently exist.
Here's a potential example:
b2 authorize-account --... | diff --git a/README.md b/README.md
index beaabdc..727ae51 100644
--- a/README.md
+++ b/README.md
@@ -108,6 +108,10 @@ For advanced users, a hidden option `--logConfig <filename.ini>` can be used to
# Release History
+## Not released yet
+
+* Add `--environment` internal parameter for `authorize-account`
+
## 2.0.... |
Becksteinlab__numkit-8 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/numkit/timeseries.py:smooth"
],
"edited_modules": [
"src/numkit/timeseries.py:smooth"
]
},
"file": "src/numkit/timeseries.py"
}
] | Becksteinlab/numkit | af05227af13f4bb56f867b026014048f0e3f0454 | timeseries.smooth() fails in Python 3
In Py 3
```
> return y[(window_len-1)/2:-(window_len-1)/2] # take off repeats on ends
E TypeError: slice indices must be integers or None or have an __index__ method
``` | diff --git a/CHANGES b/CHANGES
index 267c22e..d6525cb 100644
--- a/CHANGES
+++ b/CHANGES
@@ -2,6 +2,11 @@
CHANGELOG for numkit
======================
+2018-08-08 1.1.1
+orbeckst
+
+* fixed numkit.timeseries.smooth() under Python 3 (issue #7)
+
2018-04-27 1.1.0
orbeckst, kain88-de
diff --git a/src/num... |
Benardi__touvlo-34 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"touvlo/utils.py:gradient_descent"
],
"edited_modules": [
"touvlo/utils.py:gradient_descent"
]
},
"file": "touvlo/utils.py"
}
] | Benardi/touvlo | 0e1ee71ebec9a09370f928dd96d0ae11f3bba404 | Generalize the function utils.gradient_descent
The function `gradient_descent` should only be aware of the parameters `X, y, grad, initial_theta,alpha, num_iters`. Any further parameter should be fed to the `grad` function with no impact in the signature of the function `gradient_descent`.
TL; DR: Edit the functio... | diff --git a/touvlo/utils.py b/touvlo/utils.py
index fdf47db..ca8531c 100644
--- a/touvlo/utils.py
+++ b/touvlo/utils.py
@@ -35,7 +35,7 @@ def g_grad(x):
def gradient_descent(X, y, grad, initial_theta,
- alpha, num_iters, _lambda=None):
+ alpha, num_iters, **kwargs):
""... |
BerkeleyLearnVerify__Scenic-316 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"src/scenic/core/dynamics/scenarios.py:DynamicScenario.__init__",
"src/scenic/core/dynamics/scenarios.py:DynamicScenario._addRequirement",
"src/scenic/core/dynamics/scenarios.py:DynamicSc... | BerkeleyLearnVerify/Scenic | 4ae8ee2f254e82675d2625e081cd157d19356e3d | assert not externals.nonlocals error
### System Details
1. Python 3.10.6
2. Scenic 3.0.0
3. Windows 10
### Detailed Description
Code used to produce error:
```
workspace = Workspace(RectangularRegion(Vector(0,0,30), 0, 100,100))
def createChunk():
position = new Point in workspace
chunkArea = R... | diff --git a/src/scenic/core/dynamics/scenarios.py b/src/scenic/core/dynamics/scenarios.py
index 77ec470e..61a55e48 100644
--- a/src/scenic/core/dynamics/scenarios.py
+++ b/src/scenic/core/dynamics/scenarios.py
@@ -58,7 +58,7 @@ class DynamicScenario(Invocable):
self._objects = [] # ordered for reproducibilit... |
BernardoSilva__simplyhosting-api-client-python-16 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"simplyhosting/user.py:User.generate_secret_key",
"simplyhosting/user.py:User.update_secret_key"
],
"edited_modules": [
"simplyhosting/user.py:User"
]
},
"file":... | BernardoSilva/simplyhosting-api-client-python | 1c93603325f43b7c7e02939a449555e65e0a6822 | Implement user resource API
https://api.simplyhosting.com/v2/doc/#!/user.json | diff --git a/simplyhosting/user.py b/simplyhosting/user.py
index cd6261f..6a65e1e 100644
--- a/simplyhosting/user.py
+++ b/simplyhosting/user.py
@@ -25,28 +25,14 @@ class User:
def generate_secret_key(self, key_name, access):
request = Request('post', '/user/generateSecretKey')
- request.data = {... |
BernardoSilva__simplyhosting-api-client-python-17 | [
{
"changes": {
"added_entities": [
"simplyhosting/ip.py:IP.set_ptr",
"simplyhosting/ip.py:IP.get_ptr",
"simplyhosting/ip.py:IP.null_route",
"simplyhosting/ip.py:IP.un_null_route",
"simplyhosting/ip.py:IP.route",
"simplyhosting/ip.py:IP.get_list",
"si... | BernardoSilva/simplyhosting-api-client-python | 5c5e2edb50db13085b2bc01bc9f707514b6d9d05 | Implement IP resource API
@see https://api.simplyhosting.com/v2/doc/#!/ip.json | diff --git a/simplyhosting/ip.py b/simplyhosting/ip.py
index b7a0ecf..ee79a64 100644
--- a/simplyhosting/ip.py
+++ b/simplyhosting/ip.py
@@ -1,3 +1,50 @@
+from .request import Request
+
+
class IP(object):
def __init__(self, apiClient):
self.apiClient = apiClient
+
+ def set_ptr(self, ip, optional_dat... |
BernardoSilva__simplyhosting-api-client-python-18 | [
{
"changes": {
"added_entities": [
"simplyhosting/os.py:OS.get_params",
"simplyhosting/os.py:OS.get_available_os_versions"
],
"added_modules": null,
"edited_entities": null,
"edited_modules": [
"simplyhosting/os.py:OS"
]
},
"file": "simplyhosti... | BernardoSilva/simplyhosting-api-client-python | 21692f359a619855f717c8129d9890248d5c0c19 | Implement OS resource API
@see https://api.simplyhosting.com/v2/doc/#!/os.json | diff --git a/simplyhosting/os.py b/simplyhosting/os.py
index 8fd8cff..81fa06f 100644
--- a/simplyhosting/os.py
+++ b/simplyhosting/os.py
@@ -1,3 +1,18 @@
+from .request import Request
+
+
class OS(object):
def __init__(self, apiClient):
self.apiClient = apiClient
+
+ def get_params(self, server_id):
+... |
BernardoSilva__simplyhosting-api-client-python-19 | [
{
"changes": {
"added_entities": [
"simplyhosting/product.py:Product.get_product_list",
"simplyhosting/product.py:Product.get_config_options",
"simplyhosting/product.py:Product.get_addons",
"simplyhosting/product.py:Product.order_product",
"simplyhosting/product.py:... | BernardoSilva/simplyhosting-api-client-python | c743f1656dbe82302c3996f6a73417f416b86091 | Implement Product resource API
@see https://api.simplyhosting.com/v2/doc/#!/product.json | diff --git a/simplyhosting/product.py b/simplyhosting/product.py
index 923f375..9e216b4 100644
--- a/simplyhosting/product.py
+++ b/simplyhosting/product.py
@@ -1,3 +1,69 @@
+from .request import Request
+
+
class Product(object):
def __init__(self, apiClient):
self.apiClient = apiClient
+
+ def get_p... |
BernardoSilva__simplyhosting-api-client-python-20 | [
{
"changes": {
"added_entities": [
"simplyhosting/vlan.py:Vlan.add_server",
"simplyhosting/vlan.py:Vlan.remove_server",
"simplyhosting/vlan.py:Vlan.list"
],
"added_modules": null,
"edited_entities": null,
"edited_modules": [
"simplyhosting/vlan.py:Vl... | BernardoSilva/simplyhosting-api-client-python | 554dfb5229703b505e32732031b91e2815b6440e | Implement vlan resource API
@see https://api.simplyhosting.com/v2/doc/#!/vlan.json | diff --git a/simplyhosting/vlan.py b/simplyhosting/vlan.py
index 8ad1209..a51bbe3 100644
--- a/simplyhosting/vlan.py
+++ b/simplyhosting/vlan.py
@@ -1,3 +1,23 @@
+from .request import Request
+
+
class Vlan(object):
def __init__(self, apiClient):
self.apiClient = apiClient
+
+ def add_server(self, ser... |
BernardoSilva__simplyhosting-api-client-python-21 | [
{
"changes": {
"added_entities": [
"simplyhosting/client.py:Client.tool"
],
"added_modules": null,
"edited_entities": null,
"edited_modules": [
"simplyhosting/client.py:Client"
]
},
"file": "simplyhosting/client.py"
},
{
"changes": {
"add... | BernardoSilva/simplyhosting-api-client-python | 554dfb5229703b505e32732031b91e2815b6440e | Implement tool resource API
https://api.simplyhosting.com/v2/doc/#!/tool.json | diff --git a/simplyhosting/client.py b/simplyhosting/client.py
index b62fc97..bed3e27 100644
--- a/simplyhosting/client.py
+++ b/simplyhosting/client.py
@@ -12,6 +12,7 @@ from .reseller_vlan import ResellerVlan
from .server import Server
from .service import Service
from .support import Support
+from .tool import To... |
Blaizzy__mlx-vlm-179 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"mlx_vlm/models/qwen2_vl/vision.py:VisionRotaryEmbedding.__call__"
],
"edited_modules": [
"mlx_vlm/models/qwen2_vl/vision.py:VisionRotaryEmbedding"
]
},
"file": "mlx_vlm... | Blaizzy/mlx-vlm | 1e4579ad0c99b41c71f7309a4cb59d0c4e49fca1 | LoRa fine-tuning is not working with Llama 3.2 vision model.
After I pull the current main branch, lora fine-tuning of the Llama-3.2-11B-Vision-Instruct stopped working with the following error.
```
python3 -m mlx_vlm.lora --dataset /myspace/datasets --model-path /myspace/Llama-3.2-11B-Vision-Instruct --epochs 5
... | diff --git a/mlx_vlm/models/qwen2_vl/vision.py b/mlx_vlm/models/qwen2_vl/vision.py
index bd699a4..bd32514 100644
--- a/mlx_vlm/models/qwen2_vl/vision.py
+++ b/mlx_vlm/models/qwen2_vl/vision.py
@@ -88,7 +88,7 @@ class VisionRotaryEmbedding(nn.Module):
inv_freq = 1.0 / (
self.theta ** (mx.arange(0, ... |
BlueBrain__NeuroM-1001 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"neurom/features/bifurcation.py:partition_asymmetry"
],
"edited_modules": [
"neurom/features/bifurcation.py:partition_asymmetry"
]
},
"file": "neurom/features/bifurcatio... | BlueBrain/NeuroM | 127d6fd45167b3cf2ae6d41c51ad241846d082dc | Is `partition_asymmetry` with `Uylings` variant usable?
I find peculiar the implementation of the **Uylings variant** of for the partition asymmetry:
https://github.com/BlueBrain/NeuroM/blob/127d6fd45167b3cf2ae6d41c51ad241846d082dc/neurom/features/bifurcation.py#L102-L124
because all bifurcation points the childr... | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index de024a1..4d0b572 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -3,6 +3,15 @@ Changelog
Version 3.2.0
-------------
+
+- Fix ``neurom.features.bifurcation.partition_asymmetry`` Uylings variant to not throw
+ for bifurcations with leaves.
+- Fix ``neurom.features.... |
BlueBrain__NeuroM-1008 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"neurom/morphmath.py:principal_direction_extent"
],
"edited_modules": [
"neurom/morphmath.py:principal_direction_extent"
]
},
"file": "neurom/morphmath.py"
}
] | BlueBrain/NeuroM | fdf9f78be79508e34c0349936e233c184279c955 | Bug in principal direction extent
There is a bug in the calculation of the principal direction extents:
https://github.com/BlueBrain/NeuroM/blob/fdf9f78be79508e34c0349936e233c184279c955/neurom/morphmath.py#L462-L496
At the point where the most negative value is subtracted from the entire extent:
```python
... | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 540b7e2..80313f9 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -4,6 +4,7 @@ Changelog
Version 3.2.0
-------------
+- Fix ``neurom.morphmath.principal_direction_extent`` to calculate correctly the pca extent.
- Fix ``neurom.features.neurite.segment_taper_rates`` ... |
BlueBrain__NeuroM-1017 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"neurom/morphmath.py:principal_direction_extent"
],
"edited_modules": [
"neurom/morphmath.py:principal_direction_extent"
]
},
"file": "neurom/morphmath.py"
}
] | BlueBrain/NeuroM | dc54aa8566d59ba08aefb3457412b23297903f49 | Maximal direction extent
@lidakanari , asked for a maximal direction extent feature in https://github.com/BlueBrain/NeuroM/pull/1008#issuecomment-1073704148
There are two ways to achieve this:
1. Add a new feature that will return the maximum of the principal direction extents.
2. Order the existing principal_di... | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 1a4feec..8606975 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -4,6 +4,8 @@ Changelog
Version 3.2.0
-------------
+- ``neurom.features.neurite.principal_direction_extents`` directions correspond to extents
+ ordered in a descending order.
- Add features ``neuro... |
BlueBrain__NeuroM-1021 | [
{
"changes": {
"added_entities": [
"neurom/apps/morph_stats.py:_get_header",
"neurom/apps/morph_stats.py:_generate_flattened_dict",
"neurom/apps/morph_stats.py:_standardize_layout",
"neurom/apps/morph_stats.py:_sanitize_config"
],
"added_modules": [
"neu... | BlueBrain/NeuroM | f4cb0398ae72d8eec2f9e0d0102203b3a2c6e0ba | Is there a way to define optional arguments from morph_stats application?
I would like to use `extract_dataframe` from `morph_stats` with the shape features, such as `aspect_ratio`.
This function works with a config as follows:
``` python
from neurom.apps import morph_stats
full_cfg = morph_stats.full_config()... | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 8606975..7a3dfef 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -4,6 +4,7 @@ Changelog
Version 3.2.0
-------------
+- List of multiple kwargs configurations are now allowed in``neurom.apps.morph_stats``.
- ``neurom.features.neurite.principal_direction_extents`` d... |
BlueBrain__NeuroM-1073 | [
{
"changes": {
"added_entities": [
"neurom/features/morphology.py:_assert_soma_center"
],
"added_modules": [
"neurom/features/morphology.py:_assert_soma_center"
],
"edited_entities": [
"neurom/features/morphology.py:trunk_origin_azimuths",
"neurom/fe... | BlueBrain/NeuroM | 276c7b2bc925d6d61078018d0c3accf8fd59499f | Raise more informative error when a morph has no soma
Some morphology files have no soma, which NeuroM is able to load. But when one compute features on such morphology, one may get obscure errors. For example:
```python
nm.get("trunk_angles", neuron, neurite_type=nm.core.types.NeuriteType.basal_dendrite)
```
will ... | diff --git a/neurom/features/morphology.py b/neurom/features/morphology.py
index 69098cb..4b2c4de 100644
--- a/neurom/features/morphology.py
+++ b/neurom/features/morphology.py
@@ -63,6 +63,13 @@ from neurom.morphmath import convex_hull
feature = partial(feature, namespace=NameSpace.NEURON)
+def _assert_soma_cente... |
BlueBrain__NeuroM-1128 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"neurom/core/morphology.py:Neurite.subtree_types"
],
"edited_modules": [
"neurom/core/morphology.py:Neurite"
]
},
"file": "neurom/core/morphology.py"
}
] | BlueBrain/NeuroM | 94951b81f3a71d3fbede7e2255d8446371c5fd8b | One test failing with 4.0.0: `Arrays are not almost equal to 5 decimals`
While updating the package to 4.0.0 in Fedora rawhide (the dev branch), we see one test failing:
```
> assert_almost_equal(s.volume, 3160.274957542371, decimal=5)
tests/core/test_soma.py:263:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ... | diff --git a/neurom/core/morphology.py b/neurom/core/morphology.py
index 1431eda..6852aee 100644
--- a/neurom/core/morphology.py
+++ b/neurom/core/morphology.py
@@ -454,8 +454,10 @@ class Neurite:
subtree_types = [next(it).to_morphio().type]
for section in it:
- if section.type != section... |
BlueBrain__NeuroM-989 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"neurom/features/morphology.py:sholl_frequency"
],
"edited_modules": [
"neurom/features/morphology.py:sholl_frequency"
]
},
"file": "neurom/features/morphology.py"
}
] | BlueBrain/NeuroM | e31eb63b522a3558233d821fcfbb178e6754aa56 | `sholl_frequency` does not use soma center to calculate max radius
The soma center is not taken into account when calculating the distance to the points to find the max radius (L481):
https://github.com/BlueBrain/NeuroM/blob/e31eb63b522a3558233d821fcfbb178e6754aa56/neurom/features/morphology.py#L479-L485
Of course,... | diff --git a/neurom/features/morphology.py b/neurom/features/morphology.py
index 2315e12..67583e9 100644
--- a/neurom/features/morphology.py
+++ b/neurom/features/morphology.py
@@ -478,8 +478,10 @@ def sholl_frequency(morph, neurite_type=NeuriteType.all, step_size=10, bins=None
if bins is None:
min_soma... |
BlueBrain__NeuroM-990 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"neurom/features/morphology.py:sholl_frequency"
],
"edited_modules": [
"neurom/features/morphology.py:sholl_frequency"
]
},
"file": "neurom/features/morphology.py"
}
] | BlueBrain/NeuroM | d120263701bd2de8fb6f8ea6c655b9ec8a0a99ce | `sholl_frequency` fails if `neurite_type` not in morphology
```python
import neurom
m = neurom.load_morphology(
"""
1 1 0 0 0 0.5 -1
2 3 -1 0 0 0.1 1
3 3 -2 0 0 0.1 2
4 3 -3 0 0 0.1 3
"""",
reader="swc"
)
neurom.get("sholl_frequency", step_size=... | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index f852163..de024a1 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -3,10 +3,18 @@ Changelog
Version 3.2.0
-------------
+- Fix ``neurom.features.morphology.sholl_frequency`` to return an empty list when a
+ neurite_type that is not present in the morphology is speci... |
BlueBrain__atlas-densities-25 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"atlas_densities/densities/fitting.py:compute_average_intensity"
],
"edited_modules": [
"atlas_densities/densities/fitting.py:compute_average_intensity"
]
},
"file": "at... | BlueBrain/atlas-densities | 9bfda2ba2827a9b8fc5e2201f91eeb63b528aa76 | Check slices position during fitting
For the fitting of the densities, the user can provide a list of coronal positions that corresponds to the original ISH slices in a separate file.
There is no tests in atlas_densities/densities/fitting.py to check if these positions are in range of the annotation volume shape.
S... | diff --git a/atlas_densities/densities/fitting.py b/atlas_densities/densities/fitting.py
index af117c5..775bdc4 100644
--- a/atlas_densities/densities/fitting.py
+++ b/atlas_densities/densities/fitting.py
@@ -177,7 +177,8 @@ def compute_average_intensity(
Compute the average of `intensity` within the volume define... |
BlueBrain__atlas-densities-61 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"atlas_densities/app/cell_densities.py:measurements_to_average_densities"
],
"edited_modules": [
"atlas_densities/app/cell_densities.py:measurements_to_average_densities"
]
... | BlueBrain/atlas-densities | 67d273c11bcb85dd7a5132dbaf879f88effba112 | Exception in fitting due to regions in json hierarchy but not in the annotations volume
On master branch, when running the cell atlas pipeline with the CCFv3 annotation atlas, the following command:
```
atlas-densities cell-densities fit-average-densities \
--hierarchy-... | diff --git a/README.rst b/README.rst
index 8b8cc3b..8479266 100644
--- a/README.rst
+++ b/README.rst
@@ -10,8 +10,8 @@ The outcome of this project is a list of volumetric files that provides cell typ
for each voxel of the mouse brain volume. The BBP Cell Atlas is the first model required to
reconstruct BBP circuits o... |
BlueBrain__atlas-splitter-12 | [
{
"changes": {
"added_entities": [
"atlas_splitter/utils.py:_hash_derived_id"
],
"added_modules": [
"atlas_splitter/utils.py:_hash_derived_id"
],
"edited_entities": [
"atlas_splitter/utils.py:id_from_acronym"
],
"edited_modules": [
"atlas... | BlueBrain/atlas-splitter | 18932cbeb9dd4f0e38c0fae362a072e1d325d433 | `atlas-splitter split-isocortex-layer-23` outputs an annotation volume with region IDs not present in the output hierarchy
Occurred with
```
cd /gpfs/bbp.cscs.ch/data/project/proj84/atlas_pipeline_runs/2024-03-12T15:01:39
atlas-splitter --version
atlas-splitter, version 0.1.3
atlas-splitter split-isocortex-lay... | diff --git a/atlas_splitter/utils.py b/atlas_splitter/utils.py
index 66186d0..95407d8 100644
--- a/atlas_splitter/utils.py
+++ b/atlas_splitter/utils.py
@@ -9,6 +9,9 @@ from atlas_splitter.exceptions import AtlasSplitterError
HierarchyDict = Dict[str, Any]
+MIN_CUSTOM_ID = 1_000_000_000
+MAX_CUSTOM_ID = 4_000_000_... |
BoboTiG__ebook-reader-dict-2054 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "wikidict/__main__.py"
},
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_module... | BoboTiG/ebook-reader-dict | d6cc6741d4712018610391f1bc229fb9e0d3210e | Move etymology at the bottom
As per #1846 poll, move the etymology after definitions.
<!-- POLAR PLEDGE BADGE START -->
## Upvote & Fund
- We're using [Polar.sh](https://polar.sh/tiger-222) so you can upvote and help fund this issue.
- We receive the funding once the issue is completed & confirmed by you.
- Thank you... | diff --git a/wikidict/__main__.py b/wikidict/__main__.py
index 16d992c0..6af1ea32 100644
--- a/wikidict/__main__.py
+++ b/wikidict/__main__.py
@@ -25,6 +25,7 @@
- "data/$LOCALE/dicthtml-$LOCALE-$LOCALE.zip": Kobo format.
- "data/$LOCALE/dict-$LOCALE-$LOC... |
BoboTiG__ebook-reader-dict-2063 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"scripts/en-labels.py:process_page"
],
"edited_modules": [
"scripts/en-labels.py:process_page"
]
},
"file": "scripts/en-labels.py"
},
{
"changes": {
"added... | BoboTiG/ebook-reader-dict | d4525b8374f9a7ef4ad618899c5c89d16062c209 | [EN] Specifically deal with labels for en and zh
after https://github.com/BoboTiG/ebook-reader-dict/pull/2061 is merged, we need to modify scripts/en-labels.py to deal with the en and zh labels. For now they are ignored. See https://github.com/BoboTiG/ebook-reader-dict/pull/2061/files#diff-f24d28a94c8167b3f5247a2ab565b... | diff --git a/scripts/en-labels.py b/scripts/en-labels.py
index f900f419..702d3393 100644
--- a/scripts/en-labels.py
+++ b/scripts/en-labels.py
@@ -1,5 +1,5 @@
import re
-from typing import Dict, Tuple
+from typing import Dict, List
from scripts_utils import get_soup
@@ -66,7 +66,7 @@ def dialect_handler(text: str... |
BoboTiG__ebook-reader-dict-2101 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "wikidict/lang/en/__init__.py"
},
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edite... | BoboTiG/ebook-reader-dict | e9f5c48bfb63f049a10a28d11ecdb42c9e241122 | [EN] Support "taxfmt" template
- Wiktionary page: https://en.wiktionary.org/wiki/solidago
- Model link: https://en.wiktionary.org/wiki/Template:taxfmt
<!-- POLAR PLEDGE BADGE START -->
## Upvote & Fund
- We're using [Polar.sh](https://polar.sh/tiger-222) so you can upvote and help fund this issue.
- We receive the f... | diff --git a/wikidict/lang/en/__init__.py b/wikidict/lang/en/__init__.py
index d450e199..dfc0a166 100644
--- a/wikidict/lang/en/__init__.py
+++ b/wikidict/lang/en/__init__.py
@@ -209,6 +209,8 @@
"sub": "subscript(parts[1])",
# {{sup|KI}}
"sup": "superscript(parts[1])",
+ # {{taxfmt|Gadus macrocephalus... |
BoboTiG__ebook-reader-dict-2106 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"wikidict/lang/ca/__init__.py:last_template_handler"
],
"edited_modules": [
"wikidict/lang/ca/__init__.py:last_template_handler"
]
},
"file": "wikidict/lang/ca/__init__.... | BoboTiG/ebook-reader-dict | e873f94daf16a36de08e6e949a1b3cd589125722 | [EN] Full support for "ISO 639" template
(following #2104)
- Wiktionary page: https://en.wiktionary.org/wiki/ab
Wikicode:
```
{{ISO 639|1}}
```
Output:
```
ISO 639-1 code <b>1</b>
```
Expected:
```
(<i>international standards</i>) <i>ISO 639-1 for</b> <b>Abkhaz</b>.
```
---
Model link: https:... | diff --git a/wikidict/lang/ca/__init__.py b/wikidict/lang/ca/__init__.py
index f779d828..54bc7d83 100644
--- a/wikidict/lang/ca/__init__.py
+++ b/wikidict/lang/ca/__init__.py
@@ -261,7 +261,7 @@ def last_template_handler(template: Tuple[str, ...], locale: str, word: str = ""
from .template_handlers import lookup_t... |
BoboTiG__ebook-reader-dict-2132 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"wikidict/lang/el/__init__.py:last_template_handler"
],
"edited_modules": [
"wikidict/lang/el/__init__.py:last_template_handler"
]
},
"file": "wikidict/lang/el/__init__.... | BoboTiG/ebook-reader-dict | 59b7c629ccee9198fe58b716dfcc642f61510f99 | [EL] Support 'Ετυμ' template
- Wiktionary page: https://el.wiktionary.org/wiki/%CE%BB%CE%B1%CE%BC%CE%B2%CE%AC%CE%BD%CF%89
Wikicode:
```
{ετυμ|ine-pro}}
```
Output:
```
<i>(Ετυμ)</i>
```
Expected:
```
πρωτοϊνδοευρωπαϊκή
```
---
Model link, if any: https://el.wiktionary.org/wiki/%CE%A0%CF%81%CF%8C... | diff --git a/wikidict/lang/el/__init__.py b/wikidict/lang/el/__init__.py
index 0c1abc91..0d11f5a4 100644
--- a/wikidict/lang/el/__init__.py
+++ b/wikidict/lang/el/__init__.py
@@ -250,8 +250,12 @@ def last_template_handler(template: tuple[str, ...], locale: str, word: str = ""
>>> last_template_handler(["ουσ"],... |
BoboTiG__ebook-reader-dict-2133 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"wikidict/lang/el/__init__.py:last_template_handler"
],
"edited_modules": [
"wikidict/lang/el/__init__.py:last_template_handler"
]
},
"file": "wikidict/lang/el/__init__.... | BoboTiG/ebook-reader-dict | 2f4f7a072b95768039544d712d78831d46e5c700 | [EL] Support "ετικ" and "γρ" templates
- Wiktionary page: https://el.wiktionary.org/w/index.php?title=%CE%B1%CE%BC%CE%AD%CF%81%CE%B5%CF%85%CF%84%CE%BF%CF%82&action=edit
- Model link: https://el.wiktionary.org/wiki/%CE%A0%CF%81%CF%8C%CF%84%CF%85%CF%80%CE%BF:%CE%B5%CF%84%CE%B9%CE%BA
- https://el.wiktionary.org/wiki/%CE... | diff --git a/wikidict/lang/el/__init__.py b/wikidict/lang/el/__init__.py
index 3c910338..39c7d3f6 100644
--- a/wikidict/lang/el/__init__.py
+++ b/wikidict/lang/el/__init__.py
@@ -77,6 +77,8 @@
templates_multi: dict[str, str] = {
# {{resize|Βικιλεξικό|140}}
"resize": "f'<span style=\"font-size:{parts[2]}%;\">... |
BoboTiG__ebook-reader-dict-2145 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "wikidict/lang/en/__init__.py"
}
] | BoboTiG/ebook-reader-dict | 97e21da21bf90f44c75872bb5c7451c81b146ebd | [EN] Add the `infl of` template to variants
- Wiktionary page: https://en.wiktionary.org/wiki/clinging
It uses the `infl of` (inflection of) model. I think that should be treated as a variant.
For example, the full model is `{{infl of|en|cling||ing-form}}`, and I would see `cling` being part of the variants for t... | diff --git a/wikidict/lang/en/__init__.py b/wikidict/lang/en/__init__.py
index c893f295..fec669e9 100644
--- a/wikidict/lang/en/__init__.py
+++ b/wikidict/lang/en/__init__.py
@@ -50,6 +50,7 @@
"{{en-superlative",
"{{en-third",
"{{en-tpso",
+ "{{infl of",
"{{plural of",
)
@@ -68,6 +69,7 @@
... |
BoboTiG__ebook-reader-dict-2149 | [
{
"changes": {
"added_entities": [
"wikidict/lang/en/template_handlers.py:gender_number_specs"
],
"added_modules": [
"wikidict/lang/en/template_handlers.py:gender_number_specs"
],
"edited_entities": [
"wikidict/lang/en/template_handlers.py:render_foreign_der... | BoboTiG/ebook-reader-dict | e0c53a4884cfcf0ea6a5147b2a29b82cba5a7462 | [EN] Parse gender string
Many templates, including doublet and l have a "g" parameter containing a gender and number string.
See https://en.wiktionary.org/wiki/Module:gender_and_number
We need function to parse such a string and send back a meaningful string
<!-- POLAR PLEDGE BADGE START -->
## Upvote & Fund
- We... | diff --git a/wikidict/lang/en/template_handlers.py b/wikidict/lang/en/template_handlers.py
index 5d86eb2c..96612f22 100644
--- a/wikidict/lang/en/template_handlers.py
+++ b/wikidict/lang/en/template_handlers.py
@@ -26,6 +26,85 @@
from .si_unit import prefix_to_exp, prefix_to_symbol, unit_to_symbol, unit_to_type
+d... |
BoboTiG__ebook-reader-dict-2150 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"wikidict/__main__.py:main"
],
"edited_modules": [
"wikidict/__main__.py:main"
]
},
"file": "wikidict/__main__.py"
},
{
"changes": {
"added_entities": null... | BoboTiG/ebook-reader-dict | 5086428f5f4876dbe8756e0be29fecf135551919 | Make use of a proper logger
It will ease our work, more especially on #1535.
<!-- POLAR PLEDGE BADGE START -->
## Upvote & Fund
- We're using [Polar.sh](https://polar.sh/tiger-222) so you can upvote and help fund this issue.
- We receive the funding once the issue is completed & confirmed by you.
- Thank you in advan... | diff --git a/wikidict/__main__.py b/wikidict/__main__.py
index de533bec..16d992c0 100644
--- a/wikidict/__main__.py
+++ b/wikidict/__main__.py
@@ -42,6 +42,8 @@
If no argument given, --download, --parse, --render, and --convert will be done automatically.
"""
+import logging
+import os
import sys
from docopt im... |
BoboTiG__ebook-reader-dict-2151 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": null,
"edited_modules": null
},
"file": "wikidict/lang/en/__init__.py"
}
] | BoboTiG/ebook-reader-dict | 479c99fc5048432e708c595e59f393fefd41fe97 | [EN] Support 'mono' and 'monospace' templates
- Wiktionary page: https://en.wiktionary.org/wiki/shebang
Wikicode:
```
{{monospace|#!}}
```
Output:
```
(Monospace)
```
Expected:
```
<span style="font-family: monospace, monospace;">#!</span>
```
To be tested on actual device
---
Model link, if any... | diff --git a/wikidict/lang/en/__init__.py b/wikidict/lang/en/__init__.py
index 479f5053..8f07136e 100644
--- a/wikidict/lang/en/__init__.py
+++ b/wikidict/lang/en/__init__.py
@@ -164,6 +164,9 @@
"Latn-def": "f'{italic(\"The name of the Latin-script letter\")} {strong(parts[3])}.' if parts[2] == 'name' else ''",
... |
BoboTiG__python-mss-234 | [
{
"changes": {
"added_entities": null,
"added_modules": null,
"edited_entities": [
"mss/__main__.py:main"
],
"edited_modules": [
"mss/__main__.py:main"
]
},
"file": "mss/__main__.py"
},
{
"changes": {
"added_entities": null,
"added_... | BoboTiG/python-mss | f928310b031ab6d4952d692017a94060240bbf4c | Xvfb error while trying to open multiple xvfb screens in single python session
General information:
* OS name: Ubuntu
* OS version: 20.04
* OS architecture: 64 bits
* Resolutions:
* Monitor 1: 1920x1080
* Python version: 3.8.10
* MSS version: 6.1.0
For GNU/Linux users:
* Display server protocol and... | diff --git a/.pylintrc b/.pylintrc
index 07fee3f..97fac66 100644
--- a/.pylintrc
+++ b/.pylintrc
@@ -2,5 +2,6 @@
disable = locally-disabled, too-few-public-methods, too-many-instance-attributes, duplicate-code
[REPORTS]
+max-line-length = 120
output-format = colorized
reports = no
diff --git a/CHANGELOG b/CHANGEL... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.