##// END OF EJS Templates
update jroplot_base.py
update jroplot_base.py

File last commit:

r1646:466fe5f26005
r1792:800f91ef3d84 isr
Show More
setup.py
300 lines | 11.4 KiB | text/x-python | PythonLexer
Juan C. Espinoza
Add license, update setup and changelog
r1329 # Copyright (c) 2012-2020 Jicamarca Radio Observatory
# All rights reserved.
#
# Distributed under the terms of the BSD 3-clause license.
"""schainpy is an open source library to read, write and process radar data
Miguel Valdez
Merge with branch schain_julia_drifts from rev. 803 to 995....
r568
Juan C. Espinoza
Add license, update setup and changelog
r1329 Signal Chain is a radar data processing library wich includes modules to read,
and write different files formats, besides modules to process and visualize the
data.
"""
Miguel Valdez
Merge with branch schain_julia_drifts from rev. 803 to 995....
r568
José Chávez
pyqt4 verification
r1102 import os
setup valid for gfortran<10
r1646 import re
Miguel Valdez
setup.py is using setuptools since now
r656 from setuptools import setup, Extension
José Chávez
setup actualizado para no necesitar numpy previamente
r1026 from setuptools.command.build_ext import build_ext as _build_ext
Juan C. Espinoza
Update setup and README
r1000 from schainpy import __version__
José Chávez
templates y setup actualizados
r1078
Juan C. Espinoza
Add license, update setup and changelog
r1329 DOCLINES = __doc__.split("\n")
setup valid for gfortran<10
r1646 gfor = os.popen("gfortran --version").read()
match = re.search(r'\d+',gfor)
gfor_ver = int(match.group())
José Chávez
setup actualizado para no necesitar numpy previamente
r1026 class build_ext(_build_ext):
def finalize_options(self):
_build_ext.finalize_options(self)
# Prevent numpy from thinking it is still in its setup process:
__builtins__.__NUMPY_SETUP__ = False
import numpy
self.include_dirs.append(numpy.get_include())
Juan C. Espinoza
Update noise C extension to properly work with python 3
r1286 setup(
name = "schainpy",
version = __version__,
Juan C. Espinoza
Add license, update setup and changelog
r1329 description = DOCLINES[0],
long_description = "\n".join(DOCLINES[2:]),
HDFWriter create metadata if not given, update setup files
r1339 url = "https://github.com/JRO-Peru/schainpy",
Juan C. Espinoza
Add license, update setup and changelog
r1329 author = "Jicamarca Radio Observatory",
HDFWriter create metadata if not given, update setup files
r1339 author_email = "jro-developers@jro.igp.gob.pe",
Juan C. Espinoza
Add license, update setup and changelog
r1329 license="BSD-3-Clause",
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
Add python 3.8 compatibility with macOs
r1342 "Programming Language :: Python :: 3.8",
Juan C. Espinoza
Add license, update setup and changelog
r1329 "Topic :: Scientific/Engineering",
],
Juan C. Espinoza
Update noise C extension to properly work with python 3
r1286 packages = {
'schainpy',
'schainpy.model',
'schainpy.model.data',
'schainpy.model.graphics',
'schainpy.model.io',
'schainpy.model.proc',
'schainpy.model.utils',
'schainpy.utils',
'schainpy.gui',
'schainpy.cli',
},
package_data = {'': ['schain.conf.template'],
'schainpy.files': ['*.oga']
},
include_package_data = False,
scripts = ['schainpy/gui/schainGUI'],
entry_points = {
'console_scripts': [
'schain = schainpy.cli.cli:main',
],
},
cmdclass = {'build_ext': build_ext},
ext_modules=[
Extension("schainpy.model.data._noise", ["schainc/_noise.c"]),
LP Faraday update
r1542 Extension("schainpy.model.data._HS_algorithm", ["schainc/_HS_algorithm.c"]),
Juan C. Espinoza
Update noise C extension to properly work with python 3
r1286 ],
setup_requires = ["numpy"],
install_requires = [
"scipy",
"h5py",
"matplotlib",
"pyzmq",
"fuzzywuzzy",
"click",
],
Juan C. Espinoza
Move schaincli to schainpy.cli
r1113 )
Fortran Files addded
r1568
bfield2 supports general path to call bfmodel
r1573 main_path = os.getcwd()
add Ffiles 2
r1602 child_path = '/schainf/Ffiles/bfmodel/'
setup.py update
r1615 child_path_r = '/schainf/Ffiles/jlib26feb2001'
bfield2 supports general path to call bfmodel
r1573 #print("main_path: ", main_path)
my_str = ' '+"ppath = "+"\""+main_path+"\"\n"
my_str_2 = ' '+"cpath = "+"\""+child_path+"\""
setup.py update
r1615 my_str_2_r = ' '+"cpath = "+"\""+child_path_r+"\""
bfield2 supports general path to call bfmodel
r1573
#'''
add Ffiles 2
r1602 with open('./schainf/Ffiles/get_path_1.f', 'r') as path1: data1 = path1.read()
with open('./schainf/Ffiles/get_path_2.f', 'r') as path2: data2 = path2.read()
with open('./schainf/Ffiles/get_path.f', 'w') as final: final.write(data1+my_str+my_str_2+data2)
setup.py update
r1615
with open('./schainf/Ffiles/get_path_1_reader.f', 'r') as p1: data1_r = p1.read()
with open('./schainf/Ffiles/get_path_2_reader.f', 'r') as p2: data2_r = p2.read()
with open('./schainf/Ffiles/get_path_reader.f', 'w') as final_r: final_r.write(data1_r+my_str+my_str_2_r+data2_r)
bfield2 supports general path to call bfmodel
r1573 #'''
Fortran Files addded
r1568 from numpy.distutils.core import Extension, setup
setup valid for gfortran<10
r1646 if gfor_ver >= 10:
extra_f77 = "-fallow-argument-mismatch"
else:
extra_f77 = "-g"
MKFact No Hardcoded
r1569 setup(name='schainpy',
ext_modules = [
Extension("schainpy.model.proc.mkfact_short_2020_2",
sources=[
add Ffiles 2
r1602 "schainf/Ffiles/mkfact_short_2020_2.pyf",
"schainf/Ffiles/lmdif1.f",
"schainf/Ffiles/mkfact.f",
"schainf/Ffiles/r1mach.f",
"schainf/Ffiles/bfield2.f",
"schainf/Ffiles/get_path.f"],
setup valid for gfortran<10
r1646 extra_f77_compile_args=[extra_f77]),
add fitacf_guess.pyf
r1610 Extension("schainpy.model.proc.fitacf_guess",
sources=[
add fitacf_guess.f
r1612 "schainf/Ffiles/fitacf_guess.pyf",
setup valid for gfortran<10
r1646 "schainf/Ffiles/fitacf_guess.f"],
extra_f77_compile_args=[extra_f77]),
acf2 test
r1578 Extension("schainpy.model.proc.fitacf_acf2",
sources = [
add Ffiles 2
r1602 "schainf/Ffiles/fitacf_acf2.pyf",
"schainf/Ffiles/full_profile_profile.f",
"schainf/Ffiles/fitacf.f",
setup.py udpate 4
r1618 "schainf/Ffiles/get_path_reader.f",
add Ffiles 2
r1602 "schainf/Ffiles/r1mach.f",
"schainf/Ffiles/lmdif1.f",
"schainf/Ffiles/lagp.f",
"schainf/Ffiles/reader.c",
"schainf/Ffiles/cbesi.f",
"schainf/Ffiles/i1mach.f",
"schainf/Ffiles/zeta.f",
"schainf/Ffiles/qc25f.f",
"schainf/Ffiles/qwgtf.f",
"schainf/Ffiles/qcheb.f",
"schainf/Ffiles/sgtsl.f",
"schainf/Ffiles/qk15w.f",
"schainf/Ffiles/complex.c",
"schainf/Ffiles/cbinu.f",
"schainf/Ffiles/cseri.f",
"schainf/Ffiles/cwrsk.f",
"schainf/Ffiles/crati.f",
"schainf/Ffiles/casyi.f",
"schainf/Ffiles/cbuni.f",
"schainf/Ffiles/cuni2.f",
"schainf/Ffiles/gamln.f",
"schainf/Ffiles/cuchk.f",
"schainf/Ffiles/cbknu.f",
"schainf/Ffiles/cshch.f",
"schainf/Ffiles/ckscl.f",
"schainf/Ffiles/cuoik.f",
"schainf/Ffiles/cunik.f",
"schainf/Ffiles/cuni1.f",
"schainf/Ffiles/cairy.f",
"schainf/Ffiles/cmlri.f",
"schainf/Ffiles/cunhj.f",
"schainf/Ffiles/cacai.f",
"schainf/Ffiles/csisl.f",
"schainf/Ffiles/caxpy.f",
"schainf/Ffiles/cs1s2.f",
"schainf/Ffiles/scabs1.f",
"schainf/Ffiles/cdotu.f",
"schainf/Ffiles/rs.f",
"schainf/Ffiles/sppfa.f",
"schainf/Ffiles/sdot.f",
"schainf/Ffiles/tred2.f",
"schainf/Ffiles/tql2.f",
"schainf/Ffiles/sppdi.f",
"schainf/Ffiles/saxpy.f",
"schainf/Ffiles/sscal.f",
"schainf/Ffiles/pythag.f",
"schainf/Ffiles/tql1.f",
setup.py extension
r1606 "schainf/Ffiles/get_path.f",
add Ffiles 2
r1602 "schainf/Ffiles/tred1.f"],
setup valid for gfortran<10
r1646 extra_f77_compile_args=[extra_f77]),
add Ffiles 2
r1602 Extension("schainpy.model.proc.fitacf_fit_short",
sources = [
"schainf/Ffiles/fitacf_fit_short.pyf",
"schainf/Ffiles/cairy.f",
"schainf/Ffiles/casyi.f",
"schainf/Ffiles/cbesi.f",
"schainf/Ffiles/cbinu.f",
"schainf/Ffiles/cbknu.f",
setup.py correction 2
r1604 "schainf/Ffiles/cbuni.f",
add Ffiles 2
r1602 "schainf/Ffiles/ckscl.f",
setup.py correction 7
r1613 "schainf/Ffiles/crati.f",
setup.py correction 8
r1614 "schainf/Ffiles/cacai.f",
add Ffiles 2
r1602 "schainf/Ffiles/cmlri.f",
"schainf/Ffiles/cs1s2.f",
"schainf/Ffiles/cseri.f",
"schainf/Ffiles/cshch.f",
"schainf/Ffiles/cuchk.f",
"schainf/Ffiles/cunhj.f",
"schainf/Ffiles/cuni1.f",
"schainf/Ffiles/complex.c",
"schainf/Ffiles/cuni2.f",
"schainf/Ffiles/cunik.f",
"schainf/Ffiles/cuoik.f",
"schainf/Ffiles/cwrsk.f",
setup.py correction 3
r1605 "schainf/Ffiles/fitacf_fit_short.f",
add Ffiles 2
r1602 "schainf/Ffiles/gamln.f",
"schainf/Ffiles/i1mach.f",
"schainf/Ffiles/lmdif1.f",
"schainf/Ffiles/pythag.f",
"schainf/Ffiles/qc25f.f",
"schainf/Ffiles/qcheb.f",
"schainf/Ffiles/qk15w.f",
"schainf/Ffiles/qwgtf.f",
"schainf/Ffiles/r1mach.f",
setup.py correction 2
r1604 "schainf/Ffiles/reader.c",
add Ffiles 2
r1602 "schainf/Ffiles/rs.f",
"schainf/Ffiles/saxpy.f",
"schainf/Ffiles/sdot.f",
"schainf/Ffiles/sgtsl.f",
"schainf/Ffiles/sppdi.f",
"schainf/Ffiles/sppfa.f",
"schainf/Ffiles/sscal.f",
"schainf/Ffiles/tql1.f",
"schainf/Ffiles/tql2.f",
"schainf/Ffiles/tred1.f",
"schainf/Ffiles/tred2.f",
setup.py extension
r1606 "schainf/Ffiles/get_path.f",
setup.py udpate 2
r1616 "schainf/Ffiles/get_path_reader.f",
setup.py correction
r1603 "schainf/Ffiles/zeta.f"],
setup valid for gfortran<10
r1646 extra_f77_compile_args=[extra_f77]),
setup.py extension
r1606 Extension("schainpy.model.proc.full_profile_profile",
sources = [
setup.py correction 5
r1608 "schainf/Ffiles/full_profile_profile.pyf",
setup.py extension
r1606 "schainf/Ffiles/full_profile_profile.f",
setup.py udpate 5
r1619 "schainf/Ffiles/get_path_reader.f",
setup.py extension
r1606 "schainf/Ffiles/fitacf.f",
"schainf/Ffiles/r1mach.f",
"schainf/Ffiles/lmdif1.f",
"schainf/Ffiles/reader.c",
"schainf/Ffiles/cbesi.f",
add fitacf_guess.f
r1612 "schainf/Ffiles/lagp.f",
setup.py extension
r1606 "schainf/Ffiles/i1mach.f",
"schainf/Ffiles/zeta.f",
"schainf/Ffiles/qc25f.f",
"schainf/Ffiles/qwgtf.f",
"schainf/Ffiles/qcheb.f",
"schainf/Ffiles/sgtsl.f",
"schainf/Ffiles/qk15w.f",
"schainf/Ffiles/cbinu.f",
"schainf/Ffiles/complex.c",
"schainf/Ffiles/cseri.f",
"schainf/Ffiles/cwrsk.f",
"schainf/Ffiles/crati.f",
"schainf/Ffiles/casyi.f",
"schainf/Ffiles/cbuni.f",
"schainf/Ffiles/cuni2.f",
"schainf/Ffiles/gamln.f",
"schainf/Ffiles/cuchk.f",
"schainf/Ffiles/cbknu.f",
"schainf/Ffiles/cshch.f",
"schainf/Ffiles/ckscl.f",
"schainf/Ffiles/cuoik.f",
"schainf/Ffiles/cunik.f",
"schainf/Ffiles/cuni1.f",
"schainf/Ffiles/cairy.f",
"schainf/Ffiles/cmlri.f",
"schainf/Ffiles/cunhj.f",
"schainf/Ffiles/cacai.f",
"schainf/Ffiles/csisl.f",
"schainf/Ffiles/caxpy.f",
"schainf/Ffiles/cs1s2.f",
"schainf/Ffiles/scabs1.f",
"schainf/Ffiles/cdotu.f",
"schainf/Ffiles/rs.f",
"schainf/Ffiles/sppfa.f",
"schainf/Ffiles/sdot.f",
"schainf/Ffiles/tred2.f",
"schainf/Ffiles/tql2.f",
"schainf/Ffiles/sppdi.f",
"schainf/Ffiles/saxpy.f",
"schainf/Ffiles/sscal.f",
"schainf/Ffiles/pythag.f",
"schainf/Ffiles/tql1.f",
"schainf/Ffiles/get_path.f",
"schainf/Ffiles/tred1.f"],
setup valid for gfortran<10
r1646 extra_f77_compile_args=[extra_f77])
MKFact No Hardcoded
r1569 ]
)