Coder Social home page Coder Social logo

coastlib's Introduction

Build Status Coverage Status Documentation Status Requirements Status PyPI version

coastlib

coastlib is a Python library dedicated to solving problems related to the discipline of coastal engineering, such as enivronmental data collection (NOAA CO-OPS and NCEI, and WAVEWATCH III, etc.), extreme value analysis (EVA), data analysis and visualization, wave theories, and many more.

Version: 1.0.0

License: GNU General Public License v3.0

E-Mail: [email protected]

Documentation: https://coastlib.readthedocs.io/

Installation

pip install coastlib

Jupyter Notebooks

Examples

FentonWave_img

rose_plot_1_img rose_plot_2_img

coastlib's People

Contributors

georgebv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

coastlib's Issues

FentonWave class KeyError when initialized on Jupyter

Following the example from https://coastlib.readthedocs.io/en/latest/waves.html

from coastlib.waves import FentonWave
wave1 = FentonWave(wave_height=3, wave_period=6, depth=20)

produces the error as below:

KeyError                                  Traceback (most recent call last)
<ipython-input-5-df0194d00cf9> in <module>
----> 1 wave1 = FentonWave(wave_height=3, wave_period=6, depth=20)

~/anaconda3_501/lib/python3.6/site-packages/coastlib/waves/fenton.py in __init__(self, wave_height, depth, wave_period, wave_length, timeout, **kwargs)
    138 
    139         self.__killed = False
--> 140         self.__run(timeout)
    141 
    142     def __repr__(self):

~/anaconda3_501/lib/python3.6/site-packages/coastlib/waves/fenton.py in __run(self, timeout)
    159         tmp_symbols = list('0123456789abcdefgABCDEFG')
    160         tmp_file_name = f'fenton_temp_{"".join(np.random.choice(tmp_symbols, size=10))}'
--> 161         path = os.path.join(os.environ['TEMP'], tmp_file_name)
    162         if os.path.exists(path):
    163             shutil.rmtree(path)

~/anaconda3_501/lib/python3.6/os.py in __getitem__(self, key)
    667         except KeyError:
    668             # raise KeyError with the original key value
--> 669             raise KeyError(key) from None
    670         return self.decodevalue(value)
    671 

KeyError: 'TEMP'

This was tested on a Jupyter notebook running Python Kernel 3.6 on azure notebooks.

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.