openclimatefix / open-source-quartz-solar-forecast

Open Source Solar Site Level Forecast
MIT License
69 stars 55 forks source link

simplified the steps in Readme file #208

Closed sumana-2705 closed 3 weeks ago

sumana-2705 commented 3 weeks ago

Description

Fixes #204

peterdudfield commented 3 weeks ago

Thank you for this. Would you be able to add a file back in to scripts/forecast_csv.py

it would be copying this out to this serepate file

sumana-2705 commented 3 weeks ago

Okay, I'll add the file. Thank you

peterdudfield commented 3 weeks ago

Hi @sumana-2705.

Sorry i might have confused you. I would prefer the main code to stay in the library and the script just to have

if __name__ == "__main__":
    # please change the site name, start_datetime and end_datetime, latitude, longitude and capacity_kwp as per your requirement
    write_out_forecasts(
        init_time_freq=6,
        start_datetime="2024-03-10 00:00:00",
        end_datetime="2024-03-11 00:00:00",
        site_name="Test",
        latitude=51.75,
        longitude=-1.25,
        capacity_kwp=1.25
    )
sumana-2705 commented 3 weeks ago

I'm sorry @peterdudfield, I was confused a little. I hope this commit has done required changes

peterdudfield commented 3 weeks ago

and can you remove if name == "main": e.t.c from here

peterdudfield commented 3 weeks ago

thanks @sumana-2705, @all-contributors please add @sumana-2705 for code

allcontributors[bot] commented 3 weeks ago

@peterdudfield

I've put up a pull request to add @sumana-2705! :tada: