question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New feature: Index folder from outside

See original GitHub issue

Gauging whether it would be interesting to allow softlinks to top-level subfolders outside the current BIDS root, at BIDSLayout instantiation.

In other words: it would be very useful (use case: templateflow/python-client#12) to implement internally the behavior of symlinking a (consistent) sub-XXX folder from outside from the top BIDS root. Especially for filesystems not supporting symlinks.

WDTY?

For the particular use case I linked, this feature would make it very easy to integrate new templates (tpl-XXXX) which are like subjects of BIDS to the base installation.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
tyarkonicommented, Sep 9, 2019

Any objection to closing this, @oesteban? Unless you have other thoughts, I don’t think this is viable without a lot of work, and I think it presents problems from a spec standpoint too as it encourages users to have broken partial BIDS structures (e.g., a single subject directory with no parent dataset_description.json, etc.).

0reactions
tyarkonicommented, Jul 19, 2019

I guess I’m not really sold… I can see the utility for the use case you describe, but it introduces some complexities that would be a bit of a pain to handle. For one thing, I see no particular reason to only allow subject directs to be indexed this way… what about other partial structures? But doing that would then require us to internally parse everything in index_external to figure out where it fits… and that could be ambiguous.

As you say, the current indexing approach should in principle respect symlinks (we may want to check that it does—I don’t think we have tests for it, and I wouldn’t be surprised if we currently use realpath in ways that might break things). Assuming that’s true, why not just have the user create those themselves?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Change Advanced Indexing Options in Windows
Click Start and in the search box type in Search · From the menu click on Indexing Options · To add a new...
Read more >
Configuration and Settings - Windows Search Platform
The indexing service contains a master list of what we call “scopes” that identify the file system paths the service will crawl, which...
Read more >
5 Steps To Fix Windows Indexing Problems - Redmondmag.com
If you are having trouble locating data on a network drive, first make sure that the network location is being indexed. To do...
Read more >
Index project items—ArcGIS Pro | Documentation
Folders, databases, toolboxes, and other items stored outside the project file are indexed when you add connections to them. Only items that can...
Read more >
Indexing | IntelliJ IDEA Documentation - JetBrains
Indexing in IntelliJ IDEA is responsible for the core features of the IDE: code completion, inspections, finding usages, navigation, syntax ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found