Skip to content

Commit 9dc68be

Browse files
Added/updated readme, code of conduct, and contributing .md files
1 parent 011974d commit 9dc68be

File tree

3 files changed

+144
-36
lines changed

3 files changed

+144
-36
lines changed

CODE_OF_CONDUCT.md

+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, gender identity and expression, level of experience,
9+
nationality, personal appearance, race, religion, or sexual identity and
10+
orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at [[email protected]]. All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at [http://contributor-covenant.org/version/1/4][version]
72+
73+
[homepage]: http://contributor-covenant.org
74+
[version]: http://contributor-covenant.org/version/1/4/[email protected]

CONTRIBUTING.md

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Contribution Guidelines
2+
3+
## Reporting issues
4+
5+
- **Search for existing issues.** Please check to see if someone else has reported the same issue.
6+
- **Share as much information as possible.** Include operating system and version, browser and version. Also, include steps to reproduce the bug.
7+
8+
## Project Setup
9+
10+
Refer to the [README](README.md).
11+
12+
## Code Style
13+
14+
### Variable Naming
15+
Not all current code follows the conventions below but these will be followed for future developments.
16+
- `lowerCamelCase` General variables
17+
- `UpperCamelCase` Functions
18+
- Maximize the use of semantic and descriptive variables names (e.g. `faceIndices` not `fcInd` or `fi`). Avoid abbreviations except in cases of industry wide usage. In some cases non-descriptive and short variable names are exceptable for instance vertices (points), faces, edges, colors and logic arrays may be denoted `V`, `F`, `E`, `C`, `L`. Furthermore, if a mathematrical symbol or letter is commonly used for some entity it may be acceptable to use short names e.g. coordinates may be referred to as `X`, `Y` and `Z` and image coordinates of indices may be referred to as `I`, `J` and `K`. In some cases the use of capital or non-capital letters refers to tensors/matrices/arrays/sets and scalars/components/subsets respectively, e.g. a multitude of scalars `c` may be contained within an array or matrix `C`, or a cell array `D` may contain individual entries referred to as `d`.
19+
20+
## Testing
21+
For the moment the DEMO_ and HELP_ files may serves as a test suite.
22+
23+
## Pull requests
24+
- Try not to pollute your pull request with unintended changes – keep them simple and small. If possible, squash your commits.
25+
- Try to share how your code has been tested before submitting a pull request.
26+
- If your PR resolves an issue, include **closes #ISSUE_NUMBER** in your commit message (or a [synonym](https://help.github.com/articles/closing-issues-via-commit-messages)).
27+
- Review
28+
- If your PR is ready for review, another contributor will be assigned to review your PR
29+
- The reviewer will accept or comment on the PR.
30+
- If needed address the comments left by the reviewer. Once you're ready to continue the review, ping the reviewer in a comment.
31+
- Once accepted your code will be merged to `master`

README.md

+39-36
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,39 @@
1-
GIBBON
2-
======
3-
4-
The Geometry and Image-Based Bioengineering add-On for MATLAB
5-
6-
See also: http://www.gibboncode.org/
7-
8-
![](http://www.gibboncode.org/wp-content/uploads/2014/05/image121.png)
9-
10-
11-
## Installation
12-
See also: http://www.gibboncode.org/installation/
13-
14-
Follow the steps below. Note: A mltbx file is no longer provided (file changed with each release and so it is not very compatible with GIT/SVN based version control).
15-
16-
1. Add the toolbox folder (e.g. for SVN the patch typically ends in `..\gibbon\trunk`) including subdirectories to the MATLAB path (see MATLAB home tab and the `Add path` button, or see MATLAB help). To permanently add GIBBON to the path save the added path definitions.
17-
2. To integrate the GIBBON help and demonstrations in MATLAB run the function `createHelpDemoDocumentation` (found in the createHelpDoc folder, after adding GIBBON to the path it can be run from the command window).
18-
3. Restart MATLAB to allow it to update help and documentation definitions.
19-
3. To access the help documentation from MATLAB click on the HELP browser then click `Supplemental Software` as shown below.
20-
![](http://www.gibboncode.org/wp-content/uploads/2014/05/helpFront1.png)
21-
This will open the following window showing the toolbox help and documentation integrated into MATLAB:
22-
![](http://www.gibboncode.org/wp-content/uploads/2014/05/helpFront2.png)
23-
24-
GIBBON is now installed and the help and documentation is integrated allong side your default MATLAB help and documentation. The help and documentation is also searchable.
25-
26-
## Setting up third party packages
27-
* **FEBio** FEBio is a finite element package. FEBio is not provided with GIBBON. Install a desired release (see: http://febio.org/) and change the path name to FEBio in the configuration file `FEBioPath.txt`found in the `config` folder. However the config path can also be ignored by always directly specifying the location in the code (see FEBio related demos).
28-
* **TetGen** TetGen is a tetrahedral meshing package. TetGen is provided with GIBBON and can be found in `...\GIBBON\lib_ext\tetGen`. No special treatment should be required to run and use TetGen. If an alternative release is required visit the [TetGen website](http://wias-berlin.de/software/tetgen/), and replace the existing files as desired.
29-
* **export_fig** export_fig is not included with GIBBON. These figure exporting MATLAB tools (used by the GIBBON 'efw' function) can be found on [GitHub](https://github.com/altmany/export_fig) or on [the MathWorks file exchange](http://www.mathworks.com/matlabcentral/fileexchange/23629-export-fig).
30-
31-
## Getting started
32-
* Study the GIBBON folder structure. For example, nottice how the `lib` folder contains all GIBBON's functions and that `lib_ext` contains "external functions" i.e. functions developed by others included with GIBBON. The `html` folder contains the help and documentation .html files which are integrated in MATLAB.
33-
* **Help and documentation** see the installation instructions on accessing the help and documentation. Through the integrated help and documentation the user can explore variations function descriptions and also demo entries. The codes that generate all the help and documention can be found in GIBBON's main folder. **The source for the help information for any function `functionName` is named `HELP_functionName`**, and **The source for demos have `DEMO_` as part of the name**. Therefore if one is interested in reproducing or starting off from codes in the help and documentation simply start typing code names starting in `HELP_` or `DEMO_` in the MATLAB command window, e.g. `HELP_ind2patch` can be used to generate the help information for the `ind2patch` function. Users can start editing the file by typing `open HELP_ind2patch` in the command window. By publishing (MATLAB publish functionality) the HELP_ or DEMO_ files .html files are created in the `html` folder. As such if users alter/contribute code in the `lib` folder and generate associated `HELP_` or `DEMO_` files new help and documentation is added. For new help and documentation to become known and visible to MATLAB run the `createHelpDemoDocumentation` function and restart MATLAB.
34-
35-
## License
36-
https://opensource.org/licenses/BSD-3-Clause
1+
2+
![](http://www.gibboncode.org/wp-content/uploads/2014/05/header1.png)
3+
4+
## Project summary
5+
GIBBON (The Geometry and Image-Based Bioengineering add-On) is an open-source MATLAB toolbox by [Kevin M. Moerman](kevimoerman.org) and includes an array of image and geometry visualization and processing tools and is interfaced with free open source software such as [TetGen](http://wias-berlin.de/software/tetgen/), for robust tetrahedral meshing, and [FEBio](http://febio.org/) for finite element analysis. The combination provides a highly flexible image-based modelling environment and enables advanced inverse finite element analysis.
6+
7+
![](http://www.gibboncode.org/wp-content/uploads/2014/05/Picture1.png)
8+
9+
## Installation
10+
See also: http://www.gibboncode.org/installation/
11+
12+
Follow the steps below. Note: A mltbx file is no longer provided (file changed with each release and so it is not very compatible with GIT/SVN based version control).
13+
14+
1. Add the toolbox folder (e.g. for SVN the patch typically ends in `..\gibbon\trunk`) including subdirectories to the MATLAB path (see MATLAB home tab and the `Add path` button, or see MATLAB help). To permanently add GIBBON to the path save the added path definitions.
15+
2. To integrate the GIBBON help and demonstrations in MATLAB run the function `createHelpDemoDocumentation` (found in the createHelpDoc folder, after adding GIBBON to the path it can be run from the command window).
16+
3. Restart MATLAB to allow it to update help and documentation definitions.
17+
3. To access the help documentation from MATLAB click on the HELP browser then click `Supplemental Software` as shown below.
18+
![](http://www.gibboncode.org/wp-content/uploads/2014/05/helpFront1.png)
19+
This will open the following window showing the toolbox help and documentation integrated into MATLAB:
20+
![](http://www.gibboncode.org/wp-content/uploads/2014/05/helpFront2.png)
21+
22+
GIBBON is now installed and the help and documentation is integrated allong side your default MATLAB help and documentation. The help and documentation is also searchable.
23+
24+
## Setting up third party packages
25+
* **FEBio** FEBio is a finite element package. FEBio is not provided with GIBBON. Install a desired release (see: http://febio.org/) and change the path name to FEBio in the configuration file `FEBioPath.txt`found in the `config` folder. However the config path can also be ignored by always directly specifying the location in the code (see FEBio related demos).
26+
* **TetGen** TetGen is a tetrahedral meshing package. TetGen is provided with GIBBON and can be found in `...\GIBBON\lib_ext\tetGen`. No special treatment should be required to run and use TetGen. If an alternative release is required visit the [TetGen website](http://wias-berlin.de/software/tetgen/), and replace the existing files as desired.
27+
* **export_fig** export_fig is not included with GIBBON. These figure exporting MATLAB tools (used by the GIBBON 'efw' function) can be found on [GitHub](https://github.com/altmany/export_fig) or on [the MathWorks file exchange](http://www.mathworks.com/matlabcentral/fileexchange/23629-export-fig).
28+
29+
## Getting started
30+
* Study the GIBBON folder structure. For example, nottice how the `lib` folder contains all GIBBON's functions and that `lib_ext` contains "external functions" i.e. functions developed by others included with GIBBON. The `html` folder contains the help and documentation .html files which are integrated in MATLAB.
31+
* **Help and documentation** see the installation instructions on accessing the help and documentation. Through the integrated help and documentation the user can explore variations function descriptions and also demo entries. The codes that generate all the help and documention can be found in GIBBON's main folder. **The source for the help information for any function `functionName` is named `HELP_functionName`**, and **The source for demos have `DEMO_` as part of the name**. Therefore if one is interested in reproducing or starting off from codes in the help and documentation simply start typing code names starting in `HELP_` or `DEMO_` in the MATLAB command window, e.g. `HELP_ind2patch` can be used to generate the help information for the `ind2patch` function. Users can start editing the file by typing `open HELP_ind2patch` in the command window. By publishing (MATLAB publish functionality) the HELP_ or DEMO_ files .html files are created in the `html` folder. As such if users alter/contribute code in the `lib` folder and generate associated `HELP_` or `DEMO_` files new help and documentation is added. For new help and documentation to become known and visible to MATLAB run the `createHelpDemoDocumentation` function and restart MATLAB.
32+
33+
## [License (BSD-3-Clause)](https://github.com/Kevin-Mattheus-Moerman/GIBBON/blob/master/LICENSE)
34+
35+
##Contributing
36+
Coming soon
37+
38+
##Roadmap
39+
Coming soon

0 commit comments

Comments
 (0)