Add PTC support for SAMD11 and SAMD21

I went to rewrite some firmware for a little Trinket M0 device I got recently when I noticed that the Adafruit FreeTouch library it depended on uses the board's PTC capabilities, which I was unable to find any documentation or information on in embedded-hal, atsamd-hal, etc. So I took a look into the SVD file for the board (specifically ATSAMD21E18) and found that PTC information was missing from it completely. I also went to Microchip's website and got the most up-to-date SVD files I could, which similarly were missing them. That being the case, I wrote in that information as best I could based on the SAMD21{E,G,J} datasheet and the FreeTouch repository, specifically relying heavily on adafruit_ptc.c and samd21_ptc_component.h. I did take some liberties when translating the contents of samd21_ptc_component.h into the SVD file based on the contents of the rest of the file (especially the ADC peripheral section). It's also the first time I've ever done any work with SVD files. I mention this as a sort of warning in case what I made is just horrifically bad, since I don't know what's good yet.
I've only implemented PTC for SAMD21E so far, though it should be relatively simple to add it to the G and J variants as well by copying the PTC peripheral and generic clock section ID enumerated value to the SVD files for those chips, and adding the correct pin mappings according to the datasheet linked to earlier (found in table 6.1). A little bit more work needs to be done to handle the X signal lines for use in mutual-capacitance PTC, though I think that could be done by just treating Y lines as channels [0, 16) and X lines as channels [16, 32), doing a check for the channel ID being greater than 15, and subtracting 16 from the ID and using that to enable an X line. Maybe that'll be my next commit. But as of now, self-capacitance PTC should be working.
Last thing of note, then: I currently am unable to verify whether this works on hardware. While having this implementation is nice, it's just the boilerplate necessary to create an implementation of FreeTouch, which I can then use to verify functionality. So what I'm PRing with now is a, "Hey, I did this thing that smells about right," sort of deal.

That should be the G and J flavours covered, I think. I can now let myself move on to making other things so I can test it on hardware.

I'm not sure if we had a special workflow/script for applying patches to the SVDs (instead of just adding things in-place). @sajattack do you remember?

Xslt scripts

https://github.com/atsamd-rs/atsamd/blob/d24c3c5bc6b1b8118ef8884cadc627fea5912afa/update.sh#L18
https://github.com/atsamd-rs/atsamd/tree/master/svd/devices

That's what I ran to create the new files in pac/ . Provided I patched the SVD files correctly, have I added the peripheral correctly?

Sorry I have no experience with the PAC / patching / SVD side of the project - I'll leave that bit to @sajattack

Instead of patching the svd manually, you need to write an xslt patch.

Something like this, then?

Something like that :sweat_smile: I've never actually done this myself. We might want someone more familiar with xslt on this review.

@AuroransSolis do you need some help testing this on hardware before we merge it?

I would very much appreciate that, yes. I'm attempting to test it myself through a reimplementation of some firmware for a little device based on the Trinket M0 (ATSAMD21E18A) that I got recently, but I'm a little stuck on a few things needed to complete it (namely interaction with NVMCTRL to store device settings - may end up making another PR for implementing that sometime soon) and it may take me a while to get through that what with being in school currently and all.
The thing I'm most unsure about is how to use the PTC peripheral in mutual capacitance mode (having some X and Y lines enabled) as opposed to self-capacitance mode (having only Y lines enabled, which what FreeTouch and LibrePTC use as far as I'm aware), and whether I've implemented that correctly. Probably the best way to test it would be to use Atmel's QTouch library and compare readings with what my PTC implementation produces. I don't think I'm personally acquainted well enough with embedded development to do that myself, so help in that regard would be appreciated.

I was mainly just volunteering to test a build or something on my Adafruit Circuit Playground Express. I'm not sure if I can help with the comparison to the atmel library.

Ah, well, I guess that Adafruit's FreeTouch or LibrePTC could also work for testing purposes, since there's a few projects out there that depend on those and they seem to work well enough. Just make sure that they're configured the same way and see if they produce the same measurements. I wrote a FreeTouch implementation based on my fork of this repo if you'd like to use that, and it can be found here.

Ah, screw it, I'm going to broaden the scope of this PR to bring PTC to all the devices targeted by atsamd-hal. Not sure how to do testing for all of them, but oh well.

Wow, okay, so the SAM{D51,E5{1,3,4}} chips are really something else. I'm going to have to make an entirely separate PTC patch for them, and since I don't have anything to reference for them, I just wanna put out a heads-up that it's going to be extra unverified, compared the the mostly unverified patch I created for SAMD{1,2}1. Unless someone happens to have a board with one of those chips and would be able to run an example I'll come up with Eventually™ after I make the new patch.

Finally back and working on this! Huzzah! Down to brass tacks: I think I'm going to reduce scope back to what I've got done already: SAMD11 and SAMD21. I'll open another pull request later for SAMD51 and SAME51, since there's a number of challenges to address there that I'm not currently sure how to handle. For instance, when activating PTC, the PTC module takes sole ownership of ADC0. I think I can handle this by requiring instantiation of PTC to be given ADC0, but then I need to give that back at some point as well (I think?). There's other things as well that are wildly different from the two chip families I've already implemented support for which I think are out of scope for this PR. I'm also just thoroughly confused by the SAMD51/SAME51 datasheet for the time being, so I'll need a lot more time to read through that properly to create a (hopefully correct) implementation of PTC for them. And with the commit that should be appearing soon, I'll mark this as ready for review.

Wow, I really did just completely flub that commit message. Nice work, me. Anywho, I think that it should pass the checks now, since all the boards compile fine on my machine.

@AuroransSolis, can you please rebase to master? Thanks!

Sure thing, gimme a bit to work on it and I'll do that.

Sure thing, gimme a bit to work on it and I'll do that.

I guess I should have asked if this is ready to go first :)

How do you mean? In the sense of, "Does the PTC functionality actually work?" ready, or something else? If that, I haven't yet had the time to finish my project that makes use of PTC, so I'm not sure if it works. I did my best just to copy the routines in Adafruit's FreeTouch library.

Okay, hopefully that's the rebase done. Also before you allow any other workflow runs, lemme do them on my desktop so I don't have to pester anyone if it fails. I'll also work on finishing up my project using PTC to ensure that it works.

Cool, thanks @AuroransSolis! I was really just asking if you thought this was ready to be merged. We'll wait for your hardware tests though.

I'm reading all zeros in my test code: https://gist.github.com/56be1efb5ceaca53e0afbd74e0ee1e53

Did some more troubleshooting. Adafruit_FreeTouch will wait for CONVERT to become zero before reading RESULT. However, it seems like this never happens here...

Here's the full branch I've been working on: https://github.com/leo60228/atsamd/tree/ptc

@AuroransSolis , will you incorporate @leo60228 's changes? Let us know when this works on HW and is ready to review

@AuroransSolis
I'm working on a SAM(D/E)5(1/2/3) implementation, aiming for SAMD51, currently on SAME53. Willing to test, might need some help setting up example code/techstack.

Hey there, what is the current status and challenges to finish implementing support for PTC?
I had the great idea of choosing a SAMD21 for a project but I didn't check that (at least) registers and such were documented ^^'
I should receive my proto PCB next week, in the meantime I can help with rebasing on master, I think a bunch of things changed since 2021, but is there other things that might need some love?

The branch I linked was partially functional using an Adafruit PyRuler development board as a test platform. I don't remember the details, but if I recall correctly there were some bugs that I gave up on troubleshooting due to issues with getting SWD debugging working on that board.

The only public documentation for this peripheral consists of the Adafruit_FreeTouch library code. I believe Adafruit may have been given proper documentation under NDA. If you want to work on this support, it might be worth trying to get in touch with Microchip.

The only public documentation for this peripheral consists of the Adafruit_FreeTouch library code. I believe Adafruit may have been given proper documentation under NDA. If you want to work on this support, it might be worth trying to get in touch with Microchip.

Looking at the register name UNK4C04 and the extremely limited amount of fields, I guess they mostly did reverse engineering unfortunately.
I planned to send an email to Microchip, but I'm not really expecting much...

Woah, sorry, I completely forgot about this. I'll see about getting back into working on it again soon.

Hey, no pressure ;)
I'll start re-implementing all the work there in a new branch from scratch since a lot of things changed, and use some .xsl patches so we don't have to edit the SVD manually (since I think they are supposed to remain untouched).

Here we go, this should  be a good starting point for new work, based on up-to-date master branch:  maximeborges/atsamd:features/ptc
I still haven't received my PCBs (or have any ATSAMD11/21) devices around, and I didn't reimplement the example app from @leo60228  since it's not been confirmed to be working as is.
Next step for me is to investigate a bit more how to implement mutual sensing. I'm currently looking at the touch repo from Microchip since they seem to have all the headers and compiled static lib for all their chips in there.
I'll also start watching Lady Ada reverse engineering work (from a live streaming on YouTube) for the Adafruit FreeTouch library

MX682X seems to have done quite a good job RE the PTC also: MX682X/ptc_touch


Is there a way to get raw data masked?

Hi I was wondering is there a way to input raw data into masker and return masked version of it as well raw? Without using selector. Its required for vue.js input field masking because when I apply your masker directly onto the input field it kills reactivity.

