Coder Social home page Coder Social logo

researchmath's Introduction

File Structure

The file structure of the project is separated as the structure below:

ResearchMath
├── code
├── docs
├── tools
├── results
└── README.md

Where the main folders are set as:

  • build/
  • code/
  • docs/
  • results/
  • tools/

code/

This is where all of the codes are stored. They are separated different subprojects. They are thought to be linked to the other folders (i.e. results/, docs/)

For Python scripts, in order to check and see if their respective folders exist and to create a directory if it doesn't exist:

import os                                   # Import os library
path = os.getcwd()                          # Get the current path (e.g. EyeTracking/code/AA)
parent_path = os.path.dirname(path)         # Get the parent path (e.g. EyeTracking/code)
folder_name = os.path.basename(path)        # Get the folder name (e.g. AA)
access_rights = 0o755                       # Access rights to 755 (i.e. -rwxr-xr-x | default is 777)
results_dir = '../../results/'+folder_name  # Set a destination (e.g. '../../results/AA')

if not os.path.isdir(results_dir):          # If the directory doesn't exist
    os.mkdir(results_dir,access_rights)     #   Create the directory

docs/

This is where the documentation files for some of the subprojects will be

##results/ This is where all of the results are stored. The folders in this directory are equivalent to the subfolders in code/, which is where the source code is located, and all of their results are stored in their respective folders in results/

tools/

This is where the toolboxes will be located, such as NicksToolbox.py. In order to import Python files from this folder, one may include

import sys; sys.path.insert(0,'../../tools/')
import NicksToolbox as NS

Subprojects

researchmath's People

Contributors

nicolasshu avatar

Watchers

 avatar

Forkers

madcid

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.