ADD: lambda transform

IMPORTANT: Please do not create a Pull Request without creating an issue first.
Before submitting (must do checklist)

[ ] Did you read the contribution guide?
[ ] Did you update the docs? We use Numpy format for all the methods and classes.
[ ] Did you write any new necessary tests?
[ ] Did you update the CHANGELOG?

Type of Change

[ ] Examples / docs / tutorials / contributors update
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] Improvement (non-breaking change which improves an existing feature)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Proposed Changes

Related Issue

Closing issues

closes #762

Codecov Report

Merging #772 (f5cd0c3) into master (d5e6c8a) will decrease coverage by 0.06%.
The diff coverage is 92.00%.

@@            Coverage Diff             @@
##           master     #772      +/-   ##
==========================================
- Coverage   83.72%   83.65%   -0.07%
==========================================
  Files         122      123       +1
  Lines        6776     6822      +46
==========================================
+ Hits         5673     5707      +34
- Misses       1103     1115      +12

Impacted Files
Coverage Δ

etna/analysis/outliers/hist_outliers.py
77.07% <0.00%> (ø)

etna/transforms/math/apply_lambda.py
95.45% <95.45%> (ø)

etna/clustering/distances/base.py
87.23% <100.00%> (ø)

etna/transforms/__init__.py
100.00% <100.00%> (ø)

etna/transforms/math/__init__.py
100.00% <100.00%> (ø)

etna/transforms/math/statistics.py
99.28% <100.00%> (ø)

etna/libs/tsfresh/significance_tests.py
31.88% <0.00%> (-14.50%)
:arrow_down:

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

We have issue with __repr__() for this transform: for example
print(LambdaTransform(in_column="target", transform_func=transform_function, inplace=False).__repr__()`)
>>> "LambdaTransform(in_column = 'target', transform_func = None, inplace = False, out_column = None, inverse_transform_func = None, )"

This is potential problem with missed-duplicated features


Cleanup CASESession and PASESession lifetime

Problem
CASESession and PASESession objects cannot be freed or reused when OnSessionEstablished and OnSessionEstablishmentError delegate methods are executed.  Instead, historically, code needed to wait for one more iteration of the event loop before freeing or reusing these objects.
This was in part due to the problem identified in and fixed by #12794, where these objects needed to persist in order for the ExchangeMessageDispatch::SendMessage call for the final ACK of session establishment to be sent.  Instead, with #12794, SendMessage uses the SessionEstablishmentExchangeDispatch global singleton.
But there are two other things that prevent immediate free or reuse of the CASESession and PASESession objects on execution of completion callbacks: these objects clear their references to their exchange contexts at completion, but do not clear themselves as delegates to their exchange contexts.  The object's methods can also continue to access instance memory after execution of the callbacks.
Change overview
This commit adds code to CASESession and PASESession to always clear themselves as delegates to their exchange contexts before clearing their references to their exchange contexts, and reorders calls to mDelegate->OnSessionEstablished and mDelegate->OnSessionEstablishmentError to occur last in any given method
in case mDelegate frees or reuses the CASESession or PASESession objects on execution of the completion callbacks.
Additionally, this removes the code in the OperationalDeviceProxy that was deferring release of the CASESession object until after an iteration of the event loop.  Now when OnSessionEstablished fires, the CASESession can be reused or discarded immediately.
Fixes #13146
Testing
TestCASESession, TestPASESession and all other unit tests pass.  We also expect asan to show clean CI runs with this.
This was also manually tested and seen to fix #13146 in the original feature branch for #13294 where this problem had first been identified.

@gjc13 ,
This PR removes a workaround introduced in #12148, where release of CASESession needed to be deferred.
Please take a look if you are able.

I wonder whether we should factor out this two-call sequence, with the comments, into a helper method...

In fact, maybe mExchangeContext should move up to PairingSession, and the helper method should live there?  Followup probably better for that sort of refactoring.

I wonder whether we should factor out this two-call sequence, with the comments, into a helper method...

In fact, maybe mExchangeContext should move up to PairingSession, and the helper method should live there? Followup probably better for that sort of refactoring.

It would be my preference not to do this in this PR.

@msandstedt - conflicts

@msandstedt - conflicts

Conflicts are fixed.  Now just need to fix top of tree...

Approving, but let's do a followup to consolidate the must-be-done-just-so code.

Helpers were added to CASESession and PASESession with https://github.com/project-chip/connectedhomeip/pull/13357/commits/ba75737d6e030410ba9511b689d03995e1394105.  But followup filed here: #13383.


Create puph.txt

Plovdiv University "Paisii Hilendarski"

@ivstefano I am sorry for a delay with processing your request. Regrettably, I have to close this request without merging, because you requested to add a non-existent domain to this repository:
$ host puph.edu
Host puph.edu not found: 3(NXDOMAIN)

Please ensure that you are familiar with this repository rules located at the bottom of this page and submit a new request with correct information. Thank you for the understanding!


how to select root DOM element rendered with mount

With this example:
class Foo extends Component {
  render () {
    return
{this.props.foo}

  }
}

...

const wrapper = mount(<Foo foo="bar" />)
const div = wrapper // which method do I call to select the root rendered node of a wrapper?
expect(div.prop('className')).to.equal('foo')

How do I select the root rendered node of a mount wrapper? Note I'm not asking about how to select the div in this particular example (eg. .find('div'), .find({className: 'foo'}). I want to select the root rendered node of this wrapper so that I can assert something about it, so I can't select by the type nor by its props.
@Aweary this is kind of related to the issue you just posted #445 because basically what I'm asking is, when using mount, how do I select the node that shallow always returns

Are you looking for instance? This would give you the root node that you rendered.

@finaiized thanks! but no, I want the root DOM element that was rendered

Wouldn't you just query for it like anything else since wrappers are just a HOC? So if your component renders a  at top level you just do wrapper.find('span')
I don't really see the need for a separate method for getting that.

if you have a component that conditionally renders either a span or a div then that doesn't work. The point is that without a method that selects the top level rendered element you're always forced to assume something about it to be able to select it, which in some cases defeats the purpose of the test, because whatever I'm forced to assume to be able to select is exactly what I wanted to test. makes sense?

feels moot. If it conditionally renders that. You are going to know what condition triggers which, and test for both of those. And if that is the only use case I don't see the benefit of an API here still, seems too one-off.

another problem is that by selecting all div elements I'm potentially getting much more than the root element, is the root element guaranteed to always be .find('div').first() (if the root element is a div)? if it is indeed guaranteed to always be the first then that's enough for me

Pretty sure. Can't see any reason why it wouldn't be? Worth some investigation. But I think so.

yep, from looking at https://github.com/airbnb/enzyme/blob/master/src/MountedTraversal.js#L245 it does look like the array of nodes outputted by find is ordered from parent to child, so the root div should be the first. this can be closed now then, thanks @blainekasten


Fix: Exception "MauiContext should have been set on parent" when removing a child from its parent layout on iOS

We experienced the same issue as described in issue #97 in our project and the suggested solution fixed it for us.

@LuckyDucko, I wonder if this can be merged? https://github.com/LuckyDucko/Mopups/issues/128

This would be awesome to get merged in ASAP. We have a release in 2 weeks and have a need to remove UI elements from the popup and this is blocking.


pip installation error: No matching distribution found for nets

When I tried to install nets, an error showed in terminal which didn't happen before when I installed other libraries.

Please help me figure out which wrong happened.
Thanks ahead!!

I solved this by adding sys.path!
Thanks to the link below.
https://github.com/tensorflow/models/issues/1842


Fix refund transaction so nLockTime actually has an effect

Coverage remained the same at 89.36% when pulling 2b5a4321a2ef0734c73016d67fe031a7f988c436 on fix/refund into 89d5157616f00ba80c4d0cf8a801d6e7af6251ca on master.

ACK. we should probably encapsulate this nLockTime+nSequence combo in some high level Transaction methods. Related: https://github.com/bitpay/bitcore/pull/1048


Unable to attach debugger because "TraceModule.getBase()" is null

Describe the bug
I am trying to debug a music tool called "Reaper". When attempting to attach the debugger dbgeng-attach to an existing instance of Reaper, it fails and I get the following error:
Cannot invoke "ghidra.program.model.address.Address.getAddressSpace()" because the return value of "ghidra.trace.model.modules.TraceModule.getBase()" is null
java.lang.NullPointerException: Cannot invoke "ghidra.program.model.address.Address.getAddressSpace()" because the return value of "ghidra.trace.model.modules.TraceModule.getBase()" is null
	at ghidra.app.plugin.core.debug.service.modules.ProgramModuleIndexer.getBestMatch(ProgramModuleIndexer.java:386)
	at ghidra.app.plugin.core.debug.service.modules.DebuggerStaticMappingProposals$ModuleMapProposalGenerator.proposeBestMap(DebuggerStaticMappingProposals.java:144)
	at ghidra.app.plugin.core.debug.service.modules.DebuggerStaticMappingProposals$ModuleMapProposalGenerator.proposeBestMaps(DebuggerStaticMappingProposals.java:158)
	at ghidra.app.plugin.core.debug.service.modules.DebuggerStaticMappingServicePlugin.proposeModuleMaps(DebuggerStaticMappingServicePlugin.java:582)
	at ghidra.app.plugin.core.debug.gui.action.ByModuleAutoMapSpec.performMapping(ByModuleAutoMapSpec.java:104)
	at ghidra.app.plugin.core.debug.gui.tracermi.launcher.AbstractTraceRmiLaunchOffer.invokeMapper(AbstractTraceRmiLaunchOffer.java:195)
	at ghidra.app.plugin.core.debug.gui.tracermi.launcher.AbstractTraceRmiLaunchOffer.waitForModuleMapping(AbstractTraceRmiLaunchOffer.java:594)
	at ghidra.app.plugin.core.debug.gui.tracermi.launcher.AbstractTraceRmiLaunchOffer.launchProgram(AbstractTraceRmiLaunchOffer.java:665)
	at ghidra.app.plugin.core.debug.gui.tracermi.launcher.TraceRmiLauncherServicePlugin$ConfigureAndLaunchTask.run(TraceRmiLauncherServicePlugin.java:123)
	at ghidra.app.services.ProgressService.lambda$execute$0(ProgressService.java:123)
	at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
	at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)

However, attaching to other programs work as intended. It is just this software that fails for me.
To Reproduce
Steps to reproduce the behavior:

Get a portable installation of Reaper from https://www.reaper.fm/download.php
Create new Ghidra project and decompile reaper.exe
Launch Reaper manually outside Ghidra
Launch Ghidra debugger and attach to Reaper with these settings:

It shows the error message

Expected behavior
It successfully attaches to the program.
Screenshots

Attachments
Application log: application.log
Environment (please complete the following information):

OS: Windows 10, 64 bit
Java Version: openjdk version "21.0.2" 2024-01-16
Ghidra Version: 11.2
Ghidra Origin: official GitHub distro

Additional context
Add any other context about the problem here.

@jamesWalker55 Sadly, I'm unable to reproduce your problem.  I installed Reaper and attached without error.  I am admittedly using Windows 11, but I can't imagine that's the difference.  Can you tell us what version of python you're using and have you installed dbgeng via the Windows Kit or are you using the stock version in Windows 10?
Also, maybe a couple of experiments....  If you respond "Keep" to the dialog you got, are you able to debug the target afterwards?  (i.e. could be just timing out on some task).  Could you also try it with "dbgmodel" de-selected in the dialog and see if you get different result?  Appreciate your time trying to track this down!

Thanks for taking the time to have a look!
I'm using Python 3.12.5 on Windows 10. I'm not sure about dbgeng, I'm using the one in C:/Windows/System32 so I'm guessing it's the stock version in Windows 10.
Here's a recording of responding "Keep" then trying to resume execution. It seems to attach successfully, but I do see a bunch of errors in the terminal while debugging:
https://github.com/user-attachments/assets/1e83ca6e-9da9-4482-a340-81b3b0761a28
It doesn't show the error when I deselect "dbgmodel", and also seems to attach:
https://github.com/user-attachments/assets/2755bb2b-6108-4872-b8a8-66dc8e6624d5


Feature/GitHub downloads

This PR adds functionality to the OSS Tracker that allows you to:

Generate a report with the total numbers of downloads to date (in total, per project, and per release).
View a line chart that shows evolution of downloads (total, project, release) over time

https://github.com/Netflix/osstracker/issues/33


Syntax check - "" not found, findTop(check_syntax)

Hello,
I have a syntax error which is not an error in SAP himself.

You can use this code in playground to reproduce.
REPORT zfoobar.

DATA lv_source_hex TYPE xstring.
DATA lv_source TYPE char16.

GET BIT sy-index OF lv_source_hex INTO DATA(lv_res).
lv_source = lv_source && lv_res.

Thanks a lot!
Best regards,
Dominik

@dpuerner try again, 2.94.23 published

This bug is now fixed as well - fantastic :-) Thanks a lot!


用PAI运行最后一步app.py报错了

2024-01-10 16:04:52,949 - modelscope - INFO - PyTorch version 2.0.0+cu118 Found.
2024-01-10 16:04:52,950 - modelscope - INFO - Loading ast index from /root/.cache/modelscope/ast_indexer
2024-01-10 16:04:52,977 - modelscope - INFO - Loading done! Current index file version is 1.10.0, with md5 5398b58e0d67af7738c6360ae1dc1d3b and a total number of 946 components indexed
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/diffusers/utils/import_utils.py", line 710, in _get_module
return importlib.import_module("." + module_name, self.name)
File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/usr/local/lib/python3.10/dist-packages/diffusers/loaders/lora.py", line 57, in
from accelerate.hooks import AlignDevicesHook, CpuOffload, remove_hook_from_module
ImportError: cannot import name 'CpuOffload' from 'accelerate.hooks' (/usr/local/lib/python3.10/dist-packages/accelerate/hooks.py)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/diffusers/utils/import_utils.py", line 710, in _get_module
return importlib.import_module("." + module_name, self.name)
File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/usr/local/lib/python3.10/dist-packages/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py", line 24, in
from ...loaders import FromSingleFileMixin, IPAdapterMixin, LoraLoaderMixin, TextualInversionLoaderMixin
File "", line 1075, in _handle_fromlist
File "/usr/local/lib/python3.10/dist-packages/diffusers/utils/import_utils.py", line 700, in getattr
module = self._get_module(self._class_to_module[name])
File "/usr/local/lib/python3.10/dist-packages/diffusers/utils/import_utils.py", line 712, in _get_module
raise RuntimeError(
RuntimeError: Failed to import diffusers.loaders.lora because of the following error (look up to see its traceback):
cannot import name 'CpuOffload' from 'accelerate.hooks' (/usr/local/lib/python3.10/dist-packages/accelerate/hooks.py)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/lingtian/data/nora/facechain/app.py", line 16, in
from facechain.inference import preprocess_pose, GenPortrait
File "/lingtian/data/nora/facechain/facechain/inference.py", line 10, in
from diffusers import StableDiffusionPipeline, StableDiffusionControlNetPipeline, ControlNetModel,
File "", line 1075, in _handle_fromlist
File "/usr/local/lib/python3.10/dist-packages/diffusers/utils/import_utils.py", line 701, in getattr
value = getattr(module, name)
File "/usr/local/lib/python3.10/dist-packages/diffusers/utils/import_utils.py", line 701, in getattr
value = getattr(module, name)
File "/usr/local/lib/python3.10/dist-packages/diffusers/utils/import_utils.py", line 700, in getattr
module = self._get_module(self._class_to_module[name])
File "/usr/local/lib/python3.10/dist-packages/diffusers/utils/import_utils.py", line 712, in _get_module
raise RuntimeError(
RuntimeError: Failed to import diffusers.pipelines.stable_diffusion.pipeline_stable_diffusion because of the following error (look up to see its traceback):
Failed to import diffusers.loaders.lora because of the following error (look up to see its traceback):
cannot import name 'CpuOffload' from 'accelerate.hooks' (/usr/local/lib/python3.10/dist-packages/accelerate/hooks.py)

解决了。。。
要pip install --upgrade accelerate


Modern approach with 'package_manager' is not fully supported

Inventory format was migrated from services.yum.repositories section to services.packages.package_manager.repositories, but it is still not fully supported. I found the following problems:

migrate_cri procedure still considers old format. Corresponding section in documentation
backup procedure copies yum repositories but forgets about /etc/apt/sources.list.d/

migrate_cri procedure still considers old format.

This will likely be solved in #533


pkgs/stdenv/darwin: move bootstrap files definitions to bootstrap-fil…

…es/ directory
The change moves definition of bootstrap files slightly closer to linux structure to eventually allow those to update in bulk: https://github.com/NixOS/nixpkgs/issues/253713
Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

On linux host tested the following, it's a no-op:
$ nix build -f. hello --argstr system x86_64-darwin; nix build -f. hello --argstr system aarch64-darwin;

My mild worry is on inherit (localSystem) system;. I think it's removal should be a no-op on darwin as well. But mentioning it just in case.

@ofborg eval


Optimize method performance; note that output dataframes are different

@aclerc
This is not ready for merge.
The calc_wsratio_v_wd function is faster, but expected_df and actual_df don’t match. It looks like the issue might be that when subsector_df is empty, direction and hour data aren’t being added. This commit include them right now .
detrend_df["circ_diff_to_d"] = circ_diff(detrend_df[ref_wd_col], d)
detrend_df["within_dir_bin"] = detrend_df["circ_diff_to_d"].abs() < dir_bin_width / 2
subsector_df = detrend_df[detrend_df["within_dir_bin"]].copy()
if len(subsector_df) > 0:

Can you check the commit for any other mistake.

Hi @izofat no worries, since you say it is not ready to merge I have converted it to draft. You can undo that when it is ready. I had a quick look at your changes and I do not see the reason for the test failure at first glance. The ruff format check is not passing so I would fix ruff issues next so that the test result is displayed in the github action. Seeing the test results will make it easier to tell what's wrong with the logic.

Hi,@aclerc
I've made some changes and I'm wondering about coverage reports. There are differences between the coverage reports of the updated code and the original code, including test counts, which I'll include below for you to review.
I'll continue working on making the code faster.
Coverage reports with original code
============================================== 90 passed in 57.15s ==============================================
Poe => coverage report -m
Name                           Stmts   Miss  Cover   Missing
------------------------------------------------------------
wind_up/__init__.py                2      0   100%
wind_up/caching.py                28     13    54%   24-38
wind_up/combine_results.py        93     18    81%   58-59, 92-93, 104-105, 121, 133, 139-153
wind_up/constants.py              37      1    97%   32
wind_up/conversions.py             7      0   100%
wind_up/detrend.py               143     32    78%   103-105, 109-111, 129, 139-151, 177-178, 206-215, 248-251, 291-292, 304, 309-334
wind_up/interface.py             100     68    32%   25-26, 29-45, 51-102, 125-135, 152-181, 192-204
wind_up/long_term.py              70     16    77%   26, 29, 35-36, 39, 42, 72-73, 75-76, 83-84, 108-112, 126, 168
wind_up/main_analysis.py         357    296    17%   48-50, 60-61, 65-80, 91-145, 149-173, 189-232, 242-243, 272-273, 296-297, 313-320, 326-363, 379-435, 455-746, 750-773, 782-925
wind_up/math_funcs.py              8      0   100%
wind_up/models.py                220     20    91%   273-274, 280-281, 289-290, 292-293, 318-319, 384-385, 391-392, 418-424
wind_up/northing.py               75      6    92%   57, 74-75, 84, 100, 130
wind_up/northing_utils.py          7      0   100%
wind_up/optimize_northing.py     262     36    86%   157, 159, 161, 163, 165, 168, 171, 272-273, 281-282, 316-317, 384, 392-400, 403-404, 445, 528, 611-620, 639-640, 653, 662-663
wind_up/pp_analysis.py           231     77    67%   100-101, 180, 193, 257-275, 381-383, 398-404, 438-549
wind_up/reanalysis_data.py        87      7    92%   44-45, 74, 157, 177-178, 189
wind_up/result_manager.py         10      0   100%
wind_up/scada_funcs.py           241     47    80%   62-63, 152-155, 204-205, 261, 285-286, 347-358, 444-445, 454-491, 502-522
wind_up/scada_power_curve.py      52      9    83%   43-44, 75-77, 79-80, 82-83
wind_up/smart_data.py            102     18    82%   22-23, 35, 47-51, 55-56, 58-59, 66-67, 97-98, 108-109, 112, 154-155
wind_up/waking_state.py          151     23    85%   62-76, 179-180, 213-214, 237-239, 269, 272, 280, 288-289
wind_up/wind_funcs.py              5      0   100%
wind_up/windspeed_drift.py        37      6    84%   29-30, 36, 59, 70, 72
wind_up/ws_est.py                 76     10    87%   80, 94-95, 102-103, 129-138
wind_up/yaml_loader.py            19      2    89%   12-13
------------------------------------------------------------
TOTAL                           2420    705    71%

Coverage reports with the updated code
============================================== 99 passed in 51.41s ==============================================
Poe => coverage report -m
Name                           Stmts   Miss  Cover   Missing
------------------------------------------------------------
wind_up/__init__.py                2      0   100%
wind_up/backporting.py            12      7    42%   10-16
wind_up/caching.py                28     13    54%   24-38
wind_up/combine_results.py        96     19    80%   16, 62-63, 96-97, 108-109, 125, 137, 143-157
wind_up/constants.py              37      1    97%   32
wind_up/conversions.py             7      0   100%
wind_up/detrend.py               149     34    77%   19, 79, 124-126, 130-132, 150, 160-172, 198-199, 227-236, 269-272, 312-313, 325, 330-355
wind_up/interface.py             103     70    32%   22-24, 30-31, 34-50, 56-107, 130-140, 157-186, 197-209
wind_up/long_term.py              73     17    77%   14, 30, 33, 39-40, 43, 46, 76-77, 79-80, 87-88, 112-116, 130, 172
wind_up/main_analysis.py         358    296    17%   50-52, 62-63, 67-82, 93-147, 151-175, 191-234, 244-245, 274-275, 298-299, 315-322, 328-365, 381-437, 457-748, 752-775, 784-927
wind_up/math_funcs.py              9      0   100%
wind_up/models.py                222     20    91%   276-277, 283-284, 292-293, 295-296, 321-322, 387-388, 394-395, 421-427
wind_up/northing.py               78      7    91%   21, 61, 78-79, 88, 104, 134
wind_up/northing_utils.py          7      0   100%
wind_up/optimize_northing.py     266     39    85%   33-37, 164, 166, 168, 170, 172, 175, 178, 279-280, 288-289, 323-324, 391, 399-407, 410-411, 452, 535, 618-627, 646-647, 660, 669-670
wind_up/pp_analysis.py           234     78    67%   17, 104-105, 184, 197, 261-279, 385-387, 402-408, 442-553
wind_up/reanalysis_data.py        90      8    91%   18, 48-49, 78, 161, 181-182, 193
wind_up/result_manager.py         10      0   100%
wind_up/scada_funcs.py           244     48    80%   24, 67-68, 156-159, 208-209, 265, 289-290, 351-362, 448-449, 458-495, 506-526
wind_up/scada_power_curve.py      55     10    82%   12, 47-48, 79-81, 83-84, 86-87
wind_up/smart_data.py            102     18    82%   22-23, 35, 47-51, 55-56, 58-59, 66-67, 97-98, 108-109, 112, 154-155
wind_up/waking_state.py          154     24    84%   23, 67-81, 184-185, 218-219, 242-244, 274, 277, 285, 293-294
wind_up/wind_funcs.py              8      1    88%   7
wind_up/windspeed_drift.py        40      8    80%   11-13, 36-37, 43, 66, 77, 79
wind_up/ws_est.py                 79     11    86%   12, 85, 99-100, 107-108, 134-143
wind_up/yaml_loader.py            19      2    89%   12-13
------------------------------------------------------------
TOTAL                           2482    731    71%

Hi @izofat regarding your latest comment I see backporting.py is in the second coverage report but not the first, so I think the first coverage report does not include changes from the recent PR #17 which changed many files. I can see that your PR only changes one file so far, detrend.py, so I would focus on the coverage of that file.

@aclerc
I've fixed the issue about the test count.
But I'm seeing some differences in the coverage reports of detrend
I can guess what stmts, miss, cover, missing all about but I wanna know what those are exactly. Maybe that can help why this difference exist.
Original
Name                           Stmts   Miss  Cover   Missing
------------------------------------------------------------
wind_up/detrend.py               146     33    77%   19, 107-109, 113-115, 133, 143-155, 181-182, 210-219, 252-255, 295-296, 308, 313-338

Updated
Name                           Stmts   Miss  Cover   Missing
------------------------------------------------------------
wind_up/detrend.py               149     34    77%   19, 79, 124-126, 130-132, 150, 160-172, 198-199, 227-236, 269-272, 312-313, 325, 330-355

Hi @izofat I think I am the same as you, I can guess what Stmts, Miss, Cover, and Missing mean but for precise definitions I would look at https://coverage.readthedocs.io/en/latest/

@aclerc
Thanks for mentioning coverage reports.
I did some research about coverage reports.
It seems like it's completely normal to change because the code have been changed.
It's ready to merge now.
Here what i did to make it faster without changing the calculations.
Filtering Efficiency: Combined the filtering of test_ws_col and ref_ws_col into a single step, minimizing the number of operations on detrend_df.
Vectorized Circular Differences: Replaced the sequential loop calculating circular differences with a vectorized Numpy array, significantly speeding up the computation for each direction bin.

Thanks @izofat I have put this review on my to-do list. What is the run time difference before and after your changes? Just for the test cases is fine or if you've benchmarked something else as well like the smarteole example that would be nice info.

Hi @izofat , thank you for looking in to this optimization! I added a few commits to use pytest-benchmark to measure run time. The results I got are below. pr/24 looks a little faster but overall the performance is similar to main. I am not an optimization expert but I wonder if it would be faster to avoid calculating circ_diff at all. If detrend_df were ordered by ref_wd_col then it should be straightforward to select the rows which are within_dir_bin, just would need to handle 0-360 wrapping correctly. What do you think?
main
------------------------------------------------ benchmark: 1 tests ------------------------------------------------
Name (time in s)                   Min     Max    Mean  StdDev  Median     IQR  Outliers     OPS  Rounds  Iterations
--------------------------------------------------------------------------------------------------------------------
test_calc_wsratio_v_wd_scen     1.3951  2.6441  1.7732  0.5346  1.4863  0.7069       1;0  0.5640       5           1
--------------------------------------------------------------------------------------------------------------------

pr/24
------------------------------------------------ benchmark: 1 tests ------------------------------------------------
Name (time in s)                   Min     Max    Mean  StdDev  Median     IQR  Outliers     OPS  Rounds  Iterations
--------------------------------------------------------------------------------------------------------------------
test_calc_wsratio_v_wd_scen     1.1355  2.0814  1.3855  0.4067  1.1472  0.4392       1;0  0.7218       5           1
--------------------------------------------------------------------------------------------------------------------

Hi @aclerc,
Test result seems better than i calculated :).
%20 down at mean time and aproximently %25 increase at Operation per second (OPS).
This is very good if the project that requires too frequent use of calc_wsratio_v_wd and we done this by just changing the base code not the logic.
The main reasons why functions are slow in the project is not doing one thing completely.
You are trying to do a part of each task in every iteration of the loop, instead of completing one task at a time.
Instead of that we should try to do things in order like calculating all the cirr_diffs first then going in to loop.
About the avoiding calculating the cirr_diff I don't have a certain clue about that. Ordering the dataframe would be faster with pandas than applying a math function to the dataframe. I think we should give it a change.
I have not been contributing for a while sorry about that. My college start next week and my project at work goes into production next week.
I will try to spend more time in the project next week.
Thanks for the feedback.
Best regards.
Gorkem

Hi @izofat , re "what is the most used function in the project" I did try to run the PyCharm profiler on a full analysis but I struggled to interpret the results. I am sure the key area to optimize will be in the function calc_test_ref_results because that has to run for every test-reference combination. The part that usually takes the most time is pre_post_pp_analysis_with_reversal_and_bootstrapping but detrending steps also take a long time. I am pretty confident that the tests test_detrend.py (relevant to detrending) and test_pp_analysis.py (relevant to pp_analysis) are the key focus areas.


refactor: Introduce Abstract Base Class Model and add fit and predict methods to Table

Is your feature request related to a problem?

Inconsistency: For Transformers, we have both a transform method in the Transformer class as well as a transform_table in the Table class. For the (models' and transformers') fit methods, there is no such method inside the Table class.
Classifiers and Regressors share API design and conceptual functionality, but there is no suitable common super type that allows for uniform handling.

Desired solution
Introduce new class Model as parent class for Classifier and Regressor.
Introduce methods:

fit_model(Model) to Table class
fit_transformer(Transformer) to Table class
predict(Model) to Table class
(Analogous to transform_table method in Table class.)

Override these appropriately in TaggedTable (see #58).

So far, this superclass is something I've deliberately avoided since I don't see much use in it.

There are different types of ML models, which require different training data. Classifiers and regressors are both supervised models, requiring labeled data (TaggedTable). Unsupervised models, for example, could work with a normal Table. Therefore, at best we could create a SupervisedModel class and make Classifier and Regressor subclasses of that.
Even then, we usually need to know whether we are dealing with a classifier or regressor, or we wouldn't be able to use any metrics.
Because of this, we would also need multiple methods on Table or its subclasses (e.g. fit_supervised_model on TaggedTable or fit_unsupervised_model on Table).
Unsupervised models also don't make predictions, so we also can't just add a predict method to Table but need multiple.
We might also want to train / make predictions with supervised models on other types of data like images, so those also need additional methods.

Overall, I think this proposal pollutes the data containers too much. Moreover, it introduces a cyclic dependency between the data package and the ml package, which can lead to numerous problems in Python. At the moment we only have a dependency from ml to data, which also matches the conceptual model I have of the domain (you need data to do ML but don't need ML to work with data).
Because of this, I'd strongly vote against

Model class
fit_model method
predict method

I also don't like fit_transformer on Table since it works mostly on the Transformer rather than the Table and, thus, belongs to the Transformer class. This is opposes to transform_table, which mostly works on the Table, so it makes sense to have it in the Table class. The transform methods on Transformer are just necessary to have different transformation methods (Strategy design pattern).
This leaves a potential SupervisedModel ABC, with Classifier and Regressor as subclasses. But I'd only add that once we have a use case for it.

Superseded by #377.


It doesn't work with custom routes

My routes are defined as a custom class (i.e.: final class SomeRoute extends GoRoute). Also, that's the way go_router_builder works.
But there is a wrong type check in this package that throws a type cast exception:
https://github.com/JakesMD/flutter_go_router_tabs/blob/15ac32687242d56323070e22aff183bc87c9b082/lib/src/tab_shell_route.dart#L198
This will fail because route.runtimeType is SomeRoute in my case, not GoRoute.
The correct type checking should be if(route is GoRoute).

Yep ok sorry. I'll fix it by tomorrow

Behind the scenes the TabShellRoute creates new GoRoutes in order to set the builder and page builder. It wouldn't create SomeRoute.
I admit I hadn't thought of this when designed the package which was a bit silly of me.
I think one way to fix this would be to make the routes list a List<RouteBase> Function(builder, pageBuilder). This would require a breaking change.
Your code would then look something like this:
TabShellRoute(
  routes: (builder, pageBuilder) {
    return [
      GoRoute(),
      SomeRoute(pageBuilder: pageBuilder);
    ]
  }
)

As I said I'll look into it as soon as I can. Thanks for submitting the issue!

TBO, this package didn't work for me, I could not make it work in my setting.
But, that type checking is just plain wrong, and no break change will occur if you use
if (route is GoRoute) {

route, in my case, is NEVER GoRoute. It is my custom route class OR shellroute.

0.3.0 now allows for custom GoRoutes or ShellRoutes or whatever. TabShellRoute no longer does any conversion behind the scenes so your SomeRoute will be conserved just as you define it.
In your case the code would look something like this:
TabShellRoute(
  subPageBuilder: (context, state, direction, child) {
    return TabTransitionPage(
      key: state.pageKey,
      child: child,
      direction: direction,
      transitionsBuilder: TabTransitionPage.verticalSlideFadeTransition,
    );
  },
  routes: (subPageBuilder, direction) => [
    GoRoute(
      path: "/first",
      pageBuilder: (context, state) => subPageBuilder!(
        context,
        state,
        child: const FirstScreen(),
      ),
    ),
    SomeRoute(
      path: "/second",
      pageBuilder: (context, state) => subPageBuilder!(
        context,
        state,
        child: const SecondScreen(),
      ),
    ),
  ],
).toShellRoute,

I'm sorry the package didn't work for you. But thanks for submitting the issue all the same because now the package has improved quite a bit :)


Suggestion: Show which language you completed specific kata with.

Something like this, would be helpfull to know which language you used to complete kata.

There is already such a feature implemented on the /users/username/completed page, so it shouldn't be hard to add it to the /kata page too:

Is there any news on that?
It seems like a small change but that would instantly make codewars much more useful for learning new languages. Right now there is no simple way of solving easy puzzles (which I have solved in other languages) when I want to train something new.
I have seen a lot of similar suggestions with no concrete answer.

There's no such thing in CodeWars directly, but you could give a try to #1758

@hobovsky I did! It kind of works but doesn't seem to update when I solve new ones. Is it linked to the 12 hours schedule of "Next stats refresh" ?

No, for the time being, the script updates the list of solved kata only when you enter "Solutions" tab in your profile. Better mechanism is under construction, just did not get to finishing it :)

@hobovsky Works great! Skipped that part of the README apparently. Maybe you should put it at the top.


iTerm2 falls back to half-block printing inside tmux

Despite the fact that iTerm's image escape sequences and indeed its imgcat script seems to work inside tmux, viu will fall back to half-block rendering.
TERM_PROGRAM is equal to tmux inside tmux but exporting TERM_PROGRAM=iTerm.app manually doesn't seem to help either; this results in nothing being printed at all.
Is this something that was/can be considered inside viuer?
Edit:
quoting the imgcat script:
# tmux requires unrecognized OSC sequences to be wrapped with DCS tmux;
# <sequence> ST, and for all ESCs in <sequence> to be replaced with ESC ESC. It
# only accepts ESC backslash for ST. We use TERM instead of TMUX because TERM
# gets passed through ssh.
function print_osc() {
    if [[ $TERM == screen* ]]; then
        printf "\033Ptmux;\033\033]"
    else
        printf "\033]"
    fi
}

Upon further inspection it seems iTerm's image protocol support inside tmux is spotty and doesn't always work.
Is this why it wasn't included in viu? Anyhow, closing.

Thanks for raising the issue & sorry for the delay! I never really wanted to get into the whole tmux + custom protocols mess. I'm afraid it gets too ugly too quickly for me to handle.

Completely understand. Just from my initial testing with imgcat it seemed to work hence why I opened the issue.
After integrating the required change into iterm.rs and previewing more images I noticed issues and came across the relevant threads describing said issues. I agree its probably not possible/worth it to handle this edge case indeed.


add arch linux/amd64 to Docker image sqlc/sqlc

Version
1.20.0
What happened?
Since version 1.8.0 in docker hub the image is only pushed for linux/arm64, is it possible to add amd64 as before.
Thank you.
Relevant log output
No response
Database schema
No response
SQL queries
No response
Configuration
No response
Playground URL
No response
What operating system are you using?
Windows
What database engines are you using?
PostgreSQL
What type of code are you generating?
Go

Duplicate of https://github.com/sqlc-dev/sqlc/issues/2609


invalid token

Hi,
When I try to start this bot I get a few errors and a invalid token error, while the token in the .env is valid.
Not sure what's going on here..
root@pterodata:/srv/bots/giveaway# node index.js {MongoDB Event Handler} - "connected" event registered. {MongoDB Event Handler} - "connecting" event registered. {MongoDB Event Handler} - "disconnedted" event registered. {MongoDB Event Handler} - "err" event registered. (node:25464) [MONGOOSE] DeprecationWarning: Mongoose: the strictQueryoption will be switched back tofalseby default in Mongoose 7. Usemongoose.set('strictQuery', false);if you want to prepare for this change. Or usemongoose.set('strictQuery', true);to suppress this warning. (Usenode --trace-deprecation ...` to show where the warning was created)
[MONGO DB]: Error: MongoParseError: Invalid scheme, expected connection string to start with "mongodb://" or "mongodb+srv://"
/srv/bots/giveaway/node_modules/discord.js/src/client/Client.js:216
if (!token || typeof token !== 'string') throw new DiscordjsError(ErrorCodes.TokenInvalid);
^
Error [TokenInvalid]: An invalid token was provided.
at Client.login (/srv/bots/giveaway/node_modules/discord.js/src/client/Client.js:216:52)
at Object. (/srv/bots/giveaway/index.js:112:8)
at Module._compile (node:internal/modules/cjs/loader:1233:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1287:10)
at Module.load (node:internal/modules/cjs/loader:1091:32)
at Module._load (node:internal/modules/cjs/loader:938:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
at node:internal/main/run_main_module:23:47 {
code: 'TokenInvalid'
}
Node.js v20.5.1`

Please check that all your bot intents are turn on, check your db allows connection from everywhere and check the index.js file if your token get called from the .env file instead of the config file.

Hi,
All intents are on. And is mongodb required? Since I only use mysql/mariadb.
And after pasting the token also in the config.json the bot gives an api error now instead.
`
root@pterodata:/srv/bots/giveaway# node index.js
{MongoDB Event Handler} - "connected" event registered.
{MongoDB Event Handler} - "connecting" event registered.
{MongoDB Event Handler} - "disconnedted" event registered.
{MongoDB Event Handler} - "err" event registered.
(node:25574) [MONGOOSE] DeprecationWarning: Mongoose: the strictQuery option will be switched back to false by default in Mongoose 7. Use mongoose.set('strictQuery', false); if you want to prepare for this change. Or use mongoose.set('strictQuery', true); to suppress this warning.
(Use node --trace-deprecation ... to show where the warning was created)
[MONGO DB]: Error: MongoParseError: Invalid scheme, expected connection string to start with "mongodb://" or "mongodb+srv://"
[Event]   🎉 Loaded: endedGiveawayReactionAdded
[Event]   🎉 Loaded: giveawayEnded
[Event]   🎉 Loaded: giveawayReactionAdded
[Event]   🎉 Loaded: giveawayReactionRemoved
[Event]   🎉 Loaded: giveawayRerolled
[Event]   ✅  Loaded: interactionCreate
[Event]   ✅  Loaded: messageCreate
[Event]   ✅  Loaded: ready
/srv/bots/giveaway/node_modules/japi.rest/src/index.js:27
if (typeof this.key !== 'string' || !/^JAPI..{50,54}$/.test(this.key)) throw new Error('Invalid API Key');
^
Error: Invalid API Key
at JAPIRest.checkKey (/srv/bots/giveaway/node_modules/japi.rest/src/index.js:27:83)
at new JAPIRest (/srv/bots/giveaway/node_modules/japi.rest/src/index.js:7:10)
at Object. (/srv/bots/giveaway/slash/userinfo.js:9:18)
at Module._compile (node:internal/modules/cjs/loader:1233:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1287:10)
at Module.load (node:internal/modules/cjs/loader:1091:32)
at Module._load (node:internal/modules/cjs/loader:938:12)
at Module.require (node:internal/modules/cjs/loader:1115:19)
at require (node:internal/modules/helpers:130:18)
at /srv/bots/giveaway/index.js:101:17
Node.js v20.5.1
`

You have been using the old code on my repo. remove the userinfo.js file to get rid of the API issue. For my code infrastructure it's a MUST for the MongoDB to function the bot since it handle and store all the giveaway data. If you want to use a separate DB you'll have to recode the bot from ground up.


[swagger-zod] readOnly properties are omitted using .and, creating a intersection of never and original type

What version of kubb is running?
kubb/2.13.0 darwin-arm64 node-v20.11.1
What platform is your computer?
No response
What version of external packages are you using(@tanstack-query, MSW, React, Vue, ...)
zod:  3.22.4
What steps can reproduce the bug?
I have some readOnly properties, and the resulting zod schema attempts to omit them by using .and(z.object({ id: z.never() }). This results in an intersection which means both schemas have to pass. For a never and some other type, that isn't possible so the validation always fails. See https://zod.dev/?id=and for more on .and
zod has an .omit function that might be a better fit here: https://zod.dev/?id=pickomit
How often does this bug happen?
Every time
What is the expected behavior?
No response
Swagger/OpenAPI file?
No response
Additional information
No response

z.omit would not work for readonly properties. Those should still be visible in the schema but not be settable. Omit will remove the field, which is not something we want.
Not sure what we can do here with that readonly does not exist in Zod for one specific item(https://zod.dev/?id=readonly). That is only possible for the full object.

Another option is to use .extend instead of .and since that will overwrite the existing type instead of producing an intersection.
So you could just replace what is generated now with .extend(z.object({ id: z.never() }) and that should fail if id is present.

Extend only works on another object so we need to remove the zod.lazy and regenerate the Zod model when a read-only field is used. This makes it a little bit harder to fix it so not really sure what the best solution will be for this(without a big impact).

@stijnvanhulle this actually makes sense since zod implements .readonly() as an Object.freeze() but this wouldn't be possible with a partial object anyways - at least not from a runtime perspective.
This will probably just be a type-only implementation which could be achieved with .refine();
Maybe something like below which will result in a partial readonly typed object:
type SomeReadonly<Obj, Keys extends keyof Obj> = (
  Pick<Obj, Exclude<keyof Obj, Keys>>
  & Readonly<Pick<Obj, Keys>>
)

z.object().refine((input): input is SomeReadonly<typeof input, ReadonlyKeys> => {
  return true;
})

I can have a look at creating a PR if you want, sometime this week

That might be a good option in some cases. However it’s a little unclear to me what the goal is.
My goal is to have a validator that excludes readOnly properties so I can validate a form. I don’t really care if the form object actually contains those properties because my backend will ignore them. I’m trying to avoid defining a whole other set of objects in my schema that exclude those readOnly fields.
I don't need a type to enforce the read only status on a given object. Perhaps that’s useful for others cases tho.

Based on specification here:

Relevant only for Schema "properties" definitions. Declares the property as "read only". This means that it MAY be sent as part of a response but SHOULD NOT be sent as part of the request. If the property is marked as readOnly being true and is in the required list, the required will take effect on the response only. A property MUST NOT be marked as both readOnly and writeOnly being true. Default value is false.

I'd expect the property to not be visible in the request schema, only the response schema. The zod omit method seems appropriate here, rather than readonly.

I have the same problem. Readonly turn to .and(z.object({ id: z.never() }) that ends up with a condition that can't be met.
If you look at the type def generated by the swagget-ts plugin it interpret it as
export type CreateResourceMutationRequest = Omit<NonNullable<Resource>, "id">;
im my case the omit should be more appropriate. Where i do not need to expose this option in the request body.
import { z } from 'zod';

const idSchema = z.string();
const resourceSchema = z.object({
  id: z.lazy(() => idSchema).optional(),
  name: z.string(),
  relation: z.string().optional(),
});

describe('Readonly parsing with omit', () => {
  const createresourceMutationRequestSchema = z.lazy(() =>
    resourceSchema.omit({ id: true }),
  );

  test('Null id', () => {
    const res = createresourceMutationRequestSchema.parse({
      id: null,
      name: 'TestMock',
      relation: 'Significant other',
    });
    expect(res).toEqual({
      name: 'TestMock',
      relation: 'Significant other',
    });
  });
  test('No id', () => {
    const res = createresourceMutationRequestSchema.parse({
      name: 'TestMock',
      relation: 'Significant other',
    });
    expect(res).toEqual({
      name: 'TestMock',
      relation: 'Significant other',
    });
  });
  test('Faulty id', () => {
    const res = createresourceMutationRequestSchema.parse({
      id: 'faulty',
      name: 'TestMock',
      relation: 'Significant other',
    });
    expect(res).toEqual({
      name: 'TestMock',
      relation: 'Significant other',
    });
  });
});


Unit test and bug fixes

Fixed the bug where "incr 1" without descriptor is a valid command. Have yet to fix for decrement.
Added unit tests for increment command and increment command parser

LGTM


agent 1.3

I have a question, i've run agent with default config and i get errors like this in fille attached.
I also don't get any EJB traces, any idea how to get them ? I am attaching agent to the PID of my application instance but i don't see any EJB traces. I am attaching exceptions.log file.
Also i get weird output in jaeger ui for Database queries traces. Can you please help me or provide instruction how to get EJB traces ?
Also very good job for http traces !!
Attaching exceptions.log
exceptions.log

Where is the default config for EJB traces? Is there any ?

Also for Database queries i get output like this

Should it be like this with this $proxy indicator?

Also i can't map any configuration to the agents in newest ocelot-config server look at the screens

Hi @RRadziejewski
we're glad the HTTP tracing is working :)
The attached log file looks like you are trying instrument classes which are not located inside a package but inside the default one - so no package has been defined. This is currently not supported by the agent.
Regarding your question on the JDBC/EJB output in Jaeger: yes, that's correct.
The default configuration uses the actual class name as span name. Due to the fact, that your database queries are executed by an EJB proxy object, this is actually correct. The class name of your instances is in fact $Proxy345.
You are able to specify the span name by yourself, but it requires an adapted configuration which does not use the class name of the current instance as span name but using a different approach for that. You can find information on setting the span name in the documentation.
Currently, we have no ready-to-use configuration available for EJB, yet. Since we have limited development resources, we cannot provide configurations for all features and technologies, but are reliant on the community for this. However, if this is important to you, you can consider sponsoring the project so that we can implement this.

Hi @mariusoe
Thanks for the help !!
So HTTP AND JDBC is working as correct but i cannot find any information on how to instrument ejb over the web. I think it will be long journey :D i will attach my config file which... do not work
maybe you can give me any feedback about it
inspectit:   instrumentation:     scopes:       example_scope_ejb0:         superclass:           name: "rocks.inspectit.shared.cs.ci.sensor.method.impl.TimerSensorConfig"           matcher-mode: "CONTAINS"       example_scope_ejb4:         interfaces:           - name: "javax.ejb.MessageDriven"             matcher-mode: EQUALS_FULLY       example_scope_ejb1:         interfaces:           - name: "javax.ejb.Stateless"             matcher-mode: EQUALS_FULLY       example_scope_ejb2:         interfaces:           - name: "javax.ejb.Stateful"             matcher-mode: EQUALS_FULLY       example_scope_ejb3:         interfaces:           - name: "javax.ejb.Singleton"             matcher-mode: EQUALS_FULLY     rules:       example_rule_ejb0:         scopes:           example_scope_ejb0: true         tracing:           start-span: true       example_rule_ejb4:         scopes:           example_scope_ejb4: true         tracing:           start-span: true       example_rule_ejb2:         scopes:           example_scope_ejb2: true         tracing:           start-span: true       example_rule_ejb1:         scopes:           example_scope_ejb1: true         tracing:           start-span: true       example_rule_ejb3:         scopes:           example_scope_ejb3: true         tracing:           start-span: true


Check for the existence of configmaps and use them if referenced from extraAppConfig

Description of the change
Be able to include one or more app configs in the helm values.yaml, to allow the creation of  ConfigMap(s) automatically, mounts it and uses it in the config or be able to use previously created ConfigMaps.
Existing or Associated Issue(s)

Additional Information

Checklist

[x] Chart version bumped in Chart.yaml according to semver.
[x] Variables are documented in the values.yaml and added to the README.md. The helm-docs utility can be used to generate the necessary content. Use helm-docs --dry-run to preview the content.
[x] JSON Schema generated.
[ ] List tests pass for Chart using the Chart Testing tool and the ct lint command.

I have quite some reservations about this PR, can you please explain why would a user want multiple extraAppConfigs? See: #35 (comment)

This was the original reason for me considering the multiple files as part of the requirements for multiple configs, https://backstage.io/docs/conf/writing#configuration-files.
It is possible to have multiple configuration files (bundled and/or remote*), both to support different environments, but also to define configuration that is local to specific packages. The configuration files to load are selected using a --config <local-path|url> flag, and it is possible to load any number of files. Paths are relative to the working directory of the executed process, for example package/backend. This means that to select a config file in the repo root when running the backend, you would use --config ../../my-config.yaml, and for config file on a config server you would use --config https://some.domain.io/app-config.yaml

I have quite some reservations about this PR, can you please explain why would a user want multiple extraAppConfigs? See: #35 (comment)

This was the original reason for me considering the multiple files as part of the requirements for multiple configs, https://backstage.io/docs/conf/writing#configuration-files.
It is possible to have multiple configuration files (bundled and/or remote*), both to support different environments, but also to define configuration that is local to specific packages. The configuration files to load are selected using a --config <local-path|url> flag, and it is possible to load any number of files. Paths are relative to the working directory of the executed process, for example package/backend. This means that to select a config file in the repo root when running the backend, you would use --config ../../my-config.yaml, and for config file on a config server you would use --config https://some.domain.io/app-config.yaml

But the context is totally different. With the cli it's possible to specify which configuration files should be passed to Backstage, while here it isn't possible. So, there is no gain in splitting the configuration into multiple extraAppConfigs

Has been a while since this PR has any any activity, are we ok to close? Or were there any comments you wanted to add in response to the above? @bainss


FPS method issue in your code

Hi, thanks for your impressive work. I noticed in your code that you use "FS" method for FPS downsampling in Layer 2, but why did you separate and use "F-FPS, D-FPS" in Layer 3? Is there any difference for both methods?
When you use "FS" in Layer 2, you downsample 4096 points to 512 points separately by F-FPS and D-FPS, and then concatenate them together.
But when you use "F-FPS, D-FPS" in  Layer 3, you firstly split 1024 points to two parts, each of which has 512 points. And then you respectively use F-FPS and D-FPS to downsample corresponding 512 points to 256 points, and finally concatenate to 512 points.
I am confused that why you didn't just use "FS" directly?
Thanks for your help.
Best Regards
Frank

I guess that doing it that way allows them to sample with F-FPS only the set of points that was previously selected with F-FPS and with D-FPS only the set of points that was previously selected with D-FPS, instead of mixing the two sets together.

It is my understanding that "FS" is different from the combination of "F-FPS" and "D-FPS". Actually "FS" does "F-FPS" and "D-FPS" separately. Here, Both "F-FPS" and "D-FPS" sample points from all 4096 points. So we get 1024 points where 512 points from "F-FPS" picking up from all 4096 points and 512 points from "D-FPS" picking up from all 4096 points. Note that in 1024 points, the top 512 points are from "F-FPS" and the last 512 points are from "D-FPS". In Layer 3, do "F-FPS" on the top 512 points from the previous "F-FPS" for 256 points and do "D-FPS" on the last 512 points from the previous "D-FPS" for 256 points.
And I agree with @lozino .In my opinions, "F-FPS" is better for picking up foreground points as it is said in the paper. As keeping doing "F-FPS" on the points from "F-FPS", less background points will be got. In other words, foreground points will be got. And in vote layer, offsets for foreground points are expected, not background points.


use re2 for the substitution formatter parsing and prefer the string view

Title: use re2 for the substitution formatter parsing and prefer the string view
Description:
Compared to the std::regex, re2::RE2 has much better performance. And re2::RE2 provides better string view support. And use the re2::RE2 to replace the std::regex and prefer the string view when doing the parsing could improve parser's performance greatly.
I made a dirty patch and get initial results. Here is the comparation:
Before:
---------------------------------------------------------------------------
Benchmark                                 Time             CPU   Iterations
---------------------------------------------------------------------------
BM_AccessLogFormatterSetup            75744 ns        75605 ns         9401

After:
---------------------------------------------------------------------------
Benchmark                                 Time             CPU   Iterations
---------------------------------------------------------------------------
BM_AccessLogFormatterSetup             8617 ns         8601 ns        80261

There is almost 10x speed up.

cc @jmarantz cc @mattklein123

+1, a generated parser might be even better but the grammar should be simple enough to handle without it.


Can M1 Pro with 32GB vram run this project?

I am wonder if my m1 pro 32GB can run this project? In other words, can Apple Sillon run this project?

We apologize that currently, FaceChain is tested on Linux GPU devices only. And we are now planning to extend FaceChain to other operating systems and CPU devices.

merged to #516


[example]：Echo Tcp Server实现

draw 文件夹下的是 draw 流程图的源文件

好的，晚点我看看。On Feb 15, 2024, at 00:15, jinzhongjia @.***> wrote:
draw 文件夹下的是 draw 流程图的源文件
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>


Sphinx 4.1.0 doesn't like ScanpyConfig

Trying to build the docs with Sphinx 4.1.0 fails with the following output:

$ make html
Running Sphinx v4.1.0
loading intersphinx inventory from https://anndata.readthedocs.io/en/stable/objects.inv...
loading intersphinx inventory from https://bbknn.readthedocs.io/en/latest/objects.inv...
loading intersphinx inventory from https://matplotlib.org/cycler/objects.inv...
loading intersphinx inventory from http://docs.h5py.org/en/stable/objects.inv...
loading intersphinx inventory from https://ipython.readthedocs.io/en/stable/objects.inv...
loading intersphinx inventory from https://leidenalg.readthedocs.io/en/latest/objects.inv...
loading intersphinx inventory from https://louvain-igraph.readthedocs.io/en/latest/objects.inv...
loading intersphinx inventory from https://matplotlib.org/objects.inv...
loading intersphinx inventory from https://networkx.github.io/documentation/networkx-1.10/objects.inv...
loading intersphinx inventory from https://docs.scipy.org/doc/numpy/objects.inv...
loading intersphinx inventory from https://pandas.pydata.org/pandas-docs/stable/objects.inv...
loading intersphinx inventory from https://docs.pytest.org/en/latest/objects.inv...
loading intersphinx inventory from https://docs.python.org/3/objects.inv...
loading intersphinx inventory from https://docs.scipy.org/doc/scipy/reference/objects.inv...
loading intersphinx inventory from https://seaborn.pydata.org/objects.inv...
loading intersphinx inventory from https://scikit-learn.org/stable/objects.inv...
loading intersphinx inventory from https://scanpy-tutorials.readthedocs.io/en/latest/objects.inv...
intersphinx inventory has moved: https://networkx.github.io/documentation/networkx-1.10/objects.inv -> https://networkx.org/documentation/networkx-1.10/objects.inv
intersphinx inventory has moved: https://docs.scipy.org/doc/numpy/objects.inv -> https://numpy.org/doc/stable/objects.inv
intersphinx inventory has moved: http://docs.h5py.org/en/stable/objects.inv -> https://docs.h5py.org/en/stable/objects.inv
[autosummary] generating autosummary for: _key_contributors.rst, api.rst, basic_usage.rst, community.rst, contributors.rst, dev/ci.rst, dev/code.rst, dev/documentation.rst, dev/external-tools.rst, dev/getting-set-up.rst, ..., release-notes/1.7.1.rst, release-notes/1.7.2.rst, release-notes/1.8.0.rst, release-notes/1.8.1.rst, release-notes/1.8.2.rst, release-notes/1.9.0.rst, release-notes/index.rst, release-notes/release-latest.rst, tutorials.rst, usage-principles.rst
Error in github_url('scanpy._settings.ScanpyConfig.N_PCS'):

Extension error (sphinx.ext.autosummary):
Handler <function process_generate_options at 0x139c4a940> for event 'builder-inited' threw an exception (exception: type object 'ScanpyConfig' has no attribute 'N_PCS')
make: *** [html] Error 2

However, I'm entirely sure if this is Sphinx's fault, or our own. Currently the N_PCS parameter isn't in the rendered documentation. I think it should be, and am not sure why it's not showing up here.
To summarize:

Previous versions of our doc builds didn't seem to be including attribute docstrings for ScanpyConfig.
Sphinx 4.1.0 raises an error when it hits this attribute

Changing it to a property throws a different error:

 from make html
reading sources... [  5%] generated/classes/scanpy.pl.DotPlot
Exception occurred:
  File "/usr/local/lib/python3.8/site-packages/sphinx/util/docfields.py", line 369, in transform
    new_list += fieldtype.make_field(fieldtypes, self.directive.domain, items,
TypeError: make_field() got an unexpected keyword argument 'inliner'
The full traceback has been saved in /var/folders/bd/43q20k0n6z15tdfzxvd22r7c0000gn/T/sphinx-err-qbzn5se8.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
make: *** [html] Error 2

 contents of the referenced log file
# Sphinx version: 4.1.0
# Python version: 3.8.10 (CPython)
# Docutils version: 0.16 release
# Jinja2 version: 2.11.2
# Last messages:
#   reading sources... [  2%] dev/documentation
#   reading sources... [  2%] dev/external-tools
#   reading sources... [  3%] dev/getting-set-up
#   reading sources... [  3%] dev/index
#   reading sources... [  3%] dev/release
#   reading sources... [  4%] dev/testing
#   reading sources... [  4%] dev/versioning
#   reading sources... [  4%] ecosystem
#   reading sources... [  5%] external
#   reading sources... [  5%] generated/classes/scanpy.pl.DotPlot
# Loaded extensions:
#   sphinx.ext.mathjax (4.1.0) from /usr/local/lib/python3.8/site-packages/sphinx/ext/mathjax.py
#   sphinxcontrib.applehelp (1.0.2) from /usr/local/lib/python3.8/site-packages/sphinxcontrib/applehelp/__init__.py
#   sphinxcontrib.devhelp (1.0.2) from /usr/local/lib/python3.8/site-packages/sphinxcontrib/devhelp/__init__.py
#   sphinxcontrib.htmlhelp (2.0.0) from /usr/local/lib/python3.8/site-packages/sphinxcontrib/htmlhelp/__init__.py
#   sphinxcontrib.serializinghtml (1.1.5) from /usr/local/lib/python3.8/site-packages/sphinxcontrib/serializinghtml/__init__.py
#   sphinxcontrib.qthelp (1.0.3) from /usr/local/lib/python3.8/site-packages/sphinxcontrib/qthelp/__init__.py
#   alabaster (0.7.12) from /usr/local/lib/python3.8/site-packages/alabaster/__init__.py
#   sphinx.ext.autodoc.preserve_defaults (1.0) from /usr/local/lib/python3.8/site-packages/sphinx/ext/autodoc/preserve_defaults.py
#   sphinx.ext.autodoc.type_comment (4.1.0) from /usr/local/lib/python3.8/site-packages/sphinx/ext/autodoc/type_comment.py
#   sphinx.ext.autodoc (4.1.0) from /usr/local/lib/python3.8/site-packages/sphinx/ext/autodoc/__init__.py
#   sphinx.ext.intersphinx (4.1.0) from /usr/local/lib/python3.8/site-packages/sphinx/ext/intersphinx.py
#   sphinx.ext.doctest (4.1.0) from /usr/local/lib/python3.8/site-packages/sphinx/ext/doctest.py
#   sphinx.ext.coverage (4.1.0) from /usr/local/lib/python3.8/site-packages/sphinx/ext/coverage.py
#   sphinx.ext.napoleon (4.1.0) from /usr/local/lib/python3.8/site-packages/sphinx/ext/napoleon/__init__.py
#   sphinx.ext.autosummary (4.1.0) from /usr/local/lib/python3.8/site-packages/sphinx/ext/autosummary/__init__.py
#   matplotlib.sphinxext.plot_directive (3.4.2) from /usr/local/lib/python3.8/site-packages/matplotlib/sphinxext/plot_directive.py
#   sphinx_autodoc_typehints (unknown version) from /usr/local/lib/python3.8/site-packages/sphinx_autodoc_typehints.py
#   scanpydoc.autosummary_generate_imported (0.7.2) from /usr/local/lib/python3.8/site-packages/scanpydoc/autosummary_generate_imported.py
#   scanpydoc.definition_list_typed_field (0.7.2) from /usr/local/lib/python3.8/site-packages/scanpydoc/definition_list_typed_field.py
#   scanpydoc.elegant_typehints (0.7.2) from /usr/local/lib/python3.8/site-packages/scanpydoc/elegant_typehints/__init__.py
#   scanpydoc.rtd_github_links (0.7.2) from /usr/local/lib/python3.8/site-packages/scanpydoc/rtd_github_links.py
#   scanpydoc.theme (unknown version) from /usr/local/lib/python3.8/site-packages/scanpydoc/theme/__init__.py
#   scanpydoc (0.7.2) from /usr/local/lib/python3.8/site-packages/scanpydoc/__init__.py
#   typed_returns (unknown version) from /Users/isaac/github/scanpy/docs/extensions/typed_returns.py
#   function_images (unknown version) from /Users/isaac/github/scanpy/docs/extensions/function_images.py
#   github_links (unknown version) from /Users/isaac/github/scanpy/docs/extensions/github_links.py
#   param_police (unknown version) from /Users/isaac/github/scanpy/docs/extensions/param_police.py
#   debug_docstrings (unknown version) from /Users/isaac/github/scanpy/docs/extensions/debug_docstrings.py
#   sphinx_rtd_theme (unknown version) from /usr/local/lib/python3.8/site-packages/sphinx_rtd_theme/__init__.py
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/sphinx/cmd/build.py", line 280, in build_main
    app.build(args.force_all, filenames)
  File "/usr/local/lib/python3.8/site-packages/sphinx/application.py", line 343, in build
    self.builder.build_update()
  File "/usr/local/lib/python3.8/site-packages/sphinx/builders/__init__.py", line 293, in build_update
    self.build(to_build,
  File "/usr/local/lib/python3.8/site-packages/sphinx/builders/__init__.py", line 307, in build
    updated_docnames = set(self.read())
  File "/usr/local/lib/python3.8/site-packages/sphinx/builders/__init__.py", line 414, in read
    self._read_serial(docnames)
  File "/usr/local/lib/python3.8/site-packages/sphinx/builders/__init__.py", line 435, in _read_serial
    self.read_doc(docname)
  File "/usr/local/lib/python3.8/site-packages/sphinx/builders/__init__.py", line 475, in read_doc
    doctree = read_doc(self.app, self.env, self.env.doc2path(docname))
  File "/usr/local/lib/python3.8/site-packages/sphinx/io.py", line 188, in read_doc
    pub.publish()
  File "/usr/local/lib/python3.8/site-packages/docutils/core.py", line 217, in publish
    self.document = self.reader.read(self.source, self.parser,
  File "/usr/local/lib/python3.8/site-packages/sphinx/io.py", line 108, in read
    self.parse()
  File "/usr/local/lib/python3.8/site-packages/docutils/readers/__init__.py", line 77, in parse
    self.parser.parse(self.input, document)
  File "/usr/local/lib/python3.8/site-packages/sphinx/parsers.py", line 100, in parse
    self.statemachine.run(inputlines, document, inliner=self.inliner)
  File "/usr/local/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 170, in run
    results = StateMachineWS.run(self, input_lines, input_offset,
  File "/usr/local/lib/python3.8/site-packages/docutils/statemachine.py", line 241, in run
    context, next_state, result = self.check_line(
  File "/usr/local/lib/python3.8/site-packages/docutils/statemachine.py", line 459, in check_line
    return method(match, context, next_state)
  File "/usr/local/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 2769, in underline
    self.section(title, source, style, lineno - 1, messages)
  File "/usr/local/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 327, in section
    self.new_subsection(title, lineno, messages)
  File "/usr/local/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 393, in new_subsection
    newabsoffset = self.nested_parse(
  File "/usr/local/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 281, in nested_parse
    state_machine.run(block, input_offset, memo=self.memo,
  File "/usr/local/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 196, in run
    results = StateMachineWS.run(self, input_lines, input_offset)
  File "/usr/local/lib/python3.8/site-packages/docutils/statemachine.py", line 241, in run
    context, next_state, result = self.check_line(
  File "/usr/local/lib/python3.8/site-packages/docutils/statemachine.py", line 459, in check_line
    return method(match, context, next_state)
  File "/usr/local/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 2344, in explicit_markup
    self.explicit_list(blank_finish)
  File "/usr/local/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 2369, in explicit_list
    newline_offset, blank_finish = self.nested_list_parse(
  File "/usr/local/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 318, in nested_list_parse
    state_machine.run(block, input_offset, memo=self.memo,
  File "/usr/local/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 196, in run
    results = StateMachineWS.run(self, input_lines, input_offset)
  File "/usr/local/lib/python3.8/site-packages/docutils/statemachine.py", line 241, in run
    context, next_state, result = self.check_line(
  File "/usr/local/lib/python3.8/site-packages/docutils/statemachine.py", line 459, in check_line
    return method(match, context, next_state)
  File "/usr/local/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 2647, in explicit_markup
    nodelist, blank_finish = self.explicit_construct(match)
  File "/usr/local/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 2354, in explicit_construct
    return method(self, expmatch)
  File "/usr/local/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 2096, in directive
    return self.run_directive(
  File "/usr/local/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 2146, in run_directive
    result = directive_instance.run()
  File "/usr/local/lib/python3.8/site-packages/sphinx/ext/autodoc/directive.py", line 173, in run
    result = parse_generated_content(self.state, params.result, documenter)
  File "/usr/local/lib/python3.8/site-packages/sphinx/ext/autodoc/directive.py", line 120, in parse_generated_content
    state.nested_parse(content, 0, node)
  File "/usr/local/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 281, in nested_parse
    state_machine.run(block, input_offset, memo=self.memo,
  File "/usr/local/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 196, in run
    results = StateMachineWS.run(self, input_lines, input_offset)
  File "/usr/local/lib/python3.8/site-packages/docutils/statemachine.py", line 241, in run
    context, next_state, result = self.check_line(
  File "/usr/local/lib/python3.8/site-packages/docutils/statemachine.py", line 459, in check_line
    return method(match, context, next_state)
  File "/usr/local/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 2342, in explicit_markup
    nodelist, blank_finish = self.explicit_construct(match)
  File "/usr/local/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 2354, in explicit_construct
    return method(self, expmatch)
  File "/usr/local/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 2096, in directive
    return self.run_directive(
  File "/usr/local/lib/python3.8/site-packages/docutils/parsers/rst/states.py", line 2146, in run_directive
    result = directive_instance.run()
  File "/usr/local/lib/python3.8/site-packages/sphinx/domains/__init__.py", line 286, in run
    return super().run()
  File "/usr/local/lib/python3.8/site-packages/sphinx/directives/__init__.py", line 212, in run
    DocFieldTransformer(self).transform_all(contentnode)
  File "/usr/local/lib/python3.8/site-packages/sphinx/util/docfields.py", line 251, in transform_all
    self.transform(child)
  File "/usr/local/lib/python3.8/site-packages/sphinx/util/docfields.py", line 369, in transform
    new_list += fieldtype.make_field(fieldtypes, self.directive.domain, items,
TypeError: make_field() got an unexpected keyword argument 'inliner'

Looking into it a bit further, it seems like an incompatibility with scanpydoc's DLTypedField. The API for sphinx.util.docfield.Field.make_field now has kwargs inliner and location which DocFieldTransformer uses.

The problem is that Sphinx 4.1 suddenly started adding type-annotated instance attributes like
class SomeClass:
   i_only_exist_on_instances: SomeType

to the attributes array. #1948 should fix the problem arising from that.

Ha, #1948 works to fix both the weird RTD get_version problem and this one! There’s now another problem though:
scanpy/metrics/_gearys_c.py:docstring of scanpy.metrics._gearys_c.gearys_c::py:class reference target not found: scipy.sparse.csr.csr_matrix


Adding autocomplete values of to input/select/textarea

https://html.spec.whatwg.org/multipage/forms.html#inappropriate-for-the-control
This allows for lots of great auto completion for forms.

Hi @codepo8, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. Real humans will now evaluate your PR.

TTYL, MSBOT;

Thanks @codepo8, nice work!

@codepo8 Just FYI, the HTM language service (including your contributions) are now in its own node module: https://github.com/Microsoft/vscode-html-languageservice.


Flower Training Notebooks Error

I got this error when I run the training notebooks and somehow this line is returning error. I'm on Windows 11, Python 3.7, and just did the installation fresh.
img_array = keras.preprocessing.image.img_to_array(img)
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-32-e39202bdee35> in <module>
      6 )
      7 print(img)
----> 8 img_array = keras.preprocessing.image.img_to_array(img)
      9 img_array = tf.expand_dims(img_array, 0) # Create a batch
     10

~\Documents\openvino_env\lib\site-packages\tensorflow\python\keras\preprocessing\image.py in img_to_array(img, data_format, dtype)
    226       dtype = backend.floatx()
    227     kwargs['dtype'] = dtype
--> 228   return image.img_to_array(img, data_format=data_format, **kwargs)
    229
    230

~\Documents\openvino_env\lib\site-packages\keras_preprocessing\image\utils.py in img_to_array(img, data_format, dtype)
    307     # or (channel, height, width)
    308     # but original PIL image has format (width, height, channel)
--> 309     x = np.asarray(img, dtype=dtype)
    310     if len(x.shape) == 3:
    311         if data_format == 'channels_first':

~\Documents\openvino_env\lib\site-packages\numpy\core\_asarray.py in asarray(a, dtype, order)
     81
     82     """
---> 83     return array(a, dtype, copy=False, order=order)
     84
     85

TypeError: __array__() takes 1 positional argument but 2 were given

I then skipped that step and finish the model optimizer and got my xml and bin.

I think this may have to do with the PaddleGAN as it had overwritten the numpy and other packages. It actually tried to install older version of numpy and then it broke the Tensorflow 2.5.0. I install numpy 1.19.5 and gast again and it is back to normal!
In short, the PaddleGAN may need more testing and I think we may need to put that in a separate virtual environment as it conflicts with lots of things... :|
-ray

I think it maybe the Keras nightly got a new bug? :\


Updating ISSUE_TEMPLATE with Environment details (pip, python and Os )

I'm submitting a

[ ] bug report.
[x] feature request.

Current Behaviour:

We do not have details about the developer's environment to reproduce the errors.
Expected Behaviour:

To mention the Environment details in ISSUE_TEMPLATE.
Steps to reproduce:

Do you want to work on this issue?

yes

resolved by #159

resolved by #159


Removing lodash dependency?

I have taken a quick look at how much effort it would be to remove lodash dependency, there are 139 uses of a lodash function in restangular, from those, all but 20 are easily converted to use an angular version of same function (pending of testing that it has no side effects).
From those 20, there are occurrences of isBoolean, isEmpty, defaults, union, values, pick, omit and every.
I think it is probably too much of a problem to use lodash only for these functions, should we just try to remove them?
What do you think?

I also thought about opening up a ticket for that and searched how many calls of _. functions are there. Most of them (isBoolean, isEmpty, isUndefined) could be rewritten in vanilla js without a hassle. Maybe we should try to rewrite this in a separate branch. I don't see any good point apart of those mentioned here in the README.
What do the others (maybe @xeor) thing about it?

Personally, I really enjoy what restangular have to give, but I think it's main job is done. Fixing bugs that breaks is fine, but I would not think that too much of a change is worth it. Restangular have done a fantastic and needed job for angular 1, but I don't think it is needed that much in angular 2.
Stripping away lodash just to trim down on the deps just doesn't feel right at the moment. There are so many other issues open, and I think the community would rather want a restangular-ish lib for angular 2 instead as well?
Just a couple of thoughts...

From what I've read of Restangular 2.0, it was/is supposed to an Angular de-coupled version. I don't think coupling Restangular to Angular is the best thing (replacing Lodash with Angular functions), so I'd throw my vote against that. However, rewriting in vanilla JS would work well, but comes with the downside of not having all the extra stuff that Lodash offers. Just my two cents though…

I wouldn't mind seeing a PR with these changes at some point. Let me know if you need any help; I'd be glad to help out.

if this helps any -- lodash 4 has a host of deprecations https://github.com/lodash/lodash/wiki/Deprecations

I am using ramdaJs with my code but I had to load lodash just so that restangular can use it. Decoupling it from any external library including lodash will be good.


Building on macOS with Apple Silicon (ARM64)

Summary
I'm trying to build plutus-core.
I'm on macOS Big Sur with ARM64/Darwin (M1 chip).
Currently support for ARM64/Darwin is limited with GHC, 9.2 is supposed to bring ARM64 support.
I'm using cabal 3.4.0 and GHC 8.10.5
Steps to reproduce

Clone the plutus repo
Issue cabal build plutus-core
See compile time issues

[_11] fail (backjumping, conflict set: base, inline-r, marlowe-actus, vector)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: vector, primitive, base, inline-r,
pretty, marlowe-actus, cardano-api, template-haskell, hedgehog,
byron-spec-chain, microlens-th, Win32-network

Expected behavior
Not sure if it should build on M1 based systems.
System info (please complete the following information):

OS: macOS 11 [11.5.1 (20G80)]
Plutus version or commit hash [head]

I don't think any effort has been made to support M1 hardware, and as you say, GHC itself doesn't really support it. So it's likely broken and this is wontfix for now I'm afrraid.


[backend] support fp/fn filter and add gt/pred in assets endpoint

[ ] update according to viz response

经讨论，新增筛选功能不在这里实现。


can you talk to the bot without the ask, for example, start a conversation with the ask and continue to chat in the channel without repeating the ask?

I meant him to speak with /ask and continue the conversation without repeating /ask each time?


Binary Request: <IP_ADDRESS>-stable

Write additional notes here.
N/A

Done: https://github.com/DEAKSoftware/Synergy-Binaries/releases/tag/<IP_ADDRESS>-stable

Appreciate it, thanks


Module crypto does not exist in the Haste module map

bundling failed: Error: Unable to resolve module crypto from C:\React Project\node_modules\rand-token\index.js:

By default rand-token uses the crypto module as a source of randomness. That error is happening because the crypto module doesn't exist in the browser, it's only in node. For generic browser usage you'll need to specify 'math' as the source (to use Math.random()) though note that it won't be cryptographically secure.


libtool-bin needed on Ubuntu ?

Hi,
I am not sure if that is only the case for Ubuntu (16.04), but when I tried to install after installing packages, I got the message (even though I installed libtool):
ERROR: Missing required executables for building. You need to install ['libtool']
When trying to execute libtool on my machine, I got:
The program 'libtool' is currently not installed. You can install it by typing:
sudo apt install libtool-bin
So I installed libtool-bin. The installation goes further, but it is still not working, I got:
========== Building: libtool ==========
========== libtool.fetch ==========
Failed to build libtool in attempt 0 ''
ERROR: ''
So I am not quite sure this is a solution. Could you give me some directions about this issue ?
Thanks,

Are you using BinaryBuilder to perform the installation?  If so, could you provide us with a full output log from running it?
Don't forget that you can download pre-built ASP binaries (http://ti.arc.nasa.gov/tech/asr/intelligent-robotics/ngt/stereo/) if you don't have a specific reason to build the code.

In my version of Ubuntu, one needs to install libtool, in others, one needs apparently libtool-bin. The functionality is probably the same, but the name of the package changed.
BinaryBuilder does build this tool. As Scott says, I wonder why there is the failure above: Failed to build libtool in attempt 0 ''. There should be more detail in the log maybe.

@ScottMcMichael Yes I used the BinaryBuilder. I tried to compile because I had difficulties with xercesc as described in issue #147, so I wanted to see if that was a compilation problem...
After restarting my VM, I tried again to launch the setup and it went further (I am guessing there is some sort of cache in play?). libtool-bin needs to be installed though.
However, it did not go though. Here are the logs when I launched again ./build.py --download-dir tarballs --build-root build_asp:
https://gist.github.com/sdrdis/f3348398665ffe19f4abb1fbc3b55ecb
Thanks,

It is complaining about missing QT and QWT. Weird. Those should have been
installed. A different user mentioned the same thing recently.
Can you go in your build dir for ISIS, which should be I believe,
/home/sdrdis/projects/BinaryBuilder/build_asp/build/isis/isis
and see what the error is, in config.log? You could paste that entire file
for us, maybe.
On Mon, Jul 18, 2016 at 11:27 AM, Sébastien Drouyer <
<EMAIL_ADDRESS>wrote:

@ScottMcMichael https://github.com/ScottMcMichael Yes I used the
BinaryBuilder. I tried to compile because I had difficulties with xercesc
as described in issue #147
https://github.com/NeoGeographyToolkit/StereoPipeline/issues/147, so I
wanted to see if that was a compilation problem...
After restarting my VM, I tried again to launch the setup and it went
further (I am guessing there is some sort of cache in play?). libtool-bin
needs to be installed though.
However, it did not go though. Here are the logs when I launched again ./build.py
--download-dir tarballs --build-root build_asp:
https://gist.github.com/sdrdis/f3348398665ffe19f4abb1fbc3b55ecb
Thanks,
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/NeoGeographyToolkit/StereoPipeline/pull/146#issuecomment-233415578,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABQ6bNhovYaYa7LT2LAS-lJWks8JuK3Vks5qW8WlgaJpZM4JORur
.

Here is the config.log file: https://gist.github.com/sdrdis/ff8979654f68b9779134930104c739eb
Thanks,

Based on this:
https://gist.githubusercontent.com/sdrdis/ff8979654f68b9779134930104c739eb/raw/9c4f5e2d0c1fb7a76e5937809411e7edfd6006fd/config.log
what is missing in your install directory is QtXmlPatterns. Try looking
into your /home/sdrdis/projects/BinaryBuilder/build_asp/install/lib and
look for libQt*. It looks that you will find libQtXml.so, but not
libQtXmlPatterns.so. I have that one in my own install dir.
So, tracing this back, I wonder why this was not compiled when Qt was. Need
to look into Qt's build rir, which should be
/home/sdrdis/projects/BinaryBuilder/build_asp
/build/qt/qt-everywhere-opensource-src-4.8.6/
You could wipe from build_asp/done.txt the mention of Qt (and Qwt), and
then trying to run build.py again, to re-compile Qt. somewhere it will give
a warning or error hopefully about why libQtXmlPatterns failed to compile
and was skipped.
Sorry. Tracing build problems is an ungrateful job. Systems are just so
different. Ideally we would get a copy of the precise operating system you
use and try to reproduce it. But it is too much work for us, and we do not
guarantee to the world that ASP will build for you. We hope you can use the
binary release.
Oleg
On Tue, Jul 19, 2016 at 12:28 AM, Sébastien Drouyer <
<EMAIL_ADDRESS>wrote:

Here is the config.log file:
https://gist.github.com/sdrdis/ff8979654f68b9779134930104c739eb
Thanks,
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/NeoGeographyToolkit/StereoPipeline/pull/146#issuecomment-233552935,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABQ6bHAaLu1o4ALde5zF8PQfdGDXxQuvks5qXHyqgaJpZM4JORur
.

No problem. I am using the binary release right now, I was just reporting my problem and some potential way to fix it, but this is not blocking me from using the software for the moment. I understand that this sort of issue take too much time, time better allocated to new features. I will let you know if there is anything new.
Thanks,

Sébastien, thank you for your feedback. I will keep this build problem in
mind. Let us know how the binary ASP works for you, and if you have any
suggestions.
On Tue, Jul 19, 2016 at 11:13 AM, Sébastien Drouyer <
<EMAIL_ADDRESS>wrote:

No problem. I am using the binary release right now, I was just reporting
my problem and some potential way to fix it, but this is not blocking me
from using the software for the moment. I understand that this sort of
issue take too much time, time better allocated to new features. I will let
you know if there is anything new.
Thanks,
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/NeoGeographyToolkit/StereoPipeline/pull/146#issuecomment-233718982,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABQ6bBipyL1DouZVvK_AxTx_VhJFNtMXks5qXRPZgaJpZM4JORur
.

I made an ubuntu 16.04 virtual machine. I was able to reproduce the problem with libQtXmlPatterns not building and put a fix. (Heaven, why does every system have its own quirks???)
I also added your suggestion, that we should build libtool-bin in addition to libtool. This is now in the doc. This is also annoying, I wonder why in latest ubuntu this got split into two packages.
So, this is resolved.

Thanks :smile:


Feature-Request: Auto-Reconnect on disconnect

It would be nice if you could have a setting on a connection to auto-reconnect
when being disconnected. We have to work with some flaky ssh-server here which
closes the connection every now and then and it would be great if ptm would
re-establish the connection in this case. Would probably also be helpful to
people who are on a mobile data connection which isn't that reliable.

Original issue reported on code.google.com by<EMAIL_ADDRESS>on 6 Nov 2012 at 2:49

work in process (forgot #issue in commit)

done, but not testes in all cases.


Fatal error when reading tasks

Hello,
I get a fatal error in case I try to read a task (no matter if clicking on task description or symbol in the corner right below). This happens when running on MySQL, PHP 5.6.3 and installation in a subdomain, I haven’t seen this under SQLite, PHP 5.3.29 and installation in a subdirectory. The error reads:
Fatal error: Uncaught exception 'LogicException' with message 'Unable to load the template: "task/comments"' in /var/www/ud04_82/html/kanboard/app/Core/Template.php:39 Stack trace: #0 /var/www/ud04_82/html/kanboard/app/Template/task/show.php(7): Core\Template->render('task/comments', Array) #1 /var/www/ud04_82/html/kanboard/app/Core/Template.php(45): include('/var/www/ud04_8...') #2 /var/www/ud04_82/html/kanboard/app/Controller/Base.php(247): Core\Template->render('task/show', Array) #3 /var/www/ud04_82/html/kanboard/app/Controller/Task.php(81): Controller\Base->taskLayout('task/show', Array) #4 /var/www/ud04_82/html/kanboard/app/Core/Router.php(88): Controller\Task->show() #5 /var/www/ud04_82/html/kanboard/app/Core/Router.php(107): Core\Router->load('/var/www/ud04_8...', '\Controller\tas...', 'show') #6 /var/www/ud04_82/html/kanboard/index.php(9): Core\Router->execute() #7 {main} thrown in /var/www/ud04_82/html/kanboard/app/Core/Template.php on line 39

After some more testing, I can say that MySQL is not the problem. Might be the PHP version.

Moin! Did the error occur right after installation? Maybe it's an install error and the template is really not there. I guess you checked that first?

Schönen guten Tag,
thank you, mluepkes – that did the trick. I uploaded all files again, and now it works. This was such a simple solution that it would never have occured to me. (._.);
Bug report can be closed,

When in doubt, try turning it off and on again ;)