Notebook conversion to HTML fails with error "Notebook does not appear to be JSON"

Azure Data Studio Version:
Version: 1.5.2 (user setup)
Commit: f74080c96310354bc92211f1826c0fdce78ca2f6
Date: 2019-03-22T06:25:26.627Z
VS Code 1.30.1
Electron: 2.0.12
Chrome: 61.0.3163.100
Node.js: 8.9.3
V8: 6.1.534.41
OS: Windows_NT x64 10.0.14393

Steps to Reproduce:
Not able to convert notebook to HTML as conversion attempt reports "Notebook does not appear to be JSON".

The notebook has been converted into HTML: Create AKS cluster and deploy BDC.html (in the same directory as the .ipynb file)
[NbConvertApp] Converting notebook Create AKS cluster and deploy BDC.ipynb to html
Traceback (most recent call last):
File "c:\users\pradm\azuredatastudio-python\0.0.1\lib\site-packages\nbformat\reader.py", line 14, in parse_json
nb_dict = json.loads(s, **kwargs)
File "c:\users\pradm\azuredatastudio-python\0.0.1\lib\json_init_.py", line 354, in loads
return _default_decoder.decode(s)
File "c:\users\pradm\azuredatastudio-python\0.0.1\lib\json\decoder.py", line 342, in decode
raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 341 column 2 (char 21816)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\pradm\azuredatastudio-python\0.0.1\lib\runpy.py", line 193, in run_module_as_main
"main", mod_spec)
File "c:\users\pradm\azuredatastudio-python\0.0.1\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\pradm\azuredatastudio-python\0.0.1\Scripts\jupyter-nbconvert.EXE_main.py", line 9, in
File "c:\users\pradm\azuredatastudio-python\0.0.1\lib\site-packages\jupyter_core\application.py", line 266, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "c:\users\pradm\azuredatastudio-python\0.0.1\lib\site-packages\traitlets\config\application.py", line 658, in launch_instance
app.start()
File "c:\users\pradm\azuredatastudio-python\0.0.1\lib\site-packages\nbconvert\nbconvertapp.py", line 337, in start
self.convert_notebooks()
File "c:\users\pradm\azuredatastudio-python\0.0.1\lib\site-packages\nbconvert\nbconvertapp.py", line 507, in convert_notebooks
self.convert_single_notebook(notebook_filename)
File "c:\users\pradm\azuredatastudio-python\0.0.1\lib\site-packages\nbconvert\nbconvertapp.py", line 478, in convert_single_notebook
output, resources = self.export_single_notebook(notebook_filename, resources, input_buffer=input_buffer)
File "c:\users\pradm\azuredatastudio-python\0.0.1\lib\site-packages\nbconvert\nbconvertapp.py", line 407, in export_single_notebook
output, resources = self.exporter.from_filename(notebook_filename, resources=resources)
File "c:\users\pradm\azuredatastudio-python\0.0.1\lib\site-packages\nbconvert\exporters\exporter.py", line 178, in from_filename
return self.from_file(f, resources=resources, **kw)
File "c:\users\pradm\azuredatastudio-python\0.0.1\lib\site-packages\nbconvert\exporters\exporter.py", line 196, in from_file
return self.from_notebook_node(nbformat.read(file_stream, as_version=4), resources=resources, **kw)
File "c:\users\pradm\azuredatastudio-python\0.0.1\lib\site-packages\nbformat_init.py", line 141, in read
return reads(fp.read(), as_version, **kwargs)
File "c:\users\pradm\azuredatastudio-python\0.0.1\lib\site-packages\nbformat_init_.py", line 74, in reads
nb = reader.reads(s, **kwargs)
File "c:\users\pradm\azuredatastudio-python\0.0.1\lib\site-packages\nbformat\reader.py", line 58, in reads
nb_dict = parse_json(s, **kwargs)
File "c:\users\pradm\azuredatastudio-python\0.0.1\lib\site-packages\nbformat\reader.py", line 17, in parse_json
raise NotJSONError(("Notebook does not appear to be JSON: %r" % s)[:77] + "...")
nbformat.reader.NotJSONError: Notebook does not appear to be JSON: '{\n    "metadata": {\n        "kernelsp...
As per recommendation i tried opening it on textpad and removed the "}" at the end and saved the notebook and now i try to open the notebook via jupyter and it once again failed with the new error
The notebook has been converted into HTML: Create AKS cluster and deploy BDC.html (in the same directory as the .ipynb file)
[NbConvertApp] Converting notebook Create AKS cluster and deploy BDC.ipynb to html
Traceback (most recent call last):
File "c:\users\pradm\azuredatastudio-python\0.0.1\lib\site-packages\nbformat\reader.py", line 14, in parse_json
nb_dict = json.loads(s, **kwargs)
File "c:\users\pradm\azuredatastudio-python\0.0.1\lib\json_init_.py", line 354, in loads
return _default_decoder.decode(s)
File "c:\users\pradm\azuredatastudio-python\0.0.1\lib\json\decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "c:\users\pradm\azuredatastudio-python\0.0.1\lib\json\decoder.py", line 355, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Expecting ',' delimiter: line 511 column 1 (char 145079)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\pradm\azuredatastudio-python\0.0.1\lib\runpy.py", line 193, in run_module_as_main
"main", mod_spec)
File "c:\users\pradm\azuredatastudio-python\0.0.1\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\pradm\azuredatastudio-python\0.0.1\Scripts\jupyter-nbconvert.EXE_main.py", line 9, in
File "c:\users\pradm\azuredatastudio-python\0.0.1\lib\site-packages\jupyter_core\application.py", line 266, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "c:\users\pradm\azuredatastudio-python\0.0.1\lib\site-packages\traitlets\config\application.py", line 658, in launch_instance
app.start()
File "c:\users\pradm\azuredatastudio-python\0.0.1\lib\site-packages\nbconvert\nbconvertapp.py", line 337, in start
self.convert_notebooks()
File "c:\users\pradm\azuredatastudio-python\0.0.1\lib\site-packages\nbconvert\nbconvertapp.py", line 507, in convert_notebooks
self.convert_single_notebook(notebook_filename)
File "c:\users\pradm\azuredatastudio-python\0.0.1\lib\site-packages\nbconvert\nbconvertapp.py", line 478, in convert_single_notebook
output, resources = self.export_single_notebook(notebook_filename, resources, input_buffer=input_buffer)
File "c:\users\pradm\azuredatastudio-python\0.0.1\lib\site-packages\nbconvert\nbconvertapp.py", line 407, in export_single_notebook
output, resources = self.exporter.from_filename(notebook_filename, resources=resources)
File "c:\users\pradm\azuredatastudio-python\0.0.1\lib\site-packages\nbconvert\exporters\exporter.py", line 178, in from_filename
return self.from_file(f, resources=resources, **kw)
File "c:\users\pradm\azuredatastudio-python\0.0.1\lib\site-packages\nbconvert\exporters\exporter.py", line 196, in from_file
return self.from_notebook_node(nbformat.read(file_stream, as_version=4), resources=resources, **kw)
File "c:\users\pradm\azuredatastudio-python\0.0.1\lib\site-packages\nbformat_init.py", line 141, in read
return reads(fp.read(), as_version, **kwargs)
File "c:\users\pradm\azuredatastudio-python\0.0.1\lib\site-packages\nbformat_init_.py", line 74, in reads
nb = reader.reads(s, **kwargs)
File "c:\users\pradm\azuredatastudio-python\0.0.1\lib\site-packages\nbformat\reader.py", line 58, in reads
nb_dict = parse_json(s, **kwargs)
File "c:\users\pradm\azuredatastudio-python\0.0.1\lib\site-packages\nbformat\reader.py", line 17, in parse_json
raise NotJSONError(("Notebook does not appear to be JSON: %r" % s)[:77] + "...")
nbformat.reader.NotJSONError: Notebook does not appear to be JSON: '{\n    "metadata": {\n        "kernelsp...
Then I loaded the JSON objects into online JSON Formatter and it reported a EOF issue and missing “}”. So I added the “}” back and saved the ipynb file. Loaded it back as Notebook into ADS and now ran the conversion and this time It worked fine without any issues. So for sure there is some formatting issue here which needs to be looked at.
The notebook has been converted into HTML: Create AKS cluster and deploy BDC.html (in the same directory as the .ipynb file)
[NbConvertApp] Converting notebook Create AKS cluster and deploy BDC.ipynb to html
[NbConvertApp] Writing 452290 bytes to Create AKS cluster and deploy BDC.html
Create AKS cluster and deploy BDC.zip

We've made strides in ensuring that notebooks are correct JSON (and valid notebook files). I have tested these notebooks, and cannot repro this issue any longer.


Update environment.yml, must have bokeh>=1.0.0

Turns out I forgot to update environment.yml with the requirement for bokeh>=1.0.0 in PR https://github.com/microscopium/microscopium/pull/108 (but I did remember to update requriments.txt).
Is there a reason we have both? If so then we should just merge this fix, but if not then we should consider removing one to prevent similar mistakes later on.

Coverage remained the same at 67.64% when pulling 5ba72ec6d5c5851148a23e049f1736ed0b6091d1 on GenevieveBuckley:bokeh-1.0.0 into 862238617f377f5081865e2be566378999d36d4d on microscopium:master.

Yes, one is for conda and the other is for pip.


ENH: Parametrize load_adjustments_from_sqlite to selectively load adjustments tables.

Allows us to exclude any adjustment tables when loading Adjustment objects from adjustments.db.

LGTM!


Investigate querying twitch docs

To enable better docs / more up to date docs, we could use something like trustfall to query the source code of twitch-rs crates, and the docs of dev.twitch.tv

For the record: There's this uservoice (marked as planned) asking for an OpenApi specification for the Twitch API.


Allow compute=False in ParallelPostFit.score

I notice that we are not consistent in the various score methods in our classes.  Some of them are lazy, some of them are immediate.  None of them support a compute= keyword.
All of the others are trivial to add a compute= keyword, what should the default be?  True or False?

On estimators, the .score method has to be immediate.
I don't think there's a similar restriction on the scoring functions, so having them be lazy by default makes the most sense to me.

On estimators, the .score method has to be immediate.

Could it be immediate by default, but still provide a compute=False keyword?
Also, I think that some .score functions may currently be lazy.  The dask-glm ones perhaps?  I could be wrong though, I haven't actually run these yet, just looked through code.

A keyword would be fine.
Not sure about dask-glm. I may be wrong, but I think this would only potentially show up in something like a GridSearchCV(model, params)


Typo in commit 170c, should be requests

How to reproduce the behaviour

Install package from source code
git clone https://github.com/doccano/doccano-client.git
pip install -e doccano-client

Import in python
from doccano_api_client import Doccano

I got
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/howayi/workspace/github/doccano/doccano-client/doccano_api_client/__init__.py", line 148, in <module>
    class DoccanoClient(_Router):
  File "/Users/howayi/workspace/github/doccano/doccano-client/doccano_api_client/__init__.py", line 604, in DoccanoClient
    def get_category_type_list(self, project_id: int) -> request.models.Response:
NameError: name 'request' is not defined

Your Environment

Operating System:
Python Version:
Package Version:

@travishsu Commit #71 being merged should fix this

thx


cpptest: 41: Node: Physics is crashing (x64) latest adxe on windows

adxe version: latest (today)

Does first win64 support revision works?

I have checked, win32 works, maybe only win64 issue

It's not bug, I have test change stack size to 10MB will works

How can I change the stack size?


Unable to import library

I have tried extensively to get this library to work but I just can't get my project to import correctly. I have checked out issues other people had but did not find them similar. Now I am not very experienced with c++ projects let alone cmake so please forgive me should I have misunderstood the documentation on installation.
What I have done

