René's URL Explorer Experiment


Title: Bug Report · Issue #150 · mapillary/mapillary-python-sdk · GitHub

Open Graph Title: Bug Report · Issue #150 · mapillary/mapillary-python-sdk

X Title: Bug Report · Issue #150 · mapillary/mapillary-python-sdk

Description: Describe the bug xtile = int(math.floor((x + EPSILON) * Z2)) ValueError: cannot convert float NaN to integer To Reproduce This is the code I am using to collect th close-to images to a specific coordinates: for index, row in enumerate(df...

Open Graph Description: Describe the bug xtile = int(math.floor((x + EPSILON) * Z2)) ValueError: cannot convert float NaN to integer To Reproduce This is the code I am using to collect th close-to images to a specific coo...

X Description: Describe the bug xtile = int(math.floor((x + EPSILON) * Z2)) ValueError: cannot convert float NaN to integer To Reproduce This is the code I am using to collect th close-to images to a specific coo...

Opengraph URL: https://github.com/mapillary/mapillary-python-sdk/issues/150

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bug Report","articleBody":"**Describe the bug**\r\nxtile = int(math.floor((x + EPSILON) * Z2))\r\nValueError: cannot convert float NaN to integer\r\n\r\n\r\n**To Reproduce**\r\nThis is the code I am using to collect th close-to images to a specific coordinates:\r\nfor index, row in enumerate(df.iterrows()):\r\n  coordinates_to_image_id_dict: dict = {}\r\n  latitude, longitude = dict(row[1])['LATITUDE'], dict(row[1])['LONGITUDE'] \r\n  coordinates_to_image_id_dict['lat'] = latitude\r\n  coordinates_to_image_id_dict['lng'] = longitude\r\n  try:\r\n      data= mly.get_image_close_to(\r\n          latitude=latitude,\r\n          longitude=longitude,\r\n          radius=35,\r\n          image_type=\"flat\",\r\n          min_captured_at=\"2016-01-01\"\r\n      ).to_dict()\r\n\r\n  except AttributeError:\r\n      print('AttributeError occurred')\r\n      data = {}\r\n      \r\n  print(data)  \r\n  print('latitude and longitude:', latitude, longitude)\r\n\r\n**Expected behavior**\r\nif math.isnan(x):\r\n    # handle NaN case here\r\nelse:\r\n    xtile = int(math.floor((x + EPSILON) * Z2))\r\n\r\n**Screenshots**\r\nlatitude and longitude: 51.9326934493218 -8.05201349824569\r\nRequesting GET to https://tiles.mapillary.com/maps/vtp/mly1_public/2/14/7892/5318/?access_token=MLY%???\r\nResponse 200 OK received in 78ms\r\n{'type': 'FeatureCollection', 'features': []}\r\n\r\nlatitude and longitude: 53.2429118794892 -6.58873419758931\r\nTraceback (most recent call last):\r\n  File \"Data_collection_json_metadata.py\", line 39, in \u003cmodule\u003e\r\n    min_captured_at=\"2016-01-01\"\r\n  File \"/home/peoplexxx/.local/lib/python3.7/site-packages/mapillary/utils/auth.py\", line 59, in wrapper\r\n    return f(*args, **kwargs)\r\n  File \"/home/people/xx/.local/lib/python3.7/site-packages/mapillary/interface.py\", line 116, in get_image_close_to\r\n    kwargs=kwargs,\r\n  File \"/home/people/xx/.local/lib/python3.7/site-packages/mapillary/controller/image.py\", line 110, in get_image_close_to_controller\r\n    latitude=latitude,\r\n  File \"/home/people/xxx/.local/lib/python3.7/site-packages/mapillary/models/api/vector_tiles.py\", line 123, in fetch_layer\r\n    tile=mercantile.tile(lng=longitude, lat=latitude, zoom=zoom),\r\n  File \"/home/people/xxxx/.local/lib/python3.7/site-packages/mercantile/__init__.py\", line 426, in tile\r\n    xtile = int(math.floor((x + EPSILON) * Z2))\r\nValueError: cannot convert float NaN to integer\r\n\r\n\r\n\r\n","author":{"url":"https://github.com/NeginZarbakhsh","@type":"Person","name":"NeginZarbakhsh"},"datePublished":"2023-03-07T10:41:42.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/150/mapillary-python-sdk/issues/150"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:821cc963-cb34-9827-0b03-0725053203b7
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDE2E:18096:71AC58:9AE3E8:698E0A99
html-safe-nonceed7cd4af023363d6a5dde211867099f10d690d7e0a7b5e420dfdbc6ebde98057
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERTJFOjE4MDk2OjcxQUM1ODo5QUUzRTg6Njk4RTBBOTkiLCJ2aXNpdG9yX2lkIjoiNjg3NjYzNjY0NTc4Njc4MjM2MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac80f36630db3d39fc3001de9ea010e3ccfafef36edf2eefbfd2a255d7acbeffa2
hovercard-subject-tagissue:1613164769
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/mapillary/mapillary-python-sdk/150/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f83b776a4db2695bd33914eb9b42237243ab05dadc19be52963e0dd4bfa845d6/mapillary/mapillary-python-sdk/issues/150
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f83b776a4db2695bd33914eb9b42237243ab05dadc19be52963e0dd4bfa845d6/mapillary/mapillary-python-sdk/issues/150
og:image:altDescribe the bug xtile = int(math.floor((x + EPSILON) * Z2)) ValueError: cannot convert float NaN to integer To Reproduce This is the code I am using to collect th close-to images to a specific coo...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameNeginZarbakhsh
hostnamegithub.com
expected-hostnamegithub.com
None70a88bfe6d9639434ae7f5a46d15c336b8884978a51526bc55fc57d848f1e3c1
turbo-cache-controlno-preview
go-importgithub.com/mapillary/mapillary-python-sdk git https://github.com/mapillary/mapillary-python-sdk.git
octolytics-dimension-user_id5332499
octolytics-dimension-user_loginmapillary
octolytics-dimension-repository_id377662683
octolytics-dimension-repository_nwomapillary/mapillary-python-sdk
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id377662683
octolytics-dimension-repository_network_root_nwomapillary/mapillary-python-sdk
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
release2519b16db5550494a653f9a8837c14ef7df80804
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/mapillary/mapillary-python-sdk/issues/150#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmapillary%2Fmapillary-python-sdk%2Fissues%2F150
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%2Fmapillary%2Fmapillary-python-sdk%2Fissues%2F150
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%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=mapillary%2Fmapillary-python-sdk
Reloadhttps://patch-diff.githubusercontent.com/mapillary/mapillary-python-sdk/issues/150
Reloadhttps://patch-diff.githubusercontent.com/mapillary/mapillary-python-sdk/issues/150
Reloadhttps://patch-diff.githubusercontent.com/mapillary/mapillary-python-sdk/issues/150
mapillary https://patch-diff.githubusercontent.com/mapillary
mapillary-python-sdkhttps://patch-diff.githubusercontent.com/mapillary/mapillary-python-sdk
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fmapillary%2Fmapillary-python-sdk
Fork 22 https://patch-diff.githubusercontent.com/login?return_to=%2Fmapillary%2Fmapillary-python-sdk
Star 62 https://patch-diff.githubusercontent.com/login?return_to=%2Fmapillary%2Fmapillary-python-sdk
Code https://patch-diff.githubusercontent.com/mapillary/mapillary-python-sdk
Issues 17 https://patch-diff.githubusercontent.com/mapillary/mapillary-python-sdk/issues
Pull requests 7 https://patch-diff.githubusercontent.com/mapillary/mapillary-python-sdk/pulls
Actions https://patch-diff.githubusercontent.com/mapillary/mapillary-python-sdk/actions
Projects 0 https://patch-diff.githubusercontent.com/mapillary/mapillary-python-sdk/projects
Security 0 https://patch-diff.githubusercontent.com/mapillary/mapillary-python-sdk/security
Insights https://patch-diff.githubusercontent.com/mapillary/mapillary-python-sdk/pulse
Code https://patch-diff.githubusercontent.com/mapillary/mapillary-python-sdk
Issues https://patch-diff.githubusercontent.com/mapillary/mapillary-python-sdk/issues
Pull requests https://patch-diff.githubusercontent.com/mapillary/mapillary-python-sdk/pulls
Actions https://patch-diff.githubusercontent.com/mapillary/mapillary-python-sdk/actions
Projects https://patch-diff.githubusercontent.com/mapillary/mapillary-python-sdk/projects
Security https://patch-diff.githubusercontent.com/mapillary/mapillary-python-sdk/security
Insights https://patch-diff.githubusercontent.com/mapillary/mapillary-python-sdk/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/mapillary/mapillary-python-sdk/issues/150
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/mapillary/mapillary-python-sdk/issues/150
Bug Reporthttps://patch-diff.githubusercontent.com/mapillary/mapillary-python-sdk/issues/150#top
bugSomething isn't workinghttps://github.com/mapillary/mapillary-python-sdk/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/NeginZarbakhsh
https://github.com/NeginZarbakhsh
NeginZarbakhshhttps://github.com/NeginZarbakhsh
on Mar 7, 2023https://github.com/mapillary/mapillary-python-sdk/issues/150#issue-1613164769
https://tiles.mapillary.com/maps/vtp/mly1_public/2/14/7892/5318/?access_token=MLY%https://tiles.mapillary.com/maps/vtp/mly1_public/2/14/7892/5318/?access_token=MLY%
bugSomething isn't workinghttps://github.com/mapillary/mapillary-python-sdk/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.