You have to wrap a directive around it.
<input type="text" v-model="myData" v-input-mask:mask="'9999 99 99'">

Vue.directive('input-mask', {
  bind: (el, binding) => {
    $(el).inputmask({
      mask: binding.value,
      oncomplete: () => {
        var e = new Event('input', { bubbles: true });

        el.dispatchEvent(e);
      }
    });
 }
});

@asolopovas ,
When you use the vanilla dependencylib, native events will be fired.

Great  I already figured it out your plugin works great. Thank you.


Managed pull request review

add support for pull_request_review

You shouldn't touch "dust/index.js", you should touch only files in "src" directory, and then you need to run "npm run all" for building these files.


[sqlite] GENERATED columns not being recognized

Discussed in https://github.com/go-jet/jet/discussions/297

Originally posted by yuphing-ong December 14, 2023
I tried a table like this:
CREATE TABLE test (
    jvalues TEXT NOT NULL,
    -- virtual column for json extracted column to be indexed
   column1 STRING GENERATED ALWAYS as (JSON_EXTRACT(jvalues, "$.column1")) STORED,
);

but go-jet only generates this model (and associated table):
type TEST struct {
        Jvalues       string
 }

I tried both virtual and stored, in case go-jet needed it to be STORED  but no difference.
Is this a limitation of the driver, or go-jet?

It turned out to be a small change. I've made a fix on sqlite_gen_col branch.

Sqlite support for generated columns added in Release v2.11.0.


grpcio: fix AioRpcError self recursion

See https://github.com/google/mobly/pull/870#issuecomment-1419629154 for more details.

Thanks for the fix!


possible types desync

our entire project is based off of lts/hydrogen node
but github actions uses node16 when our action is packaged or whatever by vercel's ncc somehow it works
this possible types desync may introduce bugs/errors in the future

GitHub Actions now use Node18. See ya.


"this is taking an unexpectedly long time"

I keep getting "this is taking an unexpectedly long time" message on terminal when i run the "flutter run" command. Whats your take on this? Nothing is working.

anything? anybody?

