Giter Club home page Giter Club logo

tvb-pack's Introduction

tvb-pack

This is a super repo that brings together several Git repos of TVB, intended to make it easier to get started with TVB.

Usage

Set up

There are two usage scenarios: 1) use only the official repos for TVB 2) use your own forks of those repos.

In the first case, you should fork this repo and clone it, e.g. (replace user by your GitHub username):

git clone [email protected]:user/tvb-pack tvb
cd tvb
git submodule init
git submodule update

Be patient, in some cases the repos are quite large.

In the second case, you'll need to additionally, for each repo where you have your own fork, modify the .gitmodules file correctly just after cloning tvb-pack and before performing the submodule commands in the listing above.

For each submodule, if you plan to make changes, make sure to checkout the master or trunk branch first.

In case you have your own forks of each of the submodules, running

scripts/update-origins.sh username

will handle updating .gitmodules correctly.

If the subsequent git submodule update produces errors like

fatal: reference is not a tree: 03dc58f782c7ac4fe65cecbb9d459e95d8efff2c
Unable to checkout '03dc58f782c7ac4fe65cecbb9d459e95d8efff2c' in submodule path 'matlab'

then you'll need to update your forks from upstream and then re-run git submodule update.

Additionally, if you wish to have access to the upstream repo, i.e. (the-virtual-brain/tvb-*) you'll need to add this explicitly in the submodule. (See here if this doesn't make sense)

Lastly, if you merge from upstream/tvb-pack, you may have to update .gitsubmodules to reflect your forks. We'll setup a script to make this easier.

Virtual environments

Create a TVB-ready virtual environment with all the necessary packages with

scripts/mkenv.sh my_env_path

Then, in order to activate it and place each of the submodule's contents in the Python path

source scripts/env.sh my_env_path

The submodule workflow

When you modify files tracked by the tvb-pack repo, use Git as per usual. If you make changes to a submodule, you'll need to cd into the submodule, Git your changes with respect to the submodule's repository, cd up to the tvb-pack directory and update tvb-pack's version of the submodule.

More details can be found at the Git SCM book's description of Git submodules.

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.