René's URL Explorer Experiment


Title: Incorrect calculation method for "∑(y)" in `CurveStatsTool` · Issue #44 · PlotPyStack/PlotPy · GitHub

Open Graph Title: Incorrect calculation method for "∑(y)" in `CurveStatsTool` · Issue #44 · PlotPyStack/PlotPy

X Title: Incorrect calculation method for "∑(y)" in `CurveStatsTool` · Issue #44 · PlotPyStack/PlotPy

Description: Summary In the CurveStatsTool class, the summation of y-values "∑(y)" was incorrectly implemented using scipy.integrate.trapezoid instead of the appropriate numpy.sum function. This resulted in incorrect statistical values being displaye...

Open Graph Description: Summary In the CurveStatsTool class, the summation of y-values "∑(y)" was incorrectly implemented using scipy.integrate.trapezoid instead of the appropriate numpy.sum function. This resulted in inc...

X Description: Summary In the CurveStatsTool class, the summation of y-values "∑(y)" was incorrectly implemented using scipy.integrate.trapezoid instead of the appropriate numpy.sum function. This resul...

Opengraph URL: https://github.com/PlotPyStack/PlotPy/issues/44

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Incorrect calculation method for \"∑(y)\" in `CurveStatsTool`","articleBody":"### Summary\n\nIn the `CurveStatsTool` class, the summation of y-values \"∑(y)\" was incorrectly implemented using `scipy.integrate.trapezoid` instead of the appropriate `numpy.sum` function. This resulted in incorrect statistical values being displayed when using the curve statistics tool.\n\n### Problem Description\n\nThe `CurveStatsTool` provides various statistical calculations for curves, including sum of y-values, denoted as \"∑(y)\". However, the implementation was using the trapezoidal integration method (`spt.trapezoid`) which calculates the area under a curve. This is mathematically incorrect for a simple summation operation, which should simply add all y-values without any weighting or integration.\n\n#### Incorrect Implementation (before fix)\n\n```python\n(\"∑(y)=%g\", lambda *args: spt.trapezoid(args[1], args[0])),\n```\n\n#### Correct Implementation (after fix)\n\n```python\n(\"∑(y)=%g\", lambda *args: np.sum(args[1])),\n```\n\n### Impact\n\nUsers relying on the \"∑(y)\" calculation from the curve statistics tool were receiving incorrect values that represented an approximation of the integral rather than the actual sum of y-values.","author":{"url":"https://github.com/PierreRaybaut","@type":"Person","name":"PierreRaybaut"},"datePublished":"2025-06-16T13:30:12.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/44/PlotPy/issues/44"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:41856323-6626-8eca-6716-1fc998195706
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD610:1C8E6D:2DFEAB4:3F17002:6972B4B9
html-safe-nonce65a8238832c24b3df895820a3c3faf40d5bd47241822c4c120ee3802c00c3213
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjEwOjFDOEU2RDoyREZFQUI0OjNGMTcwMDI6Njk3MkI0QjkiLCJ2aXNpdG9yX2lkIjoiMzIwMTcyOTMwMjk1MjU4ODQ3MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac76f0d69850234878a4cd7e64db0ffe4ca3c544fcb4672e57513072e18e116d1c
hovercard-subject-tagissue:3150031082
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/PlotPyStack/PlotPy/44/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f1466cb5522c02723f3cbcaec03b758d531ce169476c9451a4f2ef6be4619fb2/PlotPyStack/PlotPy/issues/44
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f1466cb5522c02723f3cbcaec03b758d531ce169476c9451a4f2ef6be4619fb2/PlotPyStack/PlotPy/issues/44
og:image:altSummary In the CurveStatsTool class, the summation of y-values "∑(y)" was incorrectly implemented using scipy.integrate.trapezoid instead of the appropriate numpy.sum function. This resulted in inc...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamePierreRaybaut
hostnamegithub.com
expected-hostnamegithub.com
None51c0d0848f5569c6fa2198e9d69bd5f8f94a83c9fa3659e40728e7732afab130
turbo-cache-controlno-preview
go-importgithub.com/PlotPyStack/PlotPy git https://github.com/PlotPyStack/PlotPy.git
octolytics-dimension-user_id145201262
octolytics-dimension-user_loginPlotPyStack
octolytics-dimension-repository_id671159499
octolytics-dimension-repository_nwoPlotPyStack/PlotPy
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id671159499
octolytics-dimension-repository_network_root_nwoPlotPyStack/PlotPy
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
release10c5e2f2307495b2750073db87e9a5d3356a924f
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/PlotPyStack/PlotPy/issues/44#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPlotPyStack%2FPlotPy%2Fissues%2F44
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%2FPlotPyStack%2FPlotPy%2Fissues%2F44
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=PlotPyStack%2FPlotPy
Reloadhttps://github.com/PlotPyStack/PlotPy/issues/44
Reloadhttps://github.com/PlotPyStack/PlotPy/issues/44
Reloadhttps://github.com/PlotPyStack/PlotPy/issues/44
PlotPyStack https://github.com/PlotPyStack
PlotPyhttps://github.com/PlotPyStack/PlotPy
Notifications https://github.com/login?return_to=%2FPlotPyStack%2FPlotPy
Fork 4 https://github.com/login?return_to=%2FPlotPyStack%2FPlotPy
Star 42 https://github.com/login?return_to=%2FPlotPyStack%2FPlotPy
Code https://github.com/PlotPyStack/PlotPy
Issues 2 https://github.com/PlotPyStack/PlotPy/issues
Pull requests 0 https://github.com/PlotPyStack/PlotPy/pulls
Actions https://github.com/PlotPyStack/PlotPy/actions
Projects 0 https://github.com/PlotPyStack/PlotPy/projects
Security 0 https://github.com/PlotPyStack/PlotPy/security
Insights https://github.com/PlotPyStack/PlotPy/pulse
Code https://github.com/PlotPyStack/PlotPy
Issues https://github.com/PlotPyStack/PlotPy/issues
Pull requests https://github.com/PlotPyStack/PlotPy/pulls
Actions https://github.com/PlotPyStack/PlotPy/actions
Projects https://github.com/PlotPyStack/PlotPy/projects
Security https://github.com/PlotPyStack/PlotPy/security
Insights https://github.com/PlotPyStack/PlotPy/pulse
New issuehttps://github.com/login?return_to=https://github.com/PlotPyStack/PlotPy/issues/44
New issuehttps://github.com/login?return_to=https://github.com/PlotPyStack/PlotPy/issues/44
Incorrect calculation method for "∑(y)" in CurveStatsToolhttps://github.com/PlotPyStack/PlotPy/issues/44#top
bugSomething isn't workinghttps://github.com/PlotPyStack/PlotPy/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/PierreRaybaut
https://github.com/PierreRaybaut
PierreRaybauthttps://github.com/PierreRaybaut
on Jun 16, 2025https://github.com/PlotPyStack/PlotPy/issues/44#issue-3150031082
bugSomething isn't workinghttps://github.com/PlotPyStack/PlotPy/issues?q=state%3Aopen%20label%3A%22bug%22
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.