I have the same error messages (since 1.2.0 ?) on both emulator and real devices (running debug versions), many, many messages (30, 40, 50, I can't count), but after that the app runs normally.
After a hot reload ('r') 7 of these messages appear, after a hot restart ('R') many more messages appear,. but not as many as with app start.  In all cases, the app seems to work ok afterwards.
All the messages start with about 75 spaces and the messages are cut off after 5 chars or so (no newline wrapping etc.), it all looks very weird...

OK, flutter doctor seems to complain about the required SDK version and not accepted licenses.  Has something changed since 1.2.0 ?

If flutter doctor works but flutter run doesn't, try flutter run -v and paste the text of the resulting logs here (not a screenshot please).
@hamidabdulmalik just out of interest, what link did you follow to file this bug? (Nomally when filing a bug we give you a template that specifies what information we need, but it looks like you didn't go through that flow?)

I get this error too, after that I switched to cmder and flutter run, still got the error, but after a while (long while) It's fixed.

What I did was download the compressed stable flutter sdk from the flutter website. I think if your version of flutter is from github repository directly, you may be a victim. But I am good now. If you are having this problem, download the stable build zipped from the flutter website and replace with the one you have.

I met the same error messages, and I'm install from github.anybody know how to resolve it if I don't want to installed from zipped.

I found the reason.It's because of network problem, "flutter packages get" can't run successfully.

did anybody solve the problem ?

This issue is causing for gradle version. Go to "C:\Users{username}.gradle\wrapper\dists" and see which which gradle versions are available. Now open "yourproject\android\gradle\wrapper\gradle-wrapper.properties" file , on last line you will find something this [ distributionUrl=https://services.gradle.org/distributions/gradle-4.1-all.zip ]
now download that gradle version and install on "C:\Users{username}.gradle\wrapper\dists". Restart android studio and try to build again , Boom ! Your Problem is solved.

Is there someone close to solving the problem. I have encountered the same problem

after recent flutter upgrade this is happening almost always, and terminal (Windows PowerShell) is behaving strangely.

I had the same issue while developing a platform channel for iOS. As I didn't have much experience with iOS development, I didn't know how to debug the issue. My issue was that I called this line twice...
@implementation AppDelegate

- (BOOL)application:(UIApplication *)application
    didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    [GeneratedPluginRegistrant registerWithRegistry:self];
    // code...
    // Called it for a second time which caused the app to crash
    [GeneratedPluginRegistrant registerWithRegistry:self];
    return [super application:application didFinishLaunchingWithOptions:launchOptions];
}

Facing same issue... did anyone solve?

Any solution for this issue?

In my case the problem is about to be "Android License" because when i running flutter doctor -v , it showing "Checking Android License is taking unexpected long time".

Guys, It worked for me:

Created a fresh project
Temp files were causing the trouble with android licenses (a restart did the trick)
Java version was also causing trouble so changed the build.gradle file
// Added by me for solving java version error
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

Hope this helps!

Great :) .

Same with me.

stopped working for me after i upgraded to High Sierra 10.13.4 to Mojave 10.14.3

anybody can solve it?

I did run on command line flutter clean and re-ran and it worked for me.

I was having the same issues when i ran the command flutter create app_name or flutter run.
Here in Brazil the website  that flutter uses to get the packages with flutter packages get isn't reachable. I tried using TunnelBear VPN connecting to a USA network and it all worked fine. I think thats why people here from certain countries can't debug or even reproduce this issue.

Also having the same issue here.

Please reopen this issue
Thanks,

In general, if you are getting this problem you should try the same command with the verbose option, i.e. flutter run -v.  That should show where the tool is getting hung up more explicitly.
There are a lot of possible causes for this.  The only way to clear it up is to look at the verbose logs.

Thank so much @dnfield
I tried flutter run -v

My system info

Build time:   2018-09-19 18:10:15 UTC
Revision:     b4d8d5d170bb4ba516e88d7fe5647e2323d791dd

Kotlin DSL:   1.0-rc-6
Kotlin:       1.2.61
Groovy:       2.4.15
Ant:          Apache Ant(TM) version 1.9.11 compiled on March 23 2018
JVM:          1.8.0_152-release (JetBrains s.r.o 25.152-b01)
OS:           Windows 10 10.0 amd64

And below block repeated

[   +5 ms] Installing build\app\outputs\apk\app.apk... (completed in 4.0s)
[   +4 ms] executing: C:\Users\homin\AppData\Local\Android\sdk\platform-tools\adb -s emulator-5554 shell echo -n a035babf1012c70edcb5e053005b13fb313f5293 >/data/local/tmp/sky.com.example.demo_flutter.sha1
[  +94 ms] Android SDK built for x86 64 startApp
[   +6 ms] executing: C:\Users\homin\AppData\Local\Android\sdk\platform-tools\adb -s emulator-5554 shell am start -a android.intent.action.RUN -f 0x20000000 --ez enable-background-compilation true --ez enable-dart-profiling true --ez enable-checked-mode true --ez verify-entry-points true com.example.demo_flutter/com.example.demo_flutter.MainActivity
[ +500 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.demo_flutter/.MainActivity (has extras) }
[   +5 ms] Waiting for observatory port to be available...
[+2885 ms] Observatory URL on device: http://<IP_ADDRESS>:37032/
[  +26 ms] executing: C:\Users\homin\AppData\Local\Android\sdk\platform-tools\adb -s emulator-5554 forward tcp:0 tcp:37032
[  +56 ms] 51933
[   +3 ms] Forwarded host port 51933 to device port 37032 for Observatory
[  +18 ms] Connecting to service protocol: http://<IP_ADDRESS>:51933/
[+1361 ms] Successfully connected to service protocol: http://<IP_ADDRESS>:51933/
[   +8 ms] Sending to VM service: getVM({})
[  +16 ms] Result: {type: VM, name: vm, architectureBits: 64, targetCPU: x64, hostCPU: Virtual CPU, version: 2.1.2-dev.0.0.flutter-0a7dcf17eb (Tue Feb 12 01:59:15 2019 +0000) on "android_x64", _profilerMode: VM, _nativeZoneMemoryUsage: 0, pid: 7520, startTime: 15537...
[  +17 ms] Sending to VM service: _flutter.listViews({})
[  +12 ms] Result: {type: FlutterViewList, views: []}
[  +57 ms] Sending to VM service: getVM({})
[  +19 ms] Result: {type: VM, name: vm, architectureBits: 64, targetCPU: x64, hostCPU: Virtual CPU, version: 2.1.2-dev.0.0.flutter-0a7dcf17eb (Tue Feb 12 01:59:15 2019 +0000) on "android_x64", _profilerMode: VM, _nativeZoneMemoryUsage: 0, pid: 7520, startTime: 15537...
[  +10 ms] Sending to VM service: _flutter.listViews({})
[  +27 ms] Result: {type: FlutterViewList, views: []}
.
.
.

@minhlong can you open a new bug for that?

SOLVED
@dnfield and All ,
After updating the android sdk, it has been solved.

Check Android SDK Build-Tools

Apply and OK

Restart my laptop

Go to the project, and run below command lines

flutter clean
flutter emulators --launch my-machine-id
flutter run

Thank all,

Compiler message:
file:///C:/flutter/packages/flutter/lib/src/foundation/diagnostics.dart:996:66: Error: Getter not found: 'extChildStyle'.
final String childPrefixOtherLines ='$prefixChildren${~extChildStyle.linkCharacter}${childConfig.prefixOtherLines}';
^^^^^^^^^^^^^
file:///C:/flutter/packages/flutter/lib/src/foundation/diagnostics.dart:996:66: Error: The getter 'extChildStyle' isn't defined for the class 'DiagnosticsNode'.

'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///C:/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'extChildStyle'.
final String childPrefixOtherLines ='$prefixChildren${~extChildStyle.linkCharacter}${childConfig.prefixOtherLines}';
^^^^^^^^^^^^^
Compiler failed on C:\Users\nepal\AndroidStudioProjects\flutter_app\lib/main.dart
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done                        24.9s
Gradle task assembleDebug failed with exit code 1

C:\Users\nepal\AndroidStudioProjects\flutter_app>

please reopen. im having the same issue for ios and android. none of the above workarounds worked ...

@khalithartmann Please consider opening a new bug, along with the output of the command that's timing out run with the --verbose (or -v) flag.  The original author of this bug closed it as resolved, and it there are many, many possible causes for this behavior.

thank you @minhlong, your solution works for me
but I didn't realize it at first. after I read
https://stackoverflow.com/a/51387250/9783262
https://stackoverflow.com/a/54723296/9783262
I run -> "flutter run -v" instead of just "flutter run"
I was waiting near 20 minutes but, in the end, it got working

i got android working too . but does anyone have a solution for IOS ??

Same issue any fix ?

command
flutter build apk
exception
ProcessException: ProcessException: Process "C:\Users\User\Documents\Flutter\mbunge\android\gradlew.bat" exited abnormally:
Exception in thread "main" java.lang.RuntimeException: Timeout of 120000 reached waiting for exclusive access to file: C:\Users\User.gradle\wrapper\dists\gradle-4.10.2-all\9fahxiiecdb76a5g3aw9oi8rv\gradle-4.10.2-all.zip
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:61)
at org.gradle.wrapper.Install.createDist(Install.java:48)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
Command: C:\Users\User\Documents\Flutter\mbunge\android\gradlew.bat -v
#0      runCheckedAsync (package:flutter_tools/src/base/process.dart:250:5)
<asynchronous suspension>
#1      _initializeGradle (package:flutter_tools/src/android/gradle.dart:210:9)
<asynchronous suspension>
#2      _ensureGradle (package:flutter_tools/src/android/gradle.dart:191:37)
<asynchronous suspension>
#3      buildGradleProject (package:flutter_tools/src/android/gradle.dart:321:31)
<asynchronous suspension>
#4      buildApk (package:flutter_tools/src/android/apk.dart:43:10)
<asynchronous suspension>
#5      BuildApkCommand.runCommand (package:flutter_tools/src/commands/build_apk.dart:45:11)
<asynchronous suspension>
#6      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:545:18)
#7      _asyncThenWrapperHelper.<anonymous closure> (dart:async/runtime/libasync_patch.dart:77:64)
#8      _rootRunUnary (dart:async/zone.dart:1132:38)
#9      _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#10     _FutureListener.handleValue (dart:async/future_impl.dart:126:18)
#11     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:639:45)
#12     Future._propagateToListeners (dart:async/future_impl.dart:668:32)
#13     Future._complete (dart:async/future_impl.dart:473:7)
#14     _SyncCompleter.complete (dart:async/future_impl.dart:51:12)
#15     _AsyncAwaitCompleter.complete.<anonymous closure> (dart:async/runtime/libasync_patch.dart:33:20)
#16     _rootRun (dart:async/zone.dart:1124:13)
#17     _CustomZone.run (dart:async/zone.dart:1021:19)
#18     _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:947:23)
#19     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#20     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#21     _runPendingImmediateCallback (dart:isolate/runtime/libisolate_patch.dart:115:13)
#22     _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:172:5)

flutter doctor
[✓] Flutter (Channel stable, v1.2.1, on Microsoft Windows [Version 10.0.17763.379], locale en-US)
    • Flutter version 1.2.1 at C:\flutter
    • Framework revision 8661d8aecd (7 weeks ago), 2019-02-14 19:19:53 -0800
    • Engine revision 3757390fa4
    • Dart version 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at C:\Users\User\AppData\Local\Android\Sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • ANDROID_HOME = C:\Users\User\AppData\Local\Android\Sdk
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
    • All Android licenses accepted.

[!] Android Studio (version 3.3)
    • Android Studio at C:\Program Files\Android\Android Studio
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)

[✓] VS Code, 64-bit edition (version 1.32.3)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Flutter extension version 2.25.0

[!] Connected device
    ! No devices available

! Doctor found issues in 2 categories.

Anyone find a solution?

Fixed this by:
download gradle 4.10.1 all zip extracted to a more accessible dir e.g ( C:\ )
![Annotation (1)](https://user-images.githubusercontent.com/32388339/55755143-fecc4d00-5a56-11e9-8e90-f824a2b7a025.png
then updated my system variables

and now
flutter run/build works

have anyone solved this problem

@Iampato tried it. But didn't quite solve the issue.

I had the same problem even in running flutter doctor but it just takes more time and workes after 3-4 minutes later. and none of the mentioned ways couldn't solve my problem.

i had almost the same issue by running flutter build apk --release it was given nothing but when i tried to simply run flutter build i have got the apk-release

In my case the problem is about to be "Android License" because when i running flutter doctor -v , it showing "Checking Android License is taking unexpected long time".

you can resolve issues related to Android License by running command  flutter doctor --android-licenses

Hi there, after updating Android SDK build tools and restarting PC flutter started working again.

I have the same issue without Android SDK.
I use VSCode on Mac, and when I build for ios (either simulator or device), I receive lots of:
(This is taking an unexpectedly long time.)
On simulator, 'only' around 20 of them.
But on device it keeps scrolling screen for several minutes.

For my side it was about the updating sdk when i downgraded everything and run Flutter clean then Flutter build everything works perfectly

Same issue here.
The output of flutter doctor -v
[✓] Flutter (Channel stable, v1.2.1, on Linux, locale en_IN)
    • Flutter version 1.2.1 at /home/akash/flutter
    • Framework revision 8661d8aecd (3 months ago), 2019-02-14 19:19:53 -0800
    • Engine revision 3757390fa4
    • Dart version 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /home/akash/Android
    • Android NDK location not configured (optional; useful for native profiling
      support)
    • Platform android-28, build-tools 28.0.3
    • ANDROID_HOME = /home/akash/Android
    • Java binary at: /usr/lib/jvm/java-8-openjdk-amd64/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_171-8u171-b11-2-b11)
    • All Android licenses accepted.

[!] Android Studio (not installed)
    • Android Studio not found; download from
      https://developer.android.com/studio/index.html
      (or visit https://flutter.io/setup/#android-setup for detailed
      instructions).

[✓] VS Code (version 1.32.3)
    • VS Code at /usr/share/code
    • Flutter extension version 2.25.1

[✓] Connected device (1 available)
    • Redmi Note 4 • f6c2c2929804 • android-arm64 • Android 7.0 (API 24)

! Doctor found issues in 1 category.

and output of flutter run -v
[  +64 ms] executing: [/home/akash/flutter/] git rev-parse --abbrev-ref
--symbolic @{u}
[  +84 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [/home/akash/flutter/] git rev-parse --abbrev-ref HEAD
[  +22 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[        ] executing: [/home/akash/flutter/] git ls-remote --get-url origin
[  +19 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[   +1 ms] executing: [/home/akash/flutter/] git log -n 1 --pretty=format:%H
[  +21 ms] Exit code 0 from: git log -n 1 --pretty=format:%H
[        ] 8661d8aecd626f7f57ccbcb735553edc05a2e713
[        ] executing: [/home/akash/flutter/] git log -n 1 --pretty=format:%ar
[  +20 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar
[        ] 3 months ago
[   +1 ms] executing: [/home/akash/flutter/] git describe --match v*.*.*
--first-parent --long --tags
[  +23 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long
--tags
[   +2 ms] v1.2.1-0-g8661d8aec
[ +191 ms] executing: /home/akash/Android/platform-tools/adb devices -l
[  +27 ms] Exit code 0 from: /home/akash/Android/platform-tools/adb devices -l
[        ] List of devices attached
           f6c2c2929804           device usb:1-1.1 product:mido
           model:Redmi_Note_4 device:mido transport_id:2
[ +515 ms] /home/akash/Android/platform-tools/adb -s f6c2c2929804 shell getprop
[ +110 ms] ro.hardware = qcom
[+1449 ms] Launching lib/main.dart on Redmi Note 4 in debug mode...
[  +48 ms] Initializing gradle...
[  +32 ms] Using gradle from
/home/akash/Documents/testing_stuff/flutter/demo/android/gradlew.
[  +15 ms] executing:
/home/akash/Documents/testing_stuff/flutter/demo/android/gradlew -v

And it just stops there.
PS: I don't have android studio but android sdk tools as well as gradle are all properly configured as i have build projects with Ionic and React Native. Trying flutter out but stuck in the very first step.

so i realized that every once in a while you have to delete the ios and android files and rebuild them. You have to constantly keep those up to date . I created a flutter project when flutter was still in beta and i was frequently running into very weird issues (one of them was this one).
When i deleted the ios and android files and ran "flutter create . " it solved a lot of my problems . Note that this will delete all gradle , manifest , plist. .. configs so i would save those . Hope it helps . You can also check out this link : https://github.com/flutter/flutter/wiki/Workarounds-for-common-issues#generated-project-files-outdated

Try to clean by running flutter clean then run flutter run -v

Tried flutter clean and flutter run..still no luck...
and yes I'll try the method khalithartmann have suggested.. upgrade flutter sdk and delete the iOS android folders and do flutter create .

Where are you running your command? I'll suggest you to run your code in the CLI not in the IDE terminal. Because it looks like your app is updating your gradle it'll take a bit of time

I'm running the command on Terminal. not Integrated Terminal of Visual Studio Code that I'm using for development

Recently I was suffering from the same issue but now it is solved as I updated with the latest Dart SDK and reboot my laptop.
(In my case) 👍
If again it appears "taking too much time" then turn on your internet connection and wait for 10 to 15 minutes. It will start working automatically.
This problem mainly occurs when you import other projects so they require different Gradle version to build the apk.
Hope this will help

Great to hear that.
Few questions for clarification

Update dart Sdk == updating the flutter sdk which is to be installed right?
You tried running you app through emulator or real device?
Explain a little better what you mean different gradle version

Install the latest [Flutter SDK v1.5.4-hotfix.2-stable.zip](https://storage.googleapis.com/flutter_infra/releases/stable/windows/flutter_windows_v1.5.4-hotfix.2-stable.zip)
In my case, I have flutter_windows_v1.2.1-stable

I'm running my app on the real device_(Redmi 4x)_

You can check the Gradle version in build.gradle file under Android folder.

I mean that if you are using Gradle 5.3.1 to build your project and then you share that file with any other developer. So he/she has to download the same Gradle version or above to work with your code...
Download Gradle files from here https://gradle.org/
Hope this will help!

1.Install the latest Flutter SDK v1.5.4-hotfix.2-stable.zip
In my case, I have flutter_windows_v1.2.1-stable

I'm running my app on the real device(Redmi 4x)

You can check the Gradle version in build.gradle file under Android folder.

I mean that if you are using Gradle 5.3.1 to build your project and then you share that file with any other developer. So he/she has to download the same Gradle version 5.3.1 or above to work with your code...
Download Gradle files from here https://gradle.org/
Hope this will help!

I understand this might be noob answer, but might want to give it a try.
I was using actual android device to "flutter run" command which initially yielded -- "this is taking an unexpectedly long time"
I simply terminated that process.
Moved on to disconnect the phone.
Switch usb port.
Redo.
It worked :)
And like we say, "somehow it did :)"

I had a similar issue, in my case I had a dependency that required iOS 11 that I no longer needed and removed from my pubspec.yaml. I think when I did that my iOS target dropped to iOS 8 instead of 11, but due to a leftover dependency that still required iOS 11 target, it was causing my build to fail.
I fixed this by running:
flutter clean && \
  cd ios && \
  rm -rf Pods && \
  rm -rf .symlinks && \
  pod install && \
  cd ..

1.delete your flutter lockfile
path like this:  /Users/xxx/Desktop/flutter/bin/cache
2.remove your App.framework
path like this: /my-app/ios/Flutter/App.framework
3.restart your IDE
4.flutter clean
5.flutter run

I had a similar issue, in my case I had a dependency that required iOS 11 that I no longer needed and removed from my pubspec.yaml. I think when I did that my iOS target dropped to iOS 8 instead of 11, but due to a leftover dependency that still required iOS 11 target, it was causing my build to fail.
I fixed this by running:
flutter clean && \
  cd ios && \
  rm -rf Pods && \
  rm -rf .symlinks && \
  pod install && \
  cd ..

This worked!

use flutter doctor -v
it usually download gradle(which is a large file) for the first time you run a flutter program.The above will help you to see the message that its downloading gradle/dist.It wont happen from the next program

i turned on VPN before running the command "flutter build apk" and it worked tho idk why.

None of these solutions have worked for me.
output of flutter -v doctor -v:
[+1165 ms] [✓] Android toolchain - develop for Android devices (Android SDK
version 29.0.3)
[        ]     • Android SDK at /Users/sathwikdoddi/Library/Android/sdk
[        ]     • Platform android-29, build-tools 29.0.3
[        ]     • Java binary at: /Applications/Android
                 Studio.app/Contents/jre/jdk/Contents/Home/bin/java
[        ]     • Java version OpenJDK Runtime Environment (build
                 1.8.0_242-release-1644-b3-6222593)
[        ]     • All Android licenses accepted.
[   +4 ms] [✓] Xcode - develop for iOS and macOS (Xcode 11.5)
[        ]     • Xcode at /Applications/Xcode.app/Contents/Developer
[        ]     • Xcode 11.5, Build version 11E608c
[        ]     • CocoaPods version 1.9.1
[   +1 ms] [✓] Android Studio (version 4.0)
[        ]     • Android Studio at /Applications/Android Studio.app/Contents
[        ]     • Flutter plugin version 46.0.2
[        ]     • Dart plugin version 193.7361
[        ]     • Java version OpenJDK Runtime Environment (build
                 1.8.0_242-release-1644-b3-6222593)
[   +3 ms] [✓] VS Code (version 1.46.1)
[        ]     • VS Code at /Applications/Visual Studio Code.app/Contents
[        ]     • Flutter extension version 3.12.1
[   +1 ms] [✓] Connected device (1 available)
[        ]     • iPhone 11 • 0B932A3D-FFE3-4A4A-947F-EE67AF8DC6F9 • ios •
                 com.apple.CoreSimulator.SimRuntime.iOS-13-5 (simulator)
[        ] • No issues found!
[  +16 ms] "flutter doctor" took 8,452ms.
[ +202 ms] ensureAnalyticsSent: 194ms
[   +2 ms] Running shutdown hooks
[        ] Shutdown hooks complete
[        ] exiting with code 0

Every time I run a project, It takes "an unexpectedly long time..." and half of the time, I get an error saying "Could not build the application for the simulator. Error launching application on iPhone 11." The only way to fix the launch error is by removing the Pods folder from the ios directory and rerunning. But the unexpectedly long time error is not going away no matter what I try to do.
If anyone has a solution for either of my problems, it would be much appreciated

Here is the could not build error with flutter run -v:
[+1680 ms] Could not build the application for the simulator.
[        ] Error launching application on iPhone 11.
[  +11 ms] "flutter run" took 144,131ms.
[  +14 ms]
           #0      throwToolExit
(package:flutter_tools/src/base/common.dart:14:3)
           #1      RunCommand.runCommand
           (package:flutter_tools/src/commands/run.dart:578:7)
           <asynchronous suspension>
           #2      FlutterCommand.verifyThenRunCommand
           (package:flutter_tools/src/runner/flutter_command.dart:844:18)
           #3      _rootRunUnary (dart:async/zone.dart:1198:47)
           #4      _CustomZone.runUnary (dart:async/zone.dart:1100:19)
           #5      _FutureListener.handleValue
(dart:async/future_impl.dart:143:18)
           #6      Future._propagateToListeners.handleValueCallback
           (dart:async/future_impl.dart:696:45)
           #7      Future._propagateToListeners
(dart:async/future_impl.dart:725:32)
           #8      Future._completeWithValue (dart:async/future_impl.dart:529:5)
           #9      _AsyncAwaitCompleter.complete
(dart:async-patch/async_patch.dart:40:15)
           #10     _completeOnAsyncReturn
(dart:async-patch/async_patch.dart:311:13)
           #11     RunCommand.usageValues
(package:flutter_tools/src/commands/run.dart)
           #12     _rootRunUnary (dart:async/zone.dart:1198:47)
           #13     _CustomZone.runUnary (dart:async/zone.dart:1100:19)
           #14     _FutureListener.handleValue
(dart:async/future_impl.dart:143:18)
           #15     Future._propagateToListeners.handleValueCallback
           (dart:async/future_impl.dart:696:45)
           #16     Future._propagateToListeners
(dart:async/future_impl.dart:725:32)
           #17     Future._completeWithValue (dart:async/future_impl.dart:529:5)
           #18     Future._asyncCompleteWithValue.<anonymous closure>
           (dart:async/future_impl.dart:567:7)
           #19     _rootRun (dart:async/zone.dart:1190:13)
           #20     _CustomZone.run (dart:async/zone.dart:1093:19)
           #21     _CustomZone.runGuarded (dart:async/zone.dart:997:7)
           #22     _CustomZone.bindCallbackGuarded.<anonymous closure>
           (dart:async/zone.dart:1037:23)
           #23     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
           #24     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
           #25     _runPendingImmediateCallback
           (dart:isolate-patch/isolate_patch.dart:118:13)
           #26     _RawReceivePortImpl._handleMessage
           (dart:isolate-patch/isolate_patch.dart:169:5)

Update your dependencies before running and try running by commenting out dependency_overrides

I have fixed that issue with installing latest jdk and jre and added both path to environment variables. it fixes my all flutter issues now flutter is working on its speed.


harmonized scan

Codecov Report

Merging #425 into master will increase coverage by 0.43%.
The diff coverage is 93.00%.

@@            Coverage Diff             @@
##           master     #425      +/-   ##
==========================================
+ Coverage   71.66%   72.10%   +0.43%
==========================================
  Files          53       53
  Lines        3886     3850      -36
==========================================
- Hits         2785     2776       -9
+ Misses       1101     1074      -27

Impacted Files
Coverage Δ

flax/core/lift.py
64.25% <90.47%> (-3.14%)
:arrow_down:

flax/core/unified_transforms.py
95.31% <94.54%> (+95.31%)
:arrow_up:

flax/linen/__init__.py
100.00% <100.00%> (ø)

flax/linen/transforms.py
89.83% <100.00%> (+3.97%)
:arrow_up:

flax/core/scope.py
81.09% <0.00%> (+0.49%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5ace793...2b6520f. Read the comment docs.

Oops, Didn't see your comment so I rebased this branch already


Current design of internal dispatcher could not handle dynamic go-channel allocation.

Current workaround, where tracing and lisibility are not efficient
tasks:
  id: 1
  command: |
      cat <<EOF | psql -At | xargs -P 1 -I % sh -x -c %
        SELECT format('vacuumdb --table %s', tablename)
          FROM pg_tables WHERE tablename LIKE 'a%';"
      EOF

Another way to declare a tasks generator:
tasks:
  - id: 1
    type: sh
    generated:
      from: psql
      command : |
        SELECT format('vacuumdb --table %s', tablename)
          FROM pg_tables WHERE tablename LIKE 'a%';

The new exec command has been added in 92e33800b25c597153d4803519d645fda70eb8f7
A command or a file could be used without configuration with CLI


Check and add more SPARQL endpoints

List here: https://github.com/OpenLinkSoftware/general-turtle-doc-collection/blob/master/LODCloud_SPARQL_Endpoints.ttl
We could also parse it automatically
Biomedical SPARQL: https://yummydata.org/

Biomedical endpoints: https://jbiomedsem.biomedcentral.com/articles/10.1186/s13326-016-0079-8#Abs1

such as UniProt, DisGeNet [30], Protein Data Bank Japan (PDBj) [17], and EBI resources such as Gene Expression Atlas [31], ChEMBL [32], BioModels [33], Reactome [34], and BioSamples [35]


DOC: Add GitHub Desktop Contribution Instructions

What's wrong with the existing documentation
currently, there are no instructions for Github Desktop
Add ScreenShots
-Describe the changes that you want to make in the documentation
A clear and concise description of the changes to be made in documentation
I am interested in contributing to the project by adding detailed instructions on how to contribute using GitHub Desktop.
I believe that by providing clear and comprehensive guidance, we can encourage more contributors to participate in the project, especially those who prefer using GitHub Desktop for their contributions.
Could you please assign me the issue related to adding GitHub Desktop contribution instructions under gssoc24? I am excited about the opportunity to contribute to the project and help streamline the contribution process for others.
Significance of the changes made
describe the effect of these changes
I believe that by providing clear and comprehensive guidance, we can encourage more contributors to participate in the project, especially those who prefer using GitHub Desktop for their contributions.
Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

@Anushkabh Assign me this issue


Deleted documents - status in /turer requests

It is unclear what happens to deleted documents.
I am currently mirroring the "turer" objects, but cannot figure out what happens if an object is deleted in UT.no data store - will this show up as something like "status: slettet" - or will it then be gone and absent in the response?

Great question,

Deleted documents are replaced with {"status": "Slettet"} in the database (source code)
Deleted documents does not show up when iterating over a collection (maybe we should add this possibility)
Deleted documents will return Status Code 404 and body {"message": "Not Found"} when accessed directly (source code)

Okey, sounds good. Then I would propose to add "include deleted docs" or similar to the request.
If you are trying to implement a mirrored data store of any kind, keeping track of the changes that occurred is what you care about. Without the deleted documents, each document in the mirrored store would have to be checked every time you want an updated data store with regards to deleted documents - which with current data size and api rate limit would take several hours.
With deleted requests included such a mirrored data store could be kept up to date in the same manner as new updates or changes can be dealt with today.
What do you think?


fix _securityprovider call in user.pp

use _securityprovider, otherwise files and settings won't be set if inherited from mcollective::securityprovider

This is fine, failures are unrelated.


How to compute the gaussian_radius?Who can tell me the formula about it?Thank you!

i have the same question. i have tryed to derive the mathematical formulas.but mine is different with the author's code

here is one of my mathematical formulas for (r3)

Ha，it looks like an answer,just but the denominator !
I guess that it is the two peaks of redius value。The minimum value should be obtained from the two peaks.But，i cannot prove my guess.

for r1

for r2

for r3

conclusion:
with great possibility,the authour's mathmatical formulas are not correct and are not corresponding to the mind in papers.

the correct formulas as below

the correct formulas as below

what is the redius of the object as  below??

compute as below

by the way,i am improving the method in this way.

compute as below

by the way,i am improving the method in this way.

Yes，this is the same as my idea，i look forward to the result, but,we need a dataset including various aspect ratios to confirm the idea!

just the previous datasets like COCO is ok

just the previous datasets like COCO is ok

Its my code in CenterNet and it can improve the performance a little! The formula can get by MATLAB Simulink. I need time to do this.
a = min((1 - min_overlap) / (1 + min_overlap) * width, 0.5 * width)
b = min((1 - min_overlap) / (1 + min_overlap) * height, 0.5 * height)
return a, b

@qiuhaining ok,can you underline the code you have changed or just a picture,because i can not easily find the diversity

Was this a small bug? Has someone noticed any improvements after re-typing the formulas?

@ggsggs i have tried.the result is that AP is almost the same,but AR is higher. i haven't found the reason why

@ggsggs i have tried.the result is that AP is almost the same,but AR is higher. i haven't found the reason why

Oh, interesting. Was it a significant improvement in AR?

@ggsggs the result as below:

@ggsggs  by the way,my work is based on the paper centernet(objects as points),using the model resdcn-18

@ggsggs the result as below:

@fenglv12345 Thank you for the experiments. ~1-3 points higher! It's not bad at all :)

@ggsggs by the way,my work is based on the paper centernet(objects as points),using the model resdcn-18

I am also working with CenterNet(objects as points one), actually. So it is good to know.

@ggsggs thanks for your reminding which make me deep into the problem,perhaps i found the reason why. And i have a idea to make the AP higher while the AP is higher. By the way,there is some other method which has the problem (COCO detection challenge . focus on the MSRA)

@fenglv12345  @ggsggs , In CenterNet I use the modified gaussian_radius you mentioned above, and keep other training parameters invariable,I use DLA34dcn, but both the AP and AR reduce. Can you tell me how you get the AR increase? Do you change any other hyper-parameter?

@CF2220160244 my work in based on resdcn18 ,i didn't change any hyper-parameter,maybe there is some wrong with your implement. the formula as below.or you can show me your code

@fenglv12345 ,my code is:
r = 0.5*(1-np.sqrt(min_overlap))*np.sqrt(width2 + height2)
return r

what about a and b？ please understand the formula,you should also change the gaussian function,rather than just the r

(1)get r
(2)get a and b
(3)change the gasssian function as above (when you change this,you will find some details should be changed)

by the way,you don't have to calculate this :np.sqrt(width ** 2 + height ** 2),just use w and h

Thank you very much, I will try! @fenglv12345

@fenglv12345
Is it right? I change the code to the following,
def gaussian2D(shape, sigma=1):
def gaussian2D(shape, a=1,b=1):
m, n = [(ss - 1.) / 2. for ss in shape]
y, x = np.ogrid[-m:m+1,-n:n+1]
# h = np.exp(-(x * x + y * y) / (2 * sigma * sigma))
h = np.exp(-(x * x ) / (2 * a/3 * a/3)-(y * y) / (2 * b/3 * b/3))
h[h < np.finfo(h.dtype).eps * h.max()] = 0
return h
def draw_umich_gaussian(heatmap, center, radius, k=1):
diameter = 2 * radius + 1
height, width = heatmap.shape[0:2]
gaussian = gaussian2D((diameter, diameter), a=0.1155 * width, b=0.1155 * height)
gaussian = gaussian2D((diameter, diameter), sigma=diameter / 6)
x, y = int(center[0]), int(center[1])
height, width = heatmap.shape[0:2]
....
def gaussian_radius(det_size, min_overlap=0.7):
height, width = det_size
r = 0.5*(1-np.sqrt(min_overlap))*np.sqrt(width2 + height2)
return r

diameter = 2 * radius + 1
height, width = heatmap.shape[0:2]
gaussian = gaussian2D((diameter, diameter),
the diameter should be changed, understanding the meaning of diameter and its relationship with a and b
for some reason,i can't see my code now,sorry.

@fenglv12345 thank you!
Can you tell me what is the meaning of diameter and its relationship with a and b ?
I think the radius should be sigma_a and sigma_b, so i use:
def draw_umich_gaussian(heatmap, center, radius, k=1):     height, width = heatmap.shape[0:2]     sigma_a = 0.1155 * width/3     sigma_b = 0.1155 * height/3     diameter_a = 2 * sigma_a + 1     diameter_b = 2 * sigma_b + 1     gaussian = gaussian2D((diameter_a, diameter_b), sigma_a, sigma_b)

*********sample/ctdet.py
#draw_gaussian = draw_msra_gaussian if self.opt.mse_loss else
?draw_umich_gaussian
draw_gaussian = draw_msra_gaussian if self.opt.mse_loss else
draw_umich_gaussian1
gt_det = []
for k in range(num_objs):
  ann = anns[k]
  bbox = self._coco_box_to_bbox(ann['bbox'])
  cls_id = int(self.cat_ids[ann['category_id']])
  if flipped:
    bbox[[0, 2]] = width - bbox[[2, 0]] - 1
  bbox[:2] = affine_transform(bbox[:2], trans_output)
  bbox[2:] = affine_transform(bbox[2:], trans_output)
  bbox[[0, 2]] = np.clip(bbox[[0, 2]], 0, output_w - 1)
  bbox[[1, 3]] = np.clip(bbox[[1, 3]], 0, output_h - 1)
  h, w = bbox[3] - bbox[1], bbox[2] - bbox[0]
  if h > 0 and w > 0:
    ra,rb = gaussian_radius1((math.ceil(h), math.ceil(w)))
    ra = max(0, int(ra))
    rb = max(0, int(rb))
    #radius = self.opt.hm_gauss if self.opt.mse_loss else radius
    ct = np.array(
      [(bbox[0] + bbox[2]) / 2, (bbox[1] + bbox[3]) / 2], dtype=np.float32)
    ct_int = ct.astype(np.int32)
    #draw_gaussian(hm[cls_id], ct_int, radius)
    draw_gaussian(hm[cls_id], ct_int, ra,rb)

*********image.py
def gaussian_radius1(det_size, min_overlap=0.7):
height, width = det_size
ra=0.1155height
rb=0.1155width
return ra,rb
def draw_umich_gaussian1(heatmap, center, rw, rh,k=1):
diameterw = 2 * rw + 1
diameterh = 2 * rh + 1
gaussian = gaussian2D_1((diameterh, diameterw), sigmah=diameterh / 6,sigmaw=diameterw / 6)
x, y = int(center[0]), int(center[1])
height, width = heatmap.shape[0:2]
left, right = min(x, rw), min(width - x, rw + 1)
top, bottom = min(y, rh), min(height - y, rh + 1)
masked_heatmap  = heatmap[y - top:y + bottom, x - left:x + right]
masked_gaussian = gaussian[rh - top:rh + bottom, rw - left:rw + right]
if min(masked_gaussian.shape) > 0 and min(masked_heatmap.shape) > 0:
np.maximum(masked_heatmap, masked_gaussian * k, out=masked_heatmap)
return heatmap
ef gaussian2D_1(shape, sigmah=1,sigmaw=1):
m, n = [(ss - 1.) / 2. for ss in shape]
y, x = np.ogrid[-m:m+1,-n:n+1]
h = np.exp(-(x * x/ (2 * sigmaw * sigmaw) + y * y/ (2 * sigmah * sigmah)))
h[h < np.finfo(h.dtype).eps * h.max()] = 0
return h

you can try the code above,compare
@CF2220160244

compute as below

by the way,i am improving the method in this way.

compute as below

by the way,i am improving the method in this way.

Yes，this is the same as my idea，i look forward to the result, but,we need a dataset including various aspect ratios to confirm the idea!

How to deduce the formula "a = sqrt(2)r1 a / sqrt(a^2 + b^2)"?

@fenglv12345
After i change to the oral gauss，the AR is almost the same，but the AP drop obviously, there are more false positive.

@fenglv12345
How to deduce the formula "a = sqrt(2)r1 a / sqrt(a^2 + b^2)"?

@fenglv12345
How to deduce the formula "a = sqrt(2)r1a / sqrt(a^2 + b^2)" when using oval gaussian?

@seekFire as below

@CF2220160244 which model you have trained?dla34 or res18?res18 worked.and dla34 didn't work,i am trying to fix the problem,not the formula but other things, i will upload my code two or three days later on my repositories

@fenglv12345 Good! Thank you very much!

@fenglv12345 I train DLA. Looking forward to your result!

@fenglv12345
By the way, does the function "draw_dense_reg" in image.py also need to be rectify?

@seekFire  we don't use draw_dense_reg

@fenglv12345
But in sample/ctdet.py, the class "CTDetDataset" used this function, I think it may be used for generating offset heatmap of center point detection...

@fenglv12345 Do you have any progress about the training?

@fenglv12345

In your code "gaussian_radius1", I think 'ra' represent 'rh' and 'rb' represent 'w', but in code "draw_umich_gaussian1" you send 'ra' to 'rw' and 'rb' to 'rh'

I'm confused with "ra", "rb" and "rh", "rw", could you explain it?

@qiuhaining i follow your code,but get error while training,have u change code expect the image u show

which size should i use to calculate the radius of the gaussion? i believe the shape should be the size of the gt bbox divided by the stride, but the code seem to use the original size of the gt bbox ? did i miss something ?

def gaussian2D(shape, sigma=1):
    m, n = [(ss - 1.) / 2. for ss in shape]
    y, x = np.ogrid[-m:m+1,-n:n+1]

    h = np.exp(-(x * x + y * y) / (2 * sigma * sigma))
    h[h < np.finfo(h.dtype).eps * h.max()] = 0
    return h

def draw_umich_gaussian(heatmap, center, radius, k=1):
  diameter = 2 * radius + 1
  gaussian = gaussian2D((diameter, diameter), sigma=diameter / 6)

when the radius = 0,  will meet this bug:
    y, x = np.ogrid[-radius:radius+1, -radius:radius+1]
TypeError: bad operand type for unary -: 'tuple'

maybe small object cause, anyone meet this quesiton?

@ranjiewwen yes, the stride in centernet is 4, If the short edge of the object only occupies 3 pixels, floor(3/4)=0

@fenglv12345

In your code "gaussian_radius1", I think 'ra' represent 'rh' and 'rb' represent 'w', but in code "draw_umich_gaussian1" you send 'ra' to 'rw' and 'rb' to 'rh'

I'm confused with "ra", "rb" and "rh", "rw", could you explain it?

Must be a mistake

@CF2220160244 my work in based on resdcn18 ,i didn't change any hyper-parameter,maybe there is some wrong with your implement. the formula as below.or you can show me your code

Hi @fenglv12345 ,
I'm curious about why you use r2 for CenterNet.
In CornerNet, because r3 > r1 > r2 so you choose r2.
But in CenterNet, the only case that happen is r1.
I am not sure if my idea is correct.
Looking forward to your reply.
Thank you.

@fenglv12345 你好，请问你在前面放的你的代码图里，ra和rb与公式相反了，是否是写错了呢

@CF2220160244 my work in based on resdcn18 ,i didn't change any hyper-parameter,maybe there is some wrong with your implement. the formula as below.or you can show me your code

Hi @fenglv12345 ,
I'm curious about why you use r2 for CenterNet.
In CornerNet, because r3 > r1 > r2 so you choose r2.
But in CenterNet, the only case that happen is r1.
I am not sure if my idea is correct.
Looking forward to your reply.
Thank you.

Hi @JyunYuLai ,
I agree with you. CenterNet only need to find one point(center), not two corners. So, the only case that happens is r1.
What do you think? @fenglv12345.
Looking forward to your reply. Thanks.

In  my experiment useing right method to generate gaussian heatmap will make result bad surprisingly
Intuitively it should improve the perfomance, so really upset about that. Let's named origin generating method as G1 and rectified method as G2
my dataset is aerial image.here's example of G1 and G2, first one is G1, second one is G2
though the model trained by G2 get smaller loss but the map is only 67 in training dataset and 58 in validation dataset
the model trained by G1 get 89 in training dataset and 75 in validation dataset

In my experiment useing right method to generate gaussian heatmap will make result bad surprisingly
Intuitively it should improve the perfomance, so really upset about that. Let's named origin generating method as G1 and rectified method as G2
my dataset is aerial image.here's example of G1 and G2, first one is G1, second one is G2
though the model trained by G2 get smaller loss but the map is only 67 in training dataset and 58 in validation dataset
the model trained by G1 get 89 in training dataset and 75 in validation dataset

以这种方式生成的高斯分布是带有方向性的，看你的数据应该是旋转box，但是只依靠上述的高斯分布生成方法只能是对正矩形有效吧

In my experiment useing right method to generate gaussian heatmap will make result bad surprisingly
Intuitively it should improve the perfomance, so really upset about that. Let's named origin generating method as G1 and rectified method as G2
my dataset is aerial image.here's example of G1 and G2, first one is G1, second one is G2
though the model trained by G2 get smaller loss but the map is only 67 in training dataset and 58 in validation dataset
the model trained by G1 get 89 in training dataset and 75 in validation dataset

Hello! Excuse me, can you share the code for drawing these two diagrams?

Hi.
Given this
$$ IOU = \frac{(w-2r_2\cos\theta)(h-2r_2\sin\theta)}{wh}$$
$$ (4\sin\theta \cos\theta)r_2^2 - 2(w\sin\theta+h\cos\theta)r_2+wh(1-IOU) = 0$$
Using quadratic formula,
$$r_2 = \frac{2(w\sin\theta +h\cos\theta)\pm \sqrt{4(w\sin\theta+h\cos\theta)^2-16\sin\theta \cos\theta(wh)(1-IOU)}}{8\sin\theta \cos\theta} $$
How should I proceed to simplify the equation to get
$$ r_2 = \frac{(1-\sqrt{IOU})\sqrt{w^2+h^2}}{2} $$
which is calculated by using the concept of overlapping in the diagonal line of the 2 bounding boxes
$$ \sqrt{IOU} = \frac{\sqrt{(w^2+h^2)}-2r_2}{\sqrt{w^2+h^2}} $$

收到了！谢谢！


Expand entity

Related issues
Refs: fixes #152.
Describe the changes made in this pull request

Create definitions for objects duplicated over person and entity
Add all entity fields
Fixes #152
According to https://json-schema.org/understanding-json-schema/reference/combining.html#id5, proper fixing of #103 in JSON Schema cannot be done with draft 7, hints to fixing in draft 8 though
Fix bad tel definition, add tel ref
Add test data for entity

Instructions to review the pull request
Q: Externalizing definitions for reused simple string properties like this is one option, another one would be creating a "_simple-string" definition to reference which would at least help catch errors on redefinition of fields at some point (e.g., if a stricter definition of any of the reused fields is required). Another option would be to simply leave as "string", which could lead to not catching reuse across person/entity and only redefining one instance. Thoughts?
git clone this repo
git checkout this branch
python3 -m venv env
source env/bin/activate
pip install --upgrade pip setuptools wheel
pip install -r requirements.txt
python3 schema_poc.py -d data.yml -s schema.json  # <- should be quiet

Externalizing definitions for reused simple string properties like this is one option, another one would be creating a "_simple-string" definition to reference which would at least help catch errors on redefinition of fields at some point (e.g., if a stricter definition of any of the reused fields is required). Another option would be to simply leave as "string", which could lead to not catching reuse across person/entity and only redefining one instance. Thoughts?

I would like to stay away from the _simple_string option. Ideally, I would also like to stay away from adding definitions for primitive types, but it looks like we currently need it, so that's OK for now I guess. I think it could be solved (in the future, not in this PR) by having three sets of keys uniqueToEntity, uniqueToPerson, and shared, and then the definition could be
"entity": {
    "allOf": [
        {"$ref": "#/definitions/uniqueToEntity"},
        {"$ref": "#/definitions/shared"}
    ]
},
"person": {
    "allOf": [
        {"$ref": "#/definitions/uniqueToPerson"},
        {"$ref": "#/definitions/shared"}
    ]
}

Needs looking into.

Thanks for the review. Made name required in https://github.com/citation-file-format/citation-file-format/pull/155#issuecomment-842456834, and added the newline.
Also spawned issue #164.

Cheers!


Fix MultiSeriesProphetModel ts_id key error with one-row dataframe

If we use a loaded MultiSeriesProphetModel from mlflow and use a one-row dataframe as input of predict, then it will throw a KeyError for ts_id. For some reason the ts_id is not kept as an index after test_df.groupby("ts_id").apply(lambda df: model_prediction(df)) when test_df only has one row. To fix this, we explicitly assign ts_id in model_prediction.

Codecov Report

Merging #59 (8d3fa73) into main (39c4e02) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main      #59   +/-   ##
=======================================
  Coverage   99.67%   99.67%
=======================================
  Files          19       19
  Lines         612      614    +2
=======================================
+ Hits          610      612    +2
  Misses          2        2

Flag
Coverage Δ

unittests
99.67% <100.00%> (+<0.01%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

...atabricks/automl_runtime/forecast/prophet/model.py
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 39c4e02...8d3fa73. Read the comment docs.


Use as a countdown timer

@xrolfex
Can this be used as an animated countdown timer?
I cant seem to make it run that way?
Thanks

Yes it is possible. I have done this for a test app I was writing. This some code that I wrote in Swift 3 to do this.
 func updateTimer() {
    //this is a countdown time, reverse logic for count up timer
    if updatedCounter > 0 {
        updatedCounter = updatedCounter - 1
    //formats the counter to show minutes and seconds
        let minsCounter = (updatedCounter / 60) % 60
        let secondsCounter = updatedCounter % 60
        timerLabel.text = String(format: "%02i:%02i", minsCounter,secondsCounter)
        //global variable to check if the user is working out or resting for my app
        if workout {
     //calls updateProgressview to update the Circle Progress View
        updateProgressView(updatedCounter: updatedCounter, originalCounter: workoutCounter!)
        }
        if !workout {
            updateProgressView(updatedCounter: updatedCounter, originalCounter: restCounter!)
        }
    } else {
      //resets the progress shown by the timer
        circleProgressView.setProgress(newProgress: 100.0, animated: false)
    //kills the timer so it can be reset
        timer.invalidate()
    //changes global variable to opposite state
        workout = !workout
    //calls setup counter to reset timer parameters
        setUpCounter()
    }
}

//method called to show the changes to the circle progress view
func updateProgressView(updatedCounter: Int, originalCounter: Int) {
        let decimalProgress : Double = ((Double(updatedCounter) / Double(originalCounter)) * 100.0) / 100.0
        circleProgressView.progress = Double(decimalProgress)
     }

func setUpCounter() {
        //checks to see if user is working out
        if workout {
           //makes sure optional exists
            if let unwrappedCounter = workoutCounter {
                //updates the time used in the counter
                updatedCounter = unwrappedCounter
                //fixes timer label to show total, because in update timer function it begin subtracting by 1 so total nevershowed.
                timerLabel.text = String(format: "00:%02i", updatedCounter)
                //get exercise data
                accessData()
            }

        }else if !workout {
            //check to make sure new time for timer exists
            if let unwrappedCounter = restCounter {
                //reset the time used by the counter
                updatedCounter = unwrappedCounter
                //same as note above
                timerLabel.text = String(format: "00:%02i", updatedCounter)
            }
        }
        #tells the timer to restart by call this method
        fireTimer()
    }

func fireTimer() {
        #Swift 3 timer function used to start timer and calls selector of update timer that countdown and calls update to progress view.
    timer = Timer.scheduledTimer(timeInterval: 1, target: self, selector: #selector(updateTimer), userInfo: nil, repeats: true)
}

I hope this helps. Feel free to ask any questions.


Crash logs from Android on cancellation

I am getting crash logs from Android due to cancellation.
This is the stack I see:
 va.e0
	at com.juul.kable.BluetoothDeviceAndroidPeripheral$read$$inlined$execute$1.invokeSuspend(Connection.kt:21)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:8)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:107)
	at android.os.Handler.handleCallback(Handler.java:883)
	at android.os.Handler.dispatchMessage(Handler.java:100)
	at android.os.Looper.loop(Looper.java:214)
	at android.os.HandlerThread.run(HandlerThread.java:67)
	Suppressed: kotlinx.coroutines.m0: [v1{Cancelling}@5439012, Dispatchers.Main]

What version of Kable is this on?

Version 0.24.0.

I'm not sure if the stacktrace is misleading, but the first line of it points to Connection.kt:21:
https://github.com/JuulLabs/kable/blob/f71e085fb0182ca43a07c88693d641dceb0f8974/core/src/androidMain/kotlin/Connection.kt#L21-L23
I normally wouldn't expect this exception to be thrown on cancellation:
https://github.com/JuulLabs/kable/blob/f71e085fb0182ca43a07c88693d641dceb0f8974/core/src/androidMain/kotlin/Connection.kt#L94-L99
Instead I might expect it to be thrown on a subsequent I/O operation after a previous I/O cancellation (if there is a bug in Kable handling of the cancellation).
Are there specific steps you're doing to reproduce it (or, more specifically, how is the cancellation occurring? Is there surrounding code around the code snippet you shared that performs the cancellation?

Are there specific steps you're doing to reproduce it (or, more specifically, how is the cancellation occurring)? Is there surrounding code around the code snippet you shared that performs the cancellation?

I'm actually not sure how to reproduce it. Its an error I see periodically pop up in Bugfender which we use to track errors on production devices.
I don't do any cancellation of the read/write scopes myself. I do cancellation of the peripheral scanning scope in certain cases, and I call the peripheral.disconnect() method if requested by the user.

Well, I'm not sure either. I think I have some wonky code related to peripheral state tracking which may be the cause of the issue. I'll try to refactor a bit to see if the problem goes away, or if the problem continues to happen, I can get a clearer idea of where the cancellation is coming from.

@rocketraman when you have a chance, can you test 0.28.0-rc and let me know if the stacktrace has changed for this issue?

I actually haven't seen this happen in a while, so I suspect the fix of the wonky code I mentioned before resolved it. I'll go ahead and close. Thanks!

Great to hear. Thanks for following up. 👍


insights:pipeline:45 - publish date is 20240731, too old, skip

增加信源后，无数据展示，提示  insights:pipeline:45 - publish date is 20240731, too old, skip
2024-08-31 13:41:39.274 | DEBUG    | utils.pb_api:init:12 - initializing pocketbase client: http://<IP_ADDRESS>:8090
2024-08-31 13:41:39.657 | INFO     | utils.pb_api:init:22 - pocketbase ready authenticated as admin -<EMAIL_ADDRESS>2024-08-31 14:41:39.136 | INFO     | main:schedule_pipeline:19 - task execute loop 2
2024-08-31 14:41:39.138 | INFO     | main:process_site:11 - applying https://news.baidu.com/
2024-08-31 14:41:39.139 | DEBUG    | insights:pipeline:28 - start processing https://news.baidu.com
2024-08-31 14:41:40.793 | INFO     | insights:pipeline:45 - publish date is 20180409, too old, skip
2024-08-31 14:41:40.793 | INFO     | main:schedule_pipeline:23 - task execute loop finished, work after 3600 seconds

那就是你的信源中大部分都是比较旧的信息，如需更改过滤范围
core/insights/init.py  更改这里面的 expiration_date
见 #18


[BEAM-10052][BEAM-10077] Cherry-pick PR 11771 to 2.22.0 branch

Without this Dataflow tries to upload the same artifact multiple times which breaks the Dataflow artifact container for some cases.
This change already was merged to HEAD abut a week back [1] but seems like we forgot to add it to the release branch.
[1] https://github.com/apache/beam/pull/11771

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

R: @TheNeuralBit
CC: @robertwb @ihji

Failure is unrelated (seems to be due to Dataflow workers not being available).

Hm so that's what I said for the same failure in https://github.com/apache/beam/pull/11778, but I actually can't remember why I thought that was the case. @chamikaramj Did you see something in the log indicating it's related to workers?

I think for #11778 I didn't ding any explicit evidence that the problem was due to containers, it just seemed likely since the failing tests were all launching Dataflow jobs.

Run Python PreCommit

I think worker logs had a "container not found" error. We can wait for the retry to see if that occurs again.

Looks like PythonDocker succeeded, just wasn't updated here, and python PreCommit is just failing because there are no worker images. Merging now


Incorporation of CREATE and PUT methods

Hi team,
I'm moving this from here: https://github.com/aspnet/AspNetCore.Docs.es-es/issues/36
the contributor is making a suggestion on the original documentation
@vpj-mati commented 3 hours ago
In the example on the page it shows that to create a CREATE method we need the following method
[HttpPost]
public async Task <ActionResult <TodoItem>> PostTodoItem (TodoItem item)
But in my case when trying to execute the item parameter it always came in with null data. The problem is solved by adding the [FromBody] attribute as a copy below.
[HttpPost]
public async Task <ActionResult <TodoItem>> PostTodoItem ([FromBody] TodoItem item)
The same happened with the example of the PUT method
[HttpPut ("{id}")]
public async Task <IActionResult> PutTodoItem (long id, [FromBody] TodoItem item)

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 583ae3e7-5915-f22b-e54c-6c100cf2a7da
Version Independent ID: 95f2549e-29f9-e31a-b4d0-432b971643ff
Content: Tutorial: Create a web API with ASP.NET Core
Content Source: aspnetcore/tutorials/first-web-api.md
Product: aspnet-core
Technology: aspnetcore-tutorials
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

@vpj-mati   [FromBody] is not required in ASP.NET Core 2.1 and later. This tutorial assumes 2.2 or later.


write image with fs.outputFile based on buffer.

Is there a way to write the file like this:
fs.outputFile(pathToFile, image.bitmat.data, callback);
At the moment the file is writen but not considered has an image.

Forget this:
image.getBuffer() before write. Thanks to your sources i found this solution.


Filter list comprehensions unsupported

Minimal reproducer:
from numba import jit
list_1 = [0., 10., 20., 30., 43.]
@jit
def f(my_list):
    return [i for i in my_list if i not in [0., 20., 43.]]
f(list_1)

Should return: [10.0, 30.0]
Instead it returns:
<input>:1: NumbaWarning:
Compilation is falling back to object mode WITH looplifting enabled because Function "f" failed type inference due to: Type of variable '$6.4.100' cannot be determined, operation: unary(fn=<built-in function not_>, value=$6.4.100), location: <input> (3)
File "<input>", line 3:
<source missing, REPL/exec in use?>
Traceback (most recent call last):
  File "Path\To\numba\errors.py", line 662, in new_error_context
    yield
  File "Path\To\numba\lowering.py", line 258, in lower_block
    self.lower_inst(inst)
  File "Path\To\numba\pylowering.py", line 96, in lower_inst
    value = self.lower_assign(inst)
  File "Path\To\numba\pylowering.py", line 190, in lower_assign
    return self.lower_expr(value)
  File "Path\To\numba\pylowering.py", line 259, in lower_expr
    value = self.loadvar(expr.value.name)
  File "Path\To\numba\pylowering.py", line 555, in loadvar
    assert name in self._live_vars, name
AssertionError: $6.4.121
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "Path\To\numba\dispatcher.py", line 395, in _compile_for_args
    raise e
  File "Path\To\numba\dispatcher.py", line 352, in _compile_for_args
    return self.compile(tuple(argtypes))
  File "Path\To\numba\compiler_lock.py", line 32, in _acquire_compile_lock
    return func(*args, **kwargs)
  File "Path\To\numba\dispatcher.py", line 693, in compile
    cres = self._compiler.compile(args, return_type)
  File "Path\To\numba\dispatcher.py", line 76, in compile
    status, retval = self._compile_cached(args, return_type)
  File "Path\To\numba\dispatcher.py", line 90, in _compile_cached
    retval = self._compile_core(args, return_type)
  File "Path\To\numba\dispatcher.py", line 108, in _compile_core
    pipeline_class=self.pipeline_class)
  File "Path\To\numba\compiler.py", line 972, in compile_extra
    return pipeline.compile_extra(func)
  File "Path\To\numba\compiler.py", line 390, in compile_extra
    return self._compile_bytecode()
  File "Path\To\numba\compiler.py", line 903, in _compile_bytecode
    return self._compile_core()
  File "Path\To\numba\compiler.py", line 890, in _compile_core
    res = pm.run(self.status)
  File "Path\To\numba\compiler_lock.py", line 32, in _acquire_compile_lock
    return func(*args, **kwargs)
  File "Path\To\numba\compiler.py", line 266, in run
    raise patched_exception
  File "Path\To\numba\compiler.py", line 257, in run
    stage()
  File "Path\To\numba\compiler.py", line 728, in stage_objectmode_backend
    self._backend(lowerfn, objectmode=True)
  File "Path\To\numba\compiler.py", line 703, in _backend
    lowered = lowerfn()
  File "Path\To\numba\compiler.py", line 675, in backend_object_mode
    self.flags)
  File "Path\To\numba\compiler.py", line 1167, in py_lowering_stage
    lower.lower()
  File "Path\To\numba\lowering.py", line 177, in lower
    self.lower_normal_function(self.fndesc)
  File "Path\To\numba\lowering.py", line 218, in lower_normal_function
    entry_block_tail = self.lower_function_body()
  File "Path\To\numba\lowering.py", line 243, in lower_function_body
    self.lower_block(block)
  File "Path\To\numba\lowering.py", line 258, in lower_block
    self.lower_inst(inst)
  File "Path\To\Python37\lib\contextlib.py", line 130, in __exit__
    self.gen.throw(type, value, traceback)
  File "Path\To\numba\errors.py", line 670, in new_error_context
    six.reraise(type(newerr), newerr, tb)
  File "Path\To\numba\six.py", line 659, in reraise
    raise value
numba.errors.LoweringError: Failed in object mode pipeline (step: object mode backend)
$6.4.121
File "<input>", line 3:
<source missing, REPL/exec in use?>
[1] During: lowering "$6.4.121 = unary(fn=<built-in function not_>, value=$6.4.121)" at <input> (3)
-------------------------------------------------------------------------------
This should not have happened, a problem has occurred in Numba's internals.
You are currently using Numba version 0.45.1.

Thanks for the report, I can reproduce. I think the issue here is more the use of a function operating on a list as a filter rather than a filter itself.
e.g. This works fine:
from numba import njit
list_1 = [0., 10., 20., 30., 43.]

@njit
def f(my_list):
    return [i for i in my_list if i > 20]

print(f(list_1))

I suspect the list comprehension rewrite is struggling to reach over the function call/this seems to be mixed with the [0., 20., 43.] being rewritten as a tuple if no function call is made.

One workaround is to switch to dictionaries (numba.typed.Dict). This code works (copying is mandatory):
@njit
def filter_dict(my_dict: numba.typed.Dict, not_in_dict: numba.typed.Dict) -> numba.typed.Dict:
my_dict_copy = my_dict.copy()
for i in my_dict.keys():
if i in not_in_dict:
del my_dict_copy[i]
return my_dict_copy

This does not reproduce on mainline as of Numba 0.55, closing assuming fixed.