Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • aqdl/denoising
1 result
Show changes
Commits on Source (4)
......@@ -12,6 +12,28 @@ modifications to the source of the `pywavelet` library. To do so, locate the ins
`dt_out = dt_cplx if wavelet.complex_cwt else dt` by `dt_out = dt` and comment
`int_psi = np.conj(int_psi) if wavelet.complex_cwt else int_psi`.
Clone the develop branch
```cfgrlanguage
git clone -b develop https://git.nilu.no/aqdl/denoising
```
Create a wheel
```cfgrlanguage
cd denoising && python setup.py bdist_wheel
```
Install the package
```cfgrlanguage
pip install dist/denoising-1.0.0-py3-none-any.whl
```
## Usage:
Use the example in [__main__.py](denoising/__main__.py) to implement your pipeline.
[//]: # ()
[//]: # ()
[//]: # (## Getting started)
......
import os
# import shutil
from setuptools import setup, Command
from pathlib import Path
class CleanCommand(Command):
"""Custom clean command to tidy up the project root."""
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
os.system('rm -vrf ./build ./dist ./*.pyc ./*.tgz ./*.egg-info')
deps_dir = Path.cwd().joinpath('deps')
setup(
name='denoising',
author='Islen Vallejo-Henao',
author_email='iv@nilu.no',
description='Automatized WRF simulations',
version='1.0.0',
url='https://git.nilu.no/wrf/denosing',
license='',
packages=['denoising'],
python_requires='>=3.7',
install_requires=['numpy', 'pandas', 'pywavelets==1.4.1', 'scipy'],
include_package_data=True,
# Include any .json and .yml in the package !!!
package_data={'': ['*.json', '*.yml', '*.yaml']},
cmdclass={'clean': CleanCommand,},
zip_safe=False
)