Coder Social home page Coder Social logo

openap-top's People

Contributors

junzis avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

galleon

openap-top's Issues

Problem to get it run...

I have a problem in getting OpenAp to work.
I installed everything correctly as mentioned in the Readme. No errors reported.
Than I activated the environment via the terminal.

image

After that I switched to Jupyter Notebook and wanted to give the instructions step by step, beginning with "import openap.top as otop".

image

But I can't import anything?

Do I have a mistake anywhere?

Weather / Wind import

I tried to re-built the example flight. I get a vertical trajectory, but I have a problem with importing the wind file. I downloaded the GRIB data, but I receive an error.

image

Anybody an idea?

deprecated attribute get_feature_names()

Thanks for this great effort!

It looks like wind.py uses a deprecated attribute, line 47 may need to change to:
features = model["polynomialfeatures"].get_feature_names_out()

See: https://scikit-learn.org/stable/whats_new/v1.0.html#version-1-0
"scikit-learn from verson 1.0 get_feature_names is deprecated, use get_feature_names_out"

But then, running the example gives an error:
File "/.../wind.py", line 57, in
eval(f, {}, {"x0": x, "x1": y, "x2": h}) * c
File "", line 1, in
NameError: name 'x' is not defined

I haven't managed to find out why

[Help] Meteo related question

Thanks for this great addition to openap
I would be interested to understand how to create a specific weather file for a given date and time using xarray. I am new to the cfgrib library.
Would you also recommend to create a more complex sklearn model including time?
On a long flight, it might be better to use a more representative wind speed.

Problem with MultiPhase

I got the following issue when trying to use MultiPhase

Here is the problem I am facing:

openap-top git:(galleon/fixdoc) โœ— python test/my_example.py
Define optimizer...
Traceback (most recent call last):
  File "test/my_example.py", line 36, in <module>
    flight = optimizer.trajectory(objective=("ci:90", "ci:10", "ci:20"))  # Multiphase
  File "/Users/alleon_g/.pyenv/versions/scikit-decide/lib/python3.8/site-packages/openap/top/full.py", line 410, in trajectory
    d = np.sqrt(np.sum(((dfde.iloc[0] - dfcr.iloc[-1]) ** 2).values[1:3]))
  File "/Users/alleon_g/.pyenv/versions/scikit-decide/lib/python3.8/site-packages/pandas/core/indexing.py", line 931, in __getitem__
    return self._getitem_axis(maybe_callable, axis=axis)
  File "/Users/alleon_g/.pyenv/versions/scikit-decide/lib/python3.8/site-packages/pandas/core/indexing.py", line 1566, in _getitem_axis
    self._validate_integer(key, axis)
  File "/Users/alleon_g/.pyenv/versions/scikit-decide/lib/python3.8/site-packages/pandas/core/indexing.py", line 1500, in _validate_integer
    raise IndexError("single positional indexer is out-of-bounds")
IndexError: single positional indexer is out-of-bounds

[Bug] destination cannot be a lat/lon tuple

Traceback (most recent call last):
File "flight_planning_domain.py", line 448, in
c2 = Cruise("A388", origin, (35.202362, 65.405415), 0.8)
File "/Users/alleon_g/.pyenv/versions/scikit-decide/lib/python3.8/site-packages/openap/top/cruise.py", line 15, in init
super().init(*args, **kwargs)
File "/Users/alleon_g/.pyenv/versions/scikit-decide/lib/python3.8/site-packages/openap/top/base.py", line 43, in init
self.lat2, self.lon2 = ap2["lat"], ap2["lon"]
TypeError: 'NoneType' object is not subscriptable

Indeed origin is used twice in base.py. I will submit a fix

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.