Skip to content

Load project from ort file #170

@StephenNneji

Description

@StephenNneji

The user should be able to load project from ort files. This would enable a workflow where

  • user gets a (multicontrast) .ort file containing an initial model from Mantid
  • user can 'load' that .ort file directly into RasCAL-2

A proof of concept for converting ort to MATLAB RAT Project is available here. The author described the workflow as follows (I have not tested yet)

  • get the ORSO model language description into the .ort file and concatenate multiple contrasts if required (this is done separately, and will hopefully be done by Mantid)
  • load ORSO file using the orsopy methods
  • parse model struct to detect 'bilayer' because it is not (yet) part of orsopy; if found keep for later and pass back remaining struct (now orsopy valid)
  • resolve layers using orsopy and generate RAT-like layer parameters
  • process the bilayer by using just lipid names, get parameters for 'Arwel' stype APM model from molgroups (for better or worse)
  • put it all together:
    • generate matlab script to define paramters, backgrounds, scalefactors etc
    • generate custom file - this is always done even if the stack just consists of layers
  • output the two MATLAB files to a directory with the data (.ort file)
  • now we can run the MATLAB script file, creating a 'problem', plotting and generating the required .json files for a project
  • now we can load the resulting project into RasCAL-2

Metadata

Metadata

Assignees

No one assigned

    Labels

    IceboxIssue cannot be addressed now

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions