Code Monkey home page Code Monkey logo

howto-pandas's Issues

Add travis ci or circle ci build status

Have the appveyor windows build status ready and would like some help with getting travis ci or equivalent to work. Current problem I am having is the numpy+mkl requirement from the requirements.txt file so anyone with experience on scipy and linux or how to do alternate requirements or setup the travis build to be conditional.

Add radiation pytest for location

As the value returned from the Solcast API can vary dependent on weather conditions try to do the following

  • Look for a result set
  • Set your position to location that is dark when you make the request i.e. something like if the current UTC time is 14:00 then that is AEDT 1:00 so it will be dark at lat/lng โ€Ž-33.865143, 151.215256 (Sydney). This is a bit complicated as you will need to find dark time positions for every UTC zone or so or perhaps a minimum of 6 positions on the earth that will be in darkness at any UTC time.

``missing 1 required argument: 'api_key'`` while experimenting basic API call

Hi,
Following the tutorial, I am using Ubuntu, exported the SOLCAST_API_KEY in shell, and in the python environment of execution of the script, if this makes any difference.

I encountred the following error:

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-5-16263a0dce87> in <module>
      7 # install_date | format: yyyyMMdd Will be ignored if a loss_factor is supplied
      8 # latest | [True, False] | default False
----> 9 power_estimated_actuals = PowerFrameHandler.estimated_actuals(location, 5000, azimuth=0)
     10 power_estimated_actuals.pv_estimate.plot()
     11 

~/Bureau/Untitled Folder 1/solcast_frames/powerframehandler.py in estimated_actuals(lat_Lng, capacity, **kwargs)
     19         :rtype: pd.DataFrame
     20         """
---> 21         data = sc.PvPowerEstimatedActuals(lat_Lng.lat, lat_Lng.lng, capacity, **kwargs).content["estimated_actuals"]
     22         new_frame = pd.DataFrame(data)
     23         new_frame.set_index(['period_end'], inplace=True)

~/.conda/envs/tf/lib/python3.6/site-packages/solcast/pv_power_estimated_actuals.py in __init__(self, latitude, longitude, capacity, *args, **kwargs)
     35             self.end_point = self.end_point + '/latest'
     36 
---> 37         self._get(*args, **kwargs)
     38 
     39         if self.ok:

~/.conda/envs/tf/lib/python3.6/site-packages/solcast/base.py in _get(self, api_key, **kwargs)
     23         if api_key == None:
     24             raise TypeError('{type}() missing 1 required argument: \'api_key\''\
---> 25                             .format(type=type(self)))
     26 
     27         logger = logging.getLogger()

TypeError: <class 'solcast.pv_power_estimated_actuals.PvPowerEstimatedActuals'>() missing 1 required argument: 'api_key'

Thank you.

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.