Skip to content

jetheurer/code_sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code Challenge

This is a solution to the Code Challenge

  1. Write a function that takes a mesh array (described below) and calculates the mesh's volume.
  2. Write a unit test for the volume function in #1.
  3. Write the title and text for a pull request you would open to merge this code.
  4. Appropriately document the functions, modules, etc. you write as part of this code challenge.
  5. Develop this code in a git repository.

Installation

The setup script creates a virtualenv and installs the necessary dependencies.

bash setup.sh

Example Usage

$ source venv/bin/activate
$ python volume/volume.py -f tests/examples/shell.npy

Pull Request

From feature/volume_mesh to develop

Title: FEATURE: volume of polygon from npy file

  • This is a feature to determine the volume of a polygon from a list of faces.
  • Unit test uses 3 example .npy files.

Testing

nosetests -c setup.cfg

#Linting

flake8 volume/ tests/

Documentation

bash docs.sh

About

Code Challenge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published