Comments (5)
What options did you want to set? You can supply options to the sampler when you set up CurveFitter
from refnx.
I am trying to set the skip_initial_state_check = True
argument in the EnsembleSampler.sample()
method I don't see where I can put this when setting up CurveFitter
, or when calling CurveFitter.sample()
. All the arguments of the EnsemberSampler.sample()
seem hidden when they are accessed though CurveFitter
.
Let me know if I am missing something
from refnx.
I don't think you are missing anything. What does that check do?
I just looked at your account page - you seem to be doing a lot of XRR, including RSOXRR. You might be interested in ReflectModelTL
which allows calculation of reflectivity for wavelength dispersive SLD profiles.
This model uses theta/wavelength to calculate reflectivity. For each wavelength value the Structure
is asked to return its slab representation. Some Scatterer
s, e.g. MaterialSLD
, have wavelength dependent SLDs, which will modulate the SLD profile for that particular wavelength.
from refnx.
Thanks for the suggestion, I will take a look. I use a wrapper library that allows for wavelength dependent tensor SLD's .
When fitting using refnx, I find that there sometimes the following exception logic is thrown.
if (not skip_initial_state_check) and (
not walkers_independent(state.coords)
):
raise ValueError(
"Initial state has a large condition number. "
"Make sure that your walkers are linearly independent for the "
"best performance"
)
I can usually get around this by choosing different priors/initialization state, but sometimes it is unavoidable. By passing in skip_initial_state_check = True
, I don't have to care about this initial state check throwing an error.
from refnx.
MaterialSLD uses the periodictable package to calculate slds. I think it's pretty good for X-ray values at different energies. if you were to write something like MaterialSLD, i.e. inheriting Scatterer, then you can have your own x-ray wavelength dispersion curves.
from refnx.
Related Issues (20)
- pip install refnx leads to error with missing "_open_mp_helpers" HOT 3
- Drag and drop datasets doesn't work on windows HOT 1
- Save/reload doesn't work for mixed area models HOT 1
- curvefitter.fit does not accept kwargs for ‘L-BFGS-B’ HOT 2
- progress bar for fitting? HOT 6
- Saving and loading models from code HOT 4
- pyopencl does not play well with multiprocessing.
- Spawning of multiple windows when fitting with refnx HOT 1
- Using specified peak_pos (position, FWHM) in ReductionOptions is applied to both reflected and direct beam HOT 2
- Suggestion: add the option to ignore zeros in ReflectDataset? HOT 9
- Can't use non-Slab object as fronting or backing HOT 5
- Frequent Collapse HOT 5
- Inability to reduce older PNR data as the spin channels were not automatically identified HOT 4
- R increase at the beginning of the curve HOT 7
- Minor error in PolarizationEfficiency class matrix HOT 2
- Link equivalent parameters doesn't work for a MixedArea model
- refnx doesn't accept pathlib.Path objects as filenames HOT 2
- search not working on readthedocs HOT 2
- Jax backend HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from refnx.