easydiffraction 0.1.2__tar.gz → 0.1.4__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.
Files changed (159) hide show
  1. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/.github/workflows/test-code.yaml +15 -2
  2. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/.github/workflows/test-ipynb.yml +15 -2
  3. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/.github/workflows/test-package.yaml +15 -2
  4. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/PKG-INFO +1 -1
  5. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/easydiffraction/Job.py +20 -11
  6. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples/Change_minimizer.ipynb +1 -1
  7. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples/Fitting_PD-NEUT-CW_LBCO-HRPT.ipynb +1 -1
  8. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples/Fitting_PD-NEUT-TOF_NCAF-WISH.ipynb +1 -1
  9. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples/Fitting_PD-NEUT-TOF_Si-SEPD.ipynb +1 -1
  10. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/pyproject.toml +1 -1
  11. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/.github/dependabot.yml +0 -0
  12. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/.github/release-drafter.yml +0 -0
  13. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/.github/workflows/delete-old-runs.yml +0 -0
  14. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/.github/workflows/ossar-analysis.yml +0 -0
  15. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/.github/workflows/pypi-publish.yml +0 -0
  16. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/.github/workflows/release-drafter.yml +0 -0
  17. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/.github/workflows/verify-pr-labels.yml +0 -0
  18. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/.gitignore +0 -0
  19. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/CONTRIBUTING.md +0 -0
  20. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/DEVELOPMENT.md +0 -0
  21. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/LICENSE +0 -0
  22. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/README.md +0 -0
  23. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/easydiffraction/Interfaces/CFML.py +0 -0
  24. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/easydiffraction/Interfaces/GSASII.py +0 -0
  25. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/easydiffraction/Interfaces/__init__.py +0 -0
  26. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/easydiffraction/Interfaces/cryspy.py +0 -0
  27. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/easydiffraction/Interfaces/cryspyV2.py +0 -0
  28. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/easydiffraction/Interfaces/interfaceTemplate.py +0 -0
  29. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/easydiffraction/Interfaces/pdffit2.py +0 -0
  30. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/easydiffraction/Interfaces/types.py +0 -0
  31. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/easydiffraction/Jobs.py +0 -0
  32. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/easydiffraction/Profiles/Analysis.py +0 -0
  33. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/easydiffraction/Profiles/Container.py +0 -0
  34. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/easydiffraction/Profiles/Experiment.py +0 -0
  35. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/easydiffraction/Profiles/JobType.py +0 -0
  36. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/easydiffraction/Profiles/P1D.py +0 -0
  37. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/easydiffraction/Profiles/Sample.py +0 -0
  38. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/easydiffraction/Profiles/__init__.py +0 -0
  39. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/easydiffraction/Profiles/common.py +0 -0
  40. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/easydiffraction/Runner.py +0 -0
  41. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/easydiffraction/__init__.py +0 -0
  42. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/easydiffraction/calculators/CFML.py +0 -0
  43. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/easydiffraction/calculators/GSASII.py +0 -0
  44. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/easydiffraction/calculators/__init__.py +0 -0
  45. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/easydiffraction/calculators/cryspy.py +0 -0
  46. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/easydiffraction/calculators/pdffit2.py +0 -0
  47. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/easydiffraction/components/__init__.py +0 -0
  48. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/easydiffraction/components/phase.py +0 -0
  49. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/easydiffraction/components/polarization.py +0 -0
  50. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/easydiffraction/components/site.py +0 -0
  51. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/easydiffraction/elements/Backgrounds/Background.py +0 -0
  52. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/easydiffraction/elements/Backgrounds/Factorial.py +0 -0
  53. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/easydiffraction/elements/Backgrounds/Point.py +0 -0
  54. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/easydiffraction/elements/Backgrounds/__init__.py +0 -0
  55. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/easydiffraction/elements/Experiments/Experiment.py +0 -0
  56. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/easydiffraction/elements/Experiments/Pattern.py +0 -0
  57. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/easydiffraction/elements/Experiments/__init__.py +0 -0
  58. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/easydiffraction/elements/__init__.py +0 -0
  59. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/easydiffraction/interface.py +0 -0
  60. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/easydiffraction/io/__init__.py +0 -0
  61. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/easydiffraction/io/cif.py +0 -0
  62. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/easydiffraction/io/cif_reader.py +0 -0
  63. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/easydiffraction/io/cryspy_parser.py +0 -0
  64. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/easydiffraction/io/helpers.py +0 -0
  65. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/easydiffraction/main.py +0 -0
  66. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/easydiffraction/sample.py +0 -0
  67. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples/data/hrpt.xye +0 -0
  68. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples/data/lbco.cif +0 -0
  69. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples/data/ncaf.cif +0 -0
  70. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples/data/sepd.xye +0 -0
  71. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples/data/si.cif +0 -0
  72. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples/data/wish.xye +0 -0
  73. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/3T2@LLB.xye +0 -0
  74. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/D1A@ILL.xye +0 -0
  75. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/Fitting.ipynb +0 -0
  76. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/Fitting_PD-CW_La0.5Ba0.5CoO3-HRPT@PSI/fitting.ipynb +0 -0
  77. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/Fitting_PD-CW_La0.5Ba0.5CoO3-HRPT@PSI/fitting.py +0 -0
  78. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/Fitting_PD-CW_La0.5Ba0.5CoO3-HRPT@PSI/hrpt.xye +0 -0
  79. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/Fitting_PD-TOF_Si-SEPD@Argonne/fitting copy.py +0 -0
  80. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/Fitting_PD-TOF_Si-SEPD@Argonne/fitting.ipynb +0 -0
  81. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/Fitting_PD-TOF_Si-SEPD@Argonne/fitting.py +0 -0
  82. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/Fitting_PD-TOF_Si-SEPD@Argonne/sepd.xye +0 -0
  83. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/Fitting_PD-TOF_Si-SEPD@Argonne/si.cif +0 -0
  84. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/Fitting_TOF.ipynb +0 -0
  85. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/Fitting_TOF_xye.ipynb +0 -0
  86. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/Fitting_multiphase.ipynb +0 -0
  87. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/PDF/Calculate_PDF_Profile_Ni.ipynb +0 -0
  88. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/PDF/Fitting_PDF_Profile_Ni.ipynb +0 -0
  89. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/PDF/Fitting_PDF_Profile_Si.ipynb +0 -0
  90. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/PDF/data/4507226.cif +0 -0
  91. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/PDF/data/Ni-xray.gr +0 -0
  92. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/PDF/data/Ni.cif +0 -0
  93. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/PDF/data/Si_calibration_cryostat_100A.fgr +0 -0
  94. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/PDF/data/Si_calibration_cryostat_20A.fgr +0 -0
  95. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/PDF/data/Si_calibration_cryostat_20A_01Rmin.fgr +0 -0
  96. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/PDF/data/Si_calibration_cryostat_50A.fgr +0 -0
  97. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/PDF/data/Si_calibration_cryostat_50A_01Rmin.fgr +0 -0
  98. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/PDF2/Calculate_PDF_Profile.ipynb +0 -0
  99. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/PDF2/Fitting_PDF_Profile.ipynb +0 -0
  100. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/PDF2/Ni-xray.gr +0 -0
  101. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/PDF2/Ni.cif +0 -0
  102. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/PDF2/Ni_fitting.py +0 -0
  103. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/PDF2/Ni_profile.py +0 -0
  104. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/PbSO4.cif +0 -0
  105. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/PolNPD5T.cif +0 -0
  106. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/Polarized.ipynb +0 -0
  107. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/Simulation.ipynb +0 -0
  108. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/TestingAPI/CrysPy/rhochi_unpolarized_tof_powder_Si/calc_chisq.py +0 -0
  109. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/TestingAPI/CrysPy/rhochi_unpolarized_tof_powder_Si/cryspy_PbSO4-D1A@ILL.rcif +0 -0
  110. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/TestingAPI/CrysPy/rhochi_unpolarized_tof_powder_Si/cryspy_unpolarized_tof_powder_Si.rcif +0 -0
  111. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/TestingAPI/CrysPy/rhochi_unpolarized_tof_powder_Si/refinement.py +0 -0
  112. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/TestingAPI/CrysPy/rhochi_unpolarized_tof_powder_Si/rhochi_unpolarized_tof_powder_CeCuAl.rcif +0 -0
  113. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/TestingAPI/EDB/experiments/d1a.cif +0 -0
  114. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/TestingAPI/EDB/models/pbso4.cif +0 -0
  115. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/TestingAPI/EDB/models/pbso4_dark.png +0 -0
  116. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/TestingAPI/EDB/project.cif +0 -0
  117. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/TestingAPI/EDB/summary/report.cif +0 -0
  118. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/TestingAPI/EDL/D1A@ILL.xye +0 -0
  119. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/TestingAPI/EDL/PbSO4.cif +0 -0
  120. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/TestingAPI/EDL/TestingAPI.py +0 -0
  121. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/d1a.cif +0 -0
  122. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/diamond_exp.xye +0 -0
  123. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/diamond_phase.cif +0 -0
  124. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/experiment_polarized.xye +0 -0
  125. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/multiphase.cif +0 -0
  126. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/ncaf.cif +0 -0
  127. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/structure_polarized.cif +0 -0
  128. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/examples_old/wish.cif +0 -0
  129. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/tests/__init__.py +0 -0
  130. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/tests/integration_tests/CFML_Cryspy.png +0 -0
  131. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/tests/integration_tests/FittingData.ipynb +0 -0
  132. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/tests/integration_tests/FittingData_CFML-xarrays.ipynb +0 -0
  133. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/tests/integration_tests/FittingData_CFML.ipynb +0 -0
  134. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/tests/integration_tests/PbSO4.cif +0 -0
  135. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/tests/integration_tests/PbSO4_neutrons_short.xye +0 -0
  136. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/tests/integration_tests/PbSO4_xrays_short.xye +0 -0
  137. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/tests/integration_tests/SrTiO3.cif +0 -0
  138. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/tests/integration_tests/WorkedExample2.ipynb +0 -0
  139. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/tests/integration_tests/fit_script.py +0 -0
  140. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/tests/integration_tests/test1.py +0 -0
  141. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/tests/integration_tests/test3.py +0 -0
  142. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/tests/integration_tests/workedExample1.ipynb +0 -0
  143. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/tests/integration_tests/xarray_test.ipynb +0 -0
  144. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/tests/resources/PbSO4.cif +0 -0
  145. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/tests/resources/PolNPD5T.cif +0 -0
  146. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/tests/resources/d1a.cif +0 -0
  147. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/tests/unit_tests/Calculators/__init__.py +0 -0
  148. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/tests/unit_tests/Elements/__init__.py +0 -0
  149. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/tests/unit_tests/Interfaces/__init__.py +0 -0
  150. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/tests/unit_tests/Profiles/__init__.py +0 -0
  151. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/tests/unit_tests/Profiles/test_Experiment.py +0 -0
  152. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/tests/unit_tests/Profiles/test_JobType.py +0 -0
  153. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/tests/unit_tests/__init__.py +0 -0
  154. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/tests/unit_tests/test_Job.py +0 -0
  155. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/tests/unit_tests/test_Jobs.py +0 -0
  156. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/tests/unit_tests/test_Runner.py +0 -0
  157. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/tests/unit_tests/test_interface.py +0 -0
  158. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/tests/unit_tests/test_sample.py +0 -0
  159. {easydiffraction-0.1.2 → easydiffraction-0.1.4}/tools/Scripts/generate_html.py +0 -0
@@ -12,8 +12,21 @@
12
12
 
13
13
  name: Test code
14
14
 
15
- # Trigger the workflow on push, pull request and manual trigger
16
- on: [push, pull_request, workflow_call]
15
+ on:
16
+ # Trigger the workflow on push
17
+ push:
18
+ # Every branch
19
+ branches:
20
+ - "**"
21
+ # But do not run this workflow on creating a new tag starting with 'v', e.g. 'v1.0.3' (see pypi-publish.yml)
22
+ tags-ignore:
23
+ - 'v*'
24
+ # Trigger the workflow on pull request
25
+ pull_request:
26
+ branches:
27
+ - "**"
28
+ # Allows you to run this workflow manually from the Actions tab
29
+ workflow_dispatch:
17
30
 
18
31
  # Allow only one concurrent workflow, skipping runs queued between the run in-progress and latest queued.
19
32
  # And cancel in-progress runs.
@@ -2,8 +2,21 @@
2
2
 
3
3
  name: Test Jupyter notebooks
4
4
 
5
- # Trigger the workflow on push, pull request and manual trigger
6
- on: [push, pull_request, workflow_call]
5
+ on:
6
+ # Trigger the workflow on push
7
+ push:
8
+ # Every branch
9
+ branches:
10
+ - "**"
11
+ # But do not run this workflow on creating a new tag starting with 'v', e.g. 'v1.0.3' (see pypi-publish.yml)
12
+ tags-ignore:
13
+ - 'v*'
14
+ # Trigger the workflow on pull request
15
+ pull_request:
16
+ branches:
17
+ - "**"
18
+ # Allows you to run this workflow manually from the Actions tab
19
+ workflow_dispatch:
7
20
 
8
21
  # Allow only one concurrent workflow, skipping runs queued between the run in-progress and latest queued.
9
22
  # And cancel in-progress runs.
@@ -12,8 +12,21 @@
12
12
 
13
13
  name: Build and test package
14
14
 
15
- # Trigger the workflow on push, pull request and manual trigger
16
- on: [push, pull_request, workflow_call]
15
+ on:
16
+ # Trigger the workflow on push
17
+ push:
18
+ # Every branch
19
+ branches:
20
+ - "**"
21
+ # But do not run this workflow on creating a new tag starting with 'v', e.g. 'v1.0.3' (see pypi-publish.yml)
22
+ tags-ignore:
23
+ - 'v*'
24
+ # Trigger the workflow on pull request
25
+ pull_request:
26
+ branches:
27
+ - "**"
28
+ # Allows you to run this workflow manually from the Actions tab
29
+ workflow_dispatch:
17
30
 
18
31
  # Allow only one concurrent workflow, skipping runs queued between the run in-progress and latest queued.
19
32
  # And cancel in-progress runs.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: easydiffraction
3
- Version: 0.1.2
3
+ Version: 0.1.4
4
4
  Summary: Making diffraction data analysis and modelling easy
5
5
  Project-URL: homepage, https://easydiffraction.org
6
6
  Project-URL: documentation, https://docs.easydiffraction.org/lib
@@ -63,6 +63,7 @@ except ImportError:
63
63
  print("pandas not installed")
64
64
 
65
65
  try:
66
+ from IPython.display import HTML
66
67
  from IPython.display import display
67
68
  except ImportError:
68
69
  pass
@@ -939,27 +940,27 @@ class DiffractionJob(JobBase):
939
940
  return f'{parent_name}.{display_name}'
940
941
 
941
942
  def _parameters(self):
942
- parameters = {'name': [], 'value': [], 'error': [], 'unit': [], 'min': [], 'max': [], 'vary': []}
943
+ parameters = {'name': [], 'value': [], 'unit': [], 'error': [], 'min': [], 'max': [], 'vary': []}
943
944
  for parameter in self.get_parameters():
944
945
  if parameter.enabled:
945
946
  name = self.get_full_parameter_name(parameter.unique_name, parameter.display_name, parameter.url)
946
- parameters['name'].append(name)
947
+ parameters['name'].append(f'<name>{name}</name>')
947
948
  parameters['value'].append(parameter.raw_value)
949
+ parameters['unit'].append(f'<unit>{parameter.unit:~P}</unit>')
948
950
  parameters['error'].append(parameter.error) if parameter.error else parameters['error'].append('')
949
- parameters['unit'].append(f'{parameter.unit:~P}')
950
951
  parameters['min'].append(parameter.min)
951
952
  parameters['max'].append(parameter.max)
952
953
  parameters['vary'].append(parameter.free) if parameter.free else parameters['vary'].append('')
953
954
  return parameters
954
955
 
955
956
  def _free_parameters(self):
956
- parameters = {'name': [], 'value': [], 'error': [], 'unit': []}
957
+ parameters = {'name': [], 'value': [], 'unit': [], 'error': []}
957
958
  for parameter in self.get_fit_parameters():
958
959
  name = self.get_full_parameter_name(parameter.unique_name, parameter.display_name, parameter.url)
959
- parameters['name'].append(name)
960
+ parameters['name'].append(f'<name>{name}</name>')
960
961
  parameters['value'].append(parameter.raw_value)
962
+ parameters['unit'].append(f'<unit>{parameter.unit:~P}</unit>')
961
963
  parameters['error'].append(parameter.error)
962
- parameters['unit'].append(f'{parameter.unit:~P}')
963
964
  return parameters
964
965
 
965
966
  def _show_parameters(self, parameters):
@@ -970,11 +971,19 @@ class DiffractionJob(JobBase):
970
971
  df = pd.DataFrame(parameters)
971
972
  df.index += 1
972
973
  if self.is_notebook():
973
- display(df.
974
- style. # apply styles from below
975
- set_table_styles([dict(selector='th', props=[('text-align', 'left')])]). # align header to left
976
- set_properties(subset=['name'], **{'text-align': 'left'}). # align column 'name' to left
977
- format(precision=5)) # set precision
974
+ # convert the DataFrame to HTML
975
+ html = df.to_html(escape=False)
976
+ # align the header of the column 'name' to the left
977
+ html = html.replace('<th>name', '<th style="text-align: left;">name')
978
+ # remove the header of the column 'unit'
979
+ html = html.replace('<th>unit', '<th>')
980
+ # align the cells in the column 'name' to the left
981
+ html = html.replace('<td><name>', '<td style="text-align: left;">')
982
+ html = html.replace('</name></td>', '</td>')
983
+ # align the cells in the column 'unit' to the left and remove the left padding
984
+ html = html.replace('<td><unit>', '<td style="text-align: left; padding-left: 0px">')
985
+ html = html.replace('</unit></td>', '</td>')
986
+ display(HTML(html))
978
987
  else:
979
988
  print(df)
980
989
  else:
@@ -59,7 +59,7 @@
59
59
  " print(\"Running in Google Colab\")\n",
60
60
  " # Install the easydiffraction library if it is not installed (including charts extras)\n",
61
61
  " if importlib.util.find_spec(\"easydiffraction\") is None:\n",
62
- " !pip install 'easydiffraction[charts]' --extra-index-url https://easyscience.github.io/pypi\n",
62
+ " !pip install 'easydiffraction[charts]'\n",
63
63
  " # Download the data files to be read in notebook\n",
64
64
  " for fname in ['lbco.cif', 'hrpt.xye']:\n",
65
65
  " pooch.retrieve(\n",
@@ -59,7 +59,7 @@
59
59
  " print(\"Running in Google Colab\")\n",
60
60
  " # Install the easydiffraction library if it is not installed (including charts extras)\n",
61
61
  " if importlib.util.find_spec(\"easydiffraction\") is None:\n",
62
- " !pip install 'easydiffraction[charts]' --extra-index-url https://easyscience.github.io/pypi\n",
62
+ " !pip install 'easydiffraction[charts]'\n",
63
63
  " # Download the data files to be read in notebook\n",
64
64
  " for fname in ['lbco.cif', 'hrpt.xye']:\n",
65
65
  " pooch.retrieve(\n",
@@ -59,7 +59,7 @@
59
59
  " print(\"Running in Google Colab\")\n",
60
60
  " # Install the easydiffraction library if it is not installed (including charts extras)\n",
61
61
  " if importlib.util.find_spec(\"easydiffraction\") is None:\n",
62
- " !pip install 'easydiffraction[charts]' --extra-index-url https://easyscience.github.io/pypi\n",
62
+ " !pip install 'easydiffraction[charts]'\n",
63
63
  " # Download the data files to be read in notebook\n",
64
64
  " for fname in ['ncaf.cif', 'wish.xye']:\n",
65
65
  " pooch.retrieve(\n",
@@ -55,7 +55,7 @@
55
55
  " print(\"Running in Google Colab\")\n",
56
56
  " # Install the easydiffraction library if it is not installed (including charts extras)\n",
57
57
  " if importlib.util.find_spec(\"easydiffraction\") is None:\n",
58
- " !pip install 'easydiffraction[charts]' --extra-index-url https://easyscience.github.io/pypi\n",
58
+ " !pip install 'easydiffraction[charts]'\n",
59
59
  " # Download the data files to be read in notebook\n",
60
60
  " for fname in ['sepd.xye']:\n",
61
61
  " pooch.retrieve(\n",
@@ -2,7 +2,7 @@
2
2
 
3
3
  [project]
4
4
  name = 'easydiffraction'
5
- version = '0.1.2'
5
+ version = '0.1.4'
6
6
  description = 'Making diffraction data analysis and modelling easy'
7
7
  authors = [{name = 'EasyDiffractionLib contributors'}]
8
8
  readme = 'README.md'
File without changes