Skip to content

Commit

Permalink
Update proxies
Browse files Browse the repository at this point in the history
  • Loading branch information
koshchii committed Apr 9, 2024
1 parent a6f3abf commit 010e484
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 10 deletions.
14 changes: 8 additions & 6 deletions EasyTextureApp/Gui/Globals/Proxies.qml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ QtObject { // If "Unknown component. (M300) in QtCreator", try: "Tools > QML/JS
project['rawData'] = {
'name': qmlProxy.rawData.description.name,
'isCreated': qmlProxy.rawData.isCreated,
//'parameters': qmlProxy.rawData.parameters,
'parameters': qmlProxy.rawData.parameters,
'dataSize': qmlProxy.rawData.dataSize,
'xData': qmlProxy.rawData.xData,
'yData': qmlProxy.rawData.yData
Expand Down Expand Up @@ -158,10 +158,12 @@ QtObject { // If "Unknown component. (M300) in QtCreator", try: "Tools > QML/JS
property bool isMmtFileAssigned: false
property bool is1DtabSelected: false
property bool is2DtabSelected: false
property bool is2DthetaRingsTabSelected: false
property bool is3DtabSelected: true

property var rawFiles: [
]
property var rawFiles: []
property real twoTheta: 45.5
property real thetaRingsMinTT: 50.1

property int dataSize: 10
property var xData: []
Expand All @@ -171,9 +173,9 @@ QtObject { // If "Unknown component. (M300) in QtCreator", try: "Tools > QML/JS
const length = dataSize
const slope = 0.0
const yIntercept = 1.5
xData = Array.from({ length: length }, (_, i) => i+1)
//xData = Array.from({ length: length }, (_, i) => i+1)
//xData = Array.from({ length: length }, (_, i) => i / (length - 1))//[0.1,0.15,0.2,0.25,0.3,0.35,0.4]//Array.from({ length: length }, (_, i) => i / (length - 1))
yData = Logic.LineCalculator.pseudoMeasured(xData, slope, yIntercept)
//yData = Logic.LineCalculator.pseudoMeasured(xData, slope, yIntercept)
isCreated = true
}

Expand All @@ -194,7 +196,7 @@ QtObject { // If "Unknown component. (M300) in QtCreator", try: "Tools > QML/JS

property bool isCreated: !applyDataCorrection || isCorrectionFileAssigned
property bool applyDataCorrection: false
property bool isCorrectionFileAssigned : false
property bool isCorrectionFileAssigned: false
property string correctionFileName

function emptyData() {
Expand Down
2 changes: 1 addition & 1 deletion EasyTextureApp/Gui/Html/Plotly1dOK.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@

// Load data from JSON file
var request1D = new XMLHttpRequest();
request1D.open("GET", "/home/koshchii/GitRepos/github/PowTexPy/data_reduction/user_voxels_1D_sorted_by_gamma.json", false);
request1D.open("GET", "user_voxels_1D_sorted_by_gamma.json", false);
request1D.send(null)
var data1D = JSON.parse(request1D.responseText); //this is a dict of objects

Expand Down
2 changes: 1 addition & 1 deletion EasyTextureApp/Gui/Html/Plotly2dGammaTwoThetaOK.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
<script>
// Load data from JSON file
var request2D = new XMLHttpRequest();
request2D.open("GET", "/home/koshchii/GitRepos/github/PowTexPy/data_reduction/user_voxels_2D.json", false);
request2D.open("GET", "user_voxels_2D.json", false);
request2D.send(null)
var data2D = JSON.parse(request2D.responseText);

Expand Down
2 changes: 1 addition & 1 deletion EasyTextureApp/Gui/Html/Plotly2dTwoThetaRingsOK.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@

// Load data from JSON file
var request2D = new XMLHttpRequest();
request2D.open("GET", "/home/koshchii/GitRepos/github/PowTexPy/data_reduction/user_voxels_2D.json", false);
request2D.open("GET", "user_voxels_2D.json", false);
request2D.send(null)
var data2D = JSON.parse(request2D.responseText);

Expand Down
2 changes: 1 addition & 1 deletion EasyTextureApp/Gui/Html/Plotly3dScatterOK.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
<script>
// Load data from JSON file
var request3D = new XMLHttpRequest();
request3D.open("GET", "/home/koshchii/GitRepos/github/PowTexPy/data_reduction/user_voxels_3D.json", false);
request3D.open("GET", "user_voxels_3D.json", false);
request3D.send(null)
var data3D = JSON.parse(request3D.responseText);

Expand Down

0 comments on commit 010e484

Please sign in to comment.