GithubHelp home page GithubHelp logo

cplex error about nirstorm HOT 5 CLOSED

nirstorm avatar nirstorm commented on July 28, 2024
cplex error

from nirstorm.

Comments (5)

Edouard2laire avatar Edouard2laire commented on July 28, 2024

Thanks for the feedback. I'll try to installl the new version on my side too. In the mean time, could you let me know that does the following commands return :

cplx = Cplex();
cplex_version = nst_strsplit(cplx.getVersion(), '.')
length(cplex_version) 
str2double(cplex_version(1))

from nirstorm.

Edouard2laire avatar Edouard2laire commented on July 28, 2024

Hi,
0d63931 should fix the issue. Please update NIRSTORM and try again :)

from nirstorm.

AlexBo924 avatar AlexBo924 commented on July 28, 2024

Hello Edouard,

Thank you for the quick reply, I ran first your script and this error came back:

Undefined function or variable 'nst_strsplit'

Then I updated NIRSTORM and run the OM (same parameter as before) and this error came up.

Capture

I was finally able to get my hands on version 12.3, however it does not run on windows 10 only windows 7 and it doesn't seem to have the matlab file needed to include in matlab for the OM to run, I still need to try though. If ever its possible to make it run on newer version such as 12.8 would be great (12.8 contain the matlab file needed for matlab).

Than you Edouard

from nirstorm.

Edouard2laire avatar Edouard2laire commented on July 28, 2024

The code should work with the new version of CPLEX (12.8).

yes, i just saw i forgot to push some changes:

line 112-113 (https://github.com/Nirstorm/nirstorm/blob/master/bst_plugin/OM/process_nst_OM.m#L112-L113)

    i_atlas_head = strcmp({sHead.Atlas.Name},optionsAtlas_head);
    i_scout_head = strcmp({sHead.Atlas(i_atlas_head).Scouts.Label}, optionsROI_head);

should be replaced by:

    i_atlas_head = strcmp({sHead.Atlas.Name},options.Atlas_head);
    i_scout_head = strcmp({sHead.Atlas(i_atlas_head).Scouts.Label}, options.ROI_head);

I will merge it next week along with other changes. but you can already make the fix locally.

However, in your case, as you are not putting constraints on the localization of the optodes on the head, you should not select "FluenceRegion" and "FluenceExclude" as a head scout but check the "Use default search space" button.
Using FluenceRegion as a region would work too but is way too computationally expensive as you would need to compute the sensitivity to the ROI for all vertex of the head when you know that the montage should be "above" the ROI. That's why when selecting default search space, you will only look for a region 4 or 5cm away from the ROI.

from nirstorm.

AlexBo924 avatar AlexBo924 commented on July 28, 2024

Thank you Edouard, indeed it works now.

You were right also for the constrain, take way less time with the default search space.

Thanks again, really appreciate it

Alex

from nirstorm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.