Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] - osp_fitInitialise fails with LCModel .BASIS data #730

Closed
alexcraven opened this issue Apr 24, 2024 · 2 comments
Closed

[BUG] - osp_fitInitialise fails with LCModel .BASIS data #730

alexcraven opened this issue Apr 24, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@alexcraven
Copy link
Contributor

alexcraven commented Apr 24, 2024

Describe the bug

osp_fitInitialise variously mixes char and cell array data types for MRSCont.opts.fit.basisSetFile, causing it to fail when using a basis set is supplied in .BASIS format:

Brace indexing is not supported for variables of this type.

Error in osp_fitInitialise (line 345)
            basisSetFile{1} = MRSCont.opts.fit.basisSetFile{1};

To Reproduce
Steps to reproduce the behavior:

  1. Create a new job for unedited sequence, LCModel method, and basis set in .BASIS format
  2. Proceed to fit
  3. Disappointment ensues.

Possible workaround

Convert MRSCont.opts.fit.basisSetFile to a cell array around line 340 of osp_fitInitialise

                if (~isa(MRSCont.opts.fit.basisSetFile,'cell'))
                    MRSCont.opts.fit.basisSetFile={MRSCont.opts.fit.basisSetFile}
                end 

The situation probably gets more complicated if using LCM BASIS-format basis sets for edited data (where multiple basis sets would be expected).

@alexcraven alexcraven added the bug Something isn't working label Apr 24, 2024
HJZollner added a commit that referenced this issue Apr 24, 2024
Partial fix #730: mixed types for basisSetFile
@HJZollner
Copy link
Collaborator

Quick question. How did you create the jobfile? From the GUI?

For edited data multiple basis set files are defined as cell anyway so that should work.

@alexcraven
Copy link
Contributor Author

Yes, from the GUI.

I just tried the same procedure but with MEGA-edited data (so, interactive jobfile generator, sequence type MEGA)... "basis set file" only lets me add one BASIS file at a time, but "basis set folder" behaves correctly (I guess this is later expanded to a cell)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants