Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
9dbcbab
Initial commit for the app working on
rozyczko Nov 11, 2022
855a7de
Update toml with correct branch of Lib
rozyczko Nov 15, 2022
9bde849
Wrap lists in a dict to work around a bug in current xml converter
rozyczko Nov 15, 2022
1fc848a
Remaining dicttoxml -> XMLSerializer cleanup.
rozyczko Nov 15, 2022
66d15fe
More fixes for xml access path.
rozyczko Nov 21, 2022
6c7ada9
rely on io_serialize in easyApp
rozyczko Nov 23, 2022
2a4eef1
XML structure slightly changed for the id field
rozyczko Nov 30, 2022
7b6c06c
Updates to xml data items after fix in core
rozyczko Dec 1, 2022
bfc229b
Repeat dependency on lazy-import.
rozyczko Dec 3, 2022
fb3aa72
removed dependency on lazy-import
rozyczko Dec 3, 2022
34bcc17
disable test installation so the installer is generated for local
rozyczko Dec 4, 2022
b02356a
Try to lock scipy version
rozyczko Dec 4, 2022
241e59c
Enable test mode run
rozyczko Dec 4, 2022
e873e1d
fixed typos
rozyczko Dec 4, 2022
af1ba3d
Avoid bg update on no bg defined
rozyczko Dec 14, 2022
cee86b1
goodness_of_fit is no longer defined on the results object
rozyczko Jan 6, 2023
4416745
Merge branch 'io_serialization' of https://github.com/easyScience/eas…
rozyczko Jan 6, 2023
9093440
Delayed reporting - added button to generate html/charts on the repor…
rozyczko Jan 11, 2023
66fe835
add no-binary pyobjc installation
rozyczko Jan 12, 2023
aa1ef16
Go back to 7.0.1?
rozyczko Jan 12, 2023
5b26431
very initial version. Here be dragons
rozyczko Jan 17, 2023
e9f23d7
yarray is an xarray -> convert for plotting.
rozyczko Jan 18, 2023
1092121
fixes for serialization of the job object
rozyczko Jan 23, 2023
61dad1d
Fix for undo/redo
rozyczko Jan 27, 2023
5071138
added fixes for polarized, ToF and multiphase
rozyczko Jan 30, 2023
2c72459
Use library-based exp cif reader and redo job properly
rozyczko Jan 31, 2023
071988b
Improve handling of reset, ToF and xyz loads for subsequent jobs
rozyczko Feb 1, 2023
b6ba4e0
Updated Examples 1-5
rozyczko Feb 1, 2023
85f9097
Updated examples 6-8
rozyczko Feb 2, 2023
4934dd1
Update examples in standalone examples directory
rozyczko Feb 2, 2023
10bb59b
Update examples with proper names and readonly status.
rozyczko Feb 3, 2023
2c2d429
Updated example files with correct strings.
rozyczko Feb 6, 2023
e93eeb6
Don't write empty experiment on project save
rozyczko Feb 8, 2023
49f800e
Added the LaBaCoO3 example
rozyczko Feb 10, 2023
d007417
Merge branch 'develop' into release-0.8.5
rozyczko Feb 10, 2023
cd71cf2
remove merge artifact
rozyczko Feb 10, 2023
3c448e1
remove merge snafu
rozyczko Feb 10, 2023
83de1bf
Another merge typo fixed
rozyczko Feb 10, 2023
80c09ef
Merge branch 'job_based' into release-0.8.5
rozyczko Feb 15, 2023
7debbf9
modified new atom creation.
rozyczko Feb 16, 2023
7a465f7
Update toml with pdffit dependency and EDL release branch
rozyczko Feb 20, 2023
10633e3
msp values are already passed through chi_xx arguments
rozyczko Feb 20, 2023
a6a9ac1
Nope. we don't need pdffit in the app yet.
rozyczko Feb 21, 2023
285c0b9
Update premade examples for CrysPyV2 -> CrysPy
rozyczko Feb 27, 2023
c68c77c
More fixes for issues found by AS
rozyczko Mar 1, 2023
74110a8
update interface on calculator change
rozyczko Mar 13, 2023
769754d
Bumped version
rozyczko Mar 21, 2023
b099df7
Updated copyright to 2023
rozyczko Mar 21, 2023
5671f24
try forked build
rozyczko Mar 22, 2023
693258f
Revert "try forked build" as it was meant for the forked repo
rozyczko Mar 22, 2023
2047cdc
Workaround for GH runtime test failure
rozyczko Mar 23, 2023
98e6f00
Merge branch 'release-0.8.5' into copyright-dates-update
rozyczko Mar 23, 2023
792c3c1
Merge pull request #245 from easyScience/copyright-dates-update
rozyczko Mar 23, 2023
f0a0198
Update changelog and release info
AndrewSazonov Mar 28, 2023
614c5da
test with released EDL before merging
rozyczko Mar 28, 2023
0e40491
Merge branch 'release-0.8.5' of https://github.com/easyScience/easyDi…
rozyczko Mar 28, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ jobs:
python -m pip install toml
python utils.py --update

- name: Compile and install pyobjc on macos-11
if: runner.os == 'macOS'
run: |
python -m pip install pyobjc-core --no-binary :all:
python -m pip install pyobjc-framework-Cocoa --no-binary :all:

# https://docs.github.com/en/actions/reference/environment-variables
- name: Declare env variables on push and pull_request
shell: bash
Expand Down Expand Up @@ -116,8 +122,13 @@ jobs:
run: python ${{ env.SCRIPTS_PATH }}/InstallApp.py

- name: Run app in testmode, record screen and quit
if: runner.os != 'Windows'
run: python ${{ env.SCRIPTS_PATH }}/RunApp.py --testmode

- name: Create bogus tutorial file on Windows
if: runner.os == 'Windows'
run: echo "Not working currently" > tutorial.mp4

- name: Rename test videos
run: >
python ${{ env.SCRIPTS_PATH }}/RenameTestVideos.py
Expand Down Expand Up @@ -169,4 +180,4 @@ jobs:
run: >
python ${{ env.SCRIPTS_PATH }}/UploadToFtp.py
${{ env.BRANCH_NAME }}
${{ secrets.APP_REPO_FTP_PASSWORD }}
${{ secrets.APP_REPO_FTP_PASSWORD }}
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# Version 0.8.5-beta (28 Mar 2023)

### Changes

- GSASII calculation engine has been removed.
- Overall application performance has been significantly improved.

### Bug Fixes

- Summary report export widget is now properly enabled for custom projects.
- Undo/redo functionality has been fixed.

# Version 0.8.4-beta (28 Jul 2022)

### New Features
Expand Down
9 changes: 9 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
### Changes

- GSASII calculation engine has been removed.
- Overall application performance has been significantly improved.

### Bug Fixes

- Summary report export widget is now properly enabled for custom projects.
- Undo/redo functionality has been fixed.
4 changes: 2 additions & 2 deletions easyDiffractionApp/Gui/Components/AnalysisConstraints.qml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2022 easyDiffraction contributors <support@easydiffraction.org>
// SPDX-FileCopyrightText: 2023 easyDiffraction contributors <support@easydiffraction.org>
// SPDX-License-Identifier: BSD-3-Clause
// © 2021-2022 Contributors to the easyDiffraction project <https://github.com/easyScience/easyDiffractionApp>

