panosc-vinyl / simex-lite Goto Github PK
View Code? Open in Web Editor NEWThe core package of the SIMEX platform providing the calculator interfaces. https://simex-lite.readthedocs.io/
License: Other
The core package of the SIMEX platform providing the calculator interfaces. https://simex-lite.readthedocs.io/
License: Other
[esobolev@max-display009]~/proj/simex1/diffraction_noise_geom% python diffr_2nip.py
Traceback (most recent call last):
File "/home/esobolev/proj/simex1/diffraction_noise_geom/diffr_2nip.py", line 1, in <module>
from SimExLite.DiffractionCalculators import SingFELPDBDiffractionCalculator
File "/home/esobolev/envs/dev-202301/lib/python3.9/site-packages/SimExLite/DiffractionCalculators/__init__.py", line 3, in <module>
from .CrystfelDiffractionCalculator import CrystfelDiffractionCalculator
File "/home/esobolev/envs/dev-202301/lib/python3.9/site-packages/SimExLite/DiffractionCalculators/CrystfelDiffractionCalculator.py", line 6, in <module>
import pytest
ModuleNotFoundError: No module named 'pytest'
Geometry tool for EMC
This will benefit the converting function of data wrappers in SimEx to save time.
File /gpfs/exfel/data/user/juncheng/SimExLite/SimExLite/PMIData/XMDYNFormat.py:52, in XMDYNFormat.read(cls, filename, format)
50 time_step = data_dict[step]
51 # Time of each step in second
---> 52 time_step["time"] = h5["misc/time"][snp][()]
53 time_step["atomic_numbers"] = step_in["Z"][()]
54 # Velocity of each atom. The unit is m/s
SiRepo makes it very intuitive and simple to configure a beamline and to propagate a Gaussian beam through it. Downloading
a beamline configuration is supported. A py script is generated that contains the beamline definition using srwpy's syntax.
Make a utility in simex(-lite) that reads (imports) the downloaded srwpy script and constructs a valid WPG beamline out of it that can be digested by the WPGPropagator.
Detector data + Geometry data =|Assemble|> DiffractionData
I found the following issues with the documentation;
pip install -e .
is the way to go.pip install git+https://github.com/...@simex
mention that mpi is a requirement
why install from juncheng repo, not central WPG?
Add introductory explanation of what is being done, what are the steps
Tutorial page for the singfel calculator
@godot11 Could you please help test the GaussianSourceCalculator
in the libpyvinyl branch of SimEx-Lite?
git clone https://github.com/PaNOSC-ViNYL/SimEx-Lite.git
git checkout libpyvinyl
And then have a look at tests/test_GaussianSourceCalculator.py
. The WPG package needs to be installed for that.
After testing, could you please let me know:
Define a pragmatic diffraction geometry definition compatible with both complicated and simple definitions.
diffr_ori = dd.get_data(pattern_shape=(81, 81))
data_to_return
in BaseData
to accept extra data.Road map for SimEx ecosystem
Get an item by index in collection
classes
As mentioned in #7 (comment)
An instruction to install WPG is needed.
I'd write somewhere in the documentation:
SimEx-Lite depends on WPG (github.com/Samoyl/WPG). Please download and build WPG as per their documentation. Then, you have to make the WPG library "visible" to SimEx-Lite. To this end, do one of the following:$PYTHONPATH: If you have the environment variable $PYTHONPATH set, copy the WPG/ directory into any directory listed in $PYTHONPATH.
conda: If you installed SimEx-Lite in a conda environment, activate that environment and copy the WPG/ directory to $CONDA_PREFIX/lib/python3.x/site-packages/ (x is your python minor version).
pip: If you installed SimEx-Lite with pip install, copy the WPG directory into $HOME/.local/lib/python3.x/site-packages
Test that WPG can be imported by running:$> python -c 'import WPG.Beamline'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.