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
    • 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
    • Engagement control
    • 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 Versions and GitHub Sync Sharing URL Help
Menu
Options
Engagement control 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
  • 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
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    --- name: DIALS core meeting 2020-10-01 tags: core meeting --- # DIALS core meeting 2020-10-01 [![hackmd-github-sync-badge](https://hackmd.io/DgbAANUsTDKAmlTK32ZNoQ/badge)](https://hackmd.io/DgbAANUsTDKAmlTK32ZNoQ) ## 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) * first outcome to be discussed below * [ ] 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). * Was waiting for [dials#1395](https://github.com/dials/dials/pull/1395) which has not received any negative comments - so let's merge that. * [ ] MG: organise a [typing intro lecture](https://dials.github.io/kb/core/20200917). ## Agenda ### Overall architecture discussion Discuss proposal [DC1 -- per-module `setup.py`](https://hackmd.io/@dials/B11SXgTND) * GW: Can we move away from all code being in header files and can we have a single library? * Discussed. Sounds doable, but should be a separate proposal. **AP:** MG+ND to make such a proposal. * ND notes that this removes the need for the current entry point hack. We should add that to the proposal. Outcome: **AP:** MG+ND to make this happen in a PR ### `cbflib_adaptbx` dependency We are only referencing `compress` and `uncompress` functions, and `cbflib_adaptbx` has a MSVC-ancient-dependency. We could copy the functions into `dxtbx_ext` and remove the dependency. * GW: This code is too inflexible for current needs, so may need to rewrite it. * MG: I think these two functions do not even go into cbflib. They are used in a test in `iotbx/detectors` * GW: I'm not proposing taking the functions out of `cbflib_adaptbx` * ASB: You may want to think about taking it out of `cbflib_adaptbx`. Discussions with Herbert about dissolving `cbflib_adaptbx` are ongoing. Before removing though need to check for eg. labelit dependencies. **AP:** GW to move the function into `dxtbx` in a PR ### Remove `clipper` dependency ([#1437](https://github.com/dials/dials/pull/1437)) Doesn't appear to be used anywhere, so we basically just redistribute the source code. * Not used by anything known. If it was then we ought to find out. **Outcome:** Merge PR and remove ### cctbx conda-forge package We may want to evaluate moving the dxtbx/DIALS Azure builds to use the [now available cctbx conda-forge package](https://github.com/conda-forge/cctbx-base-feedstock), once [issue #4](https://github.com/conda-forge/cctbx-base-feedstock/issues/4) is resolved, which prevents the package being used as a build platform. * ABS: That would be rad. * We haven't appreciated the fundamental perspective shift yet though. * ASB: Will bring this up the next CCI-all meeting. * GW: We should bring our heads round the idea that all different components become different conda packages. #### Benefits * Faster builds * Making use of clearer API boundaries and versioning #### Drawbacks * API boundaries and versioning * In other words: We would start treating cctbx as a software package. This restricts dxtbx/DIALS code to only use functionality that is part of the relevant cctbx release. From time to time, when cctbx releases new versions, we would update our dependencies, which would then allow the use of new cctbx features. **Outcome:** Discuss next time, with ASB reporting from the CCI-all meeting. ### `dxtbx` → `xfel` dependencies At some point we made a somewhat conscious decision that `dxtbx` should not depend on `dials`. While setting up some Azure testing of dxtbx ([#226](https://github.com/cctbx/dxtbx/pull/226)) without `dials`/`xia2` and their dependencies present some test failures were flagged because [`dxtbx` has dependencies into `xfel`](https://github.com/cctbx/dxtbx/commit/d25c9304601aea6725fa073855ff3c553840d184). How should we deal with this? A few options: * Disable the code so it stays in dxtbx but is not tested/missing dependencies do not trigger errors? * Cleanest option would be to move xfel-dependent format classes into the xfel package * Eliminate the dependencies Discussion: * GW: I have the opinion that we shouldn't have circular dependencies. Ever. * DGW: has electron-diffraction format classes outside of dxtbx. Would love to put SMV classes into a separate box as they are too promiscuous. * ASB: having format classes stashed together is an easy mental model **Outcomes:** * ASB needs to consider the future of the xfel module * In principle the format classes could go into xfel * The commit linked above can go in (will be merged as part of [dxtbx#226](https://github.com/cctbx/dxtbx/pull/226)) * Will discuss next time ### Pull request *When file indices are provided,...* ASB: This is [dxtbx#210](https://github.com/cctbx/dxtbx/pull/210). The FormatSaclaHDF5 class isn't lazy, which led to that problem. Will fix this in a separate PR, but the PR above is still a good PR independently of that. In discussion we identified a new potential issue. We need to ensure during deserialisation this loop isn't hit for classes that don't have scans and goniometers. ### Definition of `trusted_range` *was not discussed today* Discuss [Definition of `trusted_range` (dxtbx#182)](https://github.com/cctbx/dxtbx/issues/182) ### `image_range` vs. `array_range` baked in off-by-one errors *was not discussed today* 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 ### DIALS documentation build *was not discussed today* 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 ### dxtbx json/msgpack performance *was not discussed today* 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. 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 ### Remove `tntbx` dependency *was not discussed today* Appears not to be used anywhere outside of `cctbx_project/xfel`, but `xfel` does not declared is as a dependency. `xfel` only uses the [`svd()`](https://github.com/dials/tntbx/blob/master/tntbx/__init__.py#L7) function. Maybe change xfel to use [`numpy.linalg.svd`](https://numpy.org/doc/stable/reference/generated/numpy.linalg.svd.html) instead and drop `tntbx` entirely? ### renaming `master` branch → `main` *was not discussed today* * 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 * from 1st of October new GitHub repositories will 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/dxtbx two weeks later. ### Next meeting October 15th, 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