{"id":15359117,"url":"https://github.com/santisoler/choclo-rs","last_synced_at":"2025-04-04T13:44:03.849Z","repository":{"id":163619852,"uuid":"628829876","full_name":"santisoler/choclo-rs","owner":"santisoler","description":"Rust implementation of Choclo kernels. Experimenting with PyO3","archived":false,"fork":false,"pushed_at":"2023-05-10T19:04:29.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-09T23:28:41.758Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/santisoler.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-17T04:19:55.000Z","updated_at":"2023-05-10T18:32:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"6756daa4-5463-4d9d-a375-815d2b9c89f8","html_url":"https://github.com/santisoler/choclo-rs","commit_stats":{"total_commits":16,"total_committers":2,"mean_commits":8.0,"dds":0.25,"last_synced_commit":"373adaab4c3708e6e16fabdcd94b5ed0fd5da829"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santisoler%2Fchoclo-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santisoler%2Fchoclo-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santisoler%2Fchoclo-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santisoler%2Fchoclo-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/santisoler","download_url":"https://codeload.github.com/santisoler/choclo-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247189521,"owners_count":20898691,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-01T12:43:52.519Z","updated_at":"2025-04-04T13:44:03.828Z","avatar_url":"https://github.com/santisoler.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Implementation of Choclo kernels in Rust\n\nI started this repo to experiment with Python modules written in Rust, using\n[PyO3][pyo3], [Maturin][maturin], the [`ndarray`][ndarray] and\n[`numpy`][numpy] crates, and [`rayon`][rayon] for parallelizing the runs.\n\nI choose to implement the forward model of the vertical component of the\ngravity acceleration of point sources on a set of computation points, inspired\nin the [Choclo][choclo] function [`choclo.point.gravity_u`][gravity_u].\n\n\u003e **Warning**\n\u003e\n\u003e This code is just an experiment, it's note being tested or actively\n\u003e maintained. Feel free to use it to learn and as a starting point to build your\n\u003e own Python modules in Rust.\n\n## How to build and run\n\nClone this repo:\n\n```\ngit clone https://github.com/santisoler/choclo-rs\ncd choclo-rs\n```\n\nInstall [`maturin`][maturin] and build the package with:\n\n```\nmaturin develop --release\n```\n\n\u003e We use the `--release` option to enable Rust optimizations. If you are\n\u003e playing around with your code, you can speed up the build by omitting the\n\u003e `--release` option, but expect a performance hit.\n\u003e\n\u003e **Make use of the `--release` option if you are benchmarking the code**.\n\nNow you'll be able to import `choclors` from Python:\n\n```python\nimport choclors\n```\n\nFor example:\n\n```python\nimport numpy as np\nimport choclors\n\neasting = np.array([0.])\nnorthing = np.array([0.])\nupward = np.array([0.])\npoints = np.array([0., 0., -10.])\nmasses = np.array([1e6])\n\nresult = choclors.points_gz(easting, northing, upward, points, masses)\n```\n\n\n## License\n\nThis is free software: you can redistribute it and/or modify it under the terms\nof the BSD 3-clause License. A copy of this license is provided in\n[LICENSE](LICENSE).\n\n[pyo3]: https://pyo3.rs\n[maturin]: https://www.maturin.rs\n[ndarray]: https://docs.rs/ndarray\n[numpy]: https://docs.rs/numpy\n[rayon]: https://docs.rs/rayon\n[choclo]: https://www.fatiando.org/choclo\n[gravity_u]: https://www.fatiando.org/choclo/latest/api/generated/choclo.point.gravity_u.html#choclo.point.gravity_u\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsantisoler%2Fchoclo-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsantisoler%2Fchoclo-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsantisoler%2Fchoclo-rs/lists"}