DIALS
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Help
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    --- name: DIALS core meeting 2020-12-09 tags: core meeting --- # DIALS core meeting 2020-12-09 ## Previous Actions * [ ] MG+ND: write a proposal for ['overall architecture discussion'](https://dials.github.io/kb/core/20200903) and ['new installer'](https://dials.github.io/kb/core/20200903) * [ ] MG+ND: Come up with a proposal to [move away from all code being in header files](https://dials.github.io/kb/core/20201001) and consolidate into a single library * [x] ND: [to review xia2 DC1](https://dials.github.io/kb/core/20201125#xia2-dc1) ([#528](https://github.com/xia2/xia2/pull/528)) * [ ] ND: update `CONTRIBUTING` in a (separate) pull request to include a soft-imposition of [stable master](https://dials.github.io/kb/core/20200903), [dials#1353](https://github.com/dials/dials/issues/1353). * [ ] MG: organise a [typing intro lecture](https://dials.github.io/kb/core/20200917). * [ ] [cbflib conda-forge package](https://dials.github.io/kb/core/20201125#cbflib-conda-forge-package) * [ ] ND to set up an agenda for a code-review meeting * [ ] then: ASB to set up a meeting with HJB, BKP, ASB, ND * [ ] ASB to explore what should happen to cbflib maintenance in the future * [ ] ND to set up a [`cbflib_adaptbx` pull request](https://dials.github.io/kb/core/20201125#cbflib_adaptbx-dependency) for MAR detector fixes. Verify with `labelit_regression`. ## Agenda **This meeting instance is ring-fenced to discuss pull requests with the word 'range' and/or 'lazy' in the subject, and performance issues baked into dxtbx.** ### Definition of `trusted_range` Discuss PR [Definition of `trusted_range` (dxtbx#182)](https://github.com/cctbx/dxtbx/issues/182) ### `image_range` vs. `array_range` baked in off-by-one errors Discuss [`image_range` vs. `array_range` baked in off-by-one errors (dxtbx#186)](https://github.com/cctbx/dxtbx/issues/186) * DW made a proposal and started work on that, but it proved messy * There is a new, simpler, proposal but this version kills off the `image_range` concept rather than `array_range` * Discuss, again, what we want here and whether the new proposal is useful ### dxtbx json/msgpack performance ASB reports json being problematic when importing e.g. 50,000 experiments, as everything is stored in a single file, so everything needs to be read at once. * GW: cf. [Load before heat death (dxtbx#118)](https://github.com/cctbx/dxtbx/pull/118). At the core of it are bad design choices in dxtbx. * Future discussion topics: 1. treatment of large serial datasets 2. using an HDF5 backend for reflection files 3. [dials#1407](https://github.com/dials/dials/issues/1407) specific proposal * ASB: I want `check_format` to go away. Previous discussion outcomes: * ASB: * General consensus that this is needed. * Make models and store them * Load them in parallel with minimal memory requirements * Version all models and rewind them * This needs a lot of thought and at this time we don't have agreement here. * Not need to copy data like shoeboxes when they aren't being changed, operate by reference ### GW dump of thoughts on above Long list of pertinent (and unresolved) issues indicates we probably have some rather fundamental work to do here. This will boil down to essentially a dx2bx which would have some features listed below. * [dxtbx#219](https://github.com/cctbx/dxtbx/issues/219) - Eiger reading unnecessarily slow * [dxtbx#222](https://github.com/cctbx/dxtbx/issues/222) - get raw data should return native data types * [dxtbx#187](https://github.com/cctbx/dxtbx/issues/187) - remove the idea of check_format * [dxtbx#186](https://github.com/cctbx/dxtbx/issues/186) - baked in off-by-one errors * [dxtbx#159](https://github.com/cctbx/dxtbx/issues/159) - record format class in experiments * [dials#1238](https://github.com/dials/dials/issues/1238) - experiments contain references to pickle files * [dials#1407](https://github.com/dials/dials/issues/1407) - reflections and models in single (reflex) file * [dxtbx#118](https://github.com/cctbx/dxtbx/pull/118) - [merged] load before heat death * [dials#1014](https://github.com/dials/dials/pull/1014) - [merged] import still image sequences as M experiments * [dials#1153](https://github.com/dials/dials/issues/1153) - spot counts per image does weird things with images starting from 0 * [dxtbx#141](https://github.com/cctbx/dxtbx/pull/141) - [merged] handle slicing when images start from 0 * [dials#1104](https://github.com/dials/dials/issues/1104) - eliminate legacy imageset_id in reflection tables * [dials#1023](https://github.com/dials/dials/issues/1023) - images should do nothing but get raw data * [dials#845](https://github.com/dials/dials/issues/845) - sensitivity to mask types? * [dials#615](https://github.com/dials/dials/issues/615) - rationalise experiment id assumptions * [dials#504](https://github.com/dials/dials/issues/504) - dials import no work well for large numbers of images * [dxtbx#13](https://github.com/cctbx/dxtbx/issues/13) - dxtbx assumes you have no more than one scan in a file Smaller issues which could still be fixed “properly” * [dxtbx#255](https://github.com/cctbx/dxtbx/pull/255) - mark classes as abstract dx2bx features: * not constrained by need to be back-compatible with dxtbx → dials 4.x series by implication * only read the metadata on import * use C++ file readers for the experiment data (e.g. CBF, HDF5, mmap → TIFF-like, SMV) * Format classes become factory functions → create the experiment models, which are saved and used henceforth * faster, random access, non-text container for experiment models (and ideally reflection data) * [dxtbx project 'Design limitations'](https://github.com/cctbx/dxtbx/projects/3) ← fix all of these This is likely to be a big body of work but I think is on the critical path for what we need to do. ### Discussion Features of dxtbx we want to preserve in a re-write: - Most of the models (beam, detector, crystal, gonio, scan) - The registry - In-memory representation of data (like what we get from MemImageSet). Supports streaming. Things that should go away - Imageset/imagesweep - Lazy will be unnecessary because models are random access and read on demand - Datablocks - Detectorbase - `check_format` (implicit in random access/read on demand) New features that are desired - Retain more details of the goniometer stack - Proper definition of scan - ImageSetData, Reader - numpy back end as option? - would likely enable pybind11 - Match the crystal B matrix convention to IUCr convention. - `get_image_size` is fast/slow but get raw data is slow/fast - Count everything from zero - Array dimensions are in C order - Remove magic from option parser - Assume filenames are "sensible" i.e. `.nxs` are nexus files, etc. - Assume `.expt` is experiments, `.refl` is reflections - Formats have list of supported filename extensions :thinking_face: - Define 'half object' conventions (pixel coordinates, U matrix rotations) - Fast deserialization Conclusion of discussion: consensus was to take this forward to a project proposal to active collaborators, with an explicit rename such that dxtbx continues along it's existing path for non-DIALS users. ## Deferred Agenda Items ### Aaron's PR Requests Aaron requested that a slew of pull requests be reviewed by the next meeting after 2020-11-25: #### dxtbx: - Allow certain classes to be labeled as 'abstract' [(#255)](https://github.com/cctbx/dxtbx/pull/255) - Deprecate h5rawdata and use `Format.ignore()` in the Registry [(#261)](https://github.com/cctbx/dxtbx/pull/261) - Make `FormatHDF5SaclaMPCCD` lazy [(#227)](https://github.com/cctbx/dxtbx/pull/227) #### Dials: - Add `is_stills` parameter to the spotfinder API to allow `dials.stills_process` to work with scans [(#1508)](https://github.com/dials/dials/pull/1508) - Redo test to support new h5 file parsing behavior in dxtbx [(#1499)](https://github.com/dials/dials/pull/1499) - Multiple stills view [(#1463)](https://github.com/dials/dials/pull/1463) - dials.import: individually select models from reference expt [(#1371)](https://github.com/dials/dials/pull/1371) ### renaming `master` branch → `main` *not discussed in this meeting* * Nothing much will happen on this any time soon - either way we'll [wait for GitHub support on this one](https://github.com/github/renaming) * General assent that this is useful * since 1st of October new GitHub repositories have `main` as the default * **proposed outcome**: Agree to migrate to `main`. Turn this into dxtbx/dials/xia2 issues and move once GitHub provides a migration path. Use xia2 as a test-bed and move dials and dxtbx two weeks later. ### DIALS documentation build *not discussed in this meeting* Should the DIALS documentation build outside a cctbx environment? * Currently you can only build the DIALS documentation inside a cctbx environment. This means a remote documentation build needs to build cctbx first, so we can't easily run the documentation build on every commit. When things break they are difficult to fix. We can't use readthedocs. * MG: I believe the main obstacles are three cctbx Sphinx plugins that may need to be extracted or removed from DIALS documentation, and some phil parsing logic. * MG: the cctbx conda-forge package may be useful here ### move the active `dxtbx` repository into the DIALS organisation *not discussed in this meeting* Having the main repository in cctbx_project has a few distinct disadvantages. The most annoying is the [eternal fight against the lockdown bot](https://github.com/dials/dxtbx/pulls?q=is%3Apr+is%3Aclosed+-label%3Aupcoming-release+), but we also don't get LGTM output. * **proposed outcome**: move the active `dxtbx` repository into the DIALS organisation. Do it in such a way that the impact on existing installations, issues, pull requests is minimal. ### dials.index: create new experiments *not discussed in this meeting* dials.index should (or should not) create new experiments with crystals in rather than modifying in place existing experiments [as proposed in this issue](https://github.com/dials/dials/issues/1029) ### Next meeting Thursday, January 14th, 4pm UK time, 8am PDT.

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully