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
idaholab__MontePy-487
[ { "changes": { "added_entities": [ "montepy/data_inputs/isotope.py:Isotope._handle_stupid_legacy_stupidity" ], "added_modules": null, "edited_entities": [ "montepy/data_inputs/isotope.py:Isotope.__init__", "montepy/data_inputs/isotope.py:Isotope.nuclide_str", ...
idaholab/MontePy
a280fb35338e26f4d3a867c0b12a013d1e8e194b
Metastable isotopes are printed as regular isotopes **Describe the bug** MontePy knows what metastable isotopes are (#111, #257). Their string representations (#473, #474) do not currently show the metastable state. **To Reproduce** A short code snippet of what you have ran. Please change or remove any speci...
diff --git a/doc/source/changelog.rst b/doc/source/changelog.rst index 8d6b03a2..14d8a0bf 100644 --- a/doc/source/changelog.rst +++ b/doc/source/changelog.rst @@ -1,6 +1,13 @@ MontePy Changelog ================= +#Next Version# +-------------- + +**Bug Fixes** + +* Fixed bug that didn't show metastable states for p...
idaholab__MontePy-488
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": [ "montepy/materials.py:Materials" ] }, "file": "montepy/materials.py" }, { "changes": { "added_entities": null, "added_modules": null, ...
idaholab/MontePy
4749e95102c838296482b3fd6e237d064ad35972
Materials Are Not Updated In New Input File **Describe the bug** When materials are added to or modified within an input file, the material cards are not updated. Old materials are still written, and new materials are not written. However, the cell is updated correctly. **To Reproduce** A short code snippet of...
diff --git a/doc/source/changelog.rst b/doc/source/changelog.rst index ea0401a7..d3291f87 100644 --- a/doc/source/changelog.rst +++ b/doc/source/changelog.rst @@ -6,6 +6,7 @@ MontePy Changelog **Features Added** * Write problems to either file paths or streams (file handles) with MCNP_Problem.write_problem() (:issu...
idaholab__MontePy-493
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "montepy/__init__.py" }, { "changes": { "added_entities": [ "montepy/input_parser/input_file.py:MCNP_InputFile.from_open_stream" ],...
idaholab/MontePy
26cfedcfc5d19f090e888be7a607cf83160aad9b
Implement MCNP_Problem.write(file_handle) **Is your feature request related to a problem? Please describe.** In addition to `MCNP_Problem.write_to_file(new_problem)`, implement `MCNP_Problem.write_to_stream(file_stream)`. Then, users can write to any open file stream, including `io.StringIO`. **Describe the sol...
diff --git a/doc/source/changelog.rst b/doc/source/changelog.rst index 14d8a0bf..ea0401a7 100644 --- a/doc/source/changelog.rst +++ b/doc/source/changelog.rst @@ -3,11 +3,15 @@ MontePy Changelog #Next Version# -------------- +**Features Added** + +* Write problems to either file paths or streams (file handles) with...
idaholab__MontePy-538
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "montepy/numbered_object_collection.py:NumberedDataObjectCollection.append" ], "edited_modules": [ "montepy/numbered_object_collection.py:NumberedDataObjectCollection" ] }, ...
idaholab/MontePy
5a12a285e174088f81418a09daa90ab6b4827769
Materials.append_renumber adds double materials **Describe the bug** If you use `problem.materials.append_renumber(mat)` there will be two instances of `mat` in `problem.data_inputs` which will break a lot of things. **To Reproduce** ``` python problem = montepy.read_input("foo.imcnp") new_mat = ... ...
diff --git a/doc/source/changelog.rst b/doc/source/changelog.rst index 530c536c..89e89561 100644 --- a/doc/source/changelog.rst +++ b/doc/source/changelog.rst @@ -4,6 +4,10 @@ MontePy Changelog #Next Version# -------------- +**Bug Fixes** + +* Fixed a bug where ``problem.materials.append_renumber`` would double add...
idaholab__MontePy-553
[ { "changes": { "added_entities": [ "montepy/input_parser/input_file.py:MCNP_InputFile.is_stream" ], "added_modules": null, "edited_entities": [ "montepy/input_parser/input_file.py:MCNP_InputFile.__init__", "montepy/input_parser/input_file.py:MCNP_InputFile.from_op...
idaholab/MontePy
2b510c07ac9a2d027c31560879a094e2f539afb8
Add support for reading from non-file steams **Is your feature request related to a problem? Please describe.** It would be nice (mainly in testing) to do: ``` python fh = io.StringIO() fh.write(...) fh.seek(0) problem = montepy.read_input(fh) ``` **Describe the solution you'd like** `montepy.read_input`...
diff --git a/doc/source/changelog.rst b/doc/source/changelog.rst index 86568400..9a219af4 100644 --- a/doc/source/changelog.rst +++ b/doc/source/changelog.rst @@ -1,6 +1,13 @@ MontePy Changelog ================= +#Next Version# +-------------- + +**Bug Fixes** + +* Fixed bug where file streams couldn't actually be ...
idaholab__MontePy-563
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "montepy/cell.py:_number_validator", "montepy/cell.py:Cell.number" ], "edited_modules": [ "montepy/cell.py:_number_validator", "montepy/cell.py:Cell" ] }, ...
idaholab/MontePy
c5b84e65f88e8dcca337fa321300a1fce42e8095
Remove O(N^2) operation from NumberedObjectCollection **Is your feature request related to a problem? Please describe.** I was analyzing some data from parsing times and found that we have O(N^2) scaling despite fixing #510. After some investigation I found the culprit is in `NumberedObjectCollections.append`. This ...
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c636a23f..630f96d9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -49,7 +49,8 @@ jobs: test: runs-on: ubuntu-latest - permissions: write-all + permissions: + actions: write strategy: ...
idaholab__MontePy-598
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "montepy/data_inputs/material.py:Material._update_values" ], "edited_modules": [ "montepy/data_inputs/material.py:Material" ] }, "file": "montepy/data_inputs/material.py...
idaholab/MontePy
e6c0e860a9c7efbd4adf70c0448eb294b2f6c0f1
Montepy is_atomic_fraction does not work as expected <!-- **Reminders** 1. This is not a place to debug your MCNP models 1. MCNP is export controlled and only its 6.2 and 6.3 user manuals are public. Don't include any information about MCNP which is not in those manuals. 1. Your model may be export controlled, or p...
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 2e4bb9b4..d3a13b32 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -13,29 +13,35 @@ Please provide a summary of the change, referencing the issue it fixes, if appli - [ ] I have performed a se...
idaholab__MontePy-612
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "doc/source/conf.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules"...
idaholab/MontePy
57aaac51030af591f65576eaa309e9d4653d9e01
Write getting started and migration guide for Materials in 1.0
diff --git a/doc/source/api/montepy.particle.rst b/doc/source/api/montepy.particle.rst index 7b887d96..42d3cb64 100644 --- a/doc/source/api/montepy.particle.rst +++ b/doc/source/api/montepy.particle.rst @@ -4,6 +4,5 @@ montepy.particle module .. automodule:: montepy.particle :members: - :inherited-members: ...
idaholab__MontePy-663
[ { "changes": { "added_entities": [ "montepy/data_inputs/material.py:Material.contains_all", "montepy/data_inputs/material.py:Material.contains_any", "montepy/data_inputs/material.py:Material._promote_nuclide", "montepy/data_inputs/material.py:Material._contains_arb" ]...
idaholab/MontePy
572214d91b3e2e4b9abf163acd9e5a92fd9ae1e9
Search for Material Nuclides containing just elemental data. **Is your feature request related to a problem? Please describe.** Sometimes you get a model with legacy nuclear data, e.g., `26000.50c` that you want to replace. However, if you do `problem.materials.get_containing("26000.50c")` you will get all iron isotop...
diff --git a/doc/source/changelog.rst b/doc/source/changelog.rst index dc907ef1..6c16d227 100644 --- a/doc/source/changelog.rst +++ b/doc/source/changelog.rst @@ -14,7 +14,7 @@ MontePy Changelog * Made it easier to create an Isotope (now Nuclide): ``montepy.Nuclide("H-1.80c")`` (:issue:`505`). * When a typo in an obj...
idaholab__MontePy-680
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "montepy/cell.py:Cell.atom_density", "montepy/cell.py:Cell.mass_density", "montepy/cell.py:Cell.remove_duplicate_surfaces", "montepy/cell.py:Cell.clone" ], "edited_mod...
idaholab/MontePy
003c5ef963d6e60105874b6a0e7e65d9593f1ee3
Relax 'float' type enforcement to any real number and 'int' type enforcement to any integral **Is your feature request related to a problem? Please describe.** Numeric variables come in many different types. Virtually all places where `float` is enforced, any real number is valid instead. An `int`, `numpy.uint8`, or `n...
diff --git a/doc/source/changelog.rst b/doc/source/changelog.rst index 6c16d227..2b6d4450 100644 --- a/doc/source/changelog.rst +++ b/doc/source/changelog.rst @@ -25,6 +25,7 @@ MontePy Changelog * An error is now raised when typos in object attributes are used, e.g., ``cell.nubmer`` (:issue:`508`). * Warnings are no ...
idaholab__MontePy-681
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "montepy/data_inputs/importance.py:Importance.__str__" ], "edited_modules": [ "montepy/data_inputs/importance.py:Importance" ] }, "file": "montepy/data_inputs/importance...
idaholab/MontePy
966e0de809c4123621d4c25b3afd32e68d0bfd15
Blank importance objects can't be printed <!-- **Reminders** 1. This is not a place to debug your MCNP models 1. MCNP is export controlled and only its 6.2 and 6.3 user manuals are public. Don't include any information about MCNP which is not in those manuals. 1. Your model may be export controlled, or proprietary....
diff --git a/.gitignore b/.gitignore index 5f1cbc17..ec84e334 100644 --- a/.gitignore +++ b/.gitignore @@ -15,6 +15,7 @@ doc/build/* .coverage .hypothesis/ .idea/ +.venv/ .ipynb_checkpoints/ montepy/_version.py diff --git a/AUTHORS b/AUTHORS index 9d2c6cbd..5d9d47bf 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1,3 +1,...
idaholab__MontePy-707
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "montepy/data_inputs/universe_input.py:UniverseInput._tree_value" ], "edited_modules": [ "montepy/data_inputs/universe_input.py:UniverseInput" ] }, "file": "montepy/data...
idaholab/MontePy
d8ae7899d506897c3d7ec409baafd21c719799e7
Bug with no default universe **Describe the bug** When a cell is made from scratch, has no universe, and universes are used in a problem (I think) an `AttributeError` is raised. **To Reproduce** ``` python import montepy problem = montepy.read_input("demo/pin_cell.imcnp") universe = montepy.Universe(100) proble...
diff --git a/doc/source/changelog.rst b/doc/source/changelog.rst index 573dd5cb..953c134f 100644 --- a/doc/source/changelog.rst +++ b/doc/source/changelog.rst @@ -36,6 +36,7 @@ MontePy Changelog * Fixed bug where ``surf.is_reflecting`` would put an extra space in the output e.g., ``* 1 PZ...`` (:issue:`697`). * Fixed...
idaholab__MontePy-710
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "montepy/input_parser/syntax_node.py:ValueNode.format" ], "edited_modules": [ "montepy/input_parser/syntax_node.py:ValueNode" ] }, "file": "montepy/input_parser/syntax_n...
idaholab/MontePy
3f83b66fb11c21435237b2a7b38737cb41ec3ba4
Surfaces can't be unset from is_reflecting **Describe the bug** This seems to be closely tied to #698. When you parse a surface, set `is_reflecting=False` and then export it, the output is not updated. **To Reproduce** ``` python In [1]: import montepy In [2]: surf = montepy.surfaces.Surface("*1 P 0.0") In [3]: ...
diff --git a/doc/source/changelog.rst b/doc/source/changelog.rst index cb72a5e1..e14f48a3 100644 --- a/doc/source/changelog.rst +++ b/doc/source/changelog.rst @@ -37,6 +37,7 @@ MontePy Changelog * Fixed bug where setting a lattice would print as ``LAT=None``. Also switched ``CellModifier`` to print in the cell block b...
idaholab__MontePy-717
[ { "changes": { "added_entities": [ "montepy/data_inputs/fill.py:_verify_3d_index", "montepy/data_inputs/fill.py:Fill._update_cell_transform_values", "montepy/data_inputs/fill.py:Fill._update_multi_index_limits" ], "added_modules": [ "montepy/data_inputs/fill.py:...
idaholab/MontePy
366d87d078b1fba6b70c61fec5109790e5524d1c
Multi-Universe fill can't be created from scratch **Describe the bug** Multi-universe fills can't be realistically updated, and is really just read-only **To Reproduce** ``` python import montepy cell = montepy.Cell(number=1) lattice_cell.fill.multiple_universes = True inst_universe = montepy.Universe(1) guide_unive...
diff --git a/doc/source/changelog.rst b/doc/source/changelog.rst index 10a31c93..ff57bacf 100644 --- a/doc/source/changelog.rst +++ b/doc/source/changelog.rst @@ -38,6 +38,7 @@ MontePy Changelog * Fixed bug that wouldn't allow cloning most surfaces (:issue:`704`). * Fixed bug that crashed when some cells were not ass...
idaholab__MontePy-723
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "montepy/mcnp_object.py:MCNP_Object.wrap_string_for_mcnp" ], "edited_modules": [ "montepy/mcnp_object.py:MCNP_Object" ] }, "file": "montepy/mcnp_object.py" } ]
idaholab/MontePy
021078c284c75513b34d625a742221f86e6cbb2f
Bug in line expansion with adding extra lines **Describe the bug** When you add so much information that a line must wrap it creates a bug when exporting. **To Reproduce** ``` python import montepy import numpy as np problem = montepy.read_input("tests/inputs/test_universe.imcnp") fill = problem.cells[1].fill univer...
diff --git a/doc/source/changelog.rst b/doc/source/changelog.rst index ff57bacf..3a9a2d1f 100644 --- a/doc/source/changelog.rst +++ b/doc/source/changelog.rst @@ -37,7 +37,7 @@ MontePy Changelog * Fixed bug where setting a lattice would print as ``LAT=None``. Also switched ``CellModifier`` to print in the cell block b...
ifosch__accloudtant-104
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "accloudtant/aws/prices.py:process_model" ], "edited_modules": [ "accloudtant/aws/prices.py:process_model" ] }, "file": "accloudtant/aws/prices.py" }, { "changes...
ifosch/accloudtant
8fdb36de3e41cc719b1e1df95c1083a9ea427392
Create footer for report When I use the `report` command I want to get a footer with totals.
diff --git a/accloudtant/aws/prices.py b/accloudtant/aws/prices.py index 44435af..1cb74ef 100644 --- a/accloudtant/aws/prices.py +++ b/accloudtant/aws/prices.py @@ -143,7 +143,8 @@ def process_model(url, instances=None): instances = {} js_name = url.split('/')[-1] pricing = requests.get(url) - for...
ifosch__accloudtant-108
[ { "changes": { "added_entities": [ "accloudtant/aws/reports.py:Reports.print_report" ], "added_modules": null, "edited_entities": [ "accloudtant/aws/reports.py:Reports.__init__", "accloudtant/aws/reports.py:Reports.__repr__" ], "edited_modules": [ ...
ifosch/accloudtant
b662c13380e9e5c42232e51ef3ef059c679ad5e9
CSV as output format The table format is great to see the data in the terminal, but to facilytate the import into other tools, CSV is a best (and simple) choice.
diff --git a/accloudtant/aws/reports.py b/accloudtant/aws/reports.py index 0f56ea5..6754f6b 100644 --- a/accloudtant/aws/reports.py +++ b/accloudtant/aws/reports.py @@ -22,15 +22,15 @@ from accloudtant.aws.reserved_instance import ReservedInstance from accloudtant.aws.prices import Prices import sys - class Report...
ifosch__accloudtant-26
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "accloudtant/aws/prices/__init__.py:Prices.__init__" ], "edited_modules": [ "accloudtant/aws/prices/__init__.py:Prices" ] }, "file": "accloudtant/aws/prices/__init__.py"...
ifosch/accloudtant
66343620af6679769c3f5a7c727ae5d3492dc5ac
Warnings on non supported pricelists vanished When printing prices, there were a nice list of warnings about problems getting the data. Since the addition of the two commands, this list vanished.
diff --git a/accloudtant/aws/prices/__init__.py b/accloudtant/aws/prices/__init__.py index c038349..3b0dec6 100644 --- a/accloudtant/aws/prices/__init__.py +++ b/accloudtant/aws/prices/__init__.py @@ -12,8 +12,11 @@ from accloudtant.utils import fix_lazy_json class Prices(object): def __init__(self): - s...
ifosch__accloudtant-52
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "accloudtant/aws/reports.py:Reports.find_reserved_instance", "accloudtant/aws/reports.py:Reports.__repr__" ], "edited_modules": [ "accloudtant/aws/reports.py:Reports" ] ...
ifosch/accloudtant
71d752b9244ff84978a83413be84035a92d5c077
Add price information to EC2 instances information <!--- @huboard:{"order":6.0732421875,"milestone_order":0.09375,"custom_state":""} -->
diff --git a/accloudtant/aws/reports.py b/accloudtant/aws/reports.py index 26af2d1..905018e 100644 --- a/accloudtant/aws/reports.py +++ b/accloudtant/aws/reports.py @@ -16,10 +16,13 @@ class Reports(object): def find_reserved_instance(self): for instance in self.instances: - instance.current ...
ifosch__accloudtant-82
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "accloudtant/aws/instance.py:Instance.name" ], "edited_modules": [ "accloudtant/aws/instance.py:Instance" ] }, "file": "accloudtant/aws/instance.py" } ]
ifosch/accloudtant
9dd6000060b4bddfa5366ef3102fe7d42371d514
Fails with Python 3 My system have Python 3 installed by default (Archlinux). This is the output of `accloudtant report`: ``` Traceback (most recent call last): File "/usr/bin/accloudtant", line 22, in <module> cli() File "/usr/lib/python3.5/site-packages/click/core.py", line 716, in __call__ return...
diff --git a/accloudtant/aws/instance.py b/accloudtant/aws/instance.py index 4e19b2d..2073f28 100644 --- a/accloudtant/aws/instance.py +++ b/accloudtant/aws/instance.py @@ -62,7 +62,7 @@ class Instance(object): @property def name(self): names = [tag for tag in self.tags if tag['Key'] == 'Name'] - ...
ifosch__accloudtant-88
[ { "changes": { "added_entities": [ "accloudtant/aws/instance.py:Instance.__repr__" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "accloudtant/aws/instance.py:Instance" ] }, "file": "accloudtant/aws/instance.py" }, { "ch...
ifosch/accloudtant
79e3cf915208ffd58a63412ffc87bd48f8bfb2dd
Iterate over appropriate subsets for performance improvement When generating reports, the code iterates over all instances, and all reserved instances, to get the links between these, the report should iterate over running instances and active reserved instances, only.
diff --git a/accloudtant/aws/instance.py b/accloudtant/aws/instance.py index d83c3dc..f360c03 100644 --- a/accloudtant/aws/instance.py +++ b/accloudtant/aws/instance.py @@ -28,6 +28,9 @@ class Instance(object): 'best': 0.0, } + def __repr__(self): + return "<accloudtant.aws.instance.In...
ihmwg__python-ihm-61
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "ihm/dumper.py:_ModelDumper.dump_atoms" ], "edited_modules": [ "ihm/dumper.py:_ModelDumper" ] }, "file": "ihm/dumper.py" } ]
ihmwg/python-ihm
fb9199d655bef19b66674dc6334ea24ecd68259b
Missing auth_seq_id from _atom_site I am using python-ihm to generate mmcif files based on pdbs generated by docking. However I noticed that `_atom_site.auth_seq_id` is missing from the dump atoms function: https://github.com/ihmwg/python-ihm/blob/fb9199d655bef19b66674dc6334ea24ecd68259b/ihm/dumper.py#L1461 Then ...
diff --git a/ihm/dumper.py b/ihm/dumper.py index 4511db3..c9189a1 100644 --- a/ihm/dumper.py +++ b/ihm/dumper.py @@ -1464,7 +1464,7 @@ class _ModelDumper(Dumper): with writer.loop("_atom_site", ["group_PDB", "id", "type_symbol", "label_atom_id", "label_alt_i...
ikalchev__HAP-python-187
[ { "changes": { "added_entities": [ "pyhap/accessory.py:Accessory.set_primary_service" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "pyhap/accessory.py:Accessory" ] }, "file": "pyhap/accessory.py" }, { "changes": { ...
ikalchev/HAP-python
5ac5b8307b1c66481958c60fb84691ea4842aca8
New Accessory Typs + Services It seems their might have been new accessories added with iOS version 12.2 beta 1. I recently saw a feature request to add a TV service and found this afterwards: https://github.com/KhaosT/HAP-NodeJS/pull/638 I tried to download the current HAP specifications, but it seems they aren't...
diff --git a/pyhap/accessory.py b/pyhap/accessory.py index ed103a6..f5115b1 100644 --- a/pyhap/accessory.py +++ b/pyhap/accessory.py @@ -115,6 +115,12 @@ class Accessory: self.add_service(service) return service + def set_primary_service(self, primary_service): + """Set the primary service...
ikalchev__HAP-python-243
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pyhap/camera.py:Camera.set_endpoints" ], "edited_modules": [ "pyhap/camera.py:Camera" ] }, "file": "pyhap/camera.py" }, { "changes": { "added_entities": n...
ikalchev/HAP-python
feba43826d144e439a92eb8260863a6cea96b7fa
Unable to encode TLV value for camera When trying to create a camera I'm getting this exception: ``` [hap_server] Exception in set_characteristics: object of type 'int' has no len() Traceback (most recent call last): File "/home/homekit/camera_test/venv/lib/python3.7/site-packages/pyhap/hap_server.py", line 559...
diff --git a/pyhap/camera.py b/pyhap/camera.py index 5a6fca8..155aad9 100644 --- a/pyhap/camera.py +++ b/pyhap/camera.py @@ -682,8 +682,8 @@ class Camera(Accessory): SETUP_TYPES['ADDRESS'], res_address_tlv, SETUP_TYPES['VIDEO_SRTP_PARAM'], video_srtp_tlv, SETUP_TYPES['AUDIO_SRTP_P...
ikalchev__HAP-python-328
[ { "changes": { "added_entities": [ "pyhap/accessory_driver.py:AccessoryDriver._validate_start", "pyhap/accessory_driver.py:AccessoryDriver.async_start" ], "added_modules": null, "edited_entities": [ "pyhap/accessory_driver.py:AccessoryDriver.__init__", "py...
ikalchev/HAP-python
e8920d8450039e30bdaf0a4298405574f532018f
Do not pass `loop` to asyncio.Event Passing the loop argument to constructors is deprecated in Python 3.8 and will be removed in Python 3.10. You can trigger this as an error now by running the test suite with error on warning: ``` py.test tests/ -Werror -x ``` Making this change would require to remove all pas...
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 9c730b0..6113907 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.5, 3.6, 3.7, 3.8] + python-version: [3.5, 3....
ikalchev__HAP-python-343
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pyhap/accessory_driver.py:AccessoryDriver.start", "pyhap/accessory_driver.py:AccessoryDriver.publish" ], "edited_modules": [ "pyhap/accessory_driver.py:AccessoryDriver" ...
ikalchev/HAP-python
ac90099f5c007369a9e75d65dbdb78f1525ea2a1
module 'asyncio' has no attribute 'SafeChildWatcher' Upon running any HAP-pyhon service the following exception is caught: ``` [accessory_driver] Loading Accessory state from `busy_home.state` [accessory_driver] Starting the event loop [accessory_driver] Closed the event loop Traceback (most recent call last): ...
diff --git a/pyhap/accessory_driver.py b/pyhap/accessory_driver.py index 5db6ac2..96c1426 100644 --- a/pyhap/accessory_driver.py +++ b/pyhap/accessory_driver.py @@ -19,7 +19,6 @@ import asyncio import base64 from concurrent.futures import ThreadPoolExecutor import hashlib -import json import logging import os imp...
ikalchev__HAP-python-458
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pyhap/hap_handler.py:HAPServerHandler._pair_verify_two" ], "edited_modules": [ "pyhap/hap_handler.py:HAPServerHandler" ] }, "file": "pyhap/hap_handler.py" } ]
ikalchev/HAP-python
d9243b6abfbde59c03560b10f4a926a39ab1e1e2
Stopped working after upgrading to iOS 17 I have configured a bridge and a single door accessory in home assistant. They stopped working after updating to iOS 17 my AppleTV & iPhone. I removed them both from iOS home app and from Home Assistant and tried to reconfigure them as before, but pairing never succeeds. Af...
diff --git a/pyhap/hap_handler.py b/pyhap/hap_handler.py index 103cdc1..399bfcc 100644 --- a/pyhap/hap_handler.py +++ b/pyhap/hap_handler.py @@ -606,6 +606,13 @@ class HAPServerHandler: data = tlv.encode(HAP_TLV_TAGS.SEQUENCE_NUM, HAP_TLV_STATES.M4) self._send_tlv_pairing_response(data) + + i...
ikalnytskyi__picobox-79
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/picobox/_box.py:Box.pass_" ], "edited_modules": [ "src/picobox/_box.py:Box" ] }, "file": "src/picobox/_box.py" } ]
ikalnytskyi/picobox
fbc02ea61d8c65588e9c74724611715920711728
Add coroutine functions support to `pass_` decorator Currently the `picobox.pass_()` decorator can be successfully applied to coroutine functions, and such a coroutine function can be successfully used. For instance, the following code works as expected: ```python @picobox.pass_("database_session") async def get_m...
diff --git a/docs/index.rst b/docs/index.rst index eff5e2b..12c0e27 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -358,6 +358,15 @@ Release Notes backward incompatible changes will be released along with bumping major version component. +4.1.0 +````` + +(unreleased) + +* Fix a bug when a coroutine fun...
ikamensh__flynt-163
[ { "changes": { "added_entities": [ "src/flynt/cli.py:state_from_args" ], "added_modules": [ "src/flynt/cli.py:state_from_args" ], "edited_entities": [ "src/flynt/cli.py:run_flynt_cli" ], "edited_modules": [ "src/flynt/cli.py:run_flynt_cli...
ikamensh/flynt
5b071580192a78694280da0681e07b5262801c4e
Transform concatenation does not work with "--string" Version/Dist information: `Python 3.10.6` `Bash v5.1.16(1)-release` `Ubuntu 22.04` `x86_64` Expected behavior is achieved when reading from a python file. `cat test.py`: ``` #!/bin/env python test_string = 'This' + ' ' + 'may ' + ' ' + 'not' + ' ' + 'wo...
diff --git a/src/flynt/cli.py b/src/flynt/cli.py index f61f21d..67132db 100644 --- a/src/flynt/cli.py +++ b/src/flynt/cli.py @@ -7,7 +7,7 @@ import warnings from typing import List, Optional from flynt import __version__ -from flynt.api import fstringify, fstringify_code_by_line, fstringify_content +from flynt.api ...
ikamensh__flynt-189
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "src/flynt/__init__.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/flynt/stat...
ikamensh/flynt
c573f8b05cfb6ffe1f92bb72bf59d3851a81cbc1
transform-joins breaks code Here's my flynt output: ``` Running flynt v.1.0.0 Using config file at /asdf/qwer/pyproject.toml Using following options: Namespace(verbose=True, quiet=False, no_multiline=False, line_length=88, dry_run=True, stdout=False, string=False, transform_percent=True, transform_format=True, tran...
diff --git a/pyproject.toml b/pyproject.toml index 22220a9..9bbd0af 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -83,7 +83,7 @@ max-branches = 18 max-statements = 67 [tool.ruff.per-file-ignores] -"test/*" = ["I"] +"test/*" = ["I", "S"] "test/integration/*" = [ "F523", "F821", diff --git a/src/flyn...
ikamensh__flynt-72
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/flynt/api.py:_fstringify_file" ], "edited_modules": [ "src/flynt/api.py:_fstringify_file" ] }, "file": "src/flynt/api.py" }, { "changes": { "added_ent...
ikamensh/flynt
b7fc1b8ee2964fad30ed96c48d53964673ae766f
feature request: dryrun mode? Would it be possible to support a mode that doesn't modify files in place? Perhaps just printing a diff to stdout about what would change, and then exit status based on whether any files would be modified?
diff --git a/README.md b/README.md index a4f43ec..797566f 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,10 @@ optional arguments: --no-multiline convert only single line expressions -ll LINE_LENGTH, --line-length LINE_LENGTH for expressions spanning multiple lines, convert on...
ikegami-yukino__jaconv-15
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "jaconv/jaconv.py:alphabet2kana" ], "edited_modules": [ "jaconv/jaconv.py:alphabet2kana" ] }, "file": "jaconv/jaconv.py" } ]
ikegami-yukino/jaconv
95d5eaf7f20ef2da9b318262a6ac321cb58cb943
alphabet2kana bug 1. `su` is converted before `tsu` leading to words like 'atsui' being converted to 「あっすい」 2. Trailing `oh` is converted too soon leaving words like 'itoh' as 「いっおお」 3. Remaining `oh` replacements should be done after other replacements, current placement causes words like `toho` to become 「っおおお」 3....
diff --git a/README.rst b/README.rst index 76c89af..60e4c6c 100644 --- a/README.rst +++ b/README.rst @@ -41,12 +41,12 @@ See also `document <http://ikegami-yukino.github.io/jaconv/jaconv.html>`_ # half-width character to full-width character # but only ascii characters - jaconv.h2z(u'abc', kana=False, ascii=Tr...
ilevkivskyi__com2ann-21
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/com2ann.py:wrap_function_header" ], "edited_modules": [ "src/com2ann.py:wrap_function_header" ] }, "file": "src/com2ann.py" } ]
ilevkivskyi/com2ann
bb8a37fa473060623ff4589b3cf3f4ebf4f1eb09
When using --wrap-signatures, return annotations with commas also get wrapped For example: ```python def func(arg1: SomeVeryLongType1, arg2: SomeVeryLongType2) -> Dict[str, int]: ... ``` This is not a syntax error, but looks ugly.
diff --git a/src/com2ann.py b/src/com2ann.py index b1683e3..166672e 100644 --- a/src/com2ann.py +++ b/src/com2ann.py @@ -459,6 +459,7 @@ def wrap_function_header(header: str) -> List[str]: parts: List[str] = [] next_part = '' nested = 0 + complete = False # Did we split all the arguments inside (...)...
ilevkivskyi__com2ann-35
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/com2ann.py:process_assign" ], "edited_modules": [ "src/com2ann.py:process_assign" ] }, "file": "src/com2ann.py" } ]
ilevkivskyi/com2ann
ce7583b5a98ee5b9dbeb8a8cef4239893e230291
Type comment left in place when expression is type ignored Thanks for this tool, it's really useful :) If you have code like this: ``` python foo = object() bar = ( # Comment which explains why this ignored foo.quox # type: ignore[attribute] ) # type: Mapping[str, Distribution]...
diff --git a/src/com2ann.py b/src/com2ann.py index b3a892e..9e853bd 100644 --- a/src/com2ann.py +++ b/src/com2ann.py @@ -467,7 +467,8 @@ def process_assign(comment: AssignData, data: FileData, # We perform the tasks in order from larger line/columns to smaller ones # to avoid shuffling the line column numbers...
ilevkivskyi__com2ann-47
[ { "changes": { "added_entities": [ "src/com2ann.py:parse_cli_args", "src/com2ann.py:rebase_path", "src/com2ann.py:process_single_entry" ], "added_modules": [ "src/com2ann.py:parse_cli_args", "src/com2ann.py:rebase_path", "src/com2ann.py:process_s...
ilevkivskyi/com2ann
eb07a3119494af56d3ce96ff41466e17f9f83e2a
Accepting multiple input files It would be much easier to use this tool if it accepted mutliple files as input. I imagine that in that case, `-o` would be forbidden to avoid ambiguity. I might do a PR, just wanted to check if it would be welcome before doing it.
diff --git a/.github/workflows/lint_python.yml b/.github/workflows/lint_python.yml index b916402..e709693 100644 --- a/.github/workflows/lint_python.yml +++ b/.github/workflows/lint_python.yml @@ -9,7 +9,7 @@ jobs: with: python-version: 3.x - run: pip install --upgrade pip wheel - - run:...
ilevkivskyi__com2ann-58
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/com2ann.py:main" ], "edited_modules": [ "src/com2ann.py:main" ] }, "file": "src/com2ann.py" } ]
ilevkivskyi/com2ann
6fa4c021c8b1cec27ccd8c900c0ddea7faab91bb
Multiple input files are generated to single file When a command is called with multiple files (ex. `com2ann f1.py f2.py`), then the first file (`f1.py`) is chosen as output for both files. This is especially problematic when `pre-commit` hook is used.
diff --git a/src/com2ann.py b/src/com2ann.py index 5e41a5f..f6d0f48 100644 --- a/src/com2ann.py +++ b/src/com2ann.py @@ -936,8 +936,8 @@ def main() -> None: options = Options(**args) for infile in infiles: - outfile = outfile or infile - process_single_entry(in_path=infile, out_path=outfile, o...
ilevkivskyi__typing_inspect-71
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "typing_inspect.py:get_args" ], "edited_modules": [ "typing_inspect.py:get_args" ] }, "file": "typing_inspect.py" } ]
ilevkivskyi/typing_inspect
6dd6b38bc12bcbaf814fb0c69a801365b81e3611
Support Python 3.9 typing_inspect doesn't really work with Python 3.9 right now. There are issues like #60 and #64, but a variety of things need to be updated. My initial survey (just guessing from poking at implementations; it would be better to have someone review/expand this list who is more intimately familiar wit...
diff --git a/.travis.yml b/.travis.yml index 1fb80e9..6cf3061 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,7 @@ matrix: fast_finish: true include: - python: 3.9 + - python: 3.9.1 - python: 3.8 - python: 3.7 - python: 3.6 diff --git a/typing_inspect.py b/typing_inspect.py index d3a0...
ilevkivskyi__typing_inspect-74
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "typing_inspect.py:get_args" ], "edited_modules": [ "typing_inspect.py:get_args" ] }, "file": "typing_inspect.py" } ]
ilevkivskyi/typing_inspect
d1d46f4c2429dd0a60f902fa7b728d67bb2d1582
Python 3.9 support breaks List There was a regression in release 0.7.0 from 0.6.0. Currently, ```python >>> from typing import List, Set >>> from typing_inspect import get_args >>> get_args(list[str]) # Yay this works! Great to see support for Python 3.9! (<class 'str'>,) >>> get_args(List) Traceback (most ...
diff --git a/typing_inspect.py b/typing_inspect.py index c11b856..4c765e3 100644 --- a/typing_inspect.py +++ b/typing_inspect.py @@ -467,7 +467,8 @@ def get_args(tp, evaluate=None): if NEW_TYPING: if evaluate is not None and not evaluate: raise ValueError('evaluate can only be True in Python ...
ilevkivskyi__typing_inspect-94
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "typing_inspect.py:get_parameters" ], "edited_modules": [ "typing_inspect.py:get_parameters" ] }, "file": "typing_inspect.py" } ]
ilevkivskyi/typing_inspect
b24da20b0f137e00cd8c511843ff52cb92dcf470
`get_parameters` throws exception with non-indexed types from `typing` on python 3.10 **python 3.7** ``` >>> from typing import List >>> from typing_inspect import get_parameters >>> get_parameters(List) (~T,) ``` **python 3.10.6** ``` >>> from typing import List >>> from typing_inspect import get_parameter...
diff --git a/typing_inspect.py b/typing_inspect.py index d786e96..0268b16 100644 --- a/typing_inspect.py +++ b/typing_inspect.py @@ -408,7 +408,11 @@ def get_parameters(tp): else: return () elif NEW_TYPING: - if (isinstance(tp, typingGenericAlias) or + if ( + ( + ...
iluvcapra__pycmx-12
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pycmx/parse_cmx_statements.py:_parse_cmx3600_line" ], "edited_modules": [ "pycmx/parse_cmx_statements.py:_parse_cmx3600_line" ] }, "file": "pycmx/parse_cmx_statements.p...
iluvcapra/pycmx
b6379ec1fe7c300ec1c18a3ef0c2c680e65007c8
Questions about event.number I use print(len(events) when using CMX) with a maximum of 999 events, but my edl has more than 4000, the edl encoding is' ISO-8859-1 ', and the EDL.format is 3600. I would like to ask if there is a maximum limit for events.
diff --git a/README.md b/README.md index c41dd81..6b7c3c1 100644 --- a/README.md +++ b/README.md @@ -5,12 +5,13 @@ # pycmx -The `pycmx` package provides a basic interface for parsing a CMX 3600 EDL and its most most common variations. +The `pycmx` package provides a basic interface for parsing a CMX 3600 EDL and ...
imageio__imageio-1048
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "imageio/__init__.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules...
imageio/imageio
ab9653bd86b34002ce5526259dbfc6a860bfb843
It does not seem to support avif image format ``` import imageio.v3 as iio im=iio.imread('51.avif') ``` _OSError Traceback (most recent call last) [<ipython-input-4-2fb2e37d23e4>](https://localhost:8080/#) in <cell line: 2>() 1 import imageio.v3 as iio ----> 2 im=iio.im...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 69ba5da..3d4c9d3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 <!--next-version-placeholder--> +## v2.32.0 (2023-11-06) + +### Feature + +* Add support for HEIF format ([#...
imageio__imageio-1084
[ { "changes": { "added_entities": [ "imageio/core/request.py:SeekableFileObject.readline" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "imageio/core/request.py:SeekableFileObject" ] }, "file": "imageio/core/request.py" } ]
imageio/imageio
a4f4c05704065d4ad96e16d1d84467fb4c538613
AttributeError: 'SeekableFileObject' object has no attribute 'readline' trouble occur when reading some website address as follow, but same address is ok by skimage.io import imread: File "/usr/local/lib/python3.8/site-packages/imageio/v2.py", line 359, in imread with imopen(uri, "ri", **imopen_args) as file:...
diff --git a/imageio/core/request.py b/imageio/core/request.py index f42da19..47b7c95 100644 --- a/imageio/core/request.py +++ b/imageio/core/request.py @@ -697,6 +697,9 @@ class SeekableFileObject: return res + def readline(self): + yield from self._file.readline() + def tell(self): ...
imageio__imageio-150
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "imageio/core/__init__.py" }, { "changes": { "added_entities": [ "imageio/core/util.py:image_as_uint" ], "added_modules": [ ...
imageio/imageio
8f0efc08ae98db69c02dc2820e4e76985cf0e60d
Support writing 16-bit color channels for PNG I'm trying to transition away from MATLAB and imageio has been incredibly helpful. However, I need to work with 64-bit PNGs (16-bit color channels and 16-bit alpha channel) and although it looks like reading 16-bit channels is supported, writing is not supported. I creat...
diff --git a/imageio/core/__init__.py b/imageio/core/__init__.py index 0347ec7..b5cedf0 100644 --- a/imageio/core/__init__.py +++ b/imageio/core/__init__.py @@ -6,7 +6,7 @@ (everything but the plugins). """ -from .util import Image, Dict, asarray, image_as_uint8, urlopen # noqa +from .util import Image, Dict, asar...
imageio__imageio-209
[ { "changes": { "added_entities": [ "imageio/core/request.py:fix_HTTPResponse" ], "added_modules": [ "imageio/core/request.py:fix_HTTPResponse" ], "edited_entities": [ "imageio/core/request.py:Request.get_file" ], "edited_modules": [ "imag...
imageio/imageio
18721f19cef4a5448cfd54251c474800b6c89948
UnsupportedOperation seek while reading HTTP uri I am using imageio for a while, but since I upgraded to python 3.6, I have problems loading an image from an online location ``` imageio.imread(url) --------------------------------------------------------------------------- UnsupportedOperation ...
diff --git a/imageio/core/request.py b/imageio/core/request.py index 42185bb..bc07b25 100644 --- a/imageio/core/request.py +++ b/imageio/core/request.py @@ -326,6 +326,7 @@ class Request(object): elif self._uri_type in [URI_HTTP or URI_FTP]: assert not want_to_write # This should have been tested...
imageio__imageio-236
[ { "changes": { "added_entities": [ "imageio/plugins/_tifffile.py:test_tifffile" ], "added_modules": [ "imageio/plugins/_tifffile.py:test_tifffile" ], "edited_entities": [ "imageio/plugins/_tifffile.py:imsave", "imageio/plugins/_tifffile.py:TiffWriter...
imageio/imageio
7df104500646d0cf7dd143aec698ef9ce77b7005
ffmpeg read_infos bug Hi, I just found a bug in the ffmpeg plugin that results in the following traceback: ```python Traceback (most recent call last): File "C:/Users/Felix/PycharmProjects/imageio/test.py", line 9, in <module> vid = imageio.get_reader(filename, 'ffmpeg', ffmpeg_params=['-loglevel', 'fatal'...
diff --git a/imageio/plugins/_tifffile.py b/imageio/plugins/_tifffile.py index 6072ace..5d87f70 100644 --- a/imageio/plugins/_tifffile.py +++ b/imageio/plugins/_tifffile.py @@ -1,9 +1,10 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- # tifffile.py +# styletest: skip -# Copyright (c) 2008-2017, Christoph Gohlke -...
imageio__imageio-255
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": [ "imageio/plugins/tifffile.py:TiffFormat" ] }, "file": "imageio/plugins/tifffile.py" } ]
imageio/imageio
0e0be918f05f8f2812277c9204677b05c7d6f73f
Incorrect image dimensions after reading in 3D+c TIFF I'm trying to read the following file: https://www.dropbox.com/s/0ynbscx4cmd5k91/E_z2_512_1um_CONTROL.tif?dl=1 skimage (ie tifffile) reads this correctly, but imageio doesn't — even though I thought it also used tifffile as a backend for tiffs? ```python I...
diff --git a/imageio/plugins/tifffile.py b/imageio/plugins/tifffile.py index f6d25ad..a26ea79 100644 --- a/imageio/plugins/tifffile.py +++ b/imageio/plugins/tifffile.py @@ -37,8 +37,11 @@ READ_METADATA_KEYS = ('planar_configuration', 'is_fluoview', 'is_nih', class TiffFormat(Format): - """ Provides support fo...
imageio__imageio-310
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "imageio/core/functions.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "imageio/co...
imageio/imageio
b122f914d2b8f6971f958d925b79261fc8df51f8
update tifffile [Version 2017.09.29](https://www.lfd.uci.edu/%7Egohlke/code/tifffile.py.html) brought significant updates for `tifffile.py`, e.g. consolidated access to metadata. At the moment, imageio holds at version 2017.01.12; it would be great if this could be updated.
diff --git a/.travis.yml b/.travis.yml index 99368c9..11e3828 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,7 +21,7 @@ matrix: env: TEST_UNIT=0 TEST_STYLE=1 # - python: "2.7" - env: TEST_UNIT=1 TEST_INSTALL=1 + env: TEST_UNIT=1 TEST_INSTALL=1 IS_LEGACY=1 - pyt...
imageio__imageio-321
[ { "changes": { "added_entities": [ "imageio/plugins/ffmpeg.py:parse_device_names", "imageio/plugins/ffmpeg.py:parse_ffmpeg_info" ], "added_modules": [ "imageio/plugins/ffmpeg.py:parse_device_names", "imageio/plugins/ffmpeg.py:parse_ffmpeg_info" ], "e...
imageio/imageio
a22145a9ebbd3aa3bc742911e052ed1903381486
ffmpeg: you are trying to apply an input option to an output file or vice versa. Move this option before the file it belongs to. I'm trying to get imageio reading only I-frames with ffmpeg plugin. Therefore, I'm using the following line in python: `video_reader = imageio.get_reader(video_path, 'ffmpeg', ffmpeg_param...
diff --git a/imageio/plugins/ffmpeg.py b/imageio/plugins/ffmpeg.py index ae17fe2..61be3bf 100644 --- a/imageio/plugins/ffmpeg.py +++ b/imageio/plugins/ffmpeg.py @@ -174,6 +174,11 @@ class FfmpegFormat(Format): Parameters for reading ---------------------- + fps : scalar + The number of frames ...
imageio__imageio-374
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": [ "imageio/plugins/freeimage.py:FreeimagePngFormat" ] }, "file": "imageio/plugins/freeimage.py" }, { "changes": { "added_entities": null, "ad...
imageio/imageio
7df4f3afd0fb54845d28237f7c794c81e195684a
When should the Pillow plugin apply gamma correction? *original title: Reading PNG files differently than scipy.misc* I've been using `scipy.misc.imread`for reading (tomographic) images for processing. After a recent upgrade of my system I'm told this is deprecated in favor of `imageio.imread`. Unfortunately my...
diff --git a/imageio/plugins/freeimage.py b/imageio/plugins/freeimage.py index 2e52c3d..7f93cb6 100644 --- a/imageio/plugins/freeimage.py +++ b/imageio/plugins/freeimage.py @@ -195,7 +195,7 @@ class FreeimagePngFormat(FreeimageFormat): Parameters for reading ---------------------- ignoregamma : bool - ...
imageio__imageio-429
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "imageio/core/request.py:Request.__init__", "imageio/core/request.py:Request._parse_uri", "imageio/core/request.py:Request.get_file", "imageio/core/request.py:Request.finish" ...
imageio/imageio
1a7f572a3bff99e479f66c3e58720443caabe4b9
Failure to write when using a file for plugins using get_local_filename Hi, It's said in the [docs](https://imageio.readthedocs.io/en/stable/userapi.html#imageio.imwrite) that I can use file objects for imread/imwrite functions but actually it's only true for PIL, so this code ```python import imageio import n...
diff --git a/imageio/core/request.py b/imageio/core/request.py index 76eccdf..99ef28f 100644 --- a/imageio/core/request.py +++ b/imageio/core/request.py @@ -104,6 +104,7 @@ class Request(object): # To handle the plugin side self._file = None # To store the file instance + self._file_is_local...
imageio__imageio-447
[ { "changes": { "added_entities": null, "added_modules": [ "imageio/plugins/freeimage.py:FreeimagePnmFormat" ], "edited_entities": null, "edited_modules": null }, "file": "imageio/plugins/freeimage.py" } ]
imageio/imageio
88b2a43cea81139e1a76460c68fa9aadebadfc1e
PPM-FI not creating ASCII output When ssing the PPM-FI format string, no ASCII output is created. ```python imageio.imwrite(path, image_data, "PPM-FI") ``` Produces for example ``` P6 200 100 65535 <binary data> ``` This is the expected behavior when using PPMRAW-FI. The expected ASCII output would b...
diff --git a/.gitignore b/.gitignore index ec7c106..35d4389 100644 --- a/.gitignore +++ b/.gitignore @@ -33,3 +33,6 @@ __pychache__ # IDE .idea +.project +.pydevproject +.settings diff --git a/imageio/plugins/freeimage.py b/imageio/plugins/freeimage.py index 7f93cb6..ca7db87 100644 --- a/imageio/plugins/freeimage.p...
imageio__imageio-510
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "imageio/core/format.py:Format.get_reader", "imageio/core/format.py:Format.get_writer" ], "edited_modules": [ "imageio/core/format.py:Format" ] }, "file": "image...
imageio/imageio
09c34ccd708e1913c8a58459f9db54dbf14210f9
`if imageio.get_reader(...): pass` fails for FfmpegFormat.Reader objects The following statement: `if imageio.get_reader('<video0>'): pass` raises 'OverflowError: cannot convert float infinity to integer' (at least in Python 2.7) It seems that `FfmpegFormat.Reader` has no `__nonzero__()` method (nor `__bool__(...
diff --git a/imageio/core/format.py b/imageio/core/format.py index 34ce741..c5e093a 100644 --- a/imageio/core/format.py +++ b/imageio/core/format.py @@ -30,12 +30,22 @@ a format object using ``imageio.formats.add_format()``. # imageio.get_reader and imageio.get_writer. import os +import sys import numpy as np ...
imageio__imageio-512
[ { "changes": { "added_entities": [ "imageio/core/request.py:SeekableFileObject.__init__", "imageio/core/request.py:SeekableFileObject.read", "imageio/core/request.py:SeekableFileObject.tell", "imageio/core/request.py:SeekableFileObject.seek", "imageio/core/request.p...
imageio/imageio
dc212e26c4fdd662f195c017e34f03b184ea6ab0
UnsupportedOperation seek while reading GIF from HTTP uri Related to: https://github.com/imageio/imageio/issues/202 https://github.com/imageio/imageio/issues/238 https://github.com/imageio/imageio/issues/335 Reading GIF images from a HTTP fails with `"UnsupportedOperation: seek"` For example, try running: ```...
diff --git a/imageio/core/request.py b/imageio/core/request.py index a4a68bf..dbd455b 100644 --- a/imageio/core/request.py +++ b/imageio/core/request.py @@ -340,12 +340,12 @@ class Request(object): # Open zipfile and open new file object for specific file self._zipfile = zipfile.ZipFil...
imageio__imageio-557
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "imageio/core/util.py:Array.__new__" ], "edited_modules": [ "imageio/core/util.py:Array" ] }, "file": "imageio/core/util.py" } ]
imageio/imageio
4a72d564a6d36d53b5209b8bcc497e8dc5e43bd5
Creating Array from preexisting Array drops metadata ```python >>> import numpy as np, imageio >>> t = imageio.core.Array(np.array([1, 2]), meta={"foo": 1}) >>> (t * 2).meta Dict([('foo', 1)]) >>> t[:].meta Dict([('foo', 1)]) >>> imageio.core.Array(t).meta Dict() ``` Given that most operations on an Array app...
diff --git a/imageio/core/util.py b/imageio/core/util.py index 8f382e7..c433cae 100644 --- a/imageio/core/util.py +++ b/imageio/core/util.py @@ -124,7 +124,7 @@ class Array(np.ndarray): if not (meta is None or isinstance(meta, dict)): raise ValueError("Array expects meta data to be a dict.") ...
imageio__imageio-678
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "imageio/core/request.py:Request.__init__" ], "edited_modules": [ "imageio/core/request.py:Request" ] }, "file": "imageio/core/request.py" } ]
imageio/imageio
e1226c751fb30196879620977d6f4072c45f8719
imageiov2.10.1. The imwrite will raise ValueError when filename include "#". Imageio V2.10.1 ``` import imageio import numpy as np imageio.imwrite('#1.jpg', np.zeros([512, 512, 3], dtype=np.uint8)) ``` It will raise ValueError: Could not find a format to read the specified file in ImageMode.single_image mode. ...
diff --git a/imageio/core/request.py b/imageio/core/request.py index d24e259..d2ddae2 100644 --- a/imageio/core/request.py +++ b/imageio/core/request.py @@ -244,8 +244,11 @@ class Request(object): # Set extension if self._filename is not None: - parts = urlparse(self._filename) - ...
imankulov__linguee-api-51
[ { "changes": { "added_entities": [ "linguee_api/parser_utils.py:take_first_non_empty_item" ], "added_modules": [ "linguee_api/parser_utils.py:take_first_non_empty_item" ], "edited_entities": null, "edited_modules": null }, "file": "linguee_api/parser_u...
imankulov/linguee-api
7ca9ca3dadc77997e7952003f03d7aa8a48a130f
500 error for "über" xextract.parsers.ParsingError: Parser String(name="usage_frequency") matched 2 elements ("?" expected). looks like there are two span with tag_c class.
diff --git a/linguee_api/parser_utils.py b/linguee_api/parser_utils.py index cadea2b..6708037 100644 --- a/linguee_api/parser_utils.py +++ b/linguee_api/parser_utils.py @@ -55,3 +55,11 @@ def take_first_item(variants) -> Optional[str]: if not variants["item"]: return None return variants["item"][0] +...
inbo__niche_vlaanderen-268
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "docs/conf.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "niche_vlaanderen/niche....
inbo/niche_vlaanderen
27bb1e1eefa6c771635101841bf6dd8178dbc4ce
Abiotic: use custom acidity OR nutrient_level * niche_vlaanderen version: 1.0 * Python version: 3 * Operating System: Win ## Niche Python Package question ### Description If you use mymodel.run( abiotic= True), you need to provide both an input layer for acidity and nutrient_level. It happens regularly t...
diff --git a/LICENSE b/LICENSE index 03bf2b2..c70f54f 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2017 Instituut voor Natuur en Bosonderzoek (INBO) +Copyright (c) 2017-2020 Instituut voor Natuur en Bosonderzoek (INBO) Permission is hereby granted, free of charge, to any person ob...
indico__flask-multipass-72
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "flask_multipass/__init__.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "flask_mu...
indico/flask-multipass
d7d885326f8f9f40126af2b7dda4808d222391b7
Type error on init_app ``` File ".../site-packages/flask_multipass/util.py", line 146, in resolve_provider_type entry_points = importlib_entry_points(group=base._entry_point, name=type_) TypeError: entry_points() for an unexpected keyword argument 'group' ``` I see this error and version 0.5 dies while loading...
diff --git a/CHANGES.rst b/CHANGES.rst index 4a63425..0817943 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,6 +1,11 @@ Changelog ========= +Version 0.5.1 +------------- + +- Fix compatibility with Python 3.8 and 3.9 + Version 0.5 ----------- diff --git a/flask_multipass/__init__.py b/flask_multipass/__init__...
inducer__pudb-260
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pudb/ui_tools.py:make_canvas" ], "edited_modules": [ "pudb/ui_tools.py:make_canvas" ] }, "file": "pudb/ui_tools.py" } ]
inducer/pudb
fef17b6f33da7d03758c150b37cd2f84754aa01d
"Canvas text is wider than the maxcol specified" with Chinese The full script is simple: ``` data = "中文" ``` Run it with ``` pudb3 a.py ``` And press "n" I got this: ``` Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/pudb/__init__.py", line 83, in runscript dbg._runscrip...
diff --git a/pudb/ui_tools.py b/pudb/ui_tools.py index 9997cad..a398865 100644 --- a/pudb/ui_tools.py +++ b/pudb/ui_tools.py @@ -1,6 +1,6 @@ from __future__ import absolute_import, division, print_function import urwid -from urwid.util import _target_encoding +from urwid.util import _target_encoding, calc_width ...
inducer__pycparserext-46
[ { "changes": { "added_entities": [ "pycparserext/ext_c_parser.py:FuncDeclExt.__iter__" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "pycparserext/ext_c_parser.py:FuncDeclExt" ] }, "file": "pycparserext/ext_c_parser.py" } ]
inducer/pycparserext
9e66047b3d3b3c50abe212a319ba42663b796f58
Cannot traverse nodes using NodeVisitor, FuncDeclExt is not iterable Using `GnuCParser()` and subclassing `c_ast.NodeVisitor`, I cannot traverse the nodes as in the FuncDefs example in https://github.com/eliben/pycparser/blob/master/examples/func_defs.py It results in the following error: ``` Traceback (most recen...
diff --git a/pycparserext/ext_c_parser.py b/pycparserext/ext_c_parser.py index b59d98e..7611ce1 100644 --- a/pycparserext/ext_c_parser.py +++ b/pycparserext/ext_c_parser.py @@ -169,6 +169,12 @@ class FuncDeclExt(c_ast.Node): nodelist.append(("asm", self.asm)) return tuple(nodelist) + def __it...
inducer__pycparserext-52
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pycparserext/ext_c_generator.py:AsmAndAttributesMixin._generate_type" ], "edited_modules": [ "pycparserext/ext_c_generator.py:AsmAndAttributesMixin" ] }, "file": "pycpa...
inducer/pycparserext
9365b816fdad96c28ca5d5a8bad771125c53098e
add support for __volatile__, and __restrict__ I added some support to handle Snapdragon processors, header files. Basically, trivial support for __volatile__ I could have used a #define but this seems to be a better method. I think GCC supports both __XXX and __XXX__ for all of those key words so this is really a mi...
diff --git a/pycparserext/ext_c_generator.py b/pycparserext/ext_c_generator.py index 3ecccad..297793d 100644 --- a/pycparserext/ext_c_generator.py +++ b/pycparserext/ext_c_generator.py @@ -63,7 +63,13 @@ class AsmAndAttributesMixin(object): if isinstance(modifier, c_ast.ArrayDecl): ...
inducer__pycparserext-53
[ { "changes": { "added_entities": [ "pycparserext/ext_c_generator.py:GnuCGenerator.visit_RangeExpression" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "pycparserext/ext_c_generator.py:GnuCGenerator" ] }, "file": "pycparserext/e...
inducer/pycparserext
667781d692eb69ad4906eb107e168d4384bf006d
GNU C array init with "..." not supported This is a GNU extension, see [Designated Inits](https://gcc.gnu.org/onlinedocs/gcc/Designated-Inits.html#Designated-Inits) in the GCC manual. However, the GnuCParser doesn't cope: ``` >>> from pycparserext.ext_c_parser import GnuCParser >>> p=GnuCParser() >>> p.parse("int widt...
diff --git a/pycparserext/ext_c_generator.py b/pycparserext/ext_c_generator.py index 751905a..3ecccad 100644 --- a/pycparserext/ext_c_generator.py +++ b/pycparserext/ext_c_generator.py @@ -138,6 +138,9 @@ class GnuCGenerator(AsmAndAttributesMixin, CGeneratorBase): def visit_TypeList(self, n): return ', '....
inducer__pycparserext-62
[ { "changes": { "added_entities": [ "pycparserext/ext_c_parser.py:GnuCParser.p_labeled_statement_4" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "pycparserext/ext_c_parser.py:GnuCParser" ] }, "file": "pycparserext/ext_c_parser....
inducer/pycparserext
502dbb977e9cc9336f447aaaab86c1ee1addb03a
Support for case ranges Hi, Thanks for this project! I see that you've implemented designated range initializers. Would you consider implementing the somewhat related case ranges (https://gcc.gnu.org/onlinedocs/gcc/Case-Ranges.html)?
diff --git a/pycparserext/ext_c_parser.py b/pycparserext/ext_c_parser.py index 62efb56..f91394e 100644 --- a/pycparserext/ext_c_parser.py +++ b/pycparserext/ext_c_parser.py @@ -558,6 +558,15 @@ class GnuCParser(_AsmAndAttributesMixin, CParserBase): """ p[0] = RangeExpression(p[2], p[4], coord=self._co...
inducer__pycparserext-80
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "pycparserext/ext_c_lexer.py" } ]
inducer/pycparserext
1c5ca53be93875350856baa6ce72326882c97637
type cast parsing error in (__typeof(h))spa_meta_first(m) line, __typeof(h) type is not allowed by parser rules Hello, while trying to run project https://gitlab.com/matpi/pipewire-py I get an error ``` State : 484 Stack : declaration_specifiers id_declarator declaration_list_opt brace_open unary_expression ...
diff --git a/pycparserext/ext_c_lexer.py b/pycparserext/ext_c_lexer.py index eb237b6..0d740c9 100644 --- a/pycparserext/ext_c_lexer.py +++ b/pycparserext/ext_c_lexer.py @@ -65,7 +65,7 @@ _COMMON_KEYWORDS = [ '__asm__', '__asm', 'asm'] _GNU_KEYWORDS = [ - '__typeof__', 'typeof', + '__typeof__', 'typeof', '...
inducer__pymbolic-58
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pymbolic/parser.py:Parser.parse_terminal", "pymbolic/parser.py:Parser.parse_postfix" ], "edited_modules": [ "pymbolic/parser.py:Parser" ] }, "file": "pymbolic/p...
inducer/pymbolic
725a184b2a38a1095d83635b9c2efe9b15371584
[Parser] Incorrect if-else precedence ```python In [11]: parse("10 if x or y else 20") ``` raises: ``` ParseError: else expected, or found instead at index 8: ...or y else 20... ```
diff --git a/pymbolic/parser.py b/pymbolic/parser.py index b846193..cb4cb62 100644 --- a/pymbolic/parser.py +++ b/pymbolic/parser.py @@ -37,6 +37,8 @@ _openpar = intern("openpar") _closepar = intern("closepar") _openbracket = intern("openbracket") _closebracket = intern("closebracket") +_true = intern("True") +_fals...
inducer__pytools-222
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pytools/persistent_dict.py:KeyBuilder.update_for_time" ], "edited_modules": [ "pytools/persistent_dict.py:KeyBuilder" ] }, "file": "pytools/persistent_dict.py" } ]
inducer/pytools
a5efddf54fd4467d729ec4118faa1a059b309d0b
`datetime` hashing tests fail https://github.com/inducer/pytools/actions/runs/8864710333/job/24340173299 @matthiasdiener could you take a look?
diff --git a/pytools/persistent_dict.py b/pytools/persistent_dict.py index fb77d4b..4090cb4 100644 --- a/pytools/persistent_dict.py +++ b/pytools/persistent_dict.py @@ -460,7 +460,7 @@ class KeyBuilder: import datetime # Convert to datetime object - self.rec(key_hash, datetime.datetime.combin...
influxdata__influxdb-client-python-183
[ { "changes": { "added_entities": [ "influxdb_client/client/write/dataframe_serializer.py:_not_nan" ], "added_modules": [ "influxdb_client/client/write/dataframe_serializer.py:_not_nan" ], "edited_entities": [ "influxdb_client/client/write/dataframe_serialize...
influxdata/influxdb-client-python
91dcafb5e1c7b7854cf225afba87f5bdfe00b3a1
using Pandas DataFrame can corrupt data The code in [dataframe_serializer.py](https://github.com/influxdata/influxdb-client-python/blob/91dcafb5e1c7b7854cf225afba87f5bdfe00b3a1/influxdb_client/client/write/dataframe_serializer.py) could use some improvement. - the code is hard to understand. It operates by building ...
diff --git a/.gitignore b/.gitignore index 59b4156..3be131d 100644 --- a/.gitignore +++ b/.gitignore @@ -114,4 +114,3 @@ sandbox # OpenAPI-generator /.openapi-generator* **/writer.pickle -/tests/data_frame_file.csv diff --git a/CHANGELOG.md b/CHANGELOG.md index db72fe7..50cd774 100644 --- a/CHANGELOG.md +++ b/CHANGE...
influxdata__influxdb-client-python-203
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "influxdb_client/client/influxdb_client.py:InfluxDBClient.from_config_file" ], "edited_modules": [ "influxdb_client/client/influxdb_client.py:InfluxDBClient" ] }, "file"...
influxdata/influxdb-client-python
4f1e14e4a01200b1a927e2ca470b3662fcb376fd
`InfluxDBClient.from_config_file()` incompatible with config files generated by `influx setup` The method `InfluxDBClient.from_config_file()` does not seem to be compatible with the config file format generated by `influx setup` due to quotation marks around strings. Would it be better to make the client deal with the ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 36afb4f..249f243 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ ## 1.16.0 [unreleased] +### Features +1. [#203](https://github.com/influxdata/influxdb-client-python/pull/203): Allow configuring client via TOML file. + ### Documentation 1. [#202](https://...
influxdata__influxdb-client-python-218
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "examples/buckets_management.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edi...
influxdata/influxdb-client-python
d465ddaba26d9b50bb0529ac259ee1dd360f57aa
Documentation unclear on proper extended usage of WriteApi client Does the WriteAPI client support context management? If so what does the context manager do - flush, close, wait for batch to complete? I cannot answer any of these queststions reading the doucmentation so I don't know if I should be creating a new inst...
diff --git a/README.rst b/README.rst index ec0618f..d0c1ce6 100644 --- a/README.rst +++ b/README.rst @@ -220,7 +220,7 @@ Writes The `WriteApi <https://github.com/influxdata/influxdb-client-python/blob/master/influxdb_client/client/write_api.py>`_ supports synchronous, asynchronous and batching writes into InfluxDB 2.0...
influxdata__influxdb-client-python-222
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "influxdb_client/client/influxdb_client.py:InfluxDBClient.__init__" ], "edited_modules": [ "influxdb_client/client/influxdb_client.py:InfluxDBClient" ] }, "file": "influ...
influxdata/influxdb-client-python
2870071c1e958d085e2c81f815895808ec680fe6
No request timeout causing points not being written to influxdb <!-- Thank you for reporting a bug. * Please add a :+1: or comment on a similar existing bug report instead of opening a new one. * https://github.com/influxdata/influxdb-client-python/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+is%3Aclosed+so...
diff --git a/CHANGELOG.md b/CHANGELOG.md index f2eaa3b..2ee6a67 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,9 @@ ### Features 1. [#203](https://github.com/influxdata/influxdb-client-python/issues/219): Bind query parameters +### Bug Fixes +1. [#222](https://github.com/influxdata/influxdb-client-python/...
influxdata__influxdb-client-python-238
[ { "changes": { "added_entities": [ "influxdb_client/client/util/date_utils.py:DateHelper.__init__" ], "added_modules": null, "edited_entities": [ "influxdb_client/client/util/date_utils.py:DateHelper.to_utc" ], "edited_modules": [ "influxdb_client/clie...
influxdata/influxdb-client-python
be6760d50fac203137e7e2edd91b63c2ed8e68ca
_convert_timestamp assumes passed datetime to be UTC This function here https://github.com/influxdata/influxdb-client-python/blob/62f93503044dbbd86443555ccfac5cfd8359f91a/influxdb_client/client/write/point.py#L130 assumes a passed datetime object to be in UTC format if no timezone is specified. I find this to be highly...
diff --git a/CHANGELOG.md b/CHANGELOG.md index dbc23df..891af11 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ### Features 1. [#237](https://github.com/influxdata/influxdb-client-python/pull/237): Use kwargs to pass query parameters into API list call - useful for the ability to use pagination. 1. [#2...
influxdata__influxdb-client-python-254
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "influxdb_client/client/write/dataframe_serializer.py:data_frame_to_list_of_points" ], "edited_modules": [ "influxdb_client/client/write/dataframe_serializer.py:data_frame_to_list_of_...
influxdata/influxdb-client-python
bccc2b86116c8fd62b82f115dea7d024201e99c1
Field type is set to `string` when writing `float32` type from Pandas DataFrame <!-- Thank you for reporting a bug. * Please add a :+1: or comment on a similar existing bug report instead of opening a new one. * https://github.com/influxdata/influxdb-client-python/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aope...
diff --git a/CHANGELOG.md b/CHANGELOG.md index bf7506b..7695d7a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,9 @@ 1. [#241](https://github.com/influxdata/influxdb-client-python/pull/241): Add detail error message for not supported type of `Point.field` 1. [#238](https://github.com/influxdata/influxdb-clien...
influxdata__influxdb-client-python-270
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "influxdb_client/client/write/dataframe_serializer.py:data_frame_to_list_of_points" ], "edited_modules": [ "influxdb_client/client/write/dataframe_serializer.py:data_frame_to_list_of_...
influxdata/influxdb-client-python
a2dbc0b4323129a4460c1f85ab6f1b2fc671d38d
Support write_precision in _write_client.write when record is a Pandas dataframe <!-- Thank you for suggesting an idea to improve this client. * Please add a :+1: or comment on a similar existing feature request instead of opening a new one. * https://github.com/influxdata/influxdb-client-python/issues?utf8...
diff --git a/CHANGELOG.md b/CHANGELOG.md index d545bee..d7466fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ ### Deprecated 1. [#264](https://github.com/influxdata/influxdb-client-python/pull/264): Deprecated `org_id` options BucketsApi.create_bucket in favor of `org` parameter +### Bug Fixes +1. [#...
influxdata__influxdb-client-python-303
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "influxdb_client/client/influxdb_client.py:InfluxDBClient.__init__" ], "edited_modules": [ "influxdb_client/client/influxdb_client.py:InfluxDBClient" ] }, "file": "influ...
influxdata/influxdb-client-python
cf2186200156c1f5cc2008703bb54775241d2aba
re-escaping the \ character when converting to line protocol - **InfluxDB version: 1.8.5** - **InfluxDB-python version: 1.18.0** - **Python version: 3.6.9** - **Operating system version: Ubuntu 18.04** influx is re-escaping `\` character when converting to line protocol. here is my python code ``` from influx...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 255be7d..5ab8620 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,11 +3,16 @@ ### Features 1. [#281](https://github.com/influxdata/influxdb-client-python/pull/281): `FluxTable`, `FluxColumn` and `FluxRecord` objects have helpful reprs 1. [#293](https://github.com/infl...
influxdata__influxdb-client-python-378
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "influxdb_client/client/write/dataframe_serializer.py:DataframeSerializer.__init__", "influxdb_client/client/write/dataframe_serializer.py:DataframeSerializer.serialize" ], "edited_mo...
influxdata/influxdb-client-python
7e09dde76878257c3723a3280f3b9a205d8fbd0a
Regression: invalid field format with NaN values I noticed a regression in the way NaN values are handled when working with pandas dataframes. Could it be a result of [500835](https://github.com/influxdata/influxdb-client-python/commit/500835f3b1d3b2b87214ede830b750a6018c0ca9#diff-02179d31a524332a9b64b57d464f6a56c0725d...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c1cea4..3be0491 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ### Bug Fixes 1. [#375](https://github.com/influxdata/influxdb-client-python/pull/375): Construct `InfluxDBError` without HTTP response +1. [#378](https://github.com/influxdata/influxdb-clie...
influxdata__influxdb-client-python-495
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "influxdb_client/client/write/point.py:Point.to_line_protocol", "influxdb_client/client/write/point.py:_append_time", "influxdb_client/client/write/point.py:_escape_key", "influxd...
influxdata/influxdb-client-python
fade9e08ca6e7a60f12091ab0e1701e3dfa01b55
Warn on measurement starting with hashtags <!-- Thank you for suggesting an idea to improve this client. * Please add a :+1: or comment on a similar existing feature request instead of opening a new one. * https://github.com/influxdata/influxdb-client-python/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+is%3...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c336bb..09bbb80 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ ### Others 1. [#472](https://github.com/influxdata/influxdb-client-python/pull/472): Drop supports for Python 3.6 +1. [#495](https://github.com/influxdata/influxdb-client-python/pull/495): ...
influxdata__influxdb-client-python-502
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "influxdb_client/client/flux_csv_parser.py:FluxCsvParser.parse_record", "influxdb_client/client/flux_csv_parser.py:FluxCsvParser.add_column_names_and_tags" ], "edited_modules": [ ...
influxdata/influxdb-client-python
07224165fb8624ba8dc3cc03a11d7afa7679c67d
FluxTable / FluxRecord can't handle tables with duplicate column labels ### Specifications - ### Code sample to reproduce problem Make a query for measurements that include a field called *result* or other labels that occur by default in the [annotated CSV response header](https://docs.influxdata.com/influxd...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 13c59ff..d84e990 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ### Features 1. [#498](https://github.com/influxdata/influxdb-client-python/pull/498): Add possibility to update user's password by `users_api` +1. [#502](https://github.com/influxdata/influx...
influxdata__influxdb-client-python-538
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "influxdb_client/client/write/point.py:Point.from_dict", "influxdb_client/client/write/point.py:Point.__init__", "influxdb_client/client/write/point.py:Point.to_line_protocol", "i...
influxdata/influxdb-client-python
2d1fb2c286ca043ca1dc98ae44fb1814e8ef0f18
Add uint64 support to line protocol serializer <!-- Thank you for suggesting an idea to improve this client. * Please add a :+1: or comment on a similar existing feature request instead of opening a new one. * https://github.com/influxdata/influxdb-client-python/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 82c701b..244bb58 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ### Features 1. [#536](https://github.com/influxdata/influxdb-client-python/pull/536): Query to `CSV` skip empty lines +1. [#538](https://github.com/influxdata/influxdb-client-python/pull/538...
influxdata__influxdb-client-python-559
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "influxdb_client/client/write_api.py:WriteOptions.__init__", "influxdb_client/client/write_api.py:WriteApi.__del__", "influxdb_client/client/write_api.py:WriteApi._on_next" ], ...
influxdata/influxdb-client-python
a07fea6a3d8625ff327be9b824760978958f5246
Exceptions in Callback Handlers can lead to deadlock ### Specifications * Client Version: 1.3.6 * InfluxDB Version: 1.8.10 / 2.x * Platform: Any ### Code sample to reproduce problem Attaching repro script [repro_lockup.py.gz](https://github.com/influxdata/influxdb-client-python/files/10700243/repro_lockup.py....
diff --git a/CHANGELOG.md b/CHANGELOG.md index 6708882..4e8da89 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ ## 1.37.0 [unreleased] +### Bug Fixes +1. [#559](https://github.com/influxdata/influxdb-client-python/pull/559): Exceptions in callbacks can cause deadlocks + ## 1.36.0 [2023-01-26] ### Fe...
influxdata__influxdb-client-python-584
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "influxdb_client/client/flux_csv_parser.py:FluxCsvParser._to_value" ], "edited_modules": [ "influxdb_client/client/flux_csv_parser.py:FluxCsvParser" ] }, "file": "influx...
influxdata/influxdb-client-python
8fa51469385000dbb276295bce5c9efbd9357f4f
Missing entrys in bool column are replaced with "None" (DataFrame) ### Specifications * Client Version: 1.35 * InfluxDB Version: 2.6 * Platform: Linux ### Code sample to reproduce problem ``` query = f'from(bucket: "{bucket}")\ |> range(start: {start_time}, stop: {end_time...
diff --git a/CHANGELOG.md b/CHANGELOG.md index c44f0a8..0838da5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ### Breaking Changes -This release disables using of the HTTP proxy environment variables `HTTP_PROXY` and `HTTPS_PROXY` for the asynchronous HTTP client. +This release disables using of th...
influxdata__influxdb-client-python-625
[ { "changes": { "added_entities": [ "influxdb_client/client/write/point.py:Point.__eq__" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "influxdb_client/client/write/point.py:Point" ] }, "file": "influxdb_client/client/write/poin...
influxdata/influxdb-client-python
8286f454885ff7938c27d703e65e1287798f165e
`class Point` doesn't support equality comparison ### Specifications * Client Version: influxdb-client==1.39.0 * InfluxDB Version: irrelevant * Platform: windows ### Code sample to reproduce problem ```python def test_point_equality(): point_a = ( Point("asd") .tag("foo", "bar") ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 23f7dc2..2f2cb4d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ ## 1.40.0 [unreleased] +### Features +1. [#625](https://github.com/influxdata/influxdb-client-python/pull/625): Make class `Point` equatable + ### Bug Fixes 1. [#562](https://github.com/infl...
influxdata__influxdb-client-python-631
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "influxdb_client/_sync/rest.py:RESTClientObject.request" ], "edited_modules": [ "influxdb_client/_sync/rest.py:RESTClientObject" ] }, "file": "influxdb_client/_sync/rest...
influxdata/influxdb-client-python
d7181fab9612dd0558822fc40e5d9ccf5a15d56b
Ping throwing exception when DEBUG is True ### Specifications * Client Version: influxdb-client-python/1.36.0 * InfluxDB Version: v2.7.1 * Platform: alpine-linux ### Code sample to reproduce problem ```python from influxdb_client import InfluxDBClient client = InfluxDBClient(url='http://localhost:8086',...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f2cb4d..6f11f45 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ### Bug Fixes 1. [#562](https://github.com/influxdata/influxdb-client-python/pull/562): Use `ThreadPoolScheduler` for `WriteApi`'s batch subject instead of `TimeoutScheduler` to prevent creat...
influxdata__influxdb-client-python-648
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "influxdb_client/client/write/dataframe_serializer.py:_not_nan", "influxdb_client/client/write/dataframe_serializer.py:_any_not_nan", "influxdb_client/client/write/dataframe_serializer.py...
influxdata/influxdb-client-python
a645ea99e0b518e78f112c5dee3fe81dfb31a2cd
WriteApi.write does not support pandas' nullable integer ### Specifications * Client Version: 1.36.1 * InfluxDB Version: 2.7.0 * Platform: Mac If you have a dataframe with Pandas' nullable integer as one of the column datatypes, and a row includes a `pd.NA` value, you get the following traceback: ``` Traceba...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 27fbe50..d4f8c92 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ ## 1.42.0 [unreleased] +### Bug Fixes +1. [#648](https://github.com/influxdata/influxdb-client-python/pull/648): Fix `DataFrame` serialization with `NaN` values + ## 1.41.0 [2024-03-01] ##...
influxdata__influxdb-client-python-93
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "influxdb_client/client/influxdb_client.py:InfluxDBClient.__init__" ], "edited_modules": [ "influxdb_client/client/influxdb_client.py:InfluxDBClient" ] }, "file": "influ...
influxdata/influxdb-client-python
e68cf1a2030bc33c9619907227615adebe2070cc
trim trailing slash for urls When using a url without a trailing slash, everything works fine: `client = InfluxDBClient(url="https://us-west-2-1.aws.cloud2.influxdata.com", token=token, org=org, debug=True)` But when adding a trailing slash to the url: `client = InfluxDBClient(url="https://us-west-2-1.aws.cloud2...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 5122bb1..2bf8f08 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ ### Bug Fixes 1. [#85](https://github.com/influxdata/influxdb-client-python/issues/85): Fixed a possibility to generate empty write batch 2. [#86](https://github.com/influxdata/influxdb-client...
infobloxopen__infoblox-client-278
[ { "changes": { "added_entities": [ "infoblox_client/connector.py:Connector.download_file", "infoblox_client/connector.py:Connector.upload_file" ], "added_modules": null, "edited_entities": [ "infoblox_client/connector.py:Connector._log_request" ], "edi...
infobloxopen/infoblox-client
06e026d76e10d90625527086a0fdd5e077855152
Missing required support for file upload and download on the fileop object - OS - Mac OS X 11.2.1 (big sur) - Python 3.9.2 - infoblox-client 0.5.0 (master) There is currently no support for uploading files or downloading files when using the fileop object. For example, when calling uploadinit function on the Conne...
diff --git a/.gitignore b/.gitignore index aeb75fc..b500602 100644 --- a/.gitignore +++ b/.gitignore @@ -57,3 +57,4 @@ docs/_build Session.vim .netrwhist *~ +pyvenv.cfg diff --git a/infoblox_client/connector.py b/infoblox_client/connector.py index 2690e0a..4e3fb52 100644 --- a/infoblox_client/connector.py +++ b/info...
infobloxopen__infoblox-client-292
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "infoblox_client/connector.py:Connector.get_object", "infoblox_client/connector.py:Connector._get_object" ], "edited_modules": [ "infoblox_client/connector.py:Connector" ...
infobloxopen/infoblox-client
2efaf4b92fb077af28a2f5e44b88b6083efaa084
Unable to capture 500 errors Hello, currently, it seems not possible to distinguish 404 errors from 5XX using connector's `_get_object`. https://github.com/infobloxopen/infoblox-client/blob/d3131bd32efbe101276279ce29cf4d7954e040c7/infoblox_client/connector.py#L341-L344 the connector threat all http error exactly ...
diff --git a/infoblox_client/connector.py b/infoblox_client/connector.py index a2946b6..2e9928b 100644 --- a/infoblox_client/connector.py +++ b/infoblox_client/connector.py @@ -44,6 +44,8 @@ CLOUD_WAPI_MAJOR_VERSION = 2 def reraise_neutron_exception(func): + """This decorator catches third-party exceptions and ...
infobloxopen__infoblox-client-295
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": [ "infoblox_client/objects.py:Dhcpmember", "infoblox_client/objects.py:NetworkV4", "infoblox_client/objects.py:NetworkTemplateV4" ] }, "file": "i...
infobloxopen/infoblox-client
b6af5306673744ee1de9285ef6b1cd90e0838f6e
_custom_field_processing bug in NetworkV4 fails to properly serialize members High-level API call to NetworkV4 fails to serialize members properly. This has been confirmed on the infoblox-client 0.5.0, as well as, _master_. This was tested and confirmed on NIOS v8.5.3 and v8.5.4. Steps to reproduce: 1. create a ...
diff --git a/infoblox_client/objects.py b/infoblox_client/objects.py index 6ca7bd1..3c817b6 100644 --- a/infoblox_client/objects.py +++ b/infoblox_client/objects.py @@ -639,7 +639,7 @@ class Dhcpddns(SubObjects): class Dhcpmember(SubObjects): - _fields = ['ipv4addr', 'ipv6addr', 'name'] + _fields = ['_struct...
infobloxopen__infoblox-client-6
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "infoblox_client/object_manager.py:InfobloxObjectManager.create_dns_zone" ], "edited_modules": [ "infoblox_client/object_manager.py:InfobloxObjectManager" ] }, "file": "...
infobloxopen/infoblox-client
3de58f527e14a03dcda5c537a1d82671a1aadb99
Need to return Zone if it was created Currentry None is returned from create_dns_zone: https://github.com/infobloxopen/infoblox-client/blob/master/infoblox_client/object_manager.py#L249 Need to return created DnsZone object.
diff --git a/infoblox_client/object_manager.py b/infoblox_client/object_manager.py index d61987c..3a19fdd 100644 --- a/infoblox_client/object_manager.py +++ b/infoblox_client/object_manager.py @@ -246,15 +246,15 @@ class InfobloxObjectManager(object): zone_format=None, ns_group=None, prefix=Non...
ingresso-group__pyticketswitch-70
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pyticketswitch/client.py:Client.get_trolley", "pyticketswitch/client.py:Client.make_reservation", "pyticketswitch/client.py:Client.release_reservation" ], "edited_modules": [...
ingresso-group/pyticketswitch
a22c4a3679174b1798acda89e59559930eb1f1a3
missing "input_contained_unavailable_order" flag in trolley/reservation response Currently when you attempt to add something to a trolley that is not available (sold out, performance in the past, max tickets per order exceeded, etc) it just appears as an empty trolley without any indication that something has gone wron...
diff --git a/pyticketswitch/client.py b/pyticketswitch/client.py index 8b00be5..7726b43 100644 --- a/pyticketswitch/client.py +++ b/pyticketswitch/client.py @@ -1081,7 +1081,8 @@ class Client(object): def get_trolley(self, token=None, number_of_seats=None, discounts=None, seats=None, send_code...
inhumantsar__python-ec2-reaper-15
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "ec2_reaper/aws_lambda.py" } ]
inhumantsar/python-ec2-reaper
d4b0f08b945f95f550149482486c4301f87f3619
lambda function doesn't honor the debug option properly passed `DEBUG: false` as an env var but it still does NO-OPs and debug logging. the env var is probably being read by python in as a string.
diff --git a/ec2_reaper/aws_lambda.py b/ec2_reaper/aws_lambda.py index e9fcdd2..e90645d 100644 --- a/ec2_reaper/aws_lambda.py +++ b/ec2_reaper/aws_lambda.py @@ -25,10 +25,15 @@ TAG_MATCHER = json.loads(TAG_MATCHER) if isinstance(TAG_MATCHER, strclasses) els SLACK_ENDPOINT = os.environ.get('SLACK_ENDPOINT', None) DE...
inhumantsar__python-ec2-reaper-16
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "ec2_reaper/aws_lambda.py:_respond" ], "edited_modules": [ "ec2_reaper/aws_lambda.py:_respond" ] }, "file": "ec2_reaper/aws_lambda.py" } ]
inhumantsar/python-ec2-reaper
d4b0f08b945f95f550149482486c4301f87f3619
lambda return val isn't json serializable datetimes cause lambda's return to fail. everything else still happens but the return code is always an error.
diff --git a/ec2_reaper/aws_lambda.py b/ec2_reaper/aws_lambda.py index e9fcdd2..ff4f30b 100644 --- a/ec2_reaper/aws_lambda.py +++ b/ec2_reaper/aws_lambda.py @@ -25,10 +25,15 @@ TAG_MATCHER = json.loads(TAG_MATCHER) if isinstance(TAG_MATCHER, strclasses) els SLACK_ENDPOINT = os.environ.get('SLACK_ENDPOINT', None) DE...
innolitics__hdat-16
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "hdat/hdat_cli.py:parse_arguments", "hdat/hdat_cli.py:hdat_cli" ], "edited_modules": [ "hdat/hdat_cli.py:parse_arguments", "hdat/hdat_cli.py:hdat_cli" ] }, ...
innolitics/hdat
3b3b8250e98a9ffe8bb583b7f7024c4d0cbc07bc
Find a way to avoid needing `.hdatsuites` As usual, it would be good to write out your design here so we can discuss, before implementing.
diff --git a/README.md b/README.md index 5714ec4..b296333 100644 --- a/README.md +++ b/README.md @@ -103,9 +103,9 @@ A casespec is a string that selects one or more test cases. A casespec may spec Here are several casespecs along with the test cases they would select: -- `` Selects all test cases in all suites. -...
instructlab__sdg-461
[ { "changes": { "added_entities": [ "src/instructlab/sdg/blocks/llmblock.py:LLMMessagesBlock._gen_kwargs", "src/instructlab/sdg/blocks/llmblock.py:LLMMessagesBlock._generate", "src/instructlab/sdg/blocks/llmblock.py:LLMMessagesBlock.generate" ], "added_modules": null, ...
instructlab/sdg
02ccaefbb5469a37cb4f6d5dde8d7a96df87be48
Finish syncing LLMMessagesBlock from research code #409 Only brings in a stub of LLMMessagesBlock with the actual functionality commented out. We need to uncomment, adjust to fit our upstream conventions and params, and add tests for this block's intended functionality.
diff --git a/src/instructlab/sdg/blocks/llmblock.py b/src/instructlab/sdg/blocks/llmblock.py index 89d9a27..b940954 100644 --- a/src/instructlab/sdg/blocks/llmblock.py +++ b/src/instructlab/sdg/blocks/llmblock.py @@ -457,48 +457,64 @@ class LLMLogProbBlock(LLMBlock): # This is part of the public API. @BlockRegistry...
instructlab__sdg-484
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/instructlab/sdg/pipeline.py:Pipeline._generate_single" ], "edited_modules": [ "src/instructlab/sdg/pipeline.py:Pipeline" ] }, "file": "src/instructlab/sdg/pipeline....
instructlab/sdg
a532a8d99ffe447152948e9442464923aba62637
Configured `batch_size` not used to re-split output samples from each Pipeline Block For Pipeline Blocks that potentially generate multiple output samples per input samples, we are not re-splitting those output samples based on the configured `batch_size`. For example, our full pipeline's `gen_knowledge` can generate p...
diff --git a/src/instructlab/sdg/pipeline.py b/src/instructlab/sdg/pipeline.py index 59613a8..9c32464 100644 --- a/src/instructlab/sdg/pipeline.py +++ b/src/instructlab/sdg/pipeline.py @@ -187,7 +187,6 @@ class Pipeline: def _generate_single(self, dataset) -> Dataset: """Generate a single dataset by runni...
instructlab__sdg-493
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/instructlab/sdg/blocks/llmblock.py:ConditionalLLMBlock._format_prompt" ], "edited_modules": [ "src/instructlab/sdg/blocks/llmblock.py:ConditionalLLMBlock" ] }, "fil...
instructlab/sdg
8191c2a8a7e1e165d252df0f7011e12905df9506
ConditionalLLMBlock not working with Jinja templates We had a user discover that during the Jinja template transition we missed updating `ConditionalLLMBlock` to use Jinja templates. So, we need to fix that as well as plug the hole in our test coverage to ensure ConditionalLLMBlock works as well. What happens is we hav...
diff --git a/src/instructlab/sdg/blocks/llmblock.py b/src/instructlab/sdg/blocks/llmblock.py index b940954..3350a77 100644 --- a/src/instructlab/sdg/blocks/llmblock.py +++ b/src/instructlab/sdg/blocks/llmblock.py @@ -323,14 +323,15 @@ class ConditionalLLMBlock(LLMBlock): ) def _format_prompt(sel...
int-brain-lab__ibllib-777
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "brainbox/processing.py:bincount2D" ], "edited_modules": [ "brainbox/processing.py:bincount2D" ] }, "file": "brainbox/processing.py" }, { "changes": { "add...
int-brain-lab/ibllib
db14a3e9ca15ae7a8cb9fb034f8488aa20704a36
Add support for multi depth FOV sessions
diff --git a/brainbox/processing.py b/brainbox/processing.py index a20cb122..79b769ab 100644 --- a/brainbox/processing.py +++ b/brainbox/processing.py @@ -1,17 +1,16 @@ -''' -Processes data from one form into another, e.g. taking spike times and binning them into -non-overlapping bins and convolving spike times with a ...
int-brain-lab__ibllib-787
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "ibllib/io/extractors/mesoscope.py:MesoscopeSyncTimeline.get_timeshifts" ], "edited_modules": [ "ibllib/io/extractors/mesoscope.py:MesoscopeSyncTimeline" ] }, "file": "i...
int-brain-lab/ibllib
73c912ef85099b711753310bca3bf2771f77e433
mesoscope extractor expects nr of FOVs == nr or ROIs in raw SI tif For multi-depth imaging, the nr of FOVs we define in the metadata (one per unique scanfield*depth) is not equal to the nr of 'enabled' ROIs in the header of the scanimage tifs (one per unique scanfield). However, the mesoscope extractor currently assert...
diff --git a/ibllib/io/extractors/mesoscope.py b/ibllib/io/extractors/mesoscope.py index ade22240..8754869a 100644 --- a/ibllib/io/extractors/mesoscope.py +++ b/ibllib/io/extractors/mesoscope.py @@ -746,6 +746,15 @@ class MesoscopeSyncTimeline(extractors_base.BaseExtractor): Calculate the time shifts for each ...
int-brain-lab__ibllib-868
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "ibllib/pipes/mesoscope_tasks.py:MesoscopePreprocess._consolidate_exptQC" ], "edited_modules": [ "ibllib/pipes/mesoscope_tasks.py:MesoscopePreprocess" ] }, "file": "ibll...
int-brain-lab/ibllib
136978f4e550fe2d1470f3074d4591e03b4b0ff2
Support mixed enums in MesoscopePreprocess._consolidate_exptQC Currently `MesoscopePreprocess._consolidate_exptQC` will raise if the exptQC.mat files have a different enumeration. This is unnecessary as the enumerations are entirely independent for each bout and a new hybrid enumeration can be generated instead of rais...
diff --git a/ibllib/pipes/mesoscope_tasks.py b/ibllib/pipes/mesoscope_tasks.py index 427086b8..2547bdc9 100644 --- a/ibllib/pipes/mesoscope_tasks.py +++ b/ibllib/pipes/mesoscope_tasks.py @@ -486,23 +486,42 @@ class MesoscopePreprocess(base_tasks.MesoscopeTask): numpy.array An array of frame indice...
intake__intake-439
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "intake/source/base.py:DataSource.persist" ], "edited_modules": [ "intake/source/base.py:DataSource" ] }, "file": "intake/source/base.py" } ]
intake/intake
aa83ccd41ed32f90f6bef5dbbe0e8a9e67c6d781
persist ttl argument should check that it's an int. I just tried to use persist for the first time and passed a file name to the `ttl` argument (don't ask me why but I kind of thought `ttl` might be a terrible abbreviation of title). Passing a string to ttl did not through an error, but when I try to call `is_persisted...
diff --git a/intake/source/base.py b/intake/source/base.py index f3abbbb..79fc62e 100644 --- a/intake/source/base.py +++ b/intake/source/base.py @@ -259,13 +259,26 @@ class DataSource(DictSerialiseMixin): return self.plot def persist(self, ttl=None, **kwargs): - """Save data from this source to l...
intake__intake-457
[ { "changes": { "added_entities": [ "intake/catalog/base.py:Catalog.__len__" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "intake/catalog/base.py:Catalog" ] }, "file": "intake/catalog/base.py" } ]
intake/intake
34dd38089ccb805759508659b5e8475034df2f0c
Implement __len__ on Catalog class? Catalog types almost meet the requirements for a [Collection](https://docs.python.org/3.8/library/collections.abc.html). They implement `__iter__` and `__contains__`. But not `__len__`. If we implement `__len__`, then a `Catalog` will be a valid `Collection`. My specific applica...
diff --git a/intake/catalog/base.py b/intake/catalog/base.py index a482bd1..34c2e7c 100644 --- a/intake/catalog/base.py +++ b/intake/catalog/base.py @@ -306,6 +306,9 @@ class Catalog(DataSource): """Return an iterator over catalog entries.""" return iter(self._get_entries()) + def __len__(self): ...