Expand Down Expand Up @@ -29,7 +29,7 @@ EaComponents.TableView {
//xml: ExGlobals.Constants.proxy.constraintsListAsXml
xml: ExGlobals.Constants.proxy.fitting.constraintsAsXml

query: "/root/item"
query: "/data/data"

XmlRole { name: "number"; query: "number/number()" }
XmlRole { name: "dependentName"; query: "dependentName/string()" }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2022 easyDiffraction contributors <support@easydiffraction.org>
// SPDX-FileCopyrightText: 2023 easyDiffraction contributors <support@easydiffraction.org>
// SPDX-License-Identifier: BSD-3-Clause
// © 2021-2022 Contributors to the easyDiffraction project <https://github.com/easyScience/easyDiffractionApp>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2022 easyDiffraction contributors <support@easydiffraction.org>
// SPDX-FileCopyrightText: 2023 easyDiffraction contributors <support@easydiffraction.org>
// SPDX-License-Identifier: BSD-3-Clause
// © 2021-2022 Contributors to the easyDiffraction project <https://github.com/easyScience/easyDiffractionApp>

Expand Down
4 changes: 2 additions & 2 deletions easyDiffractionApp/Gui/Components/AnalysisFitables.qml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2022 easyDiffraction contributors <support@easydiffraction.org>
// SPDX-FileCopyrightText: 2023 easyDiffraction contributors <support@easydiffraction.org>
// SPDX-License-Identifier: BSD-3-Clause
// © 2021-2022 Contributors to the easyDiffraction project <https://github.com/easyScience/easyDiffractionApp>

Expand Down Expand Up @@ -27,7 +27,7 @@ EaComponents.TableView {
//xml: ExGlobals.Constants.proxy.fitablesListAsXml
xml: ExGlobals.Constants.proxy.parameters.parametersAsXml

query: "/root/item"
query: "/data/item"

XmlRole { name: "id"; query: "id/string()" }
XmlRole { name: "number"; query: "number/number()" }
Expand Down
9 changes: 6 additions & 3 deletions easyDiffractionApp/Gui/Components/ApplicationWindow.qml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2022 easyDiffraction contributors <support@easydiffraction.org>
// SPDX-FileCopyrightText: 2023 easyDiffraction contributors <support@easydiffraction.org>
// SPDX-License-Identifier: BSD-3-Clause
// © 2021-2022 Contributors to the easyDiffraction project <https://github.com/easyScience/easyDiffractionApp>

Expand Down Expand Up @@ -156,7 +156,10 @@ EaComponents.ApplicationWindow {
fontIcon: "clipboard-list"
text: qsTr("Summary")
ToolTip.text: qsTr("Summary of the work done")
Component.onCompleted: ExGlobals.Variables.summaryTabButton = summaryTabButton
onClicked: {
ExGlobals.Constants.proxy.project.requestReport()
}
Component.onCompleted: ExGlobals.Variables.summaryTabButton = this
}

]
Expand Down Expand Up @@ -355,7 +358,7 @@ EaComponents.ApplicationWindow {

model: XmlListModel {
xml: ExGlobals.Constants.proxy.project.statusModelAsXml
query: "/root/item"
query: "/data"

XmlRole { name: "label"; query: "label/string()" }
XmlRole { name: "value"; query: "value/string()" }
Expand Down
2 changes: 1 addition & 1 deletion easyDiffractionApp/Gui/Components/CloseDialog.qml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import QtQuick.Controls 2.14

import easyApp.Gui.Elements 1.0 as EaElements

// SPDX-FileCopyrightText: 2022 easyDiffraction contributors <support@easydiffraction.org>
// SPDX-FileCopyrightText: 2023 easyDiffraction contributors <support@easydiffraction.org>
// SPDX-License-Identifier: BSD-3-Clause
// © 2021-2022 Contributors to the easyDiffraction project <https://github.com/easyScience/easyDiffractionApp>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2022 easyDiffraction contributors <support@easydiffraction.org>
// SPDX-FileCopyrightText: 2023 easyDiffraction contributors <support@easydiffraction.org>
// SPDX-License-Identifier: BSD-3-Clause
// © 2021-2022 Contributors to the easyDiffraction project <https://github.com/easyScience/easyDiffractionApp>

Expand All @@ -23,11 +23,11 @@ EaComponents.TableView {

model: XmlListModel {
xml: ExGlobals.Constants.proxy.phase.phasesAsXml
query: "/root/item"
query: "/data/item"

XmlRole { name: "label"; query: "name/string()" }
XmlRole { name: "scale"; query: "scale/value/number()" }
XmlRole { name: "scaleId"; query: "scale/key[4]/string()" }
XmlRole { name: "scaleId"; query: "scale/__id/string()" }

}

Expand Down
7 changes: 3 additions & 4 deletions easyDiffractionApp/Gui/Components/ExperimentBackground.qml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,14 @@ EaComponents.TableView {

model: XmlListModel {
xml: ExGlobals.Constants.proxy.backgroundProxy.asXml
query: "/root/item"
query: "/data/data"

XmlRole { name: "x"; query: "x/value/number()" }
XmlRole { name: "y"; query: "y/value/number()" }

XmlRole { name: "pointName"; query: "name/string()" }

XmlRole { name: "xId"; query: "x/key[4]/string()" }
XmlRole { name: "yId"; query: "y/key[4]/string()" }
XmlRole { name: "xId"; query: "x/__id/string()" }
XmlRole { name: "yId"; query: "y/__id/string()" }
}

// Table rows
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2022 easyDiffraction contributors <support@easydiffraction.org>
// SPDX-FileCopyrightText: 2023 easyDiffraction contributors <support@easydiffraction.org>
// SPDX-License-Identifier: BSD-3-Clause
// © 2021-2022 Contributors to the easyDiffraction project <https://github.com/easyScience/easyDiffractionApp>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2022 easyDiffraction contributors <support@easydiffraction.org>
// SPDX-FileCopyrightText: 2023 easyDiffraction contributors <support@easydiffraction.org>
// SPDX-License-Identifier: BSD-3-Clause
// © 2021-2022 Contributors to the easyDiffraction project <https://github.com/easyScience/easyDiffractionApp>

Expand Down
4 changes: 2 additions & 2 deletions easyDiffractionApp/Gui/Components/ExperimentDataExplorer.qml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2022 easyDiffraction contributors <support@easydiffraction.org>
// SPDX-FileCopyrightText: 2023 easyDiffraction contributors <support@easydiffraction.org>
// SPDX-License-Identifier: BSD-3-Clause
// © 2021-2022 Contributors to the easyDiffraction project <https://github.com/easyScience/easyDiffractionApp>

Expand All @@ -23,7 +23,7 @@ EaComponents.TableView {

model: XmlListModel {
xml: ExGlobals.Constants.proxy.experiment.experimentDataAsXml
query: "/root/item"
query: "/data"

XmlRole { name: "label"; query: "name/string()" }
}
Expand Down
9 changes: 5 additions & 4 deletions easyDiffractionApp/Gui/Components/ExperimentPeakProfileG.qml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,16 @@ EaComponents.TableView {

model: XmlListModel {
xml: ExGlobals.Constants.proxy.instrumentParametersAsXml
query: `/root/item`
query: `/data/data`


XmlRole { name: "u"; query: "resolution_u/value/number()" }
XmlRole { name: "v"; query: "resolution_v/value/number()" }
XmlRole { name: "w"; query: "resolution_w/value/number()" }

XmlRole { name: "uId"; query: "resolution_u/key[4]/string()" }
XmlRole { name: "vId"; query: "v_resolution/key[4]/string()" }
XmlRole { name: "wId"; query: "resolution_w/key[4]/string()" }
XmlRole { name: "uId"; query: "resolution_u/__id/string()" }
XmlRole { name: "vId"; query: "v_resolution/__id/string()" }
XmlRole { name: "wId"; query: "resolution_w/__id/string()" }
}

// Table rows
Expand Down
6 changes: 3 additions & 3 deletions easyDiffractionApp/Gui/Components/ExperimentPeakProfileL.qml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ EaComponents.TableView {

model: XmlListModel {
xml: ExGlobals.Constants.proxy.instrumentParametersAsXml
query: `/root/item`
query: `/data/data`

XmlRole { name: "x"; query: "resolution_x/value/number()" }
XmlRole { name: "y"; query: "resolution_y/value/number()" }

XmlRole { name: "xId"; query: "resolution_x/key[4]/string()" }
XmlRole { name: "yId"; query: "resolution_y/key[4]/string()" }
XmlRole { name: "xId"; query: "resolution_x/__id/string()" }
XmlRole { name: "yId"; query: "resolution_y/__id/string()" }
}

// Table rows
Expand Down
4 changes: 2 additions & 2 deletions easyDiffractionApp/Gui/Components/ProjectExamples.qml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2022 easyDiffraction contributors <support@easydiffraction.org>
// SPDX-FileCopyrightText: 2023 easyDiffraction contributors <support@easydiffraction.org>
// SPDX-License-Identifier: BSD-3-Clause
// © 2021-2022 Contributors to the easyDiffraction project <https://github.com/easyScience/easyDiffractionApp>

Expand All @@ -24,7 +24,7 @@ EaComponents.TableView {

model: XmlListModel {
xml: ExGlobals.Constants.proxy.project.projectExamplesAsXml
query: "/root/item"
query: "/data/item"

XmlRole { name: "name"; query: "name/string()" }
XmlRole { name: "description"; query: "description/string()" }
Expand Down
2 changes: 1 addition & 1 deletion easyDiffractionApp/Gui/Components/ResultsDialog.qml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2022 easyDiffraction contributors <support@easydiffraction.org>
// SPDX-FileCopyrightText: 2023 easyDiffraction contributors <support@easydiffraction.org>
// SPDX-License-Identifier: BSD-3-Clause
// © 2021-2022 Contributors to the easyDiffraction project <https://github.com/easyScience/easyDiffractionApp>

Expand Down
18 changes: 9 additions & 9 deletions easyDiffractionApp/Gui/Components/SampleAdps.qml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2022 easyDiffraction contributors <support@easydiffraction.org>
// SPDX-FileCopyrightText: 2023 easyDiffraction contributors <support@easydiffraction.org>
// SPDX-License-Identifier: BSD-3-Clause
// © 2021-2022 Contributors to the easyDiffraction project <https://github.com/easyScience/easyDiffractionApp>

Expand Down Expand Up @@ -33,7 +33,7 @@ EaComponents.TableView {
property int phaseIndex: ExGlobals.Constants.proxy.phase.currentPhaseIndex + 1

xml: ExGlobals.Constants.proxy.phase.phasesAsXml
query: `/root/item[${phaseIndex}]/atoms/data/item`
query: `/data/item/atoms/data`

XmlRole { name: "label"; query: "label/value/string()" }
XmlRole { name: "adpType"; query: "adp/adp_type/value/string()" }
Expand All @@ -45,13 +45,13 @@ EaComponents.TableView {
XmlRole { name: "adpAni13"; query: "adp_ani_13/number()" }
XmlRole { name: "adpAni23"; query: "adp_ani_23/number()" }

XmlRole { name: "adpIsoId"; query: "adp/adp_class/Uiso/key[4]/string()" }
XmlRole { name: "adpAni11Id"; query: "adp_ani_11/key[4]/string()" }
XmlRole { name: "adpAni22Id"; query: "adp_ani_22/key[4]/string()" }
XmlRole { name: "adpAni33Id"; query: "adp_ani_33/key[4]/string()" }
XmlRole { name: "adpAni12Id"; query: "adp_ani_12/key[4]/string()" }
XmlRole { name: "adpAni13Id"; query: "adp_ani_13/key[4]/string()" }
XmlRole { name: "adpAni23Id"; query: "adp_ani_23/key[4]/string()" }
XmlRole { name: "adpIsoId"; query: "adp/adp_class/Uiso/__id/string()" }
XmlRole { name: "adpAni11Id"; query: "adp_ani_11/__id/string()" }
XmlRole { name: "adpAni22Id"; query: "adp_ani_22/__id/string()" }
XmlRole { name: "adpAni33Id"; query: "adp_ani_33/__id/string()" }
XmlRole { name: "adpAni12Id"; query: "adp_ani_12/__id/string()" }
XmlRole { name: "adpAni13Id"; query: "adp_ani_13/__id/string()" }
XmlRole { name: "adpAni23Id"; query: "adp_ani_23/__id/string()" }
}

// Table rows
Expand Down
18 changes: 9 additions & 9 deletions easyDiffractionApp/Gui/Components/SampleAtoms.qml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2022 easyDiffraction contributors <support@easydiffraction.org>
// SPDX-FileCopyrightText: 2023 easyDiffraction contributors <support@easydiffraction.org>
// SPDX-License-Identifier: BSD-3-Clause
// © 2021-2022 Contributors to the easyDiffraction project <https://github.com/easyScience/easyDiffractionApp>

Expand All @@ -17,7 +17,7 @@ import Gui.Globals 1.0 as ExGlobals
EaComponents.TableView {
property bool enableDelButton:
typeof ExGlobals.Constants.proxy.phase.phasesAsObj[ExGlobals.Constants.proxy.phase.currentPhaseIndex] !== 'undefined'
&& ExGlobals.Constants.proxy.phase.phasesAsObj[ExGlobals.Constants.proxy.phase.currentPhaseIndex].atoms.data.length > 1
&& ExGlobals.Constants.proxy.phase.phasesAsObj[ExGlobals.Constants.proxy.phase.currentPhaseIndex]['atoms'].length > 1
? true
: false

Expand All @@ -27,7 +27,7 @@ EaComponents.TableView {
property int phaseIndex: ExGlobals.Constants.proxy.phase.currentPhaseIndex + 1

xml: ExGlobals.Constants.proxy.phase.phasesAsXml
query: `/root/item[${phaseIndex}]/atoms/data/item`
query: `/data/item/atoms/data`

XmlRole { name: "label"; query: "label/value/string()" }
XmlRole { name: "type"; query: "specie/value/string()" }
Expand All @@ -36,12 +36,12 @@ EaComponents.TableView {
XmlRole { name: "z"; query: "fract_z/value/number()" }
XmlRole { name: "occupancy"; query: "occupancy/value/number()" }

XmlRole { name: "labelId"; query: "label/key[4]/string()" }
XmlRole { name: "typeId"; query: "specie/key[4]/string()" }
XmlRole { name: "xId"; query: "fract_x/key[4]/string()" }
XmlRole { name: "yId"; query: "fract_y/key[4]/string()" }
XmlRole { name: "zId"; query: "fract_z/key[4]/string()" }
XmlRole { name: "occupancyId"; query: "occupancy/key[4]/string()" }
XmlRole { name: "labelId"; query: "label/__id/string()" }
XmlRole { name: "typeId"; query: "specie__id/string()" }
XmlRole { name: "xId"; query: "fract_x/__id/string()" }
XmlRole { name: "yId"; query: "fract_y/__id/string()" }
XmlRole { name: "zId"; query: "fract_z/__id/string()" }
XmlRole { name: "occupancyId"; query: "occupancy/__id/string()" }
}

// Table rows
Expand Down
46 changes: 23 additions & 23 deletions easyDiffractionApp/Gui/Components/SampleCell.qml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2022 easyDiffraction contributors <support@easydiffraction.org>
// SPDX-FileCopyrightText: 2023 easyDiffraction contributors <support@easydiffraction.org>
// SPDX-License-Identifier: BSD-3-Clause
// © 2021-2022 Contributors to the easyDiffraction project <https://github.com/easyScience/easyDiffractionApp>

Expand All @@ -22,28 +22,28 @@ EaComponents.TableView {
property int phaseIndex: ExGlobals.Constants.proxy.phase.currentPhaseIndex + 1

xml: ExGlobals.Constants.proxy.phase.phasesAsXml
query: `/root/item[${phaseIndex}]`

XmlRole { name: "a"; query: "cell/length_a/value/number()" }
XmlRole { name: "b"; query: "cell/length_b/value/number()" }
XmlRole { name: "c"; query: "cell/length_c/value/number()" }
XmlRole { name: "alpha"; query: "cell/angle_alpha/value/number()" }
XmlRole { name: "beta"; query: "cell/angle_beta/value/number()" }
XmlRole { name: "gamma"; query: "cell/angle_gamma/value/number()" }

XmlRole { name: "a_enabled"; query: "cell/length_a/enabled/string()"}
XmlRole { name: "b_enabled"; query: "cell/length_b/enabled/string()"}
XmlRole { name: "c_enabled"; query: "cell/length_c/enabled/string()"}
XmlRole { name: "alpha_enabled"; query: "cell/angle_alpha/enabled/string()" }
XmlRole { name: "beta_enabled"; query: "cell/angle_beta/enabled/string()"}
XmlRole { name: "gamma_enabled"; query: "cell/angle_gamma/enabled/string()"}

XmlRole { name: "aId"; query: "cell/length_a/key[4]/string()" }
XmlRole { name: "bId"; query: "cell/length_b/key[4]/string()" }
XmlRole { name: "cId"; query: "cell/length_c/key[4]/string()" }
XmlRole { name: "alphaId"; query: "cell/angle_alpha/key[4]/string()" }
XmlRole { name: "betaId"; query: "cell/angle_beta/key[4]/string()" }
XmlRole { name: "gammaId"; query: "cell/angle_gamma/key[4]/string()" }
query: `/data/item/cell`

XmlRole { name: "a"; query: "length_a/value/number()" }
XmlRole { name: "b"; query: "length_b/value/number()" }
XmlRole { name: "c"; query: "length_c/value/number()" }
XmlRole { name: "alpha"; query: "angle_alpha/value/number()" }
XmlRole { name: "beta"; query: "angle_beta/value/number()" }
XmlRole { name: "gamma"; query: "angle_gamma/value/number()" }

XmlRole { name: "a_enabled"; query: "length_a/enabled/string()"}
XmlRole { name: "b_enabled"; query: "length_b/enabled/string()"}
XmlRole { name: "c_enabled"; query: "length_c/enabled/string()"}
XmlRole { name: "alpha_enabled"; query: "angle_alpha/enabled/string()" }
XmlRole { name: "beta_enabled"; query: "angle_beta/enabled/string()"}
XmlRole { name: "gamma_enabled"; query: "angle_gamma/enabled/string()"}

XmlRole { name: "aId"; query: "length_a/__id/string()" }
XmlRole { name: "bId"; query: "length_b/__id/string()" }
XmlRole { name: "cId"; query: "length_c/__id/string()" }
XmlRole { name: "alphaId"; query: "angle_alpha/__id/string()" }
XmlRole { name: "betaId"; query: "angle_beta/__id/string()" }
XmlRole { name: "gammaId"; query: "angle_gamma/__id/string()" }
}

// Table rows
Expand Down
Loading