Giter Club home page Giter Club logo

Comments (12)

marcelzwiers avatar marcelzwiers commented on September 27, 2024 1

B0FieldIdentifier | RECOMMENDED | string or array of strings

Aha, I didn't know this, I'll see what I can do

from bidscoin.

marcelzwiers avatar marcelzwiers commented on September 27, 2024 1

Please reopen if things are not working for you

from bidscoin.

marcelzwiers avatar marcelzwiers commented on September 27, 2024

I'm not sure if I understand the problem, as the BIDS specification defines just a single tag, not a list, right? So

B0FieldSource: 
  - tag1
  - tag2
  - tag3

should be converted to

B0FieldSource: tag1tag2tag3

???

from bidscoin.

mateuszpawlik avatar mateuszpawlik commented on September 27, 2024

BIDS specification says that it's a string or an array of strings. I don't really know how tools should use it, but with IntendedFor we can say that we use three fieldmaps for one functional image.

from bidscoin.

marcelzwiers avatar marcelzwiers commented on September 27, 2024

I guess you can pass a list like this?

B0FieldSource: [magnetude1, magnetude2, phasediff]

from bidscoin.

mateuszpawlik avatar mateuszpawlik commented on September 27, 2024

Should be fine but it shouldn't matter both forms are correct syntax.

from bidscoin.

marcelzwiers avatar marcelzwiers commented on September 27, 2024

Yes I know, but I mean that's how you can pass it in the bidseditor?

from bidscoin.

mateuszpawlik avatar mateuszpawlik commented on September 27, 2024

Ah, I'm not using the BIDS editor 🙈 But if I did, I'd be fine with the compact syntax.

from bidscoin.

marcelzwiers avatar marcelzwiers commented on September 27, 2024

I just tested it and, except for the <<session>> value, it worked just fine? In the template I did:

    meta: &fmap_meta
      B0FieldIdentifier: [tag1, <<session>>tag2]

And then I got this in the json sidecar file:

    "B0FieldIdentifier": [
        "tag1",
        "<<session>>tag2"
    ]

from bidscoin.

mateuszpawlik avatar mateuszpawlik commented on September 27, 2024

Looks fine to me. I can try to test more next week (with the <<session>> tag) as we're planning to upgrade to BIDScoin 4.3.0 and test some mappings.

from bidscoin.

marcelzwiers avatar marcelzwiers commented on September 27, 2024

Actually, entering [tag1, <<session>>tag2] in the bidseditor is interpreted as a string, so that doesn't work (but then <<session>> does), giving for sub-001_ses-01_acq-fieldmap2p4iso_magnitude1.json:

    "B0FieldIdentifier": "[tag1, 01tag2]"

from bidscoin.

marcelzwiers avatar marcelzwiers commented on September 27, 2024

NB: passing ["tag1", '<<session>>tag2'] in the bidseditor correctly (besides <<session>>) gives:

    "B0FieldIdentifier": [
        "tag1",
        "<<session>>tag2"
    ]

from bidscoin.

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.