rilma / pyiri2016 Goto Github PK
View Code? Open in Web Editor NEWPython wrapper of the International Reference Ionosphere 2016
License: MIT License
Python wrapper of the International Reference Ionosphere 2016
License: MIT License
Implement make build
in Python for upcoming API method. numpy.f2py
may help.
Ubuntu 17.04, python 3, anaconda
Collecting timeutil (from pyiri2016)
Could not find a version that satisfies the requirement timeutil (from pyiri2016) (from versions: )
No matching distribution found for timeutil (from pyiri2016)
The altitude profile function in the 'iri2016.profile' module accepts only an altitude range tuple which only works for uniformly spaced altitudes. How can we calculate parameters at altitudes separated non-uniformly?
For IRI2016, the links are as follows:
This is the current default behavior in Github
. Let's do it!
This issue aims for releasing a CHANGELOG
according to Keep a Changelog
.
I keep getting the following error trying to install this.
(base) PS C:\Users\ahmad> pip install pyiri2016
Collecting pyiri2016
ERROR: Could not find a version that satisfies the requirement pyiri2016 (from versions: none)
ERROR: No matching distribution found for pyiri2016
(base) PS C:\Users\ahmad>
can someone please help , My Python is version 3.7 and I have the fortran compiler
Dear Rilma,
I got the following import error after running one of your examples.
ImportError Traceback (most recent call last)
in
1 #!/usr/bin/env python
----> 2 from pyiri2016 import IRI2016,IRI2016Profile
3 from numpy import arange
4 from matplotlib.pyplot import figure, legend, show
5 import seaborn
~\Anaconda3\lib\site-packages\pyiri2016-1.2.2-py3.7-win-amd64.egg\pyiri2016_init_.py in
5 from pathlib2 import Path
6 #%%
----> 7 from .iriweb import iriwebg
8 from timeutil import TimeUtilities
9 from numpy import arange, nan, ones, squeeze, where
ImportError: DLL load failed: The specified module could not be found.
Hello!
PyIRI2016 installed successfully. I run your scripts and an error appears:
ImportError Traceback (most recent call last)
in ()
----> 1 from pyiri2016 import IRI2016Profile
2 from numpy import arange
3 from matplotlib.pyplot import figure, legend, show
4 import seaborn
5
~\pyIRI20161\pyiri2016_init_.py in ()
5 from pathlib2 import Path
6 #%%
----> 7 from .iriweb import iriwebg
8 from timeutil import TimeUtilities
9 from numpy import arange, nan, ones, squeeze, where
ImportError: DLL load failed: module was not found
Dear @rilma,
please note that the version installed via pip install pyiri2016
appears to reference a different structure for timeutil.
For example,
from pyiri2016 import IRI2016Profile
gives traceback
~/anaconda3/envs/kerastf/lib/python3.6/site-packages/pyiri2016/__init__.py in <module>()
6 #%%
7 from .iriweb import iriwebg
----> 8 from timeutil.timeutil import TimeUtilities
9 from numpy import arange, nan, ones, squeeze, where
10
your TimeUtilities is defined in the init.py of timeutils so the proper call should be from timeutil import TimeUtilities and indeed your current init.py of this package does call this. I suppose pip was not updated to the current version of code.
This issue aims for planning a comprehensive refactoring of pyIRI2016
. Community is welcome to be part of the discussion. Topics to be considered are:
Github Actions
as CI/CD execution environmentDocker Hub/Cloud
, Github Packages
)Ansible
could come in to rescue us!!!poetry
) and publish to a public repository (e.g. PyPI
)pytest
CHANGELOG
MkDocs
and publication through Github Pages
Serve yourself and please share comments / ideas ...
import re
from typing import List
from bs4 import BeautifulSoup
from urllib.request import Request, urlopen
def _get_links(url: str, pattern: str=r'.') -> List[str]:
html_page = urlopen(Request(url))
soup = BeautifulSoup(html_page, "html.parser")
links = [link.get('href') for link in soup.findAll('a') if re.match(pattern, link.get('href'), re.DOTALL)]
return links
FILENAME_REGEX_PATTERN = r'[a-z0-9_]+.[a-z]+'
import os; os.system(f'ls -lah {self.temporary_directory.name}')
This issue aims for spending a time to figure it out the versions of Python
and Fortran
that can work together through f2py
, or a better / modern tool. Definitely, this is an open ended question.
When running example01.py
, I get the following error:
Traceback (most recent call last):
File "/Users/e30737/Desktop/Software/pyIRI2016/examples/example01.py", line 15, in <module>
main1()
File "/Users/e30737/Desktop/Software/pyIRI2016/examples/example01.py", line 10, in main1
IRIData, IRIDATAAdd = Obj.IRI()
File "/Users/e30737/Desktop/Software/pyIRI2016/pyiri2016/__init__.py", line 81, in IRI
hh, mm, ss = TimeUtilities().ToHMS(hrlt)
NameError: name 'TimeUtilities' is not defined
TimeUtilities is installed, but it is not being imported due to this try-except statement in __init__.py
which fails to import iriwebg.
try:
from .iriweb import iriwebg
from timeutil import TimeUtilities
except ModuleNotFoundError:
pass # TODO
When the exception is printed, it produces No module named 'pyiri2016.iriweb'
, which I think suggests that the iriweb extension is not being built correctly when pyiri2016 is installed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.