Title: feat: DiffractionObject.load() method · Issue #313 · diffpy/diffpy.utils · GitHub
Open Graph Title: feat: DiffractionObject.load() method · Issue #313 · diffpy/diffpy.utils
X Title: feat: DiffractionObject.load() method · Issue #313 · diffpy/diffpy.utils
Description: Problem We can dump easily but we can't yet load Proposed solution define a DiffractionObject.load() method that uses loadData but just loads it into a diffraction object with all the header info in metadata my_do = DiffractionObject().l...
Open Graph Description: Problem We can dump easily but we can't yet load Proposed solution define a DiffractionObject.load() method that uses loadData but just loads it into a diffraction object with all the header info i...
X Description: Problem We can dump easily but we can't yet load Proposed solution define a DiffractionObject.load() method that uses loadData but just loads it into a diffraction object with all the header in...
Opengraph URL: https://github.com/diffpy/diffpy.utils/issues/313
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feat: DiffractionObject.load() method","articleBody":"### Problem\r\nWe can dump easily but we can't yet load\r\n\r\n### Proposed solution\r\ndefine a DiffractionObject.load() method that uses loadData but just loads it into a diffraction object with all the header info in metadata\r\n```\r\nmy_do = DiffractionObject().load('path/to/file.chi')\r\n```\r\ngives a valid DO. It could look for wavelength and xtype in hte header, but if can't find it it needs to throw an error or a warning and ask to rerun specifying, for example\r\n```\r\nmy_do = DiffractionObject(wavelength=1.54,xtype=q).load('path/to/file.chi')\r\n```\r\n","author":{"url":"https://github.com/sbillinge","@type":"Person","name":"sbillinge"},"datePublished":"2025-01-01T20:04:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/313/diffpy.utils/issues/313"}
| 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:b8c8483c-7da3-c1e4-9cf0-c42fc90087ab |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E6F6:74018:1006A47:1520609:69717EDB |
| html-safe-nonce | 91d99586d670c64177840e1038c134b69e4cbc456d5f245df60bacc7d8d7f187 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNkY2Ojc0MDE4OjEwMDZBNDc6MTUyMDYwOTo2OTcxN0VEQiIsInZpc2l0b3JfaWQiOiI3OTE2Mzc2MDU1NTE2MDY5NTk1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f1be190e36f21552c65b8e36c1a77ce298d29e7c95aac90b340d4e702522b544 |
| hovercard-subject-tag | issue:2765237698 |
| 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/313/issue_layout |
| twitter:image | https://opengraph.githubassets.com/302d78b5f3c87189c4cc1579e1de1a563f509f2dbf3dbb23e141ee560e716ef3/diffpy/diffpy.utils/issues/313 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/302d78b5f3c87189c4cc1579e1de1a563f509f2dbf3dbb23e141ee560e716ef3/diffpy/diffpy.utils/issues/313 |
| og:image:alt | Problem We can dump easily but we can't yet load Proposed solution define a DiffractionObject.load() method that uses loadData but just loads it into a diffraction object with all the header info i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sbillinge |
| hostname | github.com |
| expected-hostname | github.com |
| None | 83f241b6f7605f8428e9ff3118ca968f3a377f07904e088dfd9465a7c12cc367 |
| 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 | 742da896705f64f8f87756c8e5cc3175bdbeb85e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width