This repository contains tutorials for the py4DSTEM Python package

Overview
Comments
  • Binder dev

    Binder dev

    • Binder link created, currently lands in Index.ipynb
    • data loaded as part of the notebooks, running all cells on notebooks inside binder will work.
    • Added file_getter.py which takes command-line arguments, which makes extending the download to more notebooks fairly straightforward.
    • Both notebooks work, make_probe_templates.ipynb required adding some clean-up steps to avoid going over 2GB ram limit, the alternative is to split them into more separate notebooks.
    • There's a slight issue that if people don't shutdown notebooks properly or if they have multiple notebooks over, they may cause kernel panics, both notebooks peak memory usage push the 2GB limit .
    • I haven't given much attention to style or formatting currently just wanted to get something functional and working to see if works as required.
    opened by alex-rakowski 1
  • SSB tutorial notebooks with new dataset

    SSB tutorial notebooks with new dataset

    These are two new tutorial notebooks I updated. One is for single-run reconstruction, the other is for interactive mode with ipywidgets and matplotlib visualization.

    opened by PhilippPelz 0
  • Binder dev

    Binder dev

    • Binder link created, currently lands in Index.ipynb
    • data loaded as part of the notebooks, running all cells on notebooks inside binder will work.
    • Added file_getter.py which takes command-line arguments, which makes extending the download to more notebooks fairly straightforward.
    • Both notebooks work, make_probe_templates.ipynb required adding some clean-up steps to avoid going over 2GB ram limit, the alternative is to split them into more separate notebooks.
    • There's a slight issue that if people don't shutdown notebooks properly or if they have multiple notebooks over, they may cause kernel panics, both notebooks peak memory usage push the 2GB limit .
    • I haven't given much attention to style or formatting currently just wanted to get something functional and working to see if works as required.
    opened by alex-rakowski 0
  • Add simulations for dynamical scattering

    Add simulations for dynamical scattering

    I found that there is almost no proper documentation for the dynamical scattering simulation in py4DSTEM unless you read the source code (actually I couldn't find the documentation for the whole diffraction module). So I created a tutorial using NaCl as an example. Hope I have done it right.

    opened by Taimin 0
  • py4DSTEM.process.virtualimage.get_virtualimage_circ (strain mapping tutorial)

    py4DSTEM.process.virtualimage.get_virtualimage_circ (strain mapping tutorial)

    in the strain mapping tutorial, this step doesn't work !

    [12]

    Next, create a BF virtual detector using the the center beam position (qxy0, qy0)

    We will expand the BF radius slightly (+ 2 px).

    The DF virtual detector can be set to all remaining pixels.

    expand_BF = 2.0 image_BF = py4DSTEM.process.virtualimage.get_virtualimage_circ( dataset, qx0, qy0, probe_semiangle + expand_BF) image_DF = py4DSTEM.process.virtualimage.get_virtualimage_ann( dataset, qx0, qy0, probe_semiangle + expand_BF, 1e3)

    [return]

    AttributeError Traceback (most recent call last) Input In [168], in <cell line: 5>() 1 # Next, create a BF virtual detector using the the center beam position (qxy0, qy0) 2 # We will expand the BF radius slightly (+ 2 px). 3 # The DF virtual detector can be set to all remaining pixels. 4 expand_BF = 2.0 ----> 5 image_BF = py4DSTEM.process.get_virtualimage_circ( 6 dataset, 7 qx0, qy0, 8 probe_semiangle + expand_BF) 9 image_DF = py4DSTEM.process.virtualimage.get_virtualimage_ann( 10 dataset, 11 qx0, qy0, 12 probe_semiangle + expand_BF, 13 1e3)

    AttributeError: module 'py4DSTEM.process' has no attribute 'get_virtualimage_circ'

    Any tips to fix that ?

    py4DSTEM.process.virtualimage.virtualimage.get_virtualimage_circ or py4DSTEM.process.virtualimage.get_virtualimage_circ ?

    opened by lylofu 0
  • ACOM_03_Au_NP_sim.ipynb bugs

    ACOM_03_Au_NP_sim.ipynb bugs

    Running the ACOM_03 notebook as downloaded, cell 25 gives the following error:

    ---------------------------------------------------------------------------
    NameError                                 Traceback (most recent call last)
    /var/folders/ts/tq6v7mks7hvg37ys5zvs1c2w0000gn/T/ipykernel_3012/3733081456.py in <module>
         14 
         15 # Fit an ellipse to the elliptically corrected bvm
    ---> 16 qx0_corr,qy0_corr,a_corr,e_corr,theta_corr = py4DSTEM.process.calibration.fit_ellipse_1D(bvm_ellipsecorr,(qx0,qy0),(qmin,qmax))
         17 
         18 py4DSTEM.visualize.show_elliptical_fit(
    
    NameError: name 'qmin' is not defined
    

    I think someone changed qmin, qmax to be a list called qrange and never actually tested the notebook in a fresh state.

    opened by sezelt 0
  • AttributeError: module 'py4DSTEM.process' has no attribute 'diffraction'

    AttributeError: module 'py4DSTEM.process' has no attribute 'diffraction'

    When I run the "ACOM Tutorial Notebook 01", it gives a following error message.

    AttributeError: module 'py4DSTEM.process' has no attribute 'diffraction'

    version python 3.8.0 py4DSTEM 0.12.6 pywin32 302

    error

    opened by nomurayuki0503 0
Releases(v0.13.8-alpha)
robomimic: A Modular Framework for Robot Learning from Demonstration

robomimic [Homepage]   [Documentation]   [Study Paper]   [Study Website]   [ARISE Initiative] Latest Updates [08/09/2021] v0.1.0: Initial code and pap

ARISE Initiative 178 Jan 05, 2023
Tackling the Class Imbalance Problem of Deep Learning Based Head and Neck Organ Segmentation

Info This is the code repository of the work Tackling the Class Imbalance Problem of Deep Learning Based Head and Neck Organ Segmentation from Elias T

2 Apr 20, 2022
Adds timm pretrained backbone to pytorch's FasterRcnn model

Operating Systems Lab (ETCS-352) Experiments for Operating Systems Lab (ETCS-352) performed by me in 2021 at uni. All codes are written by me except t

Mriganka Nath 12 Dec 03, 2022
Open source simulator for autonomous vehicles built on Unreal Engine / Unity, from Microsoft AI & Research

Welcome to AirSim AirSim is a simulator for drones, cars and more, built on Unreal Engine (we now also have an experimental Unity release). It is open

Microsoft 13.8k Jan 05, 2023
UIUCTF 2021 Public Challenge Repository

UIUCTF-2021-Public UIUCTF 2021 Public Challenge Repository Notes: every challenge folder contains a challenge.yml file in the format for ctfcli, CTFd'

SIGPwny 15 Nov 03, 2022
Crosslingual Segmental Language Model

Crosslingual Segmental Language Model This repository contains the code from Multilingual unsupervised sequence segmentation transfers to extremely lo

C.M. Downey 1 Jun 13, 2022
Thermal Control of Laser Powder Bed Fusion using Deep Reinforcement Learning

This repository is the implementation of the paper "Thermal Control of Laser Powder Bed Fusion Using Deep Reinforcement Learning", linked here. The project makes use of the Deep Reinforcement Library

BaratiLab 11 Dec 27, 2022
Official Codes for Graph Modularity:Towards Understanding the Cross-Layer Transition of Feature Representations in Deep Neural Networks.

Dynamic-Graphs-Construction Official Codes for Graph Modularity:Towards Understanding the Cross-Layer Transition of Feature Representations in Deep Ne

11 Dec 14, 2022
IA for recognising Traffic Signs using Keras [Tensorflow]

Traffic Signs Recognition ⚠️ 🚦 Fundamentals of Intelligent Systems Introduction 📄 Development of a neural network capable of recognizing nine differ

Sebastián Fernández García 2 Dec 19, 2022
🏎️ Accelerate training and inference of 🤗 Transformers with easy to use hardware optimization tools

Hugging Face Optimum 🤗 Optimum is an extension of 🤗 Transformers, providing a set of performance optimization tools enabling maximum efficiency to t

Hugging Face 842 Dec 30, 2022
Project for tracking occupancy in Tel-Aviv parking lots.

Ahuzat Dibuk - Tracking occupancy in Tel-Aviv parking lots main.py This module was set-up to be executed on Google Cloud Platform. I run it every 15 m

Geva Kipper 35 Nov 22, 2022
Natural Posterior Network: Deep Bayesian Predictive Uncertainty for Exponential Family Distributions

Natural Posterior Network This repository provides the official implementation o

Oliver Borchert 54 Dec 06, 2022
Alfred-Restore-Iterm-Arrangement - An Alfred workflow to restore iTerm2 window Arrangements

Alfred-Restore-Iterm-Arrangement This alfred workflow will list avaliable iTerm2

7 May 10, 2022
A BaSiC Tool for Background and Shading Correction of Optical Microscopy Images

BaSiC Matlab code accompanying A BaSiC Tool for Background and Shading Correction of Optical Microscopy Images by Tingying Peng, Kurt Thorn, Timm Schr

Marr Lab 34 Dec 18, 2022
MPRNet-Cloud-removal: Progressive cloud removal

MPRNet-Cloud-removal Progressive cloud removal Requirements 1.Pytorch = 1.0 2.Python 3 3.NVIDIA GPU + CUDA 9.0 4.Tensorboard Installation 1.Clone the

Semi 95 Dec 18, 2022
Hl classification bc - A Network-Based High-Level Data Classification Algorithm Using Betweenness Centrality

A Network-Based High-Level Data Classification Algorithm Using Betweenness Centr

Esteban Vilca 3 Dec 01, 2022
Code for "PV-RAFT: Point-Voxel Correlation Fields for Scene Flow Estimation of Point Clouds", CVPR 2021

PV-RAFT This repository contains the PyTorch implementation for paper "PV-RAFT: Point-Voxel Correlation Fields for Scene Flow Estimation of Point Clou

Yi Wei 43 Dec 05, 2022
A framework to train language models to learn invariant representations.

Invariant Language Modeling Implementation of the training for invariant language models. Motivation Modern pretrained language models are critical co

6 Nov 16, 2022
Mitsuba 2: A Retargetable Forward and Inverse Renderer

Mitsuba Renderer 2 Documentation Mitsuba 2 is a research-oriented rendering system written in portable C++17. It consists of a small set of core libra

Mitsuba Physically Based Renderer 2k Jan 07, 2023
Official Pytorch implementation of Meta Internal Learning

Official Pytorch implementation of Meta Internal Learning

10 Aug 24, 2022