Title: feat: `get_density_from_cloud()` COD workflow · Issue #331 · diffpy/diffpy.utils · GitHub
Open Graph Title: feat: `get_density_from_cloud()` COD workflow · Issue #331 · diffpy/diffpy.utils
X Title: feat: `get_density_from_cloud()` COD workflow · Issue #331 · diffpy/diffpy.utils
Description: Problem: User enters a chemical formula (e.g. SiO2, Nacl) and optionally a phase. The function returns the material density. Proposed steps: 1. Initialize a structure object (e.g., ase.Atoms?) using the given chemical formula and optiona...
Open Graph Description: Problem: User enters a chemical formula (e.g. SiO2, Nacl) and optionally a phase. The function returns the material density. Proposed steps: 1. Initialize a structure object (e.g., ase.Atoms?) usin...
X Description: Problem: User enters a chemical formula (e.g. SiO2, Nacl) and optionally a phase. The function returns the material density. Proposed steps: 1. Initialize a structure object (e.g., ase.Atoms?) usin...
Opengraph URL: https://github.com/diffpy/diffpy.utils/issues/331
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feat: `get_density_from_cloud()` COD workflow","articleBody":"**Problem:**\nUser enters a chemical formula (e.g. SiO2, Nacl) and optionally a phase. The function returns the material density.\n\n**Proposed steps:**\n- [ ] 1. Initialize a structure object (e.g., ``ase.Atoms``?) using the given chemical formula and optional phase information.\n- [ ] 2. Implement a method (e.g., ``Atoms.hill_formula``) to compute the Hill notation for the chemical formula and attach it to the structure object.\n- [ ] 3. Retrive matching COD JSON files based on the Hill notation.\n- [ ] 4. Load the COD JSON files to the structure object, e.g. store it in ``Atoms.info[\"cod_entries\"]``.\n- [ ] 5. Extract and store properties like molar mass, lattice parameters, etc., so that we are ready for computing density.\n- [ ] 6. Compute density for each COD JSON file: ``density = (Z * molar_mass) / (volume_cm3 * AVOGADRO_NUMBER)``.\n- [ ] 7. Return the average density (per phase, if applicable)\n\n@sbillinge I edited the tasks based on our discussion today. Please take a look and let me know if everything looks good :) I might close some of the current PRs to keep the commiting history clean. Thanks!","author":{"url":"https://github.com/yucongalicechen","@type":"Person","name":"yucongalicechen"},"datePublished":"2025-04-18T19:50:45.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/331/diffpy.utils/issues/331"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:af0f255c-3c99-b319-a9bb-c349be180850 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D452:2BF009:413FF6:571A30:697194EF |
| html-safe-nonce | df4fd2d4c3a4632f6dad0fd79251c5cbe4101a7f9a00122f84a1c719cc272c6f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENDUyOjJCRjAwOTo0MTNGRjY6NTcxQTMwOjY5NzE5NEVGIiwidmlzaXRvcl9pZCI6IjMzMjU0NjkwNTQ1MDY5OTY5NzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 40cbee5e232703e236a051c503ad98072fd78c0a2bdc1aa71028a71238387ffb |
| hovercard-subject-tag | issue:3005647345 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/diffpy/diffpy.utils/331/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d735631551d3eefd15ecccc971f08e86a90b6f28e222da8d3639d37b8378091a/diffpy/diffpy.utils/issues/331 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d735631551d3eefd15ecccc971f08e86a90b6f28e222da8d3639d37b8378091a/diffpy/diffpy.utils/issues/331 |
| og:image:alt | Problem: User enters a chemical formula (e.g. SiO2, Nacl) and optionally a phase. The function returns the material density. Proposed steps: 1. Initialize a structure object (e.g., ase.Atoms?) usin... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | yucongalicechen |
| hostname | github.com |
| expected-hostname | github.com |
| None | fdfdce9cd4f6ab85dca2b0d11264270829297c962dd5a79df449062d7822258f |
| turbo-cache-control | no-preview |
| go-import | github.com/diffpy/diffpy.utils git https://github.com/diffpy/diffpy.utils.git |
| octolytics-dimension-user_id | 5612611 |
| octolytics-dimension-user_login | diffpy |
| octolytics-dimension-repository_id | 11960408 |
| octolytics-dimension-repository_nwo | diffpy/diffpy.utils |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 11960408 |
| octolytics-dimension-repository_network_root_nwo | diffpy/diffpy.utils |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 51c736e60b302bd039c9d5164573d176ceb24bb2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width