Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
0264ea2
test
roger-two Apr 21, 2022
9964ff3
test
roger-two Apr 21, 2022
614c3d4
test
roger-two Apr 21, 2022
10aedb0
test
roger-two Apr 21, 2022
6816bbb
test
roger-two Apr 21, 2022
476a7aa
test
roger-lcc Apr 22, 2022
61ae721
test
roger-lcc Apr 22, 2022
634bef7
test
roger-lcc Apr 22, 2022
af81912
test
roger-lcc Apr 22, 2022
e9eee8e
test
roger-lcc Apr 22, 2022
c6feaed
test
roger-lcc Apr 22, 2022
e48929f
test
roger-lcc Apr 22, 2022
ab03f74
test
roger-lcc Apr 22, 2022
8cba5e3
test
roger-lcc Apr 22, 2022
527ebb2
test
roger-lcc Apr 22, 2022
7aa26c9
test
roger-lcc Apr 22, 2022
83d2ea5
test
roger-lcc Apr 23, 2022
09f5af7
test
roger-lcc Apr 23, 2022
44ca35e
test
roger-lcc Apr 23, 2022
daaee31
test
roger-lcc Apr 23, 2022
29a255b
test
roger-lcc Apr 23, 2022
36f5979
test
roger-lcc Apr 23, 2022
3f21436
test
roger-lcc Apr 23, 2022
5871767
test
roger-lcc Apr 23, 2022
f017f22
test
roger-lcc Apr 23, 2022
b361b38
test
roger-lcc Apr 23, 2022
f31c109
test
roger-lcc Apr 23, 2022
5752b04
test
roger-lcc Apr 23, 2022
6524640
test
roger-lcc Apr 23, 2022
d5f8467
test
roger-lcc Apr 23, 2022
c319dc8
test
roger-lcc Apr 23, 2022
cf94043
Delete asv.yml
roger-lcc Apr 25, 2022
ec6e24b
1
roger-lcc Apr 27, 2022
56c31cc
Merge branch 'master' of github.com:roger-lcc/test
roger-lcc Apr 27, 2022
43a6b44
Merge pull request #5 from roger-lcc/main
roger-lcc Apr 27, 2022
544addf
test
roger-lcc Apr 27, 2022
3c73b5d
Merge branch 'master' of github.com:roger-lcc/test
roger-lcc Apr 27, 2022
ffc42bd
Create main.yml
roger-lcc Apr 27, 2022
5949b73
Merge branch 'master' of github.com:roger-lcc/test
roger-lcc Apr 27, 2022
e4aeac9
Delete main.yml
roger-lcc Apr 27, 2022
b6a0b53
Create main.yml
roger-lcc Apr 27, 2022
84478ea
Update main.yml
roger-lcc Apr 27, 2022
4b19337
test
roger-lcc Apr 27, 2022
0951616
Merge branch 'master' of github.com:roger-lcc/test
roger-lcc Apr 27, 2022
90057fe
test
roger-lcc Apr 27, 2022
05b4e68
test
roger-lcc Apr 27, 2022
abdd0c9
test
roger-lcc Apr 27, 2022
150e9c6
test
roger-lcc Apr 27, 2022
65cc1ad
test
roger-lcc Apr 27, 2022
918294c
test
roger-lcc Apr 27, 2022
003f3cf
test
roger-lcc Apr 27, 2022
ae513c4
test
roger-lcc Apr 27, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: asv

# CI ASV CHECK is aimed to verify that the benchmarks execute without error.
on: [pull_request, push]

jobs:
quick:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install Python
uses: actions/setup-python@v3
with:
python-version: '3.9.7'

- name: Install asv
run: pip install asv==0.4.2

- name: Run asv benchmarks
run: |
cd benchmarks
asv machine --yes
asv run HEAD^! --quick --dry-run --show-stderr | sed "/failed$/ s/^/##[error]/" | tee benchmarks.log
if grep "failed" benchmarks.log > /dev/null ; then
exit 1
fi

1 change: 0 additions & 1 deletion benchmarks/asv.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// project being benchmarked
"repo": "..",

"branches": "main",

// The Python project's subdirectory in your repo. If missing or
// the empty string, the project is assumed to be located at the root
Expand Down
6 changes: 3 additions & 3 deletions benchmarks/benchmarks/solarposition.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ def time_sun_rise_set_transit_geometric_full_comparison(self, ndays):
self.times_daily, self.lat, self.lon, declination,
equationoftime)

# def time_sun_rise_set_transit_ephem(self, ndays):
# solarposition.sun_rise_set_transit_ephem(
# self.times_daily, self.lat, self.lon)
def time_sun_rise_set_transit_ephem(self, ndays):
solarposition.sun_rise_set_transit_ephem(
self.times_daily, self.lat, self.lon)


class SolarPositionCalcTime:
Expand Down