Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bladex/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""
BladeX init
"""
__all__ = ['profilebase', 'profiles', 'rbf']
__all__ = ['profilebase', 'profiles', 'ndinterpolator']

from .profilebase import ProfileBase
from .profiles import CustomProfile, NacaProfile
from .utils.rbf import RBF
from .ndinterpolator import RBF
File renamed without changes.
2 changes: 1 addition & 1 deletion bladex/profilebase.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import numpy as np
import matplotlib.pyplot as plt
from .utils.rbf import reconstruct_f
from .ndinterpolator import reconstruct_f


class ProfileBase(object):
Expand Down
Empty file removed bladex/utils/__init__.py
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
bladex.profilebase.ProfileBase._update_edges
============================================

.. currentmodule:: bladex.profilebase

.. automethod:: ProfileBase._update_edges
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
bladex.profilebase.ProfileBase.chord_length
===========================================

.. currentmodule:: bladex.profilebase

.. autoattribute:: ProfileBase.chord_length
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
bladex.profilebase.ProfileBase.flip
===================================

.. currentmodule:: bladex.profilebase

.. automethod:: ProfileBase.flip
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
bladex.profilebase.ProfileBase.interpolate_coordinates
======================================================

.. currentmodule:: bladex.profilebase

.. automethod:: ProfileBase.interpolate_coordinates
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
bladex.profilebase.ProfileBase.max_camber
=========================================

.. currentmodule:: bladex.profilebase

.. automethod:: ProfileBase.max_camber
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
bladex.profilebase.ProfileBase.max_thickness
============================================

.. currentmodule:: bladex.profilebase

.. automethod:: ProfileBase.max_thickness
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
bladex.profilebase.ProfileBase.plot
===================================

.. currentmodule:: bladex.profilebase

.. automethod:: ProfileBase.plot
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
bladex.profilebase.ProfileBase.reference_point
==============================================

.. currentmodule:: bladex.profilebase

.. autoattribute:: ProfileBase.reference_point
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
bladex.profilebase.ProfileBase.rotate
=====================================

.. currentmodule:: bladex.profilebase

.. automethod:: ProfileBase.rotate
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
bladex.profilebase.ProfileBase.scale
====================================

.. currentmodule:: bladex.profilebase

.. automethod:: ProfileBase.scale
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
bladex.profilebase.ProfileBase.translate
========================================

.. currentmodule:: bladex.profilebase

.. automethod:: ProfileBase.translate
10 changes: 10 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
'sphinx.ext.intersphinx',
'sphinx.ext.todo',
'sphinx.ext.coverage',
'sphinx.ext.viewcode',
'sphinx.ext.imgmath',
'sphinx.ext.ifconfig',
]
Expand Down Expand Up @@ -129,6 +130,15 @@
todo_include_todos = True


# -- Options for viewcode extension ---------------------------------------

# Follow alias objects that are imported from another module such as functions,
# classes and attributes. As side effects, this option ... ???
# If false, ... ???.
# The default is True.
viewcode_import = True


# -- Options for HTML output ----------------------------------------------

# The theme to use for HTML and HTML Help pages. See the documentation for
Expand Down
4 changes: 4 additions & 0 deletions tests/test_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ def test_import_blade_3(self):
import bladex as bx
profile = bx.profiles.NacaProfile('0012')

def test_import_blade_4(self):
import bladex as bx
inter = bx.ndinterpolator.RBF(1.2, 'gaussian_spline')

def test_modules_name(self):
# it checks that __all__ includes all the .py files in bladex folder
import bladex
Expand Down