I downloaded the master branch as a zip
I ran cmake . inside that directory after extracting it
I ran make
I ran make install got permissions errors and tried sudo make install which installed succesfully to /usr/local/include/reactphysics3d/ (I did notice the recent issue #125, that's why I cloned from master, the subfolders are created in my case)

I then created a new CMakeProject with the following CMakeLists.txt:
cmake_minimum_required(VERSION 3.15)
project(physics)

set(CMAKE_CXX_STANDARD 14)

add_executable(physics main.cpp)

include_directories(BEFORE PUBLIC /usr/local/include/reactphysics3d)

For my only source file I only added the import:
#include <iostream>
#include "reactphysics3d.h"

int main() {
  std::cout << "Hello, World!" << std::endl;
  return 0;
}

However, when I try to build the project I get the following error
/home/hugo/Downloads/CLion-2019.1.3/clion-2019.1.3/bin/cmake/linux/bin/cmake --build /home/hugo/repos/physics/cmake-build-debug --target physics -- -j 4
Scanning dependencies of target physics
[ 50%] Building CXX object CMakeFiles/physics.dir/main.cpp.o
[100%] Linking CXX executable physics
CMakeFiles/physics.dir/main.cpp.o: In function `reactphysics3d::ConvexTriangleAABBOverlapCallback::notifyOverlappingNode(int)':
/usr/local/include/reactphysics3d/collision/shapes/ConcaveMeshShape.h:269: undefined reference to `reactphysics3d::ConcaveMeshShape::getTriangleVertices(unsigned int, unsigned int, reactphysics3d::Vector3*) const'
/usr/local/include/reactphysics3d/collision/shapes/ConcaveMeshShape.h:273: undefined reference to `reactphysics3d::ConcaveMeshShape::getTriangleVerticesNormals(unsigned int, unsigned int, reactphysics3d::Vector3*) const'
/usr/local/include/reactphysics3d/collision/shapes/ConcaveMeshShape.h:276: undefined reference to `reactphysics3d::ConcaveMeshShape::computeTriangleShapeId(unsigned int, unsigned int) const'
CMakeFiles/physics.dir/main.cpp.o:(.data.rel.ro._ZTVN14reactphysics3d10FixedJointE[_ZTVN14reactphysics3d10FixedJointE]+0x18): undefined reference to `reactphysics3d::FixedJoint::initBeforeSolve(reactphysics3d::ConstraintSolverData const&)'
CMakeFiles/physics.dir/main.cpp.o:(.data.rel.ro._ZTVN14reactphysics3d10FixedJointE[_ZTVN14reactphysics3d10FixedJointE]+0x20): undefined reference to `reactphysics3d::FixedJoint::warmstart(reactphysics3d::ConstraintSolverData const&)'
CMakeFiles/physics.dir/main.cpp.o:(.data.rel.ro._ZTVN14reactphysics3d10FixedJointE[_ZTVN14reactphysics3d10FixedJointE]+0x28): undefined reference to `reactphysics3d::FixedJoint::solveVelocityConstraint(reactphysics3d::ConstraintSolverData const&)'
CMakeFiles/physics.dir/main.cpp.o:(.data.rel.ro._ZTVN14reactphysics3d10FixedJointE[_ZTVN14reactphysics3d10FixedJointE]+0x30): undefined reference to `reactphysics3d::FixedJoint::solvePositionConstraint(reactphysics3d::ConstraintSolverData const&)'
CMakeFiles/physics.dir/main.cpp.o:(.data.rel.ro._ZTVN14reactphysics3d10HingeJointE[_ZTVN14reactphysics3d10HingeJointE]+0x18): undefined reference to `reactphysics3d::HingeJoint::initBeforeSolve(reactphysics3d::ConstraintSolverData const&)'
CMakeFiles/physics.dir/main.cpp.o:(.data.rel.ro._ZTVN14reactphysics3d10HingeJointE[_ZTVN14reactphysics3d10HingeJointE]+0x20): undefined reference to `reactphysics3d::HingeJoint::warmstart(reactphysics3d::ConstraintSolverData const&)'
CMakeFiles/physics.dir/main.cpp.o:(.data.rel.ro._ZTVN14reactphysics3d10HingeJointE[_ZTVN14reactphysics3d10HingeJointE]+0x28): undefined reference to `reactphysics3d::HingeJoint::solveVelocityConstraint(reactphysics3d::ConstraintSolverData const&)'
CMakeFiles/physics.dir/main.cpp.o:(.data.rel.ro._ZTVN14reactphysics3d10HingeJointE[_ZTVN14reactphysics3d10HingeJointE]+0x30): undefined reference to `reactphysics3d::HingeJoint::solvePositionConstraint(reactphysics3d::ConstraintSolverData const&)'
CMakeFiles/physics.dir/main.cpp.o:(.data.rel.ro._ZTVN14reactphysics3d11SliderJointE[_ZTVN14reactphysics3d11SliderJointE]+0x18): undefined reference to `reactphysics3d::SliderJoint::initBeforeSolve(reactphysics3d::ConstraintSolverData const&)'
CMakeFiles/physics.dir/main.cpp.o:(.data.rel.ro._ZTVN14reactphysics3d11SliderJointE[_ZTVN14reactphysics3d11SliderJointE]+0x20): undefined reference to `reactphysics3d::SliderJoint::warmstart(reactphysics3d::ConstraintSolverData const&)'
CMakeFiles/physics.dir/main.cpp.o:(.data.rel.ro._ZTVN14reactphysics3d11SliderJointE[_ZTVN14reactphysics3d11SliderJointE]+0x28): undefined reference to `reactphysics3d::SliderJoint::solveVelocityConstraint(reactphysics3d::ConstraintSolverData const&)'
CMakeFiles/physics.dir/main.cpp.o:(.data.rel.ro._ZTVN14reactphysics3d11SliderJointE[_ZTVN14reactphysics3d11SliderJointE]+0x30): undefined reference to `reactphysics3d::SliderJoint::solvePositionConstraint(reactphysics3d::ConstraintSolverData const&)'
CMakeFiles/physics.dir/main.cpp.o:(.data.rel.ro._ZTVN14reactphysics3d18BallAndSocketJointE[_ZTVN14reactphysics3d18BallAndSocketJointE]+0x18): undefined reference to `reactphysics3d::BallAndSocketJoint::initBeforeSolve(reactphysics3d::ConstraintSolverData const&)'
CMakeFiles/physics.dir/main.cpp.o:(.data.rel.ro._ZTVN14reactphysics3d18BallAndSocketJointE[_ZTVN14reactphysics3d18BallAndSocketJointE]+0x20): undefined reference to `reactphysics3d::BallAndSocketJoint::warmstart(reactphysics3d::ConstraintSolverData const&)'
CMakeFiles/physics.dir/main.cpp.o:(.data.rel.ro._ZTVN14reactphysics3d18BallAndSocketJointE[_ZTVN14reactphysics3d18BallAndSocketJointE]+0x28): undefined reference to `reactphysics3d::BallAndSocketJoint::solveVelocityConstraint(reactphysics3d::ConstraintSolverData const&)'
CMakeFiles/physics.dir/main.cpp.o:(.data.rel.ro._ZTVN14reactphysics3d18BallAndSocketJointE[_ZTVN14reactphysics3d18BallAndSocketJointE]+0x30): undefined reference to `reactphysics3d::BallAndSocketJoint::solvePositionConstraint(reactphysics3d::ConstraintSolverData const&)'
CMakeFiles/physics.dir/main.cpp.o:(.data.rel.ro._ZTVN14reactphysics3d12ConcaveShapeE[_ZTVN14reactphysics3d12ConcaveShapeE]+0x58): undefined reference to `reactphysics3d::CollisionShape::computeAABB(reactphysics3d::AABB&, reactphysics3d::Transform const&) const'
CMakeFiles/physics.dir/main.cpp.o:(.data.rel.ro._ZTVN14reactphysics3d13TriangleShapeE[_ZTVN14reactphysics3d13TriangleShapeE]+0x18): undefined reference to `reactphysics3d::TriangleShape::raycast(reactphysics3d::Ray const&, reactphysics3d::RaycastInfo&, reactphysics3d::ProxyShape*, reactphysics3d::MemoryAllocator&) const'
CMakeFiles/physics.dir/main.cpp.o:(.data.rel.ro._ZTVN14reactphysics3d13TriangleShapeE[_ZTVN14reactphysics3d13TriangleShapeE]+0x58): undefined reference to `reactphysics3d::TriangleShape::computeAABB(reactphysics3d::AABB&, reactphysics3d::Transform const&) const'
CMakeFiles/physics.dir/main.cpp.o: In function `reactphysics3d::CollisionShape::~CollisionShape()':
/usr/local/include/reactphysics3d/collision/shapes/CollisionShape.h:103: undefined reference to `vtable for reactphysics3d::CollisionShape'
CMakeFiles/physics.dir/main.cpp.o:(.data.rel.ro._ZTVN14reactphysics3d12CapsuleShapeE[_ZTVN14reactphysics3d12CapsuleShapeE]+0x10): undefined reference to `reactphysics3d::CapsuleShape::testPointInside(reactphysics3d::Vector3 const&, reactphysics3d::ProxyShape*) const'
CMakeFiles/physics.dir/main.cpp.o:(.data.rel.ro._ZTVN14reactphysics3d12CapsuleShapeE[_ZTVN14reactphysics3d12CapsuleShapeE]+0x18): undefined reference to `reactphysics3d::CapsuleShape::raycast(reactphysics3d::Ray const&, reactphysics3d::RaycastInfo&, reactphysics3d::ProxyShape*, reactphysics3d::MemoryAllocator&) const'
CMakeFiles/physics.dir/main.cpp.o:(.data.rel.ro._ZTVN14reactphysics3d12CapsuleShapeE[_ZTVN14reactphysics3d12CapsuleShapeE]+0x50): undefined reference to `reactphysics3d::CapsuleShape::computeLocalInertiaTensor(reactphysics3d::Matrix3x3&, float) const'
CMakeFiles/physics.dir/main.cpp.o:(.data.rel.ro._ZTVN14reactphysics3d12CapsuleShapeE[_ZTVN14reactphysics3d12CapsuleShapeE]+0x58): undefined reference to `reactphysics3d::CollisionShape::computeAABB(reactphysics3d::AABB&, reactphysics3d::Transform const&) const'
CMakeFiles/physics.dir/main.cpp.o:(.data.rel.ro._ZTVN14reactphysics3d11SphereShapeE[_ZTVN14reactphysics3d11SphereShapeE]+0x18): undefined reference to `reactphysics3d::SphereShape::raycast(reactphysics3d::Ray const&, reactphysics3d::RaycastInfo&, reactphysics3d::ProxyShape*, reactphysics3d::MemoryAllocator&) const'
CMakeFiles/physics.dir/main.cpp.o:(.data.rel.ro._ZTVN14reactphysics3d11SphereShapeE[_ZTVN14reactphysics3d11SphereShapeE]+0x58): undefined reference to `reactphysics3d::SphereShape::computeAABB(reactphysics3d::AABB&, reactphysics3d::Transform const&) const'
CMakeFiles/physics.dir/main.cpp.o:(.data.rel.ro._ZTVN14reactphysics3d8BoxShapeE[_ZTVN14reactphysics3d8BoxShapeE]+0x18): undefined reference to `reactphysics3d::BoxShape::raycast(reactphysics3d::Ray const&, reactphysics3d::RaycastInfo&, reactphysics3d::ProxyShape*, reactphysics3d::MemoryAllocator&) const'
CMakeFiles/physics.dir/main.cpp.o:(.data.rel.ro._ZTVN14reactphysics3d8BoxShapeE[_ZTVN14reactphysics3d8BoxShapeE]+0x50): undefined reference to `reactphysics3d::BoxShape::computeLocalInertiaTensor(reactphysics3d::Matrix3x3&, float) const'
CMakeFiles/physics.dir/main.cpp.o:(.data.rel.ro._ZTVN14reactphysics3d8BoxShapeE[_ZTVN14reactphysics3d8BoxShapeE]+0x58): undefined reference to `reactphysics3d::CollisionShape::computeAABB(reactphysics3d::AABB&, reactphysics3d::Transform const&) const'
CMakeFiles/physics.dir/main.cpp.o:(.data.rel.ro._ZTVN14reactphysics3d21ConvexPolyhedronShapeE[_ZTVN14reactphysics3d21ConvexPolyhedronShapeE]+0x58): undefined reference to `reactphysics3d::CollisionShape::computeAABB(reactphysics3d::AABB&, reactphysics3d::Transform const&) const'
CMakeFiles/physics.dir/main.cpp.o:(.data.rel.ro._ZTVN14reactphysics3d11ConvexShapeE[_ZTVN14reactphysics3d11ConvexShapeE]+0x58): undefined reference to `reactphysics3d::CollisionShape::computeAABB(reactphysics3d::AABB&, reactphysics3d::Transform const&) const'
CMakeFiles/physics.dir/main.cpp.o:(.data.rel.ro._ZTIN14reactphysics3d12ConcaveShapeE[_ZTIN14reactphysics3d12ConcaveShapeE]+0x10): undefined reference to `typeinfo for reactphysics3d::CollisionShape'
CMakeFiles/physics.dir/main.cpp.o:(.data.rel.ro._ZTIN14reactphysics3d11ConvexShapeE[_ZTIN14reactphysics3d11ConvexShapeE]+0x10): undefined reference to `typeinfo for reactphysics3d::CollisionShape'
collect2: error: ld returned 1 exit status
CMakeFiles/physics.dir/build.make:83: recipe for target 'physics' failed
make[3]: *** [physics] Error 1
CMakeFiles/Makefile2:75: recipe for target 'CMakeFiles/physics.dir/all' failed
make[2]: *** [CMakeFiles/physics.dir/all] Error 2
CMakeFiles/Makefile2:82: recipe for target 'CMakeFiles/physics.dir/rule' failed
make[1]: *** [CMakeFiles/physics.dir/rule] Error 2
Makefile:118: recipe for target 'physics' failed
make: *** [physics] Error 2

I took the liberty to snoop around in the source code at the referenced locations and it seems like those undefined references do in fact exist and are public. I would really appreciate any help on this because I am very excited to get started on a physics simulation project.
Also please let me know if you need any extra information.

FINALLY, I got it to work! I did not link the library (again that phrase in the docs did not trigger me at all since it did not know what that meant). I try to make a PR with an example CMakeLists.txt file in the docs, I feel like that may help a lot of people.

Hello. Thanks for your feedback.
I am glad that you got it to work.


Implement call intercept for multiple lights

@protyposis, this is a suggestion of how we can implement multiple lights.
I think I would need your help to think about whether this does everything we need it to do.

I believe that when lights are in manual control now and I change the brightness or color, it has a longer transition time than originally.

Could you please describe the general idea of this implementation, and specifically, why there are _adapt_light and services.async_call calls?

@protyposis, I have added the following doc-string:

Intercept 'light.turn_on' and 'light.toggle' service calls and adapt them.

It is possible that the calls are made for multiple lights at once,
which in turn might be in different switches or no switches at all.
If there are lights that are not all in a single switch, we need to
make multiple calls to 'light.turn_on' with the correct entity IDs.
One of these calls can be intercepted and adapted, the others need to
be adapted by calling _adapt_light with the correct entity IDs or
by calling light.turn_on directly.

We create a mapping from switch to entity IDs and keep a list
of skipped lights which are lights in no switches or in switches that
are off or lights that are already on.

If there is only one switch and 0 skipped lights, we just intercept the
call directly.

If there are multiple switches and skipped lights, we can adapt the call
for one of the switches to include only the lights in that switch and
need to call _adapt_light for the other switches with their
entity_ids. For skipped lights, we call light.turn_on directly with the
entity_ids and original service data.

If there are only skipped lights, we can use the intercepted call
directly.

I'm afk this week and can't answer in detail, but here's a few thoughts: It makes sense that you trigger adaptations directly from the service interceptor in cases where the service data cannot be directly intercepted, you'll have to consider transition times to avoid overlapping transitions, at least for lights that require split adaptation.
I'm also wondering whether changing the service call target entities and splitting into multiple service calls is a good pattern. Doesn't this potentially break other agents and confuse users? For example, if a service call for entities A, B and C is executed, there's normally going to be one service call event, and 3 change events with the service call as parent context. Now with this implementation there's the service call event for A, B, C, and then potentially two more for B and C with unrelated contexts, and then 3 change events with 3 different contexts. An actor that issues the service call and awaits the related change events (by matching context id) will never register the change events for B and C.

Something is still off, I now got a manually controlled event after turning lights on initially:
2023-08-01 16:36:38.323 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (1) _service_interceptor_turn_on_handler: call='<ServiceCall light.turn_on (c:01H6SQBW5J13DFSJB4QW607X4B): entity_id=['light.living_room_lights'], params=>', data='{'entity_id': ['light.living_room_lights'], 'params': {}}'
2023-08-01 16:36:38.323 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Expanded light.living_room_lights to ['light.sphere_tv', 'light.sphere_2', 'light.living_room_corner', 'light.tv_led', 'light.cabinet_led', 'light.mid_room', 'light.shelve', 'light.marble']
2023-08-01 16:36:38.323 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Expanded light.living_room_lights to ['light.sphere_tv', 'light.sphere_2', 'light.living_room_corner', 'light.tv_led', 'light.cabinet_led', 'light.mid_room', 'light.shelve', 'light.marble']
2023-08-01 16:36:38.324 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (2) _service_interceptor_turn_on_handler: switch_to_eids='{'Adaptive Lighting: Living room': ['light.cabinet_led', 'light.living_room_corner', 'light.living_room_lights', 'light.marble', 'light.mid_room', 'light.shelve', 'light.sphere_2', 'light.sphere_tv', 'light.tv_led']}', skipped='[]'
2023-08-01 16:36:38.324 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (3) _service_interceptor_turn_on_handler: intercepting entity_ids='['light.cabinet_led', 'light.living_room_corner', 'light.living_room_lights', 'light.marble', 'light.mid_room', 'light.shelve', 'light.sphere_2', 'light.sphere_tv', 'light.tv_led']'
2023-08-01 16:36:38.324 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Intercepted TURN_ON call with data {'params': {}, 'entity_id': ['light.cabinet_led', 'light.living_room_corner', 'light.living_room_lights', 'light.marble', 'light.mid_room', 'light.shelve', 'light.sphere_2', 'light.sphere_tv', 'light.tv_led']} (01H6SQBW5J13DFSJB4QW607X4B)
2023-08-01 16:36:38.326 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living room: Setting rgb_color of light light.tv_led
2023-08-01 16:36:38.326 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.tv_led with service data {'entity_id': 'light.tv_led', 'transition': 1.0, 'brightness': 255, 'rgb_color': (255,<PHONE_NUMBER>3779885,<PHONE_NUMBER>571913)}
2023-08-01 16:36:38.326 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living room: execute_cancellable_adaptation_calls with data: AdaptationData(entity_id='light.tv_led', context=<homeassistant.core.Context object at 0x7f496d5ffb00>, sleep_time=0.5, service_call_datas=<async_generator object _create_service_call_data_iterator at 0x7f496ff32240>, max_length=2, which='both', initial_sleep=True)
2023-08-01 16:36:38.327 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (1) _service_interceptor_turn_on_handler: call='<ServiceCall light.turn_on (c:01H6SQBW5J13DFSJB4QW607X4B): entity_id=['light.sphere_tv', 'light.sphere_2', 'light.living_room_corner', 'light.tv_led', 'light.cabinet_led', 'light.mid_room', 'light.shelve', 'light.marble'], params=brightness=255, transition=0.5>', data='{'entity_id': ['light.sphere_tv', 'light.sphere_2', 'light.living_room_corner', 'light.tv_led', 'light.cabinet_led', 'light.mid_room', 'light.shelve', 'light.marble'], 'params': {'brightness': 255, 'transition': 0.5}}'
2023-08-01 16:36:38.327 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (2) _service_interceptor_turn_on_handler: switch_to_eids='{'Adaptive Lighting: Living room': ['light.cabinet_led', 'light.living_room_corner', 'light.marble', 'light.mid_room', 'light.shelve', 'light.sphere_2', 'light.sphere_tv', 'light.tv_led']}', skipped='[]'
2023-08-01 16:36:38.327 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] (3) _service_interceptor_turn_on_handler: intercepting entity_ids='['light.cabinet_led', 'light.living_room_corner', 'light.marble', 'light.mid_room', 'light.shelve', 'light.sphere_2', 'light.sphere_tv', 'light.tv_led']'
2023-08-01 16:36:38.327 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Intercepted TURN_ON call with data {'params': {'brightness': 255, 'transition': 0.5}, 'entity_id': ['light.cabinet_led', 'light.living_room_corner', 'light.marble', 'light.mid_room', 'light.shelve', 'light.sphere_2', 'light.sphere_tv', 'light.tv_led']} (01H6SQBW5J13DFSJB4QW607X4B)
2023-08-01 16:36:38.327 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Cancelled ongoing brightness adaptation calls (<Task pending name='Task-120774' coro=<AdaptiveSwitch._execute_adaptation_calls() running at /config/custom_components/adaptive_lighting/switch.py:1302> wait_for=<Future pending cb=[Task.task_wakeup()]> cb=[Task.task_wakeup()]>) for 'light.tv_led'
2023-08-01 16:36:38.327 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living room: Setting rgb_color of light light.tv_led
2023-08-01 16:36:38.327 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.tv_led with service data {'entity_id': 'light.tv_led', 'transition': 0.5, 'brightness': 255, 'rgb_color': (255,<PHONE_NUMBER>3779885,<PHONE_NUMBER>571913)}
2023-08-01 16:36:38.328 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.sphere_tv', 'light.sphere_2', 'light.living_room_corner', 'light.tv_led', 'light.cabinet_led', 'light.mid_room', 'light.shelve', 'light.marble']')' event with context.id='01H6SQBW5J13DFSJB4QW607X4B'
2023-08-01 16:36:38.328 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living room: execute_cancellable_adaptation_calls with data: AdaptationData(entity_id='light.tv_led', context=<homeassistant.core.Context object at 0x7f4970b87e70>, sleep_time=0.25, service_call_datas=<async_generator object _create_service_call_data_iterator at 0x7f4986ec8740>, max_length=2, which='both', initial_sleep=True)
2023-08-01 16:36:38.328 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living room: Ongoing adaptation of light.tv_led cancelled, with AdaptationData: AdaptationData(entity_id='light.tv_led', context=<homeassistant.core.Context object at 0x7f496d5ffb00>, sleep_time=0.5, service_call_datas=<async_generator object _create_service_call_data_iterator at 0x7f496ff32240>, max_length=2, which='both', initial_sleep=True)
2023-08-01 16:36:38.456 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.living_room_corner' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['color_temp', 'xy'], 'color_mode': <ColorMode.XY: 'xy'>, 'brightness': 255, 'hs_color': (27.429, 13.725), 'rgb_color': (255, 236, 220), 'xy_color': (0.356, 0.344), 'friendly_name': 'Living room corner', 'supported_features': <LightEntityFeature.EFFECT|FLASH|TRANSITION: 44>}' with context.id='01H6SQBW5J13DFSJB4QW607X4B'
2023-08-01 16:36:38.456 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'off' → 'on' event for 'light.living_room_corner' with context.id='01H6SQBW5J13DFSJB4QW607X4B'
2023-08-01 16:36:38.456 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='True', context_id='01H6SQBW5J13DFSJB4QW607X4B'
2023-08-01 16:36:38.456 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Skipping responding to 'off' → 'on' event for 'light.living_room_corner' with context.id='01H6SQBW5J13DFSJB4QW607X4B' because we are already proactively adapting
2023-08-01 16:36:38.459 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.tv_led' 'state_changed' event: '{'min_color_temp_kelvin': 2000, 'max_color_temp_kelvin': 6535, 'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'candle', 'fireplace', 'colorloop', 'finish_effect', 'stop_effect', 'stop_hue_effect'], 'supported_color_modes': ['color_temp', 'xy'], 'color_mode': <ColorMode.XY: 'xy'>, 'brightness': 255, 'hs_color': (26.471, 13.333), 'rgb_color': (255, 236, 221), 'xy_color': (0.355, 0.343), 'friendly_name': 'TV LED', 'supported_features': <LightEntityFeature.EFFECT|FLASH|TRANSITION: 44>}' with context.id='01H6SQBW5J13DFSJB4QW607X4B'
2023-08-01 16:36:38.459 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'off' → 'on' event for 'light.tv_led' with context.id='01H6SQBW5J13DFSJB4QW607X4B'
2023-08-01 16:36:38.459 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='True', context_id='01H6SQBW5J13DFSJB4QW607X4B'
2023-08-01 16:36:38.459 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Skipping responding to 'off' → 'on' event for 'light.tv_led' with context.id='01H6SQBW5J13DFSJB4QW607X4B' because we are already proactively adapting
2023-08-01 16:36:38.467 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.shelve' 'state_changed' event: '{'min_color_temp_kelvin': 2000, 'max_color_temp_kelvin': 6535, 'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'candle', 'fireplace', 'colorloop', 'finish_effect', 'stop_effect', 'stop_hue_effect'], 'supported_color_modes': ['color_temp', 'xy'], 'color_mode': <ColorMode.XY: 'xy'>, 'brightness': 255, 'hs_color': (27.429, 13.725), 'rgb_color': (255, 236, 220), 'xy_color': (0.356, 0.344), 'friendly_name': 'Shelve', 'supported_features': <LightEntityFeature.EFFECT|FLASH|TRANSITION: 44>}' with context.id='01H6SQBW5J13DFSJB4QW607X4B'
2023-08-01 16:36:38.468 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'off' → 'on' event for 'light.shelve' with context.id='01H6SQBW5J13DFSJB4QW607X4B'
2023-08-01 16:36:38.468 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='True', context_id='01H6SQBW5J13DFSJB4QW607X4B'
2023-08-01 16:36:38.468 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Skipping responding to 'off' → 'on' event for 'light.shelve' with context.id='01H6SQBW5J13DFSJB4QW607X4B' because we are already proactively adapting
2023-08-01 16:36:38.550 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.cabinet_led' 'state_changed' event: '{'min_color_temp_kelvin': 2000, 'max_color_temp_kelvin': 6666, 'min_mireds': 150, 'max_mireds': 500, 'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'candle', 'fireplace', 'colorloop', 'finish_effect', 'stop_effect', 'stop_hue_effect'], 'supported_color_modes': ['color_temp', 'xy'], 'color_mode': <ColorMode.XY: 'xy'>, 'brightness': 255, 'hs_color': (27.429, 13.725), 'rgb_color': (255, 236, 220), 'xy_color': (0.356, 0.344), 'friendly_name': 'Cabinet LED', 'supported_features': <LightEntityFeature.EFFECT|FLASH|TRANSITION: 44>}' with context.id='01H6SQBW5J13DFSJB4QW607X4B'
2023-08-01 16:36:38.550 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'off' → 'on' event for 'light.cabinet_led' with context.id='01H6SQBW5J13DFSJB4QW607X4B'
2023-08-01 16:36:38.550 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='True', context_id='01H6SQBW5J13DFSJB4QW607X4B'
2023-08-01 16:36:38.550 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Skipping responding to 'off' → 'on' event for 'light.cabinet_led' with context.id='01H6SQBW5J13DFSJB4QW607X4B' because we are already proactively adapting
2023-08-01 16:36:38.579 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.tv_led', 'rgb_color': (255,<PHONE_NUMBER>3779885,<PHONE_NUMBER>571913), 'transition': 0.25} with context.id='01H6SQBW5Q:al:JRUX:dpt_:KZ'
2023-08-01 16:36:38.579 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.tv_led']')' event with context.id='01H6SQBW5Q:al:JRUX:dpt_:KZ'
2023-08-01 16:36:38.611 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.marble' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['color_temp'], 'color_mode': <ColorMode.COLOR_TEMP: 'color_temp'>, 'brightness': 255, 'color_temp_kelvin': 4000, 'color_temp': 250, 'hs_color': (26.812, 34.87), 'rgb_color': (255, 205, 166), 'xy_color': (0.421, 0.364), 'friendly_name': 'Marble', 'supported_features': <LightEntityFeature.EFFECT|FLASH|TRANSITION: 44>}' with context.id='01H6SQBW5J13DFSJB4QW607X4B'
2023-08-01 16:36:38.611 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'off' → 'on' event for 'light.marble' with context.id='01H6SQBW5J13DFSJB4QW607X4B'
2023-08-01 16:36:38.611 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='True', context_id='01H6SQBW5J13DFSJB4QW607X4B'
2023-08-01 16:36:38.611 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Skipping responding to 'off' → 'on' event for 'light.marble' with context.id='01H6SQBW5J13DFSJB4QW607X4B' because we are already proactively adapting
2023-08-01 16:36:38.657 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.sphere_2' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['color_temp', 'xy'], 'color_mode': <ColorMode.XY: 'xy'>, 'brightness': 255, 'hs_color': (27.429, 13.725), 'rgb_color': (255, 236, 220), 'xy_color': (0.356, 0.344), 'friendly_name': 'Sphere 2', 'supported_features': <LightEntityFeature.EFFECT|FLASH|TRANSITION: 44>}' with context.id='01H6SQBW5J13DFSJB4QW607X4B'
2023-08-01 16:36:38.658 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'off' → 'on' event for 'light.sphere_2' with context.id='01H6SQBW5J13DFSJB4QW607X4B'
2023-08-01 16:36:38.658 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='True', context_id='01H6SQBW5J13DFSJB4QW607X4B'
2023-08-01 16:36:38.658 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Skipping responding to 'off' → 'on' event for 'light.sphere_2' with context.id='01H6SQBW5J13DFSJB4QW607X4B' because we are already proactively adapting
2023-08-01 16:36:38.660 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.mid_room' 'state_changed' event: '{'min_color_temp_kelvin': 2202, 'max_color_temp_kelvin': 4000, 'min_mireds': 250, 'max_mireds': 454, 'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'finish_effect', 'stop_effect'], 'supported_color_modes': ['color_temp', 'xy'], 'color_mode': <ColorMode.XY: 'xy'>, 'brightness': 255, 'hs_color': (27.429, 13.725), 'rgb_color': (255, 236, 220), 'xy_color': (0.356, 0.344), 'friendly_name': 'Mid room', 'supported_features': <LightEntityFeature.EFFECT|FLASH|TRANSITION: 44>}' with context.id='01H6SQBW5J13DFSJB4QW607X4B'
2023-08-01 16:36:38.660 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'off' → 'on' event for 'light.mid_room' with context.id='01H6SQBW5J13DFSJB4QW607X4B'
2023-08-01 16:36:38.660 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='True', context_id='01H6SQBW5J13DFSJB4QW607X4B'
2023-08-01 16:36:38.660 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Skipping responding to 'off' → 'on' event for 'light.mid_room' with context.id='01H6SQBW5J13DFSJB4QW607X4B' because we are already proactively adapting
2023-08-01 16:36:38.661 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.sphere_tv' 'state_changed' event: '{'min_color_temp_kelvin': 2000, 'max_color_temp_kelvin': 6535, 'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'candle', 'fireplace', 'colorloop', 'finish_effect', 'stop_effect', 'stop_hue_effect'], 'supported_color_modes': ['color_temp', 'xy'], 'color_mode': <ColorMode.XY: 'xy'>, 'brightness': 255, 'hs_color': (27.429, 13.725), 'rgb_color': (255, 236, 220), 'xy_color': (0.356, 0.344), 'friendly_name': 'Sphere TV', 'supported_features': <LightEntityFeature.EFFECT|FLASH|TRANSITION: 44>}' with context.id='01H6SQBW5J13DFSJB4QW607X4B'
2023-08-01 16:36:38.661 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'off' → 'on' event for 'light.sphere_tv' with context.id='01H6SQBW5J13DFSJB4QW607X4B'
2023-08-01 16:36:38.661 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] is_proactively_adapting_context='True', context_id='01H6SQBW5J13DFSJB4QW607X4B'
2023-08-01 16:36:38.661 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Skipping responding to 'off' → 'on' event for 'light.sphere_tv' with context.id='01H6SQBW5J13DFSJB4QW607X4B' because we are already proactively adapting
2023-08-01 16:36:38.831 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected a 'light.tv_led' 'state_changed' event: '{'min_color_temp_kelvin': 2000, 'max_color_temp_kelvin': 6535, 'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'candle', 'fireplace', 'colorloop', 'finish_effect', 'stop_effect', 'stop_hue_effect'], 'supported_color_modes': ['color_temp', 'xy'], 'color_mode': <ColorMode.XY: 'xy'>, 'brightness': 255, 'hs_color': (26.316, 22.353), 'rgb_color': (255, 223, 198), 'xy_color': (0.381, 0.352), 'friendly_name': 'TV LED', 'supported_features': <LightEntityFeature.EFFECT|FLASH|TRANSITION: 44>}' with context.id='01H6SQBW5Q:al:JRUX:dpt_:KZ'
2023-08-01 16:36:38.831 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] AdaptiveLightingManager: New adapt '<state light.tv_led=on; min_color_temp_kelvin=2000, max_color_temp_kelvin=6535, min_mireds=153, max_mireds=500, effect_list=['blink', 'breathe', 'okay', 'channel_change', 'candle', 'fireplace', 'colorloop', 'finish_effect', 'stop_effect', 'stop_hue_effect'], supported_color_modes=['color_temp', 'xy'], color_mode=xy, brightness=255, hs_color=(26.316, 22.353), rgb_color=(255, 223, 198), xy_color=(0.381, 0.352), friendly_name=TV LED, supported_features=44 @ 2023-08-01T16:36:38.455362-07:00>' found for light.tv_led
2023-08-01 16:36:38.831 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Start transition timer of 0.25 seconds for light light.tv_led
2023-08-01 16:36:39.085 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Transition finished for light light.tv_led
2023-08-01 16:36:45.465 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living room: '_update_attrs_and_maybe_adapt_lights' called with context.id='01H6SQC34S:al:JRUX:ntrv:L0' lights: 'None', transition: '0.0', force: 'False'
2023-08-01 16:36:45.467 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living room: filtered_lights: '['light.cabinet_led', 'light.living_room_corner', 'light.marble', 'light.mid_room', 'light.shelve', 'light.sphere_2', 'light.sphere_tv', 'light.tv_led']'
2023-08-01 16:36:45.468 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] 'adaptive_lighting.manual_control' event fired for switch.adaptive_lighting_living_room for light light.cabinet_led
2023-08-01 16:36:45.468 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Marking 'light.cabinet_led' as manually controlled.
2023-08-01 16:36:45.468 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] 'light.cabinet_led' was already on and 'light.turn_on' was not called by the adaptive_lighting integration (context.id='01H6SQBW5J13DFSJB4QW607X4B'), the Adaptive Lighting will stop adapting the light until the switch or the light turns off and then on again.
2023-08-01 16:36:45.468 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living room: 'light.cabinet_led' is being manually controlled, stop adapting, context.id=01H6SQC34S:al:JRUX:ntrv:L0.
2023-08-01 16:36:45.468 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] 'adaptive_lighting.manual_control' event fired for switch.adaptive_lighting_living_room for light light.living_room_corner
2023-08-01 16:36:45.468 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Marking 'light.living_room_corner' as manually controlled.
2023-08-01 16:36:45.468 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] 'light.living_room_corner' was already on and 'light.turn_on' was not called by the adaptive_lighting integration (context.id='01H6SQBW5J13DFSJB4QW607X4B'), the Adaptive Lighting will stop adapting the light until the switch or the light turns off and then on again.
2023-08-01 16:36:45.469 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living room: 'light.living_room_corner' is being manually controlled, stop adapting, context.id=01H6SQC34S:al:JRUX:ntrv:L0.
2023-08-01 16:36:45.469 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] 'adaptive_lighting.manual_control' event fired for switch.adaptive_lighting_living_room for light light.marble
2023-08-01 16:36:45.469 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Marking 'light.marble' as manually controlled.
2023-08-01 16:36:45.469 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] 'light.marble' was already on and 'light.turn_on' was not called by the adaptive_lighting integration (context.id='01H6SQBW5J13DFSJB4QW607X4B'), the Adaptive Lighting will stop adapting the light until the switch or the light turns off and then on again.
2023-08-01 16:36:45.469 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living room: 'light.marble' is being manually controlled, stop adapting, context.id=01H6SQC34S:al:JRUX:ntrv:L0.
2023-08-01 16:36:45.469 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] 'adaptive_lighting.manual_control' event fired for switch.adaptive_lighting_living_room for light light.mid_room
2023-08-01 16:36:45.469 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Marking 'light.mid_room' as manually controlled.
2023-08-01 16:36:45.469 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] 'light.mid_room' was already on and 'light.turn_on' was not called by the adaptive_lighting integration (context.id='01H6SQBW5J13DFSJB4QW607X4B'), the Adaptive Lighting will stop adapting the light until the switch or the light turns off and then on again.
2023-08-01 16:36:45.470 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living room: 'light.mid_room' is being manually controlled, stop adapting, context.id=01H6SQC34S:al:JRUX:ntrv:L0.
2023-08-01 16:36:45.470 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] 'adaptive_lighting.manual_control' event fired for switch.adaptive_lighting_living_room for light light.shelve
2023-08-01 16:36:45.470 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Marking 'light.shelve' as manually controlled.
2023-08-01 16:36:45.470 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] 'light.shelve' was already on and 'light.turn_on' was not called by the adaptive_lighting integration (context.id='01H6SQBW5J13DFSJB4QW607X4B'), the Adaptive Lighting will stop adapting the light until the switch or the light turns off and then on again.
2023-08-01 16:36:45.470 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living room: 'light.shelve' is being manually controlled, stop adapting, context.id=01H6SQC34S:al:JRUX:ntrv:L0.
2023-08-01 16:36:45.470 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] 'adaptive_lighting.manual_control' event fired for switch.adaptive_lighting_living_room for light light.sphere_2
2023-08-01 16:36:45.470 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Marking 'light.sphere_2' as manually controlled.
2023-08-01 16:36:45.473 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] 'light.sphere_2' was already on and 'light.turn_on' was not called by the adaptive_lighting integration (context.id='01H6SQBW5J13DFSJB4QW607X4B'), the Adaptive Lighting will stop adapting the light until the switch or the light turns off and then on again.
2023-08-01 16:36:45.474 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living room: 'light.sphere_2' is being manually controlled, stop adapting, context.id=01H6SQC34S:al:JRUX:ntrv:L0.
2023-08-01 16:36:45.474 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] 'adaptive_lighting.manual_control' event fired for switch.adaptive_lighting_living_room for light light.sphere_tv
2023-08-01 16:36:45.474 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Marking 'light.sphere_tv' as manually controlled.
2023-08-01 16:36:45.475 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] 'light.sphere_tv' was already on and 'light.turn_on' was not called by the adaptive_lighting integration (context.id='01H6SQBW5J13DFSJB4QW607X4B'), the Adaptive Lighting will stop adapting the light until the switch or the light turns off and then on again.
2023-08-01 16:36:45.475 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living room: 'light.sphere_tv' is being manually controlled, stop adapting, context.id=01H6SQC34S:al:JRUX:ntrv:L0.
2023-08-01 16:36:45.476 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living room: State attributes of 'light.tv_led' ({'min_color_temp_kelvin': 2000, 'max_color_temp_kelvin': 6535, 'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['blink', 'breathe', 'okay', 'channel_change', 'candle', 'fireplace', 'colorloop', 'finish_effect', 'stop_effect', 'stop_hue_effect'], 'supported_color_modes': ['color_temp', 'xy'], 'color_mode': <ColorMode.XY: 'xy'>, 'brightness': 255, 'hs_color': (26.316, 22.353), 'rgb_color': (255, 223, 198), 'xy_color': (0.381, 0.352), 'friendly_name': 'TV LED', 'supported_features': <LightEntityFeature.EFFECT|FLASH|TRANSITION: 44>}) changed wrt 'last_service_data' ({'entity_id': 'light.tv_led', 'rgb_color': (255,<PHONE_NUMBER>3779885,<PHONE_NUMBER>571913), 'transition': 0.25}) (context.id=01H6SQC34S:al:JRUX:ntrv:L0)
2023-08-01 16:36:45.476 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living room: Calling _adapt_light from _update_attrs_and_maybe_adapt_lights: 'light.tv_led' with transition 0.0 and context.id=01H6SQC34S:al:JRUX:ntrv:L0
2023-08-01 16:36:45.482 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living room: Setting rgb_color of light light.tv_led
2023-08-01 16:36:45.482 DEBUG (MainThread) [custom_components.adaptive_lighting.adaptation_utils] Preparing adaptation data for light.tv_led with service data {'entity_id': 'light.tv_led', 'brightness': 255, 'rgb_color': (255,<PHONE_NUMBER>5656917,<PHONE_NUMBER>226667)}
2023-08-01 16:36:45.483 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living room: execute_cancellable_adaptation_calls with data: AdaptationData(entity_id='light.tv_led', context=<homeassistant.core.Context object at 0x7f49871962a0>, sleep_time=0.0, service_call_datas=<async_generator object _create_service_call_data_iterator at 0x7f4986ec8a40>, max_length=2, which='both', initial_sleep=False)
2023-08-01 16:36:45.508 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Living room: Scheduling 'light.turn_on' with the following 'service_data': {'entity_id': 'light.tv_led', 'rgb_color': (255,<PHONE_NUMBER>5656917,<PHONE_NUMBER>226667)} with context.id='01H6SQC34S:al:JRUX:ntrv:L0'
2023-08-01 16:36:45.570 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Detected an 'light.turn_on('['light.tv_led']')' event with context.id='01H6SQC34S:al:JRUX:ntrv:L0'
2023-08-01 16:36:45.611 ERROR (MainThread) [yolo.yolo] light.cabinet_led is manually controlled
2023-08-01 16:36:45.615 ERROR (MainThread) [yolo.yolo] light.living_room_corner is manually controlled
2023-08-01 16:36:45.619 ERROR (MainThread) [yolo.yolo] light.marble is manually controlled
2023-08-01 16:36:45.623 ERROR (MainThread) [yolo.yolo] light.mid_room is manually controlled
2023-08-01 16:36:45.626 ERROR (MainThread) [yolo.yolo] light.shelve is manually controlled
2023-08-01 16:36:45.628 ERROR (MainThread) [yolo.yolo] light.sphere_2 is manually controlled
2023-08-01 16:36:45.630 ERROR (MainThread) [yolo.yolo] light.sphere_tv is manually controlled


fix: broken link to rust-analyzer

cc: @tjdevries

@fannheyward I'm sorry for the slow response to merge this! Thank you 🙏🏻


Feat/coordinator storage payments

fixes #936
Store payments by implementing node::Storage.
I chucked a few smaller commits in front because I noticed these things.
@luckysori is working on the todo!s for spendable outputs - @luckysori can we merge my work without this part or is the coordinator broken then.

I propose to rebase this on @luckysori 's work in #938 so we can merge the combined implementation of the trait

bors r+

bors r-

bors r+


Forced tab with lazy images

Hello,
I have a website that has a page that uses tabs.  After using this library, the page appears without any tabs and displaying the information for the tab that is lazy loaded. Is there something in the program that attempts to place that information on the page by default and is there a setting that can be changed to prevent this?
To Reproduce

Create a default site with tabs (at least two)
Use the lazy load library for images on one of the tabs (ensuring it's the not the first tab)
Display the site

Expected behavior
The tabs should display. Clicking the tab with lazy images should display when needed.
LazyLoad version

Version 12.4

Desktop (please complete the following information):

OS: Windows 10 Home
Browser Chrome
Version 78

Is there something in the program that attempts to place that information on the page by default and is there a setting that can be changed to prevent this?

No, there isn't anything about that.
If you're still having this issue, please report the code you wrote and the library you're using to create tabs.
Thanks

Closing this due to inactivity.
If you still need help feel free to comment and reopen.


Create revoke link

Hello,
I've been searching for a while on how to create a revoke link that I could put in my privacy policy (like Revoke cookies) with an event listener...
What function should I run to revoke cookies?
Thanks

Finally found an option to delete the cookie and refresh the page, that works, but I'm not sure it's a good practice

You can delete all cookies using this snippet:
            var res = document.cookie;
            var multiple = res.split(";");
            for(var i = 0; i < multiple.length; i++) {
               var key = multiple[i].split("=");
               document.cookie = key[0]+" =; expires = Thu, 01 Jan 1970 00:00:00 UTC";
            }


Updated overrides config for api versions with v0.1 to deprecated

refs #9866

v0.1 is considered deprecated instead of stable

@kirrg001 One thing that changes with moving it to deprecated is how should we handle default values for the url utility (getApiPath) we have here ? Currently it assumes stable to be the default version for path, should we change that to deprecated? I have updated all implicit calls to explicit deprecated so it won't break anything even with current change, but more about which one makes more sense as default

Currently it assumes stable to be the default version for path, should we change that to deprecated?

Good question. Probably deprecated for now yes. And if we have a stable version, we change it?

Yeah sure, lets do it like this. Only reason I didn't do that automatically was because deprecated looks weird as default value of anything 😄


Update download link in README

LGTM :+1:

Hi @ryanhalliday-arlo! Thanks for the contribution 🙂
This looks good, but can you just change the base branch to development instead of master?

@dingo-d Yep sorry - all done!

I think now we should update to point to wordpress.org latest: https://downloads.wordpress.org/plugin/theme-sniffer.latest-stable.zip
or if continue to use github releases version we could use: https://github.com/WPTRT/theme-sniffer/releases/latest/download/theme-sniffer.zip
This way we don't have to continuously update the readme :smile:

@timelsass I'll merge this and then we can create a new PR in which we'll further update the Readme 🙂


Add sesh extension

Description
Add a new extension for sesh, a smart terminal session manager.
Screencast

Checklist

[x] I read the extension guidelines
[x] I read the documentation about publishing
[x] I ran npm run build and tested this distribution build in Raycast
[x] I checked that files in the assets folder are used by the extension itself
[x] I checked that assets used by the README are placed outside of the metadata folder

I'm currently working on getting the CLI released to homebrew, but didn't know how long it would take for you guys to approve it here.
Want me to put this in draft mode? I can add instructions to the README as well.

I think it might be best to draft until ready 🙂

Okay @pernielsentikaer, it's ready!
You can run brew install joshmedeski/sesh/sesh to install the CLI, then you can connect your terminal to tmux and it will do it's thing!
It's mean to be a companion to the core workflow that happens in the terminal. I've done some thorough testing and it's doing a great job.
p.s. this is a v2.0 rewrite for my t - tmux plugin. So it's not a brand new project like it might appear :)

Thanks for the update 🔥
I now installed the brew command and opening the command gives me this (and I'm not sure what to do) I see a point where I need to do something with a terminal emulator, but not sure what I need from here?

I'm not sure if it's because I don't normal use tmux(if I need that) but I think others might be confused too 🙂

Yep - This is reading tmux sessions (and I think @joshmedeski has plans to add more multiplexers too) - if you don't use tmux it makes sense sesh list would error here!

@pernielsentikaer so this tool gets built up with a tool called zoxide (which is automatically installed when you brew install sesh).
My video explaination goes into the technologies involved, and I plan on making a brand new video when the Raycast extension goes live!
But let me know if there needs to be more explanation or error handling on Raycast's side in order for you guys to approve the extension.
For now, try running cd commands in your terminal after zoxide is configured in your terminal and/or open a tmux session or two and you won't get the error anymore.

I tried tmux new -s documents and it looks like it started, Raycast does however say the same, not sure how to get pass this place 🫠

Can you type which tmux and share the result? I'm not sure how Raycast expects to find binaries but I have this set on the environment:
export const env = Object.assign({}, process.env, { PATH: "/usr/local/bin:/usr/bin:/opt/homebrew/bin" });

So if tmux isn't in one of those places I don't think Raycast can read it.
You can also run zoxide add ~/Downloads manually to create a zoxide entry.

I get this path back /opt/homebrew/bin/tmux
After manually adding zoxide add ~/Downloads I'm able to see it, when I run the connect action, nothing happens (my terminal pops to the front but nothing else)

Because this is a companion to the sesh workflow, tmux has to already be running for this extension to be useful. Those that use sesh have a workflow in the terminal already.
I will be making improvements to the Raycast extension but I was hoping to get this merged soon to get it in the hands of my users! Let me know what we need to do to get this shipped, thanks!

Let's get it out for your users and we can see how it goes 🙂

Thank you @pernielsentikaer ! So far it's been working great for me! Granted, I was already using Josh's sesh tool (and its previous iterations) for a good while now!

That's awesome to hear, thanks for letting me know @enrique-villarrealp

Thank you @pernielsentikaer!
I'll be getting feedback from my community and continue to improve on the extension 😉


Predicate Pushdown not Working

Hi all,
Environment: Spark 3.0.2, Koalas: 1.8.2, Delta Lake 0.7
I've a Delta-Table partioned by column "PARTITION". Koalas doesn't seem to execute predicate pushdown.

Using Spark:

my_kdf = ks.read_delta(f"...")
my_df = my_kdf.to_spark()
result_df = my_df.filter((col("PARTITION") == 15) & (col("ID") == 1))
result_df.to_koalas().toPandas()

Takes: 20 seconds

Same with koalas:

result_kdf = ks.read_delta(f"...")
result_kdf = result_kdf [(result_kdf ["PARTITION"] == 15) & (result_kdf ["ID"] == 1)]
result_kdf.toPandas()

Takes 130 seconds (seems that it doesnt execute predicate pushdown)

Other try with koalas:

my_kdf = ks.read_delta(f"...")
result_kdf = my_kdf [(my_kdf ["PARTITION"] == 15)]
result_kdf = result_kdf [(result_kdf ["ID"] == 1)]
result_kdf.toPandas()

Takes: 20 seconds.
Why takes 2. so long?
Thanks!
Best

@Lukas012 do you mind reporting a issue in https://issues.apache.org/jira/projects/SPARK?

@Lukas012 do you mind reporting a issue in https://issues.apache.org/jira/projects/SPARK?
Why? This problem only occurs when using koalas.

Why? This problem only occurs in koalas.


How to integrate with React navigation?

With many children of a stack, i want each child of the stack can open the drawer and disable drawer on some screen outside stack as login or sign in,..
how to do it?
thank you.

+1

+1


Performance Suggestions

Suggestions

[ ] Add FPS Label

extends Label
# Attact script to label
func _process(_delta):
        text = "FPS: " + str(Engine.get_frames_per_second())

[ ] Switch to Compatibility Renderer to have better performance on mobile devices

Mobile Rendered is best suited for high end mobile devices

[ ] Enable VSync in project settings if isn't already enabled

after some experiments

Use GridMap for floor instead of large floor.

this isn't gridmap


Question about the weight of VAE

Thanks for the great work. I have a question about the weight of VAE. The weight of VAE in the IP-Adapter is:

But the weight of VAE in many works such as Tune-A-Video, Vid2vid-zero is:

Is there any difference in precise between them?

@CHNxindong hi, VAE don't affect the performance. Here, we use a better VAE to reduce some visual imperfections
https://huggingface.co/stabilityai/sd-vae-ft-mse-original has a higher reconstruction error

I see. Thanks for the quick reply!


TypeError: Cannot read properties of undefined (reading 'element')

Type: Bug
Hello.
I'm using VSCode in the latest version. When I open the program, it shows this notification.
TypeError: Cannot read properties of undefined (reading 'Element')
I don't know where this error comes from, because I don't have any files open.
Thanks
VS Code version: Code 1.87.2 (863d2581ecda6849923a2118d93a088b0745d9d6, 2024-03-08T15:20:17.278Z)
OS version: Windows_NT x64 10.0.19045
Modes:

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz (4 x 2400)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_graphite: disabled_offvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabled

Load (avg)
undefined

Memory (System)
7.87GB (3.12GB free)

Process Argv
--crash-reporter-id cffd514c-4658-4801-84e4-121e7e5c32e8

Screen Reader
yes

VM
0%

Extensions (42)

Extension
Author (truncated)
Version

bs5
aja
0.7.0

vscode-intelephense-client
bme
1.10.2

vscode-mysql-client2
cwe
7.1.3

vscode-axe-linter
deq
4.8.3

composer-php-vscode
DEV
1.45.15145

intelli-php-vscode
DEV
0.12.15062

vscode-html-css
ecm
2.0.9

code-runner
for
0.12.1

vscode-github-actions
git
0.26.2

vscode-pull-request-github
Git
0.82.1

go
gol
0.41.2

go-nightly
gol
2024.3.1416

vscode-language-pack-es
MS-
1.87.2024031309

csharp
ms-
2.22.5

vscode-dotnet-pack
ms-
1.0.13

vscode-dotnet-runtime
ms-
2.0.2

vscode-dotnet-sdk
ms-
0.8.0

vscode-postgresql
ms-
0.3.0

autopep8
ms-
2023.8.0

debugpy
ms-
2024.2.0

isort
ms-
2023.10.1

python
ms-
2024.2.1

vscode-pylance
ms-
2024.3.1

jupyter
ms-
2024.2.0

jupyter-renderers
ms-
1.0.17

vscode-jupyter-cell-tags
ms-
0.1.8

vscode-jupyter-slideshow
ms-
0.1.5

cpptools
ms-
1.19.9

cpptools-extension-pack
ms-
1.3.0

live-server-preview
neg
0.1.4

vscode-thunder-client
ran
2.20.0

java
red
1.28.1

LiveServer
rit
5.7.9

markdown-preview-enhanced
shd
0.8.13

intellicode-api-usage-examples
Vis
0.2.8

vscodeintellicode
Vis
1.3.1

vscode-java-debug
vsc
0.56.2

vscode-java-dependency
vsc
0.23.5

vscode-java-pack
vsc
0.25.15

vscode-java-test
vsc
0.40.1

vscode-maven
vsc
0.44.0

php-debug
xde
1.34.0

(1 theme extensions excluded)

A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscorecescf:30445987
vscod805cf:30301675
binariesv615:30325510
vsaa593:30376534
py29gd2263:30899288
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythongtdpath:30769146
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
h48ei257:30992801
pythontbext0:30879054
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfcontrol:30979541
d34g3935:30971562
fegfb526:30981948
bg6jg535:30979843
ccp2r3:30993541
dsvsc020:30976470
pythonaic:30996667
gee8j676:30988843
dsvsc021:30996838

Please use the Start Extension Bisect command from Command Palette (F1) to investigate.

I did it and it told me it was a php extension, but I disabled it and the problem persists.

Maybe try the Bisect again.

Can you check the Window output channel for errors?

How I make this?
El dom, 31 mar 2024, 1:34 a. m., Rob Lourens @.***>
escribió:

Can you check the Window output channel for errors?
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/vscode/issues/208427#issuecomment-2028510938,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A3TLQZSOQYCCCAHL32EZ4FTY25KYTAVCNFSM6AAAAABFDQK6GKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRYGUYTAOJTHA
.
You are receiving this because you authored the thread.Message ID:
@.***>

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!


Code example for DI-engine trading environment

Hi,
Thank you for a great package!
I was wandering how to code the equivalent of the code below that would use DI-engine environment for trading (the one with more than just 2 discrete actions - https://github.com/opendilab/DI-engine/tree/main/dizoo/gym_anytrading/envs)?
I was studying your documentation however no code examples include your version of trading environment. I was trying to use analogies, but without any access. I would appreciate if you could provide a code example. Thank you very much.
Imports
import gym
import gym_anytrading
from stable_baselines.common.vec_env import DummyVecEnv
from stable_baselines import A2C
import numpy as np
import pandas as pd
from matplotlib import pyplot as plt
Create the Environment
env = gym.make('stocks-v0', df=df, frame_bound=(5,100), window_size=5)
env_maker = lambda: gym.make('stocks-v0', df=df, frame_bound=(5,100), window_size=5)
env = DummyVecEnv([env_maker])
Train the Model
model = A2C('MlpLstmPolicy', env, verbose=1)
model.learn(total_timesteps=1000000)
Evaluate the Model
observation = env.reset()
while True:
action = env.action_space.sample()
observation, reward, done, info = env.step(action)
# env.render()
if done:
print("info:", info)
break
Plot the Results
plt.cla()
env.render_all()
plt.show()

You can refer to demo here,  just modify config according to your demands and then execute python3 -u stocks_dqn_config.py.
If you want to deploy the trained agent like SB3, you can refer to this demo to add your own codes with DI-engine.
If you have any other quesetions, you can continue to comment in this issue.


Expose aggregate descriptor

Previously, the aggregate descriptor existed, but was not exposed as provides ComponentDescriptor.
Reviewer checklist

[ ] Read the contributing guide
[ ] PR should be motivated, i.e. what does it fix, why, and if relevant, how
[ ] Ensure relevant issues are linked (description should include text like "Fixes #")
[ ] Ensure any appropriate documentation has been added or amended

Coverage: 97.015% (+0.7%) from 96.269% when pulling a43a2aae82bc890bbca3979c54e5d2763d7ae5cc on agg-descriptor into 1e3b456b37605f93142f93383dca5ffb68462b73 on main.


[EWC] Enable Wallet connect

closes #1918

So I was able to connect with WC to the EWC network, I was able to create a safe, send funds and change policies.
There are issues still. I'll create another ticket for that since this one was only to enable the WC connection to EWC, and that is done.
Issue #1994


A connection to http://docker.socket/ was leaked

Hi guys, just noticed that the following warning happens from time to time (not easy to reproduce):
12:08:27.540 [main] INFO  o.x.t.d.i.j.XWikiDockerExtension - (*) Start VNC container...
12:08:32.120 [main] INFO  o.x.t.d.i.j.XWikiDockerExtension - (*) Starting test [deleteChildren]
Dec 22, 2019 12:08:52 PM org.testcontainers.shaded.okhttp3.internal.platform.Platform log
WARNING: A connection to http://docker.socket/ was leaked. Did you forget to close a response body? To see where this was allocated, set the OkHttpClient logger level to FINE: Logger.getLogger(OkHttpClient.class.getName()).setLevel(Level.FINE);
12:08:52.845 [main] INFO  o.x.t.d.i.j.XWikiDockerExtension - (*) Stopping test [deleteChildren]

Anything that can be done?
I'll try to reproduce with the log level set to FINE.

Hi @vmassol,
Thanks for the report!
There was an issue in docker-java that caused some InputStreams to leak:
https://github.com/docker-java/docker-java/pull/1290
We're working on releasing docker-java 3.2.0 (that includes the fix) and will upgrade it in Testcontainers shortly after.

Excellent! Thanks

I guess this should stay open... Unless the last version of TC (1.13.0) includes docker-java 3.2.0 already?

@bsideup is actively working on this - not stale!

@bsideup any updates here?
Thanks
Nikolay

@nachevn good question! Any updates? Is it still reproducible with the latest Testcontainers that depends on docker-java 3.2.x? :)

@bsideup yes, indeed it is a good question. It occurs but not every time which makes it (unfortunately) not reproducible. Just for information we are using testcontainers version 1.15.0-rc1

@bsideup I'm getting this on 1.15.0

@bsideup I'm getting this on 1.15.0

@ravenblackdusk please try 1.15.1 then :)

@ravenblackdusk please try 1.15.1 then :)

@bsideup I'm still getting this with 1.15.1

@bsideup I'm still getting this with 1.15.1

@bsideup Regretfully also seeing this on 1.15.1 sometimes.


Potential optimization to rate limiting plugin

(Please let me know if any of this makes sense. It seems that it does, but I might be missing somehing)
Looking at the current implementation for rate limiting, it seems that the plugin will query the database to find the current usage metric for a particular period (second, minute, hour, day, month, year) even after the limit has been met (see: https://github.com/Mashape/kong/blob/master/kong/plugins/rate-limiting/handler.lua#L50).
Given that after the rate limit is met for a period the plugin will cease to update the database and to serve requests (see: https://github.com/Mashape/kong/blob/master/kong/plugins/rate-limiting/handler.lua#L107), this means that every subsequent query to the database inside get_usage(...) will be superfluous and could be avoided. The unnecessary impact on the database increases for configurations using larger intervals of time (e.g., limiting requests per month) and in which the rate limit is attained early on the period (which means that there is a large period of time where requests will be denied)
It's clear that using cache_and_get with the typical pattern is not possible (because the value will evolve too quickly and the cache would be invalidated too often, which is not practical...). Instead of doing that, the plugin should only set the cache when the limit is attained, and it should delete the entry from the cache when the timestamp for the next step of the period (e.g., if name is second, then timestamp + 1) is met. Doing this means that the cache will only be set on the intervals of time when the limit has been reached.
The key for the cache should probably be a combination of api_id, identifier, name (or period), and period_date, with the cached value being a Lua table with usage, api_id, identifier, name and the timestamp at the time. When retrieving this from the cache, if the timestamp + the period bleeds into the next step of the period (e.g., the next second, the next minute, the next month, etc.), then the cache for that key should be deleted and the database should be queried. Else, you just return the cached entry.

Calculating the time remaining for the limit to reset would also allow to append the common X-Rate-Limit-Reset header to the user (related to #233).

@jmdacruz，yes i agree， in my stress testing ,when  i use ‘rate limiting’,the tps performance will lose 50% ：（

@thefosk Sorry for the long post, but I think this might be useful.
I've been thinking about an alternative (and more radical) way of doing rate limiting which might be suitable for some use cases (a complementary implementation of "rate limiting", not a replacement for it): Using a simplified version of a CRDT (Conflict-free Replicated Data Type). This is not a new topic, there are at least a few papers here and here. I'm not really familiar with this research to be honest, but it seems applicable and can be heavily simplified in cases where you can deal with an approximated counter.
Imagine that you have a single Kong node. In that scenario, a global in-memory counter (with periodic and asynchronous database writes for recovery every certain number of requests) would solve the problem of rate limiting, since there is only one node doing the counting at all times (let's call this counter node_counter[0]). This is of course unrealistic, but it serves to set the stage of this discussion.
Now, imagine we try to extrapolate this to N Kong nodes in a cluster (where each node has a counter node_counter[i]). What we want to try and avoid is the need to constantly have to update a global counter in order to know if the limit has been reached. If you have a fair load balancer in front of your cluster, you could assume that load is going to be equally distributed across all of the nodes (except for the corner case when you add a new node to the cluster, but on a stable cluster all nodes will get requests at the same rate).
What this means is that node_counter[i] * N is a relatively fair estimation of the global counter, with an error of ~N for scenarios in which the cluster is stable. When new nodes are added to the cluster, these will be uninitialized and hence their counters (say node_counter[j]) will have a value of 0. This is where the approximation to CRDTs comes in: Instead of trying to get the aggregate count when initializing a node, a strategy could be to get the maximum value from all the node_counter structures. This also needs to account for scenarios in which the counters are reset (e.g., when you reach a given rate limit and you start counting again), so it's not just getting the maximum value but you also have to account for a timestamp to know if a given node_counter is outdated (and it's about to be reset).
Again, this is just an idea on which I haven't really spent much time, but it seems that it could provide some serious performance improvements on rate limiting in which an accurate limit can be traded off for a more performant implementation. There might be a way to implement this with Serf too (instead of relying on the database for synchronization/initialization).

I'm also curious about the performance of rate limiting plugin. Is redis the best choice for cluster currently?

@thibaultcha  It has been 5 years since this issue got created. Is it still up for grabs?

xref https://github.com/Kong/kong/pull/9538


How to access the data directory?

Hi there
I would like to manually update my devices.js
How can i access the data directory? I have installe HA supervised. Therefore i have full access to the underlaying OS.
Thanks

https://www.zigbee2mqtt.io/how_tos/how_to_support_new_devices.html#hassio-addon

There's an officially supported way to do this listed in the README for this add-on: https://github.com/danielwelch/hassio-zigbee2mqtt#adding-support-for-new-devices


Implement basic history search

This PR implements a basic reverse search through history mapped to Ctrl-R. It behaves in a similar way to bash/readline.

Very cool!


min-length-validator is incorrect for empty string value

When the validate() method is called on a paper-password-input with an empty string the !value causes the function to return true. Since the validate() function is called on page load perhaps it should be left as-is but instead the required attribute should be added to paper-password-input and delegated to the paper-input.

Good point, @aaronanderson - that clearly lacked some documentation.
The validator ignores if the value is empty. This prevents showing a warning message before the user started to enter any content as requested by the Material Design specification: "Show error text only after user interaction with a field. If the user inputs incorrect data, helper text may transform into error text." (https://material.io/guidelines/patterns/errors.html#errors-user-input-errors).
I improved the code docu to clarify the current behavior.


Image segmentation model

I'm trying to implement the image segmentation model in my android application, using tflite -
https://github.com/tensorflow/examples/tree/master/lite/examples/image_segmentation/android
https://www.tensorflow.org/lite/models/segmentation/overview
And I wonder if there is any other model that I can use instead of the deeplabv3_257_mv_gpu.tflite model, I saw this project on GitHub , and it seems that there is TF Mobile model with 513 x 513 inputs somewhere.
Thanks in advance,
Nirel.

The TF Mobile or TF Mini is a completely different project than TFLite and it has been deprecated. you can use its models for tflite.
if you want to try other model, you can try to convert it from https://github.com/tensorflow/models/tree/master/research/deeplab


Added correct bundle IDs for 2018 sale

Fix for #687

We need this for tomorrow, so I did it this way and if all goes well, I'll refactor right after I see it working.

@ArtyomKa You're right, refactored... Happy now? :)


Moderators can delete users

Well, as I said at the other pr, I prefer logic deletion over physical deletion. Its easier to implement and you can always rollback

But this implementation is using soft deletion: https://github.com/csokol/mamute/blob/deleting-users/src/main/java/org/mamute/model/User.java#L50

Even this query?
``´
session.createSQLQuery("delete from Answer_Comments where comments_id=:id")
.setParameter("id", comment.getId()).executeUpdate();

Well, in this case I had to delete the data from the relationship table because hibernate was not so smart to ignore logically deleted comments when querying answers/questions joined with its comments. I can try to add where comment.deleted = false everywhere, but I think we would need to always remember to do that on complex queries. What do you think?

Well, I don't know if it will be hard or not to ignore all of them, but if we used left joins they should be ignored automatically if their relationships are, right?
I mean, the idea of using logical deletion is that we can undo the deletion if we want, but if you delete the relation table lines it would be much harder

They can't be ignored on left joins since the row still exists after deletion and hibernate is not smart enough to add where deleted=false automatically for joins. I'll try to track all the queries we are joining the comments and add this condition but I still think this will be ugly since we we'll need to remember to add this predicate forever.

Hi Leo, I removed that query from CommentDAO and added the logic to ignore deleted questions. I'm merging this one!


Url.Action doesn't respect constraints from  IApplicationModelConvention

Describe the bug
I implemented localized routes using a ApplicationModelConvention.
This works fine as long as I type the urls directly in the browser.
So, for example, german routes are only allowed in german culture. and routes from other languages are returning a 404. Exactly as expected.
But when I use Url.Action it doesn't respect the constraints. so for example if i'm on the english domain i get russian links (depending on the order they are inserted)
What am I doing wrong?
Startup Code:
 services.AddMvc(o =>
            {
                o.Conventions.Insert(0, new LocalizedRouteConvention());
            })

Convention
public class LocalizedRouteConvention : IApplicationModelConvention
{
    public void Apply(ApplicationModel application)
    {
        foreach (var controller in application.Controllers)
        {
            foreach (var action in controller.Actions)
            {
                var attributes = action.Attributes.OfType<RouteAttribute>().ToArray();
                if (!attributes.Any()) return;

                foreach (var attribute in attributes)
                {
                    SelectorModel defaultSelector = action.Selectors.First();

                    foreach (var localizedVersion in GetLocalized(attribute.Template))
                    {
                        if (!action.Selectors.Any(s => s.AttributeRouteModel.Template == localizedVersion.Template))
                        {
                            action.Selectors.Insert(0, new SelectorModel(defaultSelector)
                            {
                                AttributeRouteModel = localizedVersion,
                                ActionConstraints =
                                {
                                    new CultureActionConstraint { Culture = ((LocalizedRouteAttribute) localizedVersion.Attribute).Culture }
                                }
                            });
                        }
                    }
                }
            }
        }
    }
}

And here the constraint
    public class CultureActionConstraint : IActionConstraint
    {
        public string Culture { get; set; }

        public int Order => 0;

        public bool Accept(ActionConstraintContext context)
        {
            return CultureInfo.CurrentCulture.TwoLetterISOLanguageName == Culture;
        }
    }

Expected behavior
Url.Action should also only use the routes that are allowed.

To reproduce, checkout and run https://github.com/cypressious/asp-net-core-localized-routes-issue, then open http://localhost:5000/about_ru?culture=ru. The generated link should be to http://localhost:5000/privacy_ru but it's actually http://localhost:5000/privacy_bg

Thanks guys for reproducing the issue, I will try to investigate on this soon

It takes long time for me to realize that the origin for the issue come from Routing specifically IRouter.GetVirtualPath().
Meanwhile I notice that the router fetches the route template with the first supported cultures sorted by name - I don't know why!! - in your case bg, so that's why the url is privacy_bg, f you add ar culture you will get privacy_ar
@rynowak @JamesNK any ideas what's going on here

Do you think its a bug or more likely a non specified feature?
Any workaround you can think of? currently this is  a showstopper for us.

I'm not sure why you didn't use RouteDataCultureProvider to simplify the process instead of doing localized routes manually?!!

Sorry i don't understand what exactly you mean. Do you have an example?

What I mean is you can make of use of Microsoft.AspNetCore.Localization.Routing, have a look to a unit test for more details https://github.com/aspnet/Localization/blob/master/test/Microsoft.AspNetCore.Localization.Routing.Tests/RouteDataRequestCultureProviderTest.cs

Sorry maybe its a  dumb question. But I don't see how i can add localizations of a route this way.
E.g if we have a controller like this
[HttpGet("user")]
public async Task<IActionResult> Get()
{

We have in a storage informations that translates the "user" to "benutzer" in german. and therefore the route should be aviable through "benutzer" and not "user".
In the Test you provided I can only see how to set and recognize the culture a request should be running in, but not how to create routes related to the culture.
What am I missing?

I see you want to create a localized routes, for instance:
http://your-domain.com/user for en culture
http://your-domain.com/benutzer for de culture

To be precise, we want
http://your-domain.com/user for en culture
http://your-domain.de/benutzer for de culture

http://your-domain.com/benutzer and
http://your-domain.de/userfor
should not be allowed

Seems your implementation is similar to what I saw in this post https://www.strathweb.com/2015/11/localized-routes-with-asp-net-5-and-mvc-6/

Yes, it's directly inspired by it. However, The author doesn't say anything about GetVirtualPath().

Finally I come up with a simple workaround - perhaps stupid 😄 - to fix your issue
[HtmlTargetElement("a")]
    public class LocalizedLinkTagHelper : TagHelper
    {
        private HttpContext _httpContext;

        public LocalizedLinkTagHelper(IHttpContextAccessor httpContextAccessor)
        {
            _httpContext = httpContextAccessor.HttpContext;
        }

        public override void Process(TagHelperContext context, TagHelperOutput output)
        {
            var selectedCulture = _httpContext.Features.Get<IRequestCultureFeature>().RequestCulture.Culture;
            if (output.Attributes.TryGetAttribute("href", out TagHelperAttribute hrefAttribute))
            {
                var url = hrefAttribute.Value?.ToString();
                var twoLetterISOLanguageName = url?.Split("_")?[1];
                if (twoLetterISOLanguageName != null)
                {
                    url = url.Replace(twoLetterISOLanguageName, selectedCulture.TwoLetterISOLanguageName);
                    output.Attributes.SetAttribute("href", url);
                }
            }
        }
    }

but you should use Privacy instead of @Html.ActionLink("Privacy", "Privacy", "Home"), which confirm that there's a bug here in routing

As a workaround this should work. But always has the risk that someone uses accidentially method Like RedirectToAction and so on.
We will think about the workabout.
In the meanwhile is there a chance to get the behavior in asp core fixed? Should we report it somewhere else?

I've created an issue at https://github.com/aspnet/Routing/issues/896

I'm not sure what's the current status of this?!!

Well it seems like this is just not implemented and the last comment on the other thread is, that a route constraint should be used, but in the IApplicationModelConvention we don't see a possibilty to add one

A route constraint is part of the route. For attribute routing the route constraint would need to be in the template, e.g. the template "{controller}/{action}/{culture:custom-constraint}" would resolve a constraint with the string "custom-constraint". This string is associated with the constraint type in the RouteOptions.
I found this blog post that goes into more detail: https://tommyb.com/blog/customizing-asp-net-cores-route-constraints-and-model-binding/

Thanks for contacting us. We're closing this issue as there was no community involvement here for quite a while now.


It does not export me automatically

- PHP version:  7.3.2
- Laravel version: 5.8.35
- Package version: 3.1

My problem is that I am passing through the builder of my PhonesExport class a collection as indicated in the documentation
My driver that should generate the download of the file is described as follows
<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use Maatwebsite\Excel\Facades\Excel;
use App\Exports\PhonesExport;
class ExcelController extends Controller
{

protected $data = null;

public function __construct($data = null)
{

    $this->data = $data;
}

public function export(){

    $date = date("Y-m-d H:i:s");
	return (new PhonesExport($this->data))->download('phones'.$date.'xlsx', \Maatwebsite\Excel\Excel::XLSX);;

}

}

And my PhoneExport Class is defined as follows
<?php

namespace App\Exports;

use Maatwebsite\Excel\Concerns\FromCollection;
use Maatwebsite\Excel\Concerns\WithHeadings;
//use Maatwebsite\Excel\Concerns\FromArray;
//use Maatwebsite\Excel\Concerns\FromView;
//use Illuminate\Contracts\View\View;
use Maatwebsite\Excel\Concerns\Exportable;
use App\Http\Controllers;
use App\Phone;

class PhonesExport implements WithHeadings, FromCollection{

use Exportable;

protected $data;

public function __construct($data = null)
{

    $this->data = $data;
}

 public function collection(){
    $phones = array();
    if(is_null($this->data)){
        $phone = Phone::select('PHONES.PHONE','AREACODES.CODE','STATES.NAME')
            ->join('AREACODES','AREACODES.AREACODES_ID','=','PHONES.AREACODES_ID')
            ->join('STATESZONE','STATESZONE.STATESZONE_ID','=','AREACODES.STATESZONE_ID')
            ->join('STATES','STATES.STATES_ID','=','STATESZONE.STATES_ID')
            ->whereDay('PHONES.DATE',date("d"))
            ->get();

        foreach ($phone as $key => $value) {
            $phones[$key]['PHONE'] = $value->CODE.''.$value->PHONE;
            $phones[$key]['NAME'] = $value->NAME;

        }
        return collect($phones);
    }else{
        foreach ($this->data as $key => $value) {
            $phones[$key]['PHONE'] = $value->CODE.''.$value->PHONE;
            $phones[$key]['NAME'] = $value->NAME;

        }

        return collect($phones);

    }

 }

public function headings(): array{
	return [
		'TELEFONO',
		'ESTADO'
	];
}

}

Ok, here I think everything is fine. If I send the parameter to my ExcelControler class and send it to the PhoneExport class and do a dd in collection before return, it shows me the data that I am sending
From another controller I create an instance of my ExcelControler class and I pass the parameter, all this is when the app is running.
if($searchOrCreate){
		$phones = Phone::select('PHONES.PHONE','AREACODES.CODE','STATES.NAME')
	     		->join('AREACODES','AREACODES.AREACODES_ID','=','PHONES.AREACODES_ID')
	     		->join('STATESZONE','STATESZONE.STATESZONE_ID','=','AREACODES.STATESZONE_ID')
	     		->join('STATES','STATES.STATES_ID','=','STATESZONE.STATES_ID')
	     		->where('DATE',$searchOrCreate)
	     		->get();

			$excel = new ExcelController($phones);
			$excel->export();

	}`

That way he sends the value to the controller and sends it to PhoneExport.
The application runs normally, but it doesn't generate the excel file.
If I create a button and do all the generic steps if I download the file, but the data that it generates is not correct since I need to pass a specific data at runtime
I don't know if the problem lies in a bad practice that I am doing or something.

What does it show if you dd() the response?
(new PhonesExport($this->data))->download('phones'.$date.'xlsx', \Maatwebsite\Excel\Excel::XLSX);


 Let me know your PyPI username and I can make sure you're added.

Hi Will, thank you. My username is PaulWestenthanner (https://pypi.org/user/PaulWestenthanner/)

Should be good to go, thanks


How to get the property offset of the pre-trained models ?

Dear Developers,
I am trying to hyper-tune a potential based on the M3GNet model. I noticed that in the M3GNet paper, the authors first fitted elemental reference energies and subtracted these reference energies from the total energies to improve the M3GNet model's training stability.
I loaded the pre-trained model using the following code, but I couldn't retrieve the information on the elemental reference energies.

The outputs:

Could you please illustrate how to obtain these elemental reference energies? If I would like to hyper-tune a pre-trained model on a new database so that the new model works on both the new and the original datasets, is it necessary to keep the elemental reference energies unchanged during the hyper-tuning process? Could you please provide some example code for this? It seems that no examples have been given for this.
Thanks.

Also, could you please reply to my previous comment ? #286
Thanks a lot !

Hi @txy159, the official documentation is available at https://matgl.ai/, and you can also find it on the main page of our GitHub repository. Please read through the "Model Training" section for instructions on stress conversion from VASP, as all architectures in MatGL follow the same guidelines. I have also added a demonstration of obtaining and using element offsets from a pre-trained model for fine-tuning in the M3GNet potential training notebook. Finally, I cannot give you an exact answer whether it is necessary to keep the elemental reference energies unchanged during the hyper-tuning process. You should try both options to see if it improves training and validation errors for your dataset. Thanks!


Move to VPS Dime

Move to VPS Dime hosting with:
4 cores
6 GB RAM
30 GB SSD
2 TB Traffic

I don't think we're gonna run out of capacity any time soon

We could get a sponsored VM from DigitalOcean, Linode or such.
@amoffat would you appreciate that?

@davidak absolutely!  I'm on Linode now, 2GB plan


improved the workflow, only on merge

It is hard to verify if this works as expected or not.
Have you done any test runs?

I have forked the example
https://github.com/ReimarBauer/github-actions-pr-close-showcase/actions
the configuration example for coveralls is from
https://github.com/conda-forge/conda-smithy/blob/master/.github/workflows/tests.yml

I will play around with this a bit. Sadly testing out actions, especially ones as complex as on merged PRs is taking time.

I will play around with this a bit. Sadly testing out actions, especially ones as complex as on merged PRs is taking time.

Thx. If that works probably can extend this too. I can manually create updates until we have this productive.

will be differently implemented


README: example links to removed file

In the README.md on line 221 (sorry I'm on mobile and can't seem to find a way to add a link) an example .sops.yaml is linked in your dot files repo, but it doesn't exist anymore. Also it references the old main branch name.
# Also see https://github.com/Mic92/dotfiles/blob/master/nixos/.sops.yaml

Ah. And also I got rid of my .sops.yaml... Because I am now using a new cli frontend for sops-nix from here: https://clan.lol/blog/hello-world/


[<IP_ADDRESS>] literal backslash in measurement not being respected

Think I've found a bug with how backslashes are handled. At the moment it seems that if a measurement name has a literal backslash followed by an escapable character the measurement won't be parsed correctly.
Example, when trying to insert the following measurement with a literal slash followed by an escaped space:
fmt.Println([]byte(`cpu\\ `)) //  [99 112 117 92 92 32]

> drop database test
> create database test
> use test
Using database test
> insert cpu\\  value=1i<PHONE_NUMBER>
> show series
name: cpu
----------
_key
cpu\\

> select * from "cpu\\ "
> select * from "cpu\\"
> select * from "cpu"
> select * from "cpu "
name: cpu
----------
time		value
1000000000	1

>

The correct measurement name should be cpu\ , that is cpu followed by a \ and a single space  .

@beckettsean looking through the issues, I think this is the same problem as #4865 isn't it?

@e-dard most likely, yes. Backslashes are problematic because of their ability to escape themselves and spaces.

closing as dupe of #4865