reflectorch 1.0.1__tar.gz → 1.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of reflectorch might be problematic. Click here for more details.
- reflectorch-1.1.0/MANIFEST.in +13 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/PKG-INFO +14 -10
- {reflectorch-1.0.1 → reflectorch-1.1.0}/README.md +12 -7
- reflectorch-1.1.0/configs/c_test_safetensors.yaml +103 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/pyproject.toml +2 -2
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/inference/__init__.py +2 -0
- reflectorch-1.1.0/reflectorch/inference/query_matcher.py +82 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/runs/utils.py +6 -7
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch.egg-info/PKG-INFO +14 -10
- reflectorch-1.1.0/reflectorch.egg-info/SOURCES.txt +258 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch.egg-info/requires.txt +0 -1
- reflectorch-1.0.1/MANIFEST.in +0 -4
- reflectorch-1.0.1/docs/.buildinfo +0 -4
- reflectorch-1.0.1/docs/.nojekyll +0 -0
- reflectorch-1.0.1/docs/_images/099e7c02597f512ca4bf329e5e70eabf2526b801bc2e41a4b60faf1fd2a0d5b1.png +0 -0
- reflectorch-1.0.1/docs/_images/1ac30c6dc424753591b75155c55218b97af8a9d4f39ba1f550e3726b99a8c203.png +0 -0
- reflectorch-1.0.1/docs/_images/3032465085654ffdb6867123c628f2cf254e999fbed6a3e83f086fbefff32f60.png +0 -0
- reflectorch-1.0.1/docs/_images/462e9fd6dbc00234aca3b1cae4463c91412d09f837f308179bec64ac6c0e2131.png +0 -0
- reflectorch-1.0.1/docs/_images/4d27eb91adf7ec25746b09811fb942ba4f3cbf658a3863b2c2187d81b8cbcf01.png +0 -0
- reflectorch-1.0.1/docs/_images/51d11b6255a573c0f8781fe74c1711151fbc2bc20db8ad460609c5fd5fcba04f.png +0 -0
- reflectorch-1.0.1/docs/_images/570b83780084f56a287d652d7580aa1858691a18cbc5cab9ceb4a7444baa0090.png +0 -0
- reflectorch-1.0.1/docs/_images/5a15129c3f2683e9a278d594c69424c4a81058c3f8d86a555ff3efd8e2343a0b.png +0 -0
- reflectorch-1.0.1/docs/_images/69d7c263b51df1bddc93a007ae2fecfd0545cf92af67c8882a0df8552576fa66.png +0 -0
- reflectorch-1.0.1/docs/_images/96a843c24bb16816e4ec21c2b6b5c481326b522c884f1655ff3105627ceabe0d.png +0 -0
- reflectorch-1.0.1/docs/_images/97a75e185ec40a99a279ded3b8e62245aa03f9f8d10d001217300c9383d0d765.png +0 -0
- reflectorch-1.0.1/docs/_images/FigureReflectometryNetwork.png +0 -0
- reflectorch-1.0.1/docs/_images/FigureReflectometryNetwork1.png +0 -0
- reflectorch-1.0.1/docs/_images/a4da539228f5cd6bedde145b371d42caf707eac2a4a9b6574589593efd850d6b.png +0 -0
- reflectorch-1.0.1/docs/_images/a8216c88102285c58af52732aad1a43ad5d47aa8b2d194ec59cf6475ab1575b9.png +0 -0
- reflectorch-1.0.1/docs/_images/c6ab9d1f271ac67ea566420b728be4083f1687e08889123058c64db9c0e61210.png +0 -0
- reflectorch-1.0.1/docs/_images/d06c461edbc6816f6bfffbb91ede2b62e2e5bce5bd1b258a1f77c64beb4203be.png +0 -0
- reflectorch-1.0.1/docs/_images/d0c0eef87034c8193308e5448c4cc7ca570131a67e594a3341a87be7df0c92c8.png +0 -0
- reflectorch-1.0.1/docs/_images/df92d9cc76ed41a7fe7e0782cb88350e1f3561df2a8e3eefb21b9837ec23ac41.png +0 -0
- reflectorch-1.0.1/docs/_images/e3c28ca591b3b7551f82ca4aa1c2bbbd7f8001fb3383fa3e47139ac76903cc79.png +0 -0
- reflectorch-1.0.1/docs/_images/f804fe4cf583d38dfe1719a535dd91976693adb6889bccb26ba3ba0e0fb1e647.png +0 -0
- reflectorch-1.0.1/docs/_images/fig_reflectometry_embedding_networks.png +0 -0
- reflectorch-1.0.1/docs/_images/fig_reflectometry_embedding_networks1.png +0 -0
- reflectorch-1.0.1/docs/_images/jupyter_widget_reflectorch.png +0 -0
- reflectorch-1.0.1/docs/_images/sketch_multilayer_0.png +0 -0
- reflectorch-1.0.1/docs/_modules/index.html +0 -405
- reflectorch-1.0.1/docs/_modules/reflectorch/data_generation/dataset.html +0 -579
- reflectorch-1.0.1/docs/_modules/reflectorch/data_generation/likelihoods.html +0 -472
- reflectorch-1.0.1/docs/_modules/reflectorch/data_generation/noise.html +0 -775
- reflectorch-1.0.1/docs/_modules/reflectorch/data_generation/priors/base.html +0 -447
- reflectorch-1.0.1/docs/_modules/reflectorch/data_generation/priors/parametric_models.html +0 -1156
- reflectorch-1.0.1/docs/_modules/reflectorch/data_generation/priors/parametric_subpriors.html +0 -758
- reflectorch-1.0.1/docs/_modules/reflectorch/data_generation/priors/params.html +0 -656
- reflectorch-1.0.1/docs/_modules/reflectorch/data_generation/priors/sampler_strategies.html +0 -701
- reflectorch-1.0.1/docs/_modules/reflectorch/data_generation/priors/subprior_sampler.html +0 -781
- reflectorch-1.0.1/docs/_modules/reflectorch/data_generation/q_generator.html +0 -630
- reflectorch-1.0.1/docs/_modules/reflectorch/data_generation/reflectivity.html +0 -433
- reflectorch-1.0.1/docs/_modules/reflectorch/data_generation/scale_curves.html +0 -516
- reflectorch-1.0.1/docs/_modules/reflectorch/data_generation/smearing.html +0 -444
- reflectorch-1.0.1/docs/_modules/reflectorch/data_generation/utils.html +0 -531
- reflectorch-1.0.1/docs/_modules/reflectorch/inference/inference_model.html +0 -1120
- reflectorch-1.0.1/docs/_modules/reflectorch/inference/preprocess_exp/attenuation.html +0 -413
- reflectorch-1.0.1/docs/_modules/reflectorch/inference/preprocess_exp/footprint.html +0 -458
- reflectorch-1.0.1/docs/_modules/reflectorch/inference/preprocess_exp/interpolation.html +0 -393
- reflectorch-1.0.1/docs/_modules/reflectorch/inference/preprocess_exp/preprocess.html +0 -498
- reflectorch-1.0.1/docs/_modules/reflectorch/inference/torch_fitter.html +0 -467
- reflectorch-1.0.1/docs/_modules/reflectorch/ml/basic_trainer.html +0 -696
- reflectorch-1.0.1/docs/_modules/reflectorch/ml/callbacks.html +0 -475
- reflectorch-1.0.1/docs/_modules/reflectorch/ml/dataloaders.html +0 -404
- reflectorch-1.0.1/docs/_modules/reflectorch/ml/loggers.html +0 -421
- reflectorch-1.0.1/docs/_modules/reflectorch/ml/schedulers.html +0 -656
- reflectorch-1.0.1/docs/_modules/reflectorch/ml/trainers.html +0 -515
- reflectorch-1.0.1/docs/_modules/reflectorch/models/encoders/conv_encoder.html +0 -588
- reflectorch-1.0.1/docs/_modules/reflectorch/models/encoders/conv_fc_encoder.html +0 -818
- reflectorch-1.0.1/docs/_modules/reflectorch/models/encoders/fno.html +0 -504
- reflectorch-1.0.1/docs/_modules/reflectorch/models/networks/mlp_networks.html +0 -642
- reflectorch-1.0.1/docs/_modules/reflectorch/runs/config.html +0 -408
- reflectorch-1.0.1/docs/_modules/reflectorch/runs/utils.html +0 -689
- reflectorch-1.0.1/docs/_modules/reflectorch/utils.html +0 -466
- reflectorch-1.0.1/docs/_sources/advanced_functionality.ipynb +0 -1402
- reflectorch-1.0.1/docs/_sources/api.rst +0 -76
- reflectorch-1.0.1/docs/_sources/installation.ipynb +0 -155
- reflectorch-1.0.1/docs/_sources/intro.md +0 -37
- reflectorch-1.0.1/docs/_sources/training_reflectorch.ipynb +0 -942
- reflectorch-1.0.1/docs/_sources/using_reflectorch.ipynb +0 -1135
- reflectorch-1.0.1/docs/_sphinx_design_static/design-style.1e8bd061cd6da7fc9cf755528e8ffc24.min.css +0 -1
- reflectorch-1.0.1/docs/_sphinx_design_static/design-tabs.js +0 -27
- reflectorch-1.0.1/docs/_static/basic.css +0 -925
- reflectorch-1.0.1/docs/_static/check-solid.svg +0 -4
- reflectorch-1.0.1/docs/_static/clipboard.min.js +0 -7
- reflectorch-1.0.1/docs/_static/copy-button.svg +0 -5
- reflectorch-1.0.1/docs/_static/copybutton.css +0 -94
- reflectorch-1.0.1/docs/_static/copybutton.js +0 -248
- reflectorch-1.0.1/docs/_static/copybutton_funcs.js +0 -73
- reflectorch-1.0.1/docs/_static/design-style.1e8bd061cd6da7fc9cf755528e8ffc24.min.css +0 -1
- reflectorch-1.0.1/docs/_static/design-tabs.js +0 -27
- reflectorch-1.0.1/docs/_static/doctools.js +0 -156
- reflectorch-1.0.1/docs/_static/documentation_options.js +0 -13
- reflectorch-1.0.1/docs/_static/file.png +0 -0
- reflectorch-1.0.1/docs/_static/images/logo_binder.svg +0 -19
- reflectorch-1.0.1/docs/_static/images/logo_colab.png +0 -0
- reflectorch-1.0.1/docs/_static/images/logo_deepnote.svg +0 -1
- reflectorch-1.0.1/docs/_static/images/logo_jupyterhub.svg +0 -1
- reflectorch-1.0.1/docs/_static/language_data.js +0 -199
- reflectorch-1.0.1/docs/_static/locales/ar/LC_MESSAGES/booktheme.mo +0 -0
- reflectorch-1.0.1/docs/_static/locales/ar/LC_MESSAGES/booktheme.po +0 -75
- reflectorch-1.0.1/docs/_static/locales/bg/LC_MESSAGES/booktheme.mo +0 -0
- reflectorch-1.0.1/docs/_static/locales/bg/LC_MESSAGES/booktheme.po +0 -75
- reflectorch-1.0.1/docs/_static/locales/bn/LC_MESSAGES/booktheme.mo +0 -0
- reflectorch-1.0.1/docs/_static/locales/bn/LC_MESSAGES/booktheme.po +0 -63
- reflectorch-1.0.1/docs/_static/locales/ca/LC_MESSAGES/booktheme.mo +0 -0
- reflectorch-1.0.1/docs/_static/locales/ca/LC_MESSAGES/booktheme.po +0 -66
- reflectorch-1.0.1/docs/_static/locales/cs/LC_MESSAGES/booktheme.mo +0 -0
- reflectorch-1.0.1/docs/_static/locales/cs/LC_MESSAGES/booktheme.po +0 -75
- reflectorch-1.0.1/docs/_static/locales/da/LC_MESSAGES/booktheme.mo +0 -0
- reflectorch-1.0.1/docs/_static/locales/da/LC_MESSAGES/booktheme.po +0 -75
- reflectorch-1.0.1/docs/_static/locales/de/LC_MESSAGES/booktheme.mo +0 -0
- reflectorch-1.0.1/docs/_static/locales/de/LC_MESSAGES/booktheme.po +0 -75
- reflectorch-1.0.1/docs/_static/locales/el/LC_MESSAGES/booktheme.mo +0 -0
- reflectorch-1.0.1/docs/_static/locales/el/LC_MESSAGES/booktheme.po +0 -75
- reflectorch-1.0.1/docs/_static/locales/eo/LC_MESSAGES/booktheme.mo +0 -0
- reflectorch-1.0.1/docs/_static/locales/eo/LC_MESSAGES/booktheme.po +0 -75
- reflectorch-1.0.1/docs/_static/locales/es/LC_MESSAGES/booktheme.mo +0 -0
- reflectorch-1.0.1/docs/_static/locales/es/LC_MESSAGES/booktheme.po +0 -75
- reflectorch-1.0.1/docs/_static/locales/et/LC_MESSAGES/booktheme.mo +0 -0
- reflectorch-1.0.1/docs/_static/locales/et/LC_MESSAGES/booktheme.po +0 -75
- reflectorch-1.0.1/docs/_static/locales/fi/LC_MESSAGES/booktheme.mo +0 -0
- reflectorch-1.0.1/docs/_static/locales/fi/LC_MESSAGES/booktheme.po +0 -75
- reflectorch-1.0.1/docs/_static/locales/fr/LC_MESSAGES/booktheme.mo +0 -0
- reflectorch-1.0.1/docs/_static/locales/fr/LC_MESSAGES/booktheme.po +0 -75
- reflectorch-1.0.1/docs/_static/locales/hr/LC_MESSAGES/booktheme.mo +0 -0
- reflectorch-1.0.1/docs/_static/locales/hr/LC_MESSAGES/booktheme.po +0 -75
- reflectorch-1.0.1/docs/_static/locales/id/LC_MESSAGES/booktheme.mo +0 -0
- reflectorch-1.0.1/docs/_static/locales/id/LC_MESSAGES/booktheme.po +0 -75
- reflectorch-1.0.1/docs/_static/locales/it/LC_MESSAGES/booktheme.mo +0 -0
- reflectorch-1.0.1/docs/_static/locales/it/LC_MESSAGES/booktheme.po +0 -75
- reflectorch-1.0.1/docs/_static/locales/iw/LC_MESSAGES/booktheme.mo +0 -0
- reflectorch-1.0.1/docs/_static/locales/iw/LC_MESSAGES/booktheme.po +0 -75
- reflectorch-1.0.1/docs/_static/locales/ja/LC_MESSAGES/booktheme.mo +0 -0
- reflectorch-1.0.1/docs/_static/locales/ja/LC_MESSAGES/booktheme.po +0 -75
- reflectorch-1.0.1/docs/_static/locales/ko/LC_MESSAGES/booktheme.mo +0 -0
- reflectorch-1.0.1/docs/_static/locales/ko/LC_MESSAGES/booktheme.po +0 -75
- reflectorch-1.0.1/docs/_static/locales/lt/LC_MESSAGES/booktheme.mo +0 -0
- reflectorch-1.0.1/docs/_static/locales/lt/LC_MESSAGES/booktheme.po +0 -75
- reflectorch-1.0.1/docs/_static/locales/lv/LC_MESSAGES/booktheme.mo +0 -0
- reflectorch-1.0.1/docs/_static/locales/lv/LC_MESSAGES/booktheme.po +0 -75
- reflectorch-1.0.1/docs/_static/locales/ml/LC_MESSAGES/booktheme.mo +0 -0
- reflectorch-1.0.1/docs/_static/locales/ml/LC_MESSAGES/booktheme.po +0 -66
- reflectorch-1.0.1/docs/_static/locales/mr/LC_MESSAGES/booktheme.mo +0 -0
- reflectorch-1.0.1/docs/_static/locales/mr/LC_MESSAGES/booktheme.po +0 -66
- reflectorch-1.0.1/docs/_static/locales/ms/LC_MESSAGES/booktheme.mo +0 -0
- reflectorch-1.0.1/docs/_static/locales/ms/LC_MESSAGES/booktheme.po +0 -66
- reflectorch-1.0.1/docs/_static/locales/nl/LC_MESSAGES/booktheme.mo +0 -0
- reflectorch-1.0.1/docs/_static/locales/nl/LC_MESSAGES/booktheme.po +0 -75
- reflectorch-1.0.1/docs/_static/locales/no/LC_MESSAGES/booktheme.mo +0 -0
- reflectorch-1.0.1/docs/_static/locales/no/LC_MESSAGES/booktheme.po +0 -75
- reflectorch-1.0.1/docs/_static/locales/pl/LC_MESSAGES/booktheme.mo +0 -0
- reflectorch-1.0.1/docs/_static/locales/pl/LC_MESSAGES/booktheme.po +0 -75
- reflectorch-1.0.1/docs/_static/locales/pt/LC_MESSAGES/booktheme.mo +0 -0
- reflectorch-1.0.1/docs/_static/locales/pt/LC_MESSAGES/booktheme.po +0 -75
- reflectorch-1.0.1/docs/_static/locales/ro/LC_MESSAGES/booktheme.mo +0 -0
- reflectorch-1.0.1/docs/_static/locales/ro/LC_MESSAGES/booktheme.po +0 -75
- reflectorch-1.0.1/docs/_static/locales/ru/LC_MESSAGES/booktheme.mo +0 -0
- reflectorch-1.0.1/docs/_static/locales/ru/LC_MESSAGES/booktheme.po +0 -75
- reflectorch-1.0.1/docs/_static/locales/sk/LC_MESSAGES/booktheme.mo +0 -0
- reflectorch-1.0.1/docs/_static/locales/sk/LC_MESSAGES/booktheme.po +0 -75
- reflectorch-1.0.1/docs/_static/locales/sl/LC_MESSAGES/booktheme.mo +0 -0
- reflectorch-1.0.1/docs/_static/locales/sl/LC_MESSAGES/booktheme.po +0 -75
- reflectorch-1.0.1/docs/_static/locales/sr/LC_MESSAGES/booktheme.mo +0 -0
- reflectorch-1.0.1/docs/_static/locales/sr/LC_MESSAGES/booktheme.po +0 -75
- reflectorch-1.0.1/docs/_static/locales/sv/LC_MESSAGES/booktheme.mo +0 -0
- reflectorch-1.0.1/docs/_static/locales/sv/LC_MESSAGES/booktheme.po +0 -75
- reflectorch-1.0.1/docs/_static/locales/ta/LC_MESSAGES/booktheme.mo +0 -0
- reflectorch-1.0.1/docs/_static/locales/ta/LC_MESSAGES/booktheme.po +0 -66
- reflectorch-1.0.1/docs/_static/locales/te/LC_MESSAGES/booktheme.mo +0 -0
- reflectorch-1.0.1/docs/_static/locales/te/LC_MESSAGES/booktheme.po +0 -66
- reflectorch-1.0.1/docs/_static/locales/tg/LC_MESSAGES/booktheme.mo +0 -0
- reflectorch-1.0.1/docs/_static/locales/tg/LC_MESSAGES/booktheme.po +0 -75
- reflectorch-1.0.1/docs/_static/locales/th/LC_MESSAGES/booktheme.mo +0 -0
- reflectorch-1.0.1/docs/_static/locales/th/LC_MESSAGES/booktheme.po +0 -75
- reflectorch-1.0.1/docs/_static/locales/tl/LC_MESSAGES/booktheme.mo +0 -0
- reflectorch-1.0.1/docs/_static/locales/tl/LC_MESSAGES/booktheme.po +0 -66
- reflectorch-1.0.1/docs/_static/locales/tr/LC_MESSAGES/booktheme.mo +0 -0
- reflectorch-1.0.1/docs/_static/locales/tr/LC_MESSAGES/booktheme.po +0 -75
- reflectorch-1.0.1/docs/_static/locales/uk/LC_MESSAGES/booktheme.mo +0 -0
- reflectorch-1.0.1/docs/_static/locales/uk/LC_MESSAGES/booktheme.po +0 -75
- reflectorch-1.0.1/docs/_static/locales/ur/LC_MESSAGES/booktheme.mo +0 -0
- reflectorch-1.0.1/docs/_static/locales/ur/LC_MESSAGES/booktheme.po +0 -66
- reflectorch-1.0.1/docs/_static/locales/vi/LC_MESSAGES/booktheme.mo +0 -0
- reflectorch-1.0.1/docs/_static/locales/vi/LC_MESSAGES/booktheme.po +0 -75
- reflectorch-1.0.1/docs/_static/locales/zh_CN/LC_MESSAGES/booktheme.mo +0 -0
- reflectorch-1.0.1/docs/_static/locales/zh_CN/LC_MESSAGES/booktheme.po +0 -75
- reflectorch-1.0.1/docs/_static/locales/zh_TW/LC_MESSAGES/booktheme.mo +0 -0
- reflectorch-1.0.1/docs/_static/locales/zh_TW/LC_MESSAGES/booktheme.po +0 -75
- reflectorch-1.0.1/docs/_static/minus.png +0 -0
- reflectorch-1.0.1/docs/_static/mystnb.4510f1fc1dee50b3e5859aac5469c37c29e427902b24a333a5f9fcb2f0b3ac41.css +0 -2342
- reflectorch-1.0.1/docs/_static/play-solid.svg +0 -1
- reflectorch-1.0.1/docs/_static/plus.png +0 -0
- reflectorch-1.0.1/docs/_static/pygments.css +0 -152
- reflectorch-1.0.1/docs/_static/reflectorch_logo.png +0 -0
- reflectorch-1.0.1/docs/_static/sbt-webpack-macros.html +0 -11
- reflectorch-1.0.1/docs/_static/scripts/bootstrap.js +0 -3
- reflectorch-1.0.1/docs/_static/scripts/bootstrap.js.LICENSE.txt +0 -5
- reflectorch-1.0.1/docs/_static/scripts/bootstrap.js.map +0 -1
- reflectorch-1.0.1/docs/_static/scripts/pydata-sphinx-theme.js +0 -2
- reflectorch-1.0.1/docs/_static/scripts/pydata-sphinx-theme.js.map +0 -1
- reflectorch-1.0.1/docs/_static/scripts/sphinx-book-theme.js +0 -2
- reflectorch-1.0.1/docs/_static/scripts/sphinx-book-theme.js.map +0 -1
- reflectorch-1.0.1/docs/_static/searchtools.js +0 -574
- reflectorch-1.0.1/docs/_static/sphinx-thebe.css +0 -129
- reflectorch-1.0.1/docs/_static/sphinx-thebe.js +0 -127
- reflectorch-1.0.1/docs/_static/sphinx_highlight.js +0 -154
- reflectorch-1.0.1/docs/_static/styles/bootstrap.css +0 -6
- reflectorch-1.0.1/docs/_static/styles/bootstrap.css.map +0 -1
- reflectorch-1.0.1/docs/_static/styles/pydata-sphinx-theme.css +0 -2
- reflectorch-1.0.1/docs/_static/styles/pydata-sphinx-theme.css.map +0 -1
- reflectorch-1.0.1/docs/_static/styles/sphinx-book-theme.css +0 -8
- reflectorch-1.0.1/docs/_static/styles/theme.css +0 -2
- reflectorch-1.0.1/docs/_static/togglebutton.css +0 -160
- reflectorch-1.0.1/docs/_static/togglebutton.js +0 -187
- reflectorch-1.0.1/docs/_static/vendor/fontawesome/6.5.1/LICENSE.txt +0 -165
- reflectorch-1.0.1/docs/_static/vendor/fontawesome/6.5.1/css/all.min.css +0 -5
- reflectorch-1.0.1/docs/_static/vendor/fontawesome/6.5.1/js/all.min.js +0 -2
- reflectorch-1.0.1/docs/_static/vendor/fontawesome/6.5.1/js/all.min.js.LICENSE.txt +0 -5
- reflectorch-1.0.1/docs/_static/vendor/fontawesome/6.5.1/webfonts/fa-brands-400.ttf +0 -0
- reflectorch-1.0.1/docs/_static/vendor/fontawesome/6.5.1/webfonts/fa-brands-400.woff2 +0 -0
- reflectorch-1.0.1/docs/_static/vendor/fontawesome/6.5.1/webfonts/fa-regular-400.ttf +0 -0
- reflectorch-1.0.1/docs/_static/vendor/fontawesome/6.5.1/webfonts/fa-regular-400.woff2 +0 -0
- reflectorch-1.0.1/docs/_static/vendor/fontawesome/6.5.1/webfonts/fa-solid-900.ttf +0 -0
- reflectorch-1.0.1/docs/_static/vendor/fontawesome/6.5.1/webfonts/fa-solid-900.woff2 +0 -0
- reflectorch-1.0.1/docs/_static/vendor/fontawesome/6.5.1/webfonts/fa-v4compatibility.ttf +0 -0
- reflectorch-1.0.1/docs/_static/vendor/fontawesome/6.5.1/webfonts/fa-v4compatibility.woff2 +0 -0
- reflectorch-1.0.1/docs/_static/webpack-macros.html +0 -31
- reflectorch-1.0.1/docs/advanced_functionality.html +0 -1513
- reflectorch-1.0.1/docs/api.html +0 -2993
- reflectorch-1.0.1/docs/genindex.html +0 -905
- reflectorch-1.0.1/docs/index.html +0 -1
- reflectorch-1.0.1/docs/installation.html +0 -561
- reflectorch-1.0.1/docs/intro.html +0 -517
- reflectorch-1.0.1/docs/objects.inv +0 -0
- reflectorch-1.0.1/docs/py-modindex.html +0 -397
- reflectorch-1.0.1/docs/reports/advanced_functionality.err.log +0 -28
- reflectorch-1.0.1/docs/reports/training_reflectorch.err.log +0 -49
- reflectorch-1.0.1/docs/reports/using_reflectorch.err.log +0 -65
- reflectorch-1.0.1/docs/search.html +0 -391
- reflectorch-1.0.1/docs/searchindex.js +0 -1
- reflectorch-1.0.1/docs/training_reflectorch.html +0 -1109
- reflectorch-1.0.1/docs/using_reflectorch.html +0 -1171
- reflectorch-1.0.1/documentation/FigureReflectometryNetwork.png +0 -0
- reflectorch-1.0.1/documentation/_config.yml +0 -59
- reflectorch-1.0.1/documentation/_toc.yml +0 -13
- reflectorch-1.0.1/documentation/advanced_functionality.ipynb +0 -1402
- reflectorch-1.0.1/documentation/api.rst +0 -76
- reflectorch-1.0.1/documentation/conf.py +0 -35
- reflectorch-1.0.1/documentation/fig_reflectometry_embedding_networks.png +0 -0
- reflectorch-1.0.1/documentation/installation.ipynb +0 -139
- reflectorch-1.0.1/documentation/intro.md +0 -37
- reflectorch-1.0.1/documentation/jupyter_widget_reflectorch.png +0 -0
- reflectorch-1.0.1/documentation/reflectorch_logo.png +0 -0
- reflectorch-1.0.1/documentation/requirements.txt +0 -4
- reflectorch-1.0.1/documentation/sketch_multilayer_0.png +0 -0
- reflectorch-1.0.1/documentation/training_reflectorch.ipynb +0 -942
- reflectorch-1.0.1/documentation/using_reflectorch.ipynb +0 -1135
- reflectorch-1.0.1/paper/docker_build_command.txt +0 -2
- reflectorch-1.0.1/paper/paper.bib +0 -109
- reflectorch-1.0.1/paper/paper.md +0 -116
- reflectorch-1.0.1/reflectorch.egg-info/SOURCES.txt +0 -504
- {reflectorch-1.0.1 → reflectorch-1.1.0}/.dockerignore +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/.github/workflows/ci.yml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/.github/workflows/draft-pdf.yml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/.gitignore +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/CODE_OF_CONDUCT.md +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/Dockerfile +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/LICENSE.txt +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/c1.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/c1_trained.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/c_L10_d100_s150_r30_ws5_q03_nq256.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/c_L3_d200_s150_r60_ws5_q03_nq128.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/c_L5_d200_s150_r60_ws5_q03_nq256.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/c_absorption.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/c_absorption_L2_d500_s150_is30_r60_ws5_q03_nq256.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/c_absorption_L5_d200_s150_is30_r60_ws5_q03_nq256.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/c_ae.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/c_fno.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/c_model_with_shifts.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/c_repeating_multilayer.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/c_repeating_multilayer_trained1.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/l2q109_exp_1.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/l2q256_absorption_1.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/l2q256_exp_2.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/l2q256_exp_3.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/l2q256_exp_3_02.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/l2q256_exp_4.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/l2q256_exp_5.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/l2q256_exp_sm_2.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/l2q256_new_1.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/l2q64_new_sub_1.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/l5q256_new_sub_1.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc-o1.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc-o10.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc-o11.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc-o12.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc-o13.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc-o14.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc-o15.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc-o16.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc-o2.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc-o3.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc-o4.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc-o5.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc-o7.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc-o8.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc-o9.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc1.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc10.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc11.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc12.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc13.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc14.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc15.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc16.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc17.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc18.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc19.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc2.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc20.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc21.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc22.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc23.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc24.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc25.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc26.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc27.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc28.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc29.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc3.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc30.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc31.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc32.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc33.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc34.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc35.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc36.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc37.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc38.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc39.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc4.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc40.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc41.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc42.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc43.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc44.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc45.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc46.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc47.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc48.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc49.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc5.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc50.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc51.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc52.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc53.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc54.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc55.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc56.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc57.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc58.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc59.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc6.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc60.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc61.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc62.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc63.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc64.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc65.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc66.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc67.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc7.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc8.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/mc9.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/multilayer_test_1.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/multilayer_test_1_1.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/multilayer_test_2.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/multilayer_test_2_2.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/multilayer_test_3.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/time_val_exp_L2_q128-015_d500_r60_s25n_bs4_budist_noise-poisson02-sh03-sc002-qs1e3-qn1e3.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/time_val_sim_L5_q256_d300_r60_s25_bs4_budist_noise-poisson02_LONGER.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/val_exp_L2_q128-015_d500_r60_s25n_bs4_budist_noise-poisson02-sh03-sc002-qs1e3-qn1e3.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/val_exp_L2_q128_d300_r60_s25_bs4_budist_noise-poisson02-various-noises.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/val_exp_L2_q128_d300_r60_s25_bs4_budist_noise-poisson02-various-noises2.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/val_exp_L2_q256_d300_r60_s25_bs4_budist_noise-poisson01.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/val_exp_L2_q256_d300_r60_s25_bs4_budist_noise-poisson02.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/val_exp_L2_q256_d300_r60_s25_bs4_budist_noise-poisson03.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/val_exp_L2_q64_d300_r60_s25_bs25_budist_noise-poisson03_scale002.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/val_exp_L2_q64_d300_r60_s25_bs4_blogdist_noise-poisson04.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/val_exp_L2_q64_d300_r60_s25_bs4_budist_noise-poisson04.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/val_multilayer_V1.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/val_multilayer_V2.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/val_sim_FNO_L2_q256_d300_r60_s25_bs4_budist_noise-poisson02.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/val_sim_FNO_L2_q256_d300_r60_s25_bs4_budist_noise-poisson02_V2.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/val_sim_FNO_L2_q256_d300_r60_s25_bs4_budist_noise-poisson02_varyQ.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/val_sim_FNO_L2_q64-512_015-05_d300_r60_s25_bs4_budist_noise-poisson02_varyall.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/val_sim_FNO_L2_q64-512_015-05_d500_r60_s25n_bs4_budist_noise-poisson02_varyall_V2.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/val_sim_L2_q256_d300_r60_s25_br20_bs4_budist_noise-none.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/val_sim_L2_q256_d300_r60_s25_bs25_budist_noise-none.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/val_sim_L2_q256_d300_r60_s25_bs25_budist_noise-poisson02.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/val_sim_L2_q256_d300_r60_s25_bs4_blogdist_noise-poisson02.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/val_sim_L2_q256_d300_r60_s25_bs4_budist_noise-none.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/val_sim_L2_q256_d300_r60_s25_bs4_budist_noise-poisson02-hz512.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/val_sim_L2_q256_d300_r60_s25_bs4_budist_noise-poisson02-rb10.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/val_sim_L2_q256_d300_r60_s25_bs4_budist_noise-poisson02.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/val_sim_L3_q256_d300_r60_s25_bs25_budist_noise-poisson02.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/val_sim_L3_q256_d300_r60_s25_bs4_budist_noise-none.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/val_sim_L3_q256_d300_r60_s25_bs4_budist_noise-poisson02-TRY2.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/val_sim_L3_q256_d300_r60_s25_bs4_budist_noise-poisson02.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/val_sim_L5_q1024_d300_r60_s25_bs4_budist_noise-poisson02.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/val_sim_L5_q256_d300_r60_s25_bs25_budist_noise-poisson02.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/val_sim_L5_q256_d300_r60_s25_bs4_budist_noise-poisson02-Copy1.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/configs/val_sim_L5_q256_d300_r60_s25_bs4_budist_noise-poisson02_LONGER.yaml +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/debug.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/exp_data/33a.dat +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/exp_data/DIP-nSi_34a.dat +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/exp_data/data_C60.pt +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/exp_data/data_PTCDI-C3.pt +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/__init__.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/data_generation/__init__.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/data_generation/dataset.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/data_generation/likelihoods.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/data_generation/noise.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/data_generation/priors/__init__.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/data_generation/priors/base.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/data_generation/priors/exp_subprior_sampler.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/data_generation/priors/independent_priors.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/data_generation/priors/multilayer_models.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/data_generation/priors/multilayer_structures.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/data_generation/priors/no_constraints.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/data_generation/priors/parametric_models.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/data_generation/priors/parametric_subpriors.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/data_generation/priors/params.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/data_generation/priors/sampler_strategies.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/data_generation/priors/scaler_mixin.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/data_generation/priors/subprior_sampler.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/data_generation/priors/utils.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/data_generation/process_data.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/data_generation/q_generator.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/data_generation/reflectivity/__init__.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/data_generation/reflectivity/abeles.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/data_generation/reflectivity/kinematical.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/data_generation/reflectivity/memory_eff.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/data_generation/reflectivity/numpy_implementations.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/data_generation/reflectivity/smearing.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/data_generation/scale_curves.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/data_generation/smearing.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/data_generation/utils.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/extensions/__init__.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/extensions/jupyter/__init__.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/extensions/jupyter/callbacks.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/extensions/matplotlib/__init__.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/extensions/matplotlib/losses.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/inference/inference_model.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/inference/multilayer_fitter.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/inference/multilayer_inference_model.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/inference/preprocess_exp/__init__.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/inference/preprocess_exp/attenuation.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/inference/preprocess_exp/cut_with_q_ratio.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/inference/preprocess_exp/footprint.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/inference/preprocess_exp/interpolation.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/inference/preprocess_exp/normalize.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/inference/preprocess_exp/preprocess.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/inference/record_time.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/inference/sampler_solution.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/inference/scipy_fitter.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/inference/torch_fitter.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/ml/__init__.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/ml/basic_trainer.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/ml/callbacks.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/ml/dataloaders.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/ml/loggers.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/ml/schedulers.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/ml/trainers.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/ml/utils.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/models/__init__.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/models/activations.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/models/encoders/__init__.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/models/encoders/conv_encoder.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/models/encoders/conv_res_net.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/models/encoders/fno.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/models/encoders/transformers.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/models/networks/__init__.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/models/networks/mlp_networks.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/models/networks/residual_net.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/paths.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/runs/__init__.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/runs/config.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/runs/slurm_utils.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/runs/train.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/test_config.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/train.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/train_on_cluster.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch/utils.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch.egg-info/dependency_links.txt +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/reflectorch.egg-info/top_level.txt +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/setup.cfg +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/tests/__init__.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/tests/conftest.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/tests/data/demo_scan.csv +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/tests/fixtures/__init__.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/tests/fixtures/data.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/tests/unit/__init__.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/tests/unit/test_dataloader.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/tests/unit/test_embedding_networks.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/tests/unit/test_mlp.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/tests/unit/test_preprocessing.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/tests/unit/test_prior_sampler.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/tests/unit/test_q_generator.py +0 -0
- {reflectorch-1.0.1 → reflectorch-1.1.0}/tests/unit/test_reflectivity.py +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
include configs/*
|
|
2
|
+
exclude saved_models/*.pt
|
|
3
|
+
exclude notebooks/*
|
|
4
|
+
exclude paper/*
|
|
5
|
+
exclude documentation/*
|
|
6
|
+
exclude docs/*
|
|
7
|
+
prune docs/*
|
|
8
|
+
exclude .github/*
|
|
9
|
+
|
|
10
|
+
include exp_data/data_C60.pt
|
|
11
|
+
include exp_data/data_PTCDI-C3.pt
|
|
12
|
+
include exp_data/33a.dat
|
|
13
|
+
include exp_data/DIP-nSi_34a.dat
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: reflectorch
|
|
3
|
-
Version: 1.0
|
|
3
|
+
Version: 1.1.0
|
|
4
4
|
Summary: A Pytorch-based package for the analysis of reflectometry data
|
|
5
5
|
Author-email: Vladimir Starostin <vladimir.starostin@uni-tuebingen.de>, Valentin Munteanu <valentin.munteanu@uni-tuebingen.de>
|
|
6
|
-
Maintainer-email: Valentin Munteanu <valentin.munteanu@uni-tuebingen.de>, Alexander Hinderhofer <alexander.hinderhofer@uni-tuebingen.de>
|
|
6
|
+
Maintainer-email: Valentin Munteanu <valentin.munteanu@uni-tuebingen.de>, Vladimir Starostin <vladimir.starostin@uni-tuebingen.de>, Alexander Hinderhofer <alexander.hinderhofer@uni-tuebingen.de>
|
|
7
7
|
Project-URL: Source, https://github.com/schreiber-lab/reflectorch/
|
|
8
8
|
Project-URL: Issues, https://github.com/schreiber-lab/reflectorch/issues
|
|
9
9
|
Project-URL: Documentation, https://schreiber-lab.github.io/reflectorch/
|
|
@@ -26,7 +26,6 @@ Requires-Dist: PyYAML
|
|
|
26
26
|
Requires-Dist: click
|
|
27
27
|
Requires-Dist: matplotlib
|
|
28
28
|
Requires-Dist: ipywidgets
|
|
29
|
-
Requires-Dist: torchinfo
|
|
30
29
|
Requires-Dist: huggingface_hub
|
|
31
30
|
Provides-Extra: tests
|
|
32
31
|
Requires-Dist: pytest; extra == "tests"
|
|
@@ -47,12 +46,12 @@ Requires-Dist: twine; extra == "build"
|
|
|
47
46
|
[](https://yaml.org/)
|
|
48
47
|
[](https://huggingface.co/valentinsingularity/reflectivity)
|
|
49
48
|
|
|
50
|
-
[](https://www.gnu.org/licenses/gpl-3.0)
|
|
51
49
|
[](https://www.python.org/)
|
|
52
50
|

|
|
53
51
|

|
|
54
52
|
[](https://www.codefactor.io/repository/github/schreiber-lab/reflectorch)
|
|
55
|
-
[](https://
|
|
53
|
+
[](https://jupyterbook.org/)
|
|
54
|
+
[](https://schreiber-lab.github.io/reflectorch/)
|
|
56
55
|
<!-- [](https://github.com/astral-sh/ruff) -->
|
|
57
56
|
|
|
58
57
|
|
|
@@ -92,16 +91,21 @@ Users with Nvidia **GPU**s need to additionally install **Pytorch with CUDA supp
|
|
|
92
91
|
|
|
93
92
|
## Get started
|
|
94
93
|
|
|
95
|
-

|
|
94
|
+
[](https://schreiber-lab.github.io/reflectorch/)
|
|
95
|
+
The full documentation of the package, containing tutorials and the API reference, was built with [Jupyter Book](https://jupyterbook.org/) and [Sphinx](https://www.sphinx-doc.org) and it is hosted at the address: [https://schreiber-lab.github.io/reflectorch/](https://schreiber-lab.github.io/reflectorch/).
|
|
96
96
|
|
|
97
|
-

|
|
97
|
+
[](https://colab.research.google.com/drive/1rf_M8S_5kYvUoK0-9-AYal_fO3oFl7ck?usp=sharing)
|
|
98
|
+
We provide an interactive Google Colab notebook for exploring the basic functionality of the package: [](https://colab.research.google.com/drive/1rf_M8S_5kYvUoK0-9-AYal_fO3oFl7ck?usp=sharing)<br>
|
|
98
99
|
|
|
99
|
-

|
|
100
|
+
[](https://huggingface.co/valentinsingularity/reflectivity)
|
|
101
|
+
Configuration files and the corresponding pretrained model weights are hosted on Huggingface: [https://huggingface.co/valentinsingularity/reflectivity](https://huggingface.co/valentinsingularity/reflectivity).
|
|
102
|
+
|
|
103
|
+
[](https://hub.docker.com/)
|
|
104
|
+
Docker images for reflectorch *will* be hosted on Dockerhub.
|
|
100
105
|
|
|
101
|
-
 Docker images for reflectorch *will* be hosted on Dockerhub.
|
|
102
106
|
|
|
103
107
|
## Citation
|
|
104
|
-
If you find our work useful in your research, please cite:
|
|
108
|
+
If you find our work useful in your research, please cite as follows:
|
|
105
109
|
```
|
|
106
110
|
@Article{Munteanu2024,
|
|
107
111
|
author = {Munteanu, Valentin and Starostin, Vladimir and Greco, Alessandro and Pithan, Linus and Gerlach, Alexander and Hinderhofer, Alexander and Kowarik, Stefan and Schreiber, Frank},
|
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
[](https://yaml.org/)
|
|
8
8
|
[](https://huggingface.co/valentinsingularity/reflectivity)
|
|
9
9
|
|
|
10
|
-
[](https://www.gnu.org/licenses/gpl-3.0)
|
|
11
10
|
[](https://www.python.org/)
|
|
12
11
|

|
|
13
12
|

|
|
14
13
|
[](https://www.codefactor.io/repository/github/schreiber-lab/reflectorch)
|
|
15
|
-
[](https://
|
|
14
|
+
[](https://jupyterbook.org/)
|
|
15
|
+
[](https://schreiber-lab.github.io/reflectorch/)
|
|
16
16
|
<!-- [](https://github.com/astral-sh/ruff) -->
|
|
17
17
|
|
|
18
18
|
|
|
@@ -52,16 +52,21 @@ Users with Nvidia **GPU**s need to additionally install **Pytorch with CUDA supp
|
|
|
52
52
|
|
|
53
53
|
## Get started
|
|
54
54
|
|
|
55
|
-

|
|
55
|
+
[](https://schreiber-lab.github.io/reflectorch/)
|
|
56
|
+
The full documentation of the package, containing tutorials and the API reference, was built with [Jupyter Book](https://jupyterbook.org/) and [Sphinx](https://www.sphinx-doc.org) and it is hosted at the address: [https://schreiber-lab.github.io/reflectorch/](https://schreiber-lab.github.io/reflectorch/).
|
|
56
57
|
|
|
57
|
-

|
|
58
|
+
[](https://colab.research.google.com/drive/1rf_M8S_5kYvUoK0-9-AYal_fO3oFl7ck?usp=sharing)
|
|
59
|
+
We provide an interactive Google Colab notebook for exploring the basic functionality of the package: [](https://colab.research.google.com/drive/1rf_M8S_5kYvUoK0-9-AYal_fO3oFl7ck?usp=sharing)<br>
|
|
58
60
|
|
|
59
|
-

|
|
61
|
+
[](https://huggingface.co/valentinsingularity/reflectivity)
|
|
62
|
+
Configuration files and the corresponding pretrained model weights are hosted on Huggingface: [https://huggingface.co/valentinsingularity/reflectivity](https://huggingface.co/valentinsingularity/reflectivity).
|
|
63
|
+
|
|
64
|
+
[](https://hub.docker.com/)
|
|
65
|
+
Docker images for reflectorch *will* be hosted on Dockerhub.
|
|
60
66
|
|
|
61
|
-
 Docker images for reflectorch *will* be hosted on Dockerhub.
|
|
62
67
|
|
|
63
68
|
## Citation
|
|
64
|
-
If you find our work useful in your research, please cite:
|
|
69
|
+
If you find our work useful in your research, please cite as follows:
|
|
65
70
|
```
|
|
66
71
|
@Article{Munteanu2024,
|
|
67
72
|
author = {Munteanu, Valentin and Starostin, Vladimir and Greco, Alessandro and Pithan, Linus and Gerlach, Alexander and Hinderhofer, Alexander and Kowarik, Stefan and Schreiber, Frank},
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
general:
|
|
2
|
+
name: c_test_safetensors
|
|
3
|
+
root_dir: null
|
|
4
|
+
|
|
5
|
+
dset:
|
|
6
|
+
cls: ReflectivityDataLoader
|
|
7
|
+
prior_sampler:
|
|
8
|
+
cls: SubpriorParametricSampler
|
|
9
|
+
kwargs:
|
|
10
|
+
param_ranges:
|
|
11
|
+
thicknesses: [1., 500.]
|
|
12
|
+
roughnesses: [0., 60.]
|
|
13
|
+
slds: [0., 25.]
|
|
14
|
+
bound_width_ranges:
|
|
15
|
+
thicknesses: [1.0e-2, 500.]
|
|
16
|
+
roughnesses: [1.0e-2, 60.]
|
|
17
|
+
slds: [ 1.0e-2, 4.]
|
|
18
|
+
model_name: standard_model
|
|
19
|
+
max_num_layers: 2
|
|
20
|
+
constrained_roughness: true
|
|
21
|
+
max_thickness_share: 0.5
|
|
22
|
+
logdist: false
|
|
23
|
+
scale_params_by_ranges: false
|
|
24
|
+
scaled_range: [-1., 1.]
|
|
25
|
+
device: 'cuda'
|
|
26
|
+
|
|
27
|
+
q_generator:
|
|
28
|
+
cls: ConstantQ
|
|
29
|
+
kwargs:
|
|
30
|
+
q: [0.02, 0.15, 128]
|
|
31
|
+
device: 'cuda'
|
|
32
|
+
|
|
33
|
+
intensity_noise:
|
|
34
|
+
cls: BasicExpIntensityNoise
|
|
35
|
+
kwargs:
|
|
36
|
+
relative_errors: [0.0, 0.2]
|
|
37
|
+
abs_errors: 0.0
|
|
38
|
+
consistent_rel_err: true
|
|
39
|
+
logdist: false
|
|
40
|
+
apply_shift: true
|
|
41
|
+
shift_range: [-0.3, 0.3]
|
|
42
|
+
apply_scaling: true
|
|
43
|
+
scale_range: [-0.02, 0.02]
|
|
44
|
+
apply_background: false
|
|
45
|
+
background_range: [1.0e-10, 1.0e-8]
|
|
46
|
+
|
|
47
|
+
q_noise:
|
|
48
|
+
cls: BasicQNoiseGenerator
|
|
49
|
+
kwargs:
|
|
50
|
+
shift_std: 1.0e-3
|
|
51
|
+
noise_std: [0., 1.0e-3]
|
|
52
|
+
|
|
53
|
+
curves_scaler:
|
|
54
|
+
cls: LogAffineCurvesScaler
|
|
55
|
+
kwargs:
|
|
56
|
+
weight: 0.2
|
|
57
|
+
bias: 1.0
|
|
58
|
+
eps: 1.0e-10
|
|
59
|
+
|
|
60
|
+
model:
|
|
61
|
+
network:
|
|
62
|
+
cls: NetworkWithPriorsConvEmb
|
|
63
|
+
pretrained_name: null
|
|
64
|
+
device: 'cuda'
|
|
65
|
+
kwargs:
|
|
66
|
+
in_channels: 1
|
|
67
|
+
hidden_channels: [32, 64, 128, 256, 512]
|
|
68
|
+
dim_embedding: 128
|
|
69
|
+
dim_avpool: 1
|
|
70
|
+
embedding_net_activation: 'gelu'
|
|
71
|
+
use_batch_norm: true
|
|
72
|
+
dim_out: 8
|
|
73
|
+
layer_width: 512
|
|
74
|
+
num_blocks: 6
|
|
75
|
+
repeats_per_block: 2
|
|
76
|
+
mlp_activation: 'gelu'
|
|
77
|
+
dropout_rate: 0.0
|
|
78
|
+
pretrained_embedding_net: null
|
|
79
|
+
|
|
80
|
+
training:
|
|
81
|
+
num_iterations: 10000
|
|
82
|
+
batch_size: 4096
|
|
83
|
+
lr: 1.0e-4
|
|
84
|
+
grad_accumulation_steps: 1
|
|
85
|
+
clip_grad_norm_max: null
|
|
86
|
+
train_with_q_input: False
|
|
87
|
+
update_tqdm_freq: 1
|
|
88
|
+
optimizer: AdamW
|
|
89
|
+
trainer_kwargs:
|
|
90
|
+
optim_kwargs:
|
|
91
|
+
betas: [0.9, 0.999]
|
|
92
|
+
weight_decay: 0.0005
|
|
93
|
+
callbacks:
|
|
94
|
+
save_best_model:
|
|
95
|
+
enable: true
|
|
96
|
+
freq: 500
|
|
97
|
+
lr_scheduler:
|
|
98
|
+
cls: StepLR
|
|
99
|
+
kwargs:
|
|
100
|
+
step_size: 500
|
|
101
|
+
gamma: 0.5
|
|
102
|
+
logger:
|
|
103
|
+
use_neptune: false
|
|
@@ -4,13 +4,14 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "reflectorch"
|
|
7
|
-
version = "1.0
|
|
7
|
+
version = "1.1.0"
|
|
8
8
|
authors = [
|
|
9
9
|
{name = "Vladimir Starostin", email="vladimir.starostin@uni-tuebingen.de"},
|
|
10
10
|
{name = "Valentin Munteanu", email="valentin.munteanu@uni-tuebingen.de"}
|
|
11
11
|
]
|
|
12
12
|
maintainers = [
|
|
13
13
|
{name = "Valentin Munteanu", email="valentin.munteanu@uni-tuebingen.de"},
|
|
14
|
+
{name = "Vladimir Starostin", email="vladimir.starostin@uni-tuebingen.de"},
|
|
14
15
|
{name = "Alexander Hinderhofer", email="alexander.hinderhofer@uni-tuebingen.de"}
|
|
15
16
|
]
|
|
16
17
|
description = "A Pytorch-based package for the analysis of reflectometry data"
|
|
@@ -36,7 +37,6 @@ dependencies = [
|
|
|
36
37
|
"click",
|
|
37
38
|
"matplotlib",
|
|
38
39
|
"ipywidgets",
|
|
39
|
-
"torchinfo",
|
|
40
40
|
"huggingface_hub",
|
|
41
41
|
]
|
|
42
42
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
from reflectorch.inference.inference_model import InferenceModel, EasyInferenceModel
|
|
2
|
+
from reflectorch.inference.query_matcher import HuggingfaceQueryMatcher
|
|
2
3
|
from reflectorch.inference.multilayer_inference_model import MultilayerInferenceModel
|
|
3
4
|
from reflectorch.inference.preprocess_exp import (
|
|
4
5
|
StandardPreprocessing,
|
|
@@ -13,6 +14,7 @@ __all__ = [
|
|
|
13
14
|
"InferenceModel",
|
|
14
15
|
"EasyInferenceModel",
|
|
15
16
|
"MultilayerInferenceModel",
|
|
17
|
+
"HuggingfaceQueryMatcher",
|
|
16
18
|
"StandardPreprocessing",
|
|
17
19
|
"standard_preprocessing",
|
|
18
20
|
"ReflGradientFit",
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import tempfile
|
|
3
|
+
import yaml
|
|
4
|
+
from huggingface_hub import hf_hub_download, list_repo_files
|
|
5
|
+
|
|
6
|
+
class HuggingfaceQueryMatcher:
|
|
7
|
+
"""Downloads the available configurations files to a temporary directory and provides functionality for filtering those configuration files matching user specified queries.
|
|
8
|
+
|
|
9
|
+
Args:
|
|
10
|
+
repo_id (str): The Hugging Face repository ID.
|
|
11
|
+
config_dir (str): Directory within the repo where YAML files are stored.
|
|
12
|
+
"""
|
|
13
|
+
def __init__(self, repo_id='valentinsingularity/reflectivity', config_dir='configs'):
|
|
14
|
+
self.repo_id = repo_id
|
|
15
|
+
self.config_dir = config_dir
|
|
16
|
+
self.cache = {
|
|
17
|
+
'parsed_configs': None,
|
|
18
|
+
'temp_dir': None
|
|
19
|
+
}
|
|
20
|
+
self._renew_cache()
|
|
21
|
+
|
|
22
|
+
def _renew_cache(self):
|
|
23
|
+
temp_dir = tempfile.mkdtemp()
|
|
24
|
+
print(f"Temporary directory created at: {temp_dir}")
|
|
25
|
+
|
|
26
|
+
repo_files = list_repo_files(self.repo_id, repo_type='model')
|
|
27
|
+
config_files = [file for file in repo_files if file.startswith(self.config_dir) and file.endswith('.yaml')]
|
|
28
|
+
|
|
29
|
+
downloaded_files = []
|
|
30
|
+
for file in config_files:
|
|
31
|
+
file_path = hf_hub_download(repo_id=self.repo_id, filename=file, local_dir=temp_dir, repo_type='model')
|
|
32
|
+
downloaded_files.append(file_path)
|
|
33
|
+
|
|
34
|
+
parsed_configs = {}
|
|
35
|
+
for file_path in downloaded_files:
|
|
36
|
+
with open(file_path, 'r') as file:
|
|
37
|
+
config_data = yaml.safe_load(file)
|
|
38
|
+
file_name = os.path.basename(file_path)
|
|
39
|
+
parsed_configs[file_name] = config_data
|
|
40
|
+
|
|
41
|
+
self.cache['parsed_configs'] = parsed_configs
|
|
42
|
+
self.cache['temp_dir'] = temp_dir
|
|
43
|
+
|
|
44
|
+
def get_matching_configs(self, query):
|
|
45
|
+
"""retrieves configuration files that match the user specified query.
|
|
46
|
+
|
|
47
|
+
Args:
|
|
48
|
+
query (dict): Dictionary of key-value pairs to filter configurations, e.g. ``query = {'dset.prior_sampler.kwargs.max_num_layers': 3, 'dset.prior_sampler.kwargs.param_ranges.slds': [0., 100.]}``.
|
|
49
|
+
For keys containing the ``param_ranges`` subkey a configuration is selected if the value of the query (i.e. desired parameter range)
|
|
50
|
+
is a subrange of the parameter range in the configuration, in all other cases the values must match exactly.
|
|
51
|
+
|
|
52
|
+
Returns:
|
|
53
|
+
list: List of file names that match the query.
|
|
54
|
+
"""
|
|
55
|
+
|
|
56
|
+
filtered_configs = []
|
|
57
|
+
|
|
58
|
+
for file_name, config_data in self.cache['parsed_configs'].items():
|
|
59
|
+
if self.matches_query(config_data, query):
|
|
60
|
+
filtered_configs.append(file_name)
|
|
61
|
+
|
|
62
|
+
return filtered_configs
|
|
63
|
+
|
|
64
|
+
def matches_query(self, config_data, query):
|
|
65
|
+
for q_key, q_value in query.items():
|
|
66
|
+
keys = q_key.split('.')
|
|
67
|
+
value = self.deep_get(config_data, keys)
|
|
68
|
+
if 'param_ranges' in keys:
|
|
69
|
+
if q_value[0] < value[0] or q_value[1] > value[1]:
|
|
70
|
+
return False
|
|
71
|
+
else:
|
|
72
|
+
if value != q_value:
|
|
73
|
+
return False
|
|
74
|
+
|
|
75
|
+
return True
|
|
76
|
+
|
|
77
|
+
def deep_get(self, d, keys):
|
|
78
|
+
for key in keys:
|
|
79
|
+
if isinstance(d, dict):
|
|
80
|
+
d = d.get(key, None)
|
|
81
|
+
|
|
82
|
+
return d
|
|
@@ -177,7 +177,7 @@ def get_trainer_from_config(config: dict, folder_paths: dict = None):
|
|
|
177
177
|
return trainer
|
|
178
178
|
|
|
179
179
|
|
|
180
|
-
def get_trainer_by_name(config_name, config_dir=None, model_path=None, load_weights: bool = True, inference_device =
|
|
180
|
+
def get_trainer_by_name(config_name, config_dir=None, model_path=None, load_weights: bool = True, inference_device: str = 'cuda'):
|
|
181
181
|
"""Initializes a trainer object based on a configuration file (i.e. the model name) and optionally loads \
|
|
182
182
|
saved weights into the network
|
|
183
183
|
|
|
@@ -186,7 +186,7 @@ def get_trainer_by_name(config_name, config_dir=None, model_path=None, load_weig
|
|
|
186
186
|
config_dir (str): path of the configuration directory
|
|
187
187
|
model_path (str, optional): path to the network weights.
|
|
188
188
|
load_weights (bool, optional): if True the saved network weights are loaded into the network. Defaults to True.
|
|
189
|
-
|
|
189
|
+
inference_device (str, optional): overwrites the device in the configuration file for the purpose of inference on a different device then the training was performed on. Defaults to 'cuda'.
|
|
190
190
|
|
|
191
191
|
Returns:
|
|
192
192
|
Trainer: the trainer object
|
|
@@ -195,10 +195,9 @@ def get_trainer_by_name(config_name, config_dir=None, model_path=None, load_weig
|
|
|
195
195
|
config['model']['network']['pretrained_name'] = None
|
|
196
196
|
config['training']['logger']['use_neptune'] = False
|
|
197
197
|
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
config['dset']['q_generator']['kwargs']['device'] = inference_device
|
|
198
|
+
config['model']['network']['device'] = inference_device
|
|
199
|
+
config['dset']['prior_sampler']['kwargs']['device'] = inference_device
|
|
200
|
+
config['dset']['q_generator']['kwargs']['device'] = inference_device
|
|
202
201
|
|
|
203
202
|
trainer = get_trainer_from_config(config)
|
|
204
203
|
|
|
@@ -216,7 +215,7 @@ def get_trainer_by_name(config_name, config_dir=None, model_path=None, load_weig
|
|
|
216
215
|
model_path = SAVED_MODELS_DIR / model_name
|
|
217
216
|
|
|
218
217
|
try:
|
|
219
|
-
state_dict = torch.load(model_path)
|
|
218
|
+
state_dict = torch.load(model_path, map_location=inference_device)
|
|
220
219
|
except Exception as err:
|
|
221
220
|
raise RuntimeError(f'Could not load model from {model_path}') from err
|
|
222
221
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: reflectorch
|
|
3
|
-
Version: 1.0
|
|
3
|
+
Version: 1.1.0
|
|
4
4
|
Summary: A Pytorch-based package for the analysis of reflectometry data
|
|
5
5
|
Author-email: Vladimir Starostin <vladimir.starostin@uni-tuebingen.de>, Valentin Munteanu <valentin.munteanu@uni-tuebingen.de>
|
|
6
|
-
Maintainer-email: Valentin Munteanu <valentin.munteanu@uni-tuebingen.de>, Alexander Hinderhofer <alexander.hinderhofer@uni-tuebingen.de>
|
|
6
|
+
Maintainer-email: Valentin Munteanu <valentin.munteanu@uni-tuebingen.de>, Vladimir Starostin <vladimir.starostin@uni-tuebingen.de>, Alexander Hinderhofer <alexander.hinderhofer@uni-tuebingen.de>
|
|
7
7
|
Project-URL: Source, https://github.com/schreiber-lab/reflectorch/
|
|
8
8
|
Project-URL: Issues, https://github.com/schreiber-lab/reflectorch/issues
|
|
9
9
|
Project-URL: Documentation, https://schreiber-lab.github.io/reflectorch/
|
|
@@ -26,7 +26,6 @@ Requires-Dist: PyYAML
|
|
|
26
26
|
Requires-Dist: click
|
|
27
27
|
Requires-Dist: matplotlib
|
|
28
28
|
Requires-Dist: ipywidgets
|
|
29
|
-
Requires-Dist: torchinfo
|
|
30
29
|
Requires-Dist: huggingface_hub
|
|
31
30
|
Provides-Extra: tests
|
|
32
31
|
Requires-Dist: pytest; extra == "tests"
|
|
@@ -47,12 +46,12 @@ Requires-Dist: twine; extra == "build"
|
|
|
47
46
|
[](https://yaml.org/)
|
|
48
47
|
[](https://huggingface.co/valentinsingularity/reflectivity)
|
|
49
48
|
|
|
50
|
-
[](https://www.gnu.org/licenses/gpl-3.0)
|
|
51
49
|
[](https://www.python.org/)
|
|
52
50
|

|
|
53
51
|

|
|
54
52
|
[](https://www.codefactor.io/repository/github/schreiber-lab/reflectorch)
|
|
55
|
-
[](https://
|
|
53
|
+
[](https://jupyterbook.org/)
|
|
54
|
+
[](https://schreiber-lab.github.io/reflectorch/)
|
|
56
55
|
<!-- [](https://github.com/astral-sh/ruff) -->
|
|
57
56
|
|
|
58
57
|
|
|
@@ -92,16 +91,21 @@ Users with Nvidia **GPU**s need to additionally install **Pytorch with CUDA supp
|
|
|
92
91
|
|
|
93
92
|
## Get started
|
|
94
93
|
|
|
95
|
-

|
|
94
|
+
[](https://schreiber-lab.github.io/reflectorch/)
|
|
95
|
+
The full documentation of the package, containing tutorials and the API reference, was built with [Jupyter Book](https://jupyterbook.org/) and [Sphinx](https://www.sphinx-doc.org) and it is hosted at the address: [https://schreiber-lab.github.io/reflectorch/](https://schreiber-lab.github.io/reflectorch/).
|
|
96
96
|
|
|
97
|
-

|
|
97
|
+
[](https://colab.research.google.com/drive/1rf_M8S_5kYvUoK0-9-AYal_fO3oFl7ck?usp=sharing)
|
|
98
|
+
We provide an interactive Google Colab notebook for exploring the basic functionality of the package: [](https://colab.research.google.com/drive/1rf_M8S_5kYvUoK0-9-AYal_fO3oFl7ck?usp=sharing)<br>
|
|
98
99
|
|
|
99
|
-

|
|
100
|
+
[](https://huggingface.co/valentinsingularity/reflectivity)
|
|
101
|
+
Configuration files and the corresponding pretrained model weights are hosted on Huggingface: [https://huggingface.co/valentinsingularity/reflectivity](https://huggingface.co/valentinsingularity/reflectivity).
|
|
102
|
+
|
|
103
|
+
[](https://hub.docker.com/)
|
|
104
|
+
Docker images for reflectorch *will* be hosted on Dockerhub.
|
|
100
105
|
|
|
101
|
-
 Docker images for reflectorch *will* be hosted on Dockerhub.
|
|
102
106
|
|
|
103
107
|
## Citation
|
|
104
|
-
If you find our work useful in your research, please cite:
|
|
108
|
+
If you find our work useful in your research, please cite as follows:
|
|
105
109
|
```
|
|
106
110
|
@Article{Munteanu2024,
|
|
107
111
|
author = {Munteanu, Valentin and Starostin, Vladimir and Greco, Alessandro and Pithan, Linus and Gerlach, Alexander and Hinderhofer, Alexander and Kowarik, Stefan and Schreiber, Frank},
|