René's URL Explorer Experiment


Title: Improved behavior of comparison between quantities by wagenadl · Pull Request #249 · python-quantities/python-quantities · GitHub

Open Graph Title: Improved behavior of comparison between quantities by wagenadl · Pull Request #249 · python-quantities/python-quantities

X Title: Improved behavior of comparison between quantities by wagenadl · Pull Request #249 · python-quantities/python-quantities

Description: For quantities A and B of unequal dimensionality, the == operator now returns an array of the same shape that numpy would return if A and B were different and filled with False. In particular, if both A and B are scalar arrays, the result is a scalar False. Previously, a scalar array (np.array(False)) would be returned under these circumstances. If A and B do not have compatible sizes, an exception is generated. The != operator behaves the same except that it fills the result with True values. The other comparison operators now raise exceptions if a quantity that is not dimensionless is compared to a plain number. For effectively dimensionless quantities the comparison is now consistent. Previously, if n = pq.s * pq.kHz then n < 2 would return True but n.simplified < 2 would return False. Now, both return False. Comparison between incompatible quantities raises exceptions as before. Closes #245

Open Graph Description: For quantities A and B of unequal dimensionality, the == operator now returns an array of the same shape that numpy would return if A and B were different and filled with False. In particular, if b...

X Description: For quantities A and B of unequal dimensionality, the == operator now returns an array of the same shape that numpy would return if A and B were different and filled with False. In particular, if b...

