Giter VIP home page Giter VIP logo

pyiri2016's People

Contributors

rilma avatar scivision avatar trellixvulnteam avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

pyiri2016's Issues

pip install has timeutil.timeutil import error

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.

Asynchronous retrieval of source code and dependencies

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}')

ImportError: DLL load failed: The specified module could not be found

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.

Timeutil requirement in Ubuntu 17.04

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)

Can't import iriweb module

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.

Installation issue

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

altitude profile

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?

ImportError Traceback

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

Plan refactoring of pyIRI2016

This issue aims for planning a comprehensive refactoring of pyIRI2016. Community is welcome to be part of the discussion. Topics to be considered are:

  1. Improvements / refactoring of CI/CD pipelines
    1.1. Moving to Github Actions as CI/CD execution environment
    1.2. Build Docker image and publish to a public/private repository (e.g. Docker Hub/Cloud, Github Packages)
    1.2.1Ansible could come in to rescue us!!!
    1.3. Build Python package (perhaps with poetry) and publish to a public repository (e.g. PyPI)
  2. Improvement / refactoring / planning of unit-testing cases
    2.1. Comprehensive testing cases through pytest
  3. Improvement of documentation
    3.1 Release a CHANGELOG
    3.2 Perhaps with MkDocs and publication through Github Pages
  4. Automate updates of Fortran code and coefficients from the original sources
    4.1 Retrieval of Fortran files and dependencies
    4.2 Through automated pull requests thus repository always includes the latest version of Fortran code and coefficients.
    4.3. Official Fortran source code is available here.
    4.4. Common files (e.g. CCIR and URSI coefficients) can be obtained from this link.
    4.5. Solar and magnetic indices can be found in this link

Serve yourself and please share comments / ideas ...

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.