[Task] Collect info and prepare input json file
The following dataset can be used for testing our implementation,
- To prepare the table view for the dataset mentioned above, we can use the feature of importing from database, following steps below,
Launch ADDIE 🠪 right click on table view 🠪
Import from Database🠪
Then a login window will pop up where we can use our UCAMS account to log in. I am not sure whether @halgh007 has the access to the example data we are going to use here. If not, we can always sort out a way to do this. Need offline discussion.
After logging in successfully, we can select IPTS-24291 either using the dropdown menu or the input box, followed by clicking on the
Import All Runsbutton to import all runs.
Then we need to remove all rows except
Fill in all necessary information if they are not already there, e.g. background runs. Also, correct improper inputs, e.g., chemical formula.
We can refer to the json file attached below (that we are finally going to prepare) for reference about what proper input should be.
Clicking on the
Launch Reductionbutton, we need to tell the program to prepare the input json file, as attached below,
For implementation, we need to first figure out where the
Launch Reductionbutton is defined. Then to figure out the unique label for the button which will be used by the internal codes to recognize the button. Then to figure out what (i.e. a function, a method, or whatever) is linked to the
Launch Reductionbutton, i.e., we want to know what the internal code is going to execute when the
Launch Reductionbutton is clicked.
In terms of implementation, the json file preparation should be packaged up and implemented as a single function. For example, if the json file preparation function is called
json_input_prep, when the
Launch Reductionbutton is clicked,
json_input_prepwill be called.
The updated version of example json file (with all the redundant entries removed, see item-3 above) should be in a one-to-one mapping with the table view in ADDIE.
Cachedirectory specification can be found by going to