Opengraph URL: https://github.com/python-quantities/python-quantities/pull/249

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/:user_id/:repository/pull/:id/checks(.:format)
route-controllerpull_requests
route-actionchecks
fetch-noncev2:91add013-71af-0061-f3a9-bf332d96f09d
current-catalog-service-hash87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a
request-idEA6E:1A6433:2ABF1C0:3901156:69742E2C
html-safe-nonce35b3d30e851b95d89914e64943a60b628de7395a62e97dce6d4b76514524a9f9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQTZFOjFBNjQzMzoyQUJGMUMwOjM5MDExNTY6Njk3NDJFMkMiLCJ2aXNpdG9yX2lkIjoiNTEyNzEwNTgxNjgyMDk4NTM4OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd155e3c20926992939b8dabee820bfd07369ba96ecde24d616dd56c62b2ee317
hovercard-subject-tagpull_request:2182934378
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/checks
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python-quantities/python-quantities/pull/249/checks
twitter:imagehttps://avatars.githubusercontent.com/u/11696507?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/11696507?s=400&v=4
og:image:altFor quantities A and B of unequal dimensionality, the == operator now returns an array of the same shape that numpy would return if A and B were different and filled with False. In particular, if b...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonef0c542b740cf8c6c6deff23a0eeffd05a0e8bd35565559ca5ec1535bcbb67e5c
turbo-cache-controlno-cache
go-importgithub.com/python-quantities/python-quantities git https://github.com/python-quantities/python-quantities.git
octolytics-dimension-user_id222003
octolytics-dimension-user_loginpython-quantities
octolytics-dimension-repository_id560911
octolytics-dimension-repository_nwopython-quantities/python-quantities
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id560911
octolytics-dimension-repository_network_root_nwopython-quantities/python-quantities
turbo-body-classeslogged-out env-production page-responsive full-width full-width-p-0
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4e27a77ef0bf22cd9328967ddc1e1c3dfa6ffe51
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/python-quantities/python-quantities/pull/249/checks#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-quantities%2Fpython-quantities%2Fpull%2F249%2Fchecks
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-quantities%2Fpython-quantities%2Fpull%2F249%2Fchecks
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Fchecks&source=header-repo&source_repo=python-quantities%2Fpython-quantities
Reloadhttps://patch-diff.githubusercontent.com/python-quantities/python-quantities/pull/249/checks
Reloadhttps://patch-diff.githubusercontent.com/python-quantities/python-quantities/pull/249/checks
Reloadhttps://patch-diff.githubusercontent.com/python-quantities/python-quantities/pull/249/checks
python-quantities https://patch-diff.githubusercontent.com/python-quantities
python-quantitieshttps://patch-diff.githubusercontent.com/python-quantities/python-quantities
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-quantities%2Fpython-quantities
Fork 77 https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-quantities%2Fpython-quantities
Star 218 https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-quantities%2Fpython-quantities
Code https://patch-diff.githubusercontent.com/python-quantities/python-quantities
Issues 73 https://patch-diff.githubusercontent.com/python-quantities/python-quantities/issues
Pull requests 4 https://patch-diff.githubusercontent.com/python-quantities/python-quantities/pulls
Actions https://patch-diff.githubusercontent.com/python-quantities/python-quantities/actions
Projects 0 https://patch-diff.githubusercontent.com/python-quantities/python-quantities/projects
Wiki https://patch-diff.githubusercontent.com/python-quantities/python-quantities/wiki
Security 0 https://patch-diff.githubusercontent.com/python-quantities/python-quantities/security
Insights https://patch-diff.githubusercontent.com/python-quantities/python-quantities/pulse
Code https://patch-diff.githubusercontent.com/python-quantities/python-quantities
Issues https://patch-diff.githubusercontent.com/python-quantities/python-quantities/issues
Pull requests https://patch-diff.githubusercontent.com/python-quantities/python-quantities/pulls
Actions https://patch-diff.githubusercontent.com/python-quantities/python-quantities/actions
Projects https://patch-diff.githubusercontent.com/python-quantities/python-quantities/projects
Wiki https://patch-diff.githubusercontent.com/python-quantities/python-quantities/wiki
Security https://patch-diff.githubusercontent.com/python-quantities/python-quantities/security
Insights https://patch-diff.githubusercontent.com/python-quantities/python-quantities/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2Fpython-quantities%2Fpython-quantities%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://patch-diff.githubusercontent.com/login?return_to=%2Fpython-quantities%2Fpython-quantities%2Fissues%2Fnew%2Fchoose
wagenadlhttps://patch-diff.githubusercontent.com/wagenadl
python-quantities:masterhttps://patch-diff.githubusercontent.com/python-quantities/python-quantities/tree/master
wagenadl:comparisonhttps://patch-diff.githubusercontent.com/wagenadl/python-quantities/tree/comparison
Conversation 3 https://patch-diff.githubusercontent.com/python-quantities/python-quantities/pull/249
Commits 3 https://patch-diff.githubusercontent.com/python-quantities/python-quantities/pull/249/commits
Checks 39 https://patch-diff.githubusercontent.com/python-quantities/python-quantities/pull/249/checks
Files changed https://patch-diff.githubusercontent.com/python-quantities/python-quantities/pull/249/files
Please reload this pagehttps://patch-diff.githubusercontent.com/python-quantities/python-quantities/pull/249/checks
Please reload this pagehttps://patch-diff.githubusercontent.com/python-quantities/python-quantities/pull/249/checks
Sign in for the full log viewhttps://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-quantities%2Fpython-quantities%2Fpull%2F249%2Fchecks
Improved behavior of comparison between quantities https://patch-diff.githubusercontent.com/python-quantities/python-quantities/pull/249/checks#top
Please reload this pagehttps://patch-diff.githubusercontent.com/python-quantities/python-quantities/pull/249/checks
Test on: pull_request https://patch-diff.githubusercontent.com/python-quantities/python-quantities/actions/runs/12148519288
test (ubuntu-latest, 3.9, 1.22) https://patch-diff.githubusercontent.com/python-quantities/python-quantities/actions/runs/12148519288/job/33877157356?pr=249
test (ubuntu-latest, 3.9, 1.23) https://patch-diff.githubusercontent.com/python-quantities/python-quantities/actions/runs/12148519288/job/33877158305?pr=249
test (ubuntu-latest, 3.9, 1.24) https://patch-diff.githubusercontent.com/python-quantities/python-quantities/actions/runs/12148519288/job/33877158716?pr=249
test (ubuntu-latest, 3.9, 1.25) https://patch-diff.githubusercontent.com/python-quantities/python-quantities/actions/runs/12148519288/job/33877159274?pr=249
test (ubuntu-latest, 3.9, 1.26) https://patch-diff.githubusercontent.com/python-quantities/python-quantities/actions/runs/12148519288/job/33877160123?pr=249
test (ubuntu-latest, 3.9, 2.0) https://patch-diff.githubusercontent.com/python-quantities/python-quantities/actions/runs/12148519288/job/33877161525?pr=249
test (ubuntu-latest, 3.10, 1.22) https://patch-diff.githubusercontent.com/python-quantities/python-quantities/actions/runs/12148519288/job/33877162301?pr=249
test (ubuntu-latest, 3.10, 1.23) https://patch-diff.githubusercontent.com/python-quantities/python-quantities/actions/runs/12148519288/job/33877162991?pr=249
test (ubuntu-latest, 3.10, 1.24) https://patch-diff.githubusercontent.com/python-quantities/python-quantities/actions/runs/12148519288/job/33877163823?pr=249
test (ubuntu-latest, 3.10, 1.25) https://patch-diff.githubusercontent.com/python-quantities/python-quantities/actions/runs/12148519288/job/33877164776?pr=249
test (ubuntu-latest, 3.10, 1.26) https://patch-diff.githubusercontent.com/python-quantities/python-quantities/actions/runs/12148519288/job/33877165480?pr=249
test (ubuntu-latest, 3.10, 2.0) https://patch-diff.githubusercontent.com/python-quantities/python-quantities/actions/runs/12148519288/job/33877166153?pr=249
test (ubuntu-latest, 3.11, 1.22) https://patch-diff.githubusercontent.com/python-quantities/python-quantities/actions/runs/12148519288/job/33877166797?pr=249
test (ubuntu-latest, 3.11, 1.23) https://patch-diff.githubusercontent.com/python-quantities/python-quantities/actions/runs/12148519288/job/33877167197?pr=249
test (ubuntu-latest, 3.11, 1.24) https://patch-diff.githubusercontent.com/python-quantities/python-quantities/actions/runs/12148519288/job/33877167528?pr=249
test (ubuntu-latest, 3.11, 1.25) https://patch-diff.githubusercontent.com/python-quantities/python-quantities/actions/runs/12148519288/job/33877167829?pr=249
test (ubuntu-latest, 3.11, 1.26) https://patch-diff.githubusercontent.com/python-quantities/python-quantities/actions/runs/12148519288/job/33877168430?pr=249
test (ubuntu-latest, 3.11, 2.0) https://patch-diff.githubusercontent.com/python-quantities/python-quantities/actions/runs/12148519288/job/33877169089?pr=249
test (ubuntu-latest, 3.12, 1.26) https://patch-diff.githubusercontent.com/python-quantities/python-quantities/actions/runs/12148519288/job/33877169638?pr=249
type-check (ubuntu-latest, 3.9, 1.22) https://patch-diff.githubusercontent.com/python-quantities/python-quantities/actions/runs/12148519288/job/33877156470?pr=249
type-check (ubuntu-latest, 3.9, 1.23) https://patch-diff.githubusercontent.com/python-quantities/python-quantities/actions/runs/12148519288/job/33877157688?pr=249
type-check (ubuntu-latest, 3.9, 1.24) https://patch-diff.githubusercontent.com/python-quantities/python-quantities/actions/runs/12148519288/job/33877157970?pr=249
type-check (ubuntu-latest, 3.9, 1.25) https://patch-diff.githubusercontent.com/python-quantities/python-quantities/actions/runs/12148519288/job/33877158994?pr=249
type-check (ubuntu-latest, 3.9, 1.26) https://patch-diff.githubusercontent.com/python-quantities/python-quantities/actions/runs/12148519288/job/33877159716?pr=249
type-check (ubuntu-latest, 3.9, 2.0) https://patch-diff.githubusercontent.com/python-quantities/python-quantities/actions/runs/12148519288/job/33877160712?pr=249
type-check (ubuntu-latest, 3.10, 1.22) https://patch-diff.githubusercontent.com/python-quantities/python-quantities/actions/runs/12148519288/job/33877161911?pr=249
type-check (ubuntu-latest, 3.10, 1.23) https://patch-diff.githubusercontent.com/python-quantities/python-quantities/actions/runs/12148519288/job/33877162681?pr=249
type-check (ubuntu-latest, 3.10, 1.24) https://patch-diff.githubusercontent.com/python-quantities/python-quantities/actions/runs/12148519288/job/33877163413?pr=249
type-check (ubuntu-latest, 3.10, 1.25) https://patch-diff.githubusercontent.com/python-quantities/python-quantities/actions/runs/12148519288/job/33877164319?pr=249
type-check (ubuntu-latest, 3.10, 1.26) https://patch-diff.githubusercontent.com/python-quantities/python-quantities/actions/runs/12148519288/job/33877165124?pr=249
type-check (ubuntu-latest, 3.10, 2.0) https://patch-diff.githubusercontent.com/python-quantities/python-quantities/actions/runs/12148519288/job/33877165814?pr=249
type-check (ubuntu-latest, 3.11, 1.22) https://patch-diff.githubusercontent.com/python-quantities/python-quantities/actions/runs/12148519288/job/33877166486?pr=249
type-check (ubuntu-latest, 3.11, 1.23) https://patch-diff.githubusercontent.com/python-quantities/python-quantities/actions/runs/12148519288/job/33877168162?pr=249
type-check (ubuntu-latest, 3.11, 1.24) https://patch-diff.githubusercontent.com/python-quantities/python-quantities/actions/runs/12148519288/job/33877168766?pr=249
type-check (ubuntu-latest, 3.11, 1.25) https://patch-diff.githubusercontent.com/python-quantities/python-quantities/actions/runs/12148519288/job/33877169347?pr=249
type-check (ubuntu-latest, 3.11, 1.26) https://patch-diff.githubusercontent.com/python-quantities/python-quantities/actions/runs/12148519288/job/33877170025?pr=249
type-check (ubuntu-latest, 3.11, 2.0) https://patch-diff.githubusercontent.com/python-quantities/python-quantities/actions/runs/12148519288/job/33877170409?pr=249
type-check (ubuntu-latest, 3.12, 1.26) https://patch-diff.githubusercontent.com/python-quantities/python-quantities/actions/runs/12148519288/job/33877170723?pr=249
type-check (ubuntu-latest, 3.12, 2.0) https://patch-diff.githubusercontent.com/python-quantities/python-quantities/actions/runs/12148519288/job/33877171004?pr=249
https://patch-diff.githubusercontent.com/python-quantities/python-quantities/actions/runs/12148519288/job/33877156470
https://github.blog/changelog/2024-09-16-notice-of-upcoming-deprecations-and-changes-in-github-actions-services/https://github.blog/changelog/2024-09-16-notice-of-upcoming-deprecations-and-changes-in-github-actions-services/
https://patch-diff.githubusercontent.com/python-quantities/python-quantities/actions/runs/12148519288/job/33877156470
https://github.com/actions/runner-images/issues/10636https://github.com/actions/runner-images/issues/10636
https://patch-diff.githubusercontent.com/python-quantities/python-quantities/pull/249/checks#annotation:4:9
https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.