René's URL Explorer Experiment


Title: Comparison between quantities and plain numbers is inconsistent and unsafe · Issue #245 · python-quantities/python-quantities · GitHub

Open Graph Title: Comparison between quantities and plain numbers is inconsistent and unsafe · Issue #245 · python-quantities/python-quantities

X Title: Comparison between quantities and plain numbers is inconsistent and unsafe · Issue #245 · python-quantities/python-quantities

Description: If I have a quantity with a unit, e.g., t = 50 * pq.ms then t > 1 returns True whereas t.simplified > 1 returns False. Arguably, both should raise a ValueError just like t - 1 does in this example. If the community agrees, I would be hap...

Open Graph Description: If I have a quantity with a unit, e.g., t = 50 * pq.ms then t > 1 returns True whereas t.simplified > 1 returns False. Arguably, both should raise a ValueError just like t - 1 does in this example....

X Description: If I have a quantity with a unit, e.g., t = 50 * pq.ms then t > 1 returns True whereas t.simplified > 1 returns False. Arguably, both should raise a ValueError just like t - 1 does in this ex...

Opengraph URL: https://github.com/python-quantities/python-quantities/issues/245

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Comparison between quantities and plain numbers is inconsistent and unsafe","articleBody":"If I have a quantity with a unit, e.g.,\r\n\r\n     t = 50 * pq.ms\r\n\r\nthen \r\n\r\n    t \u003e 1\r\n\r\nreturns `True` whereas\r\n\r\n    t.simplified \u003e 1\r\n\r\nreturns `False`. Arguably, both should raise a ValueError just like\r\n\r\n    t - 1\r\n\r\ndoes in this example.\r\n\r\nIf the community agrees, I would be happy to prepare a pull request to change the behavior.","author":{"url":"https://github.com/wagenadl","@type":"Person","name":"wagenadl"},"datePublished":"2024-11-16T01:22:44.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/245/python-quantities/issues/245"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:da6ff892-75c8-5e13-af8f-d5198431bf42
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDDD8:25C52D:6559DB:82D4B0:696B11B1
html-safe-noncece3b9afc7a87754ff7d2458cb5f89dd8ad4d930b48a198fc984819a9e8496698
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEREQ4OjI1QzUyRDo2NTU5REI6ODJENEIwOjY5NkIxMUIxIiwidmlzaXRvcl9pZCI6IjMxMjk4MzEyOTE0NTY3NjIwOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac3fc471fc349bb62763b50101c89e59774a18064e6f34a4ed873e1971b6901315
hovercard-subject-tagissue:2663580161
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-quantities/python-quantities/245/issue_layout
twitter:imagehttps://opengraph.githubassets.com/13567048b1829ff48c2ed48f531631571f84001915ae8bfc48fafb026e792a89/python-quantities/python-quantities/issues/245
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/13567048b1829ff48c2ed48f531631571f84001915ae8bfc48fafb026e792a89/python-quantities/python-quantities/issues/245
og:image:altIf I have a quantity with a unit, e.g., t = 50 * pq.ms then t > 1 returns True whereas t.simplified > 1 returns False. Arguably, both should raise a ValueError just like t - 1 does in this example....
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamewagenadl
hostnamegithub.com
expected-hostnamegithub.com
None5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d
turbo-cache-controlno-preview
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release82560a55c6b2054555076f46e683151ee28a19bc
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python-quantities/python-quantities/issues/245#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-quantities%2Fpython-quantities%2Fissues%2F245
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://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-quantities%2Fpython-quantities%2Fissues%2F245
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python-quantities%2Fpython-quantities
Reloadhttps://github.com/python-quantities/python-quantities/issues/245
Reloadhttps://github.com/python-quantities/python-quantities/issues/245
Reloadhttps://github.com/python-quantities/python-quantities/issues/245
python-quantities https://github.com/python-quantities
python-quantitieshttps://github.com/python-quantities/python-quantities
Notifications https://github.com/login?return_to=%2Fpython-quantities%2Fpython-quantities
Fork 77 https://github.com/login?return_to=%2Fpython-quantities%2Fpython-quantities
Star 216 https://github.com/login?return_to=%2Fpython-quantities%2Fpython-quantities
Code https://github.com/python-quantities/python-quantities
Issues 73 https://github.com/python-quantities/python-quantities/issues
Pull requests 4 https://github.com/python-quantities/python-quantities/pulls
Actions https://github.com/python-quantities/python-quantities/actions
Projects 0 https://github.com/python-quantities/python-quantities/projects
Wiki https://github.com/python-quantities/python-quantities/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python-quantities/python-quantities/security
Please reload this pagehttps://github.com/python-quantities/python-quantities/issues/245
Insights https://github.com/python-quantities/python-quantities/pulse
Code https://github.com/python-quantities/python-quantities
Issues https://github.com/python-quantities/python-quantities/issues
Pull requests https://github.com/python-quantities/python-quantities/pulls
Actions https://github.com/python-quantities/python-quantities/actions
Projects https://github.com/python-quantities/python-quantities/projects
Wiki https://github.com/python-quantities/python-quantities/wiki
Security https://github.com/python-quantities/python-quantities/security
Insights https://github.com/python-quantities/python-quantities/pulse
New issuehttps://github.com/login?return_to=https://github.com/python-quantities/python-quantities/issues/245
New issuehttps://github.com/login?return_to=https://github.com/python-quantities/python-quantities/issues/245
#249https://github.com/python-quantities/python-quantities/pull/249
Comparison between quantities and plain numbers is inconsistent and unsafehttps://github.com/python-quantities/python-quantities/issues/245#top
#249https://github.com/python-quantities/python-quantities/pull/249
https://github.com/wagenadl
https://github.com/wagenadl
wagenadlhttps://github.com/wagenadl
on Nov 16, 2024https://github.com/python-quantities/python-quantities/issues/245#issue-2663580161
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.