Skip to content

Commit

Permalink
fix spelling issues, update ignored_wordlist.txt, add AQS_domain para…
Browse files Browse the repository at this point in the history
…meter to helperfunctions.__aqs(), reformat code with black
  • Loading branch information
mccroweyclinton-EPA committed Dec 21, 2022
1 parent 1a4b426 commit 349fb04
Show file tree
Hide file tree
Showing 25 changed files with 366 additions and 260 deletions.
Binary file modified docs/_build/doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/_build/doctrees/pyaqsapi.bysite.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/pyaqsapi.bystate.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/pyaqsapi.doctree
Binary file not shown.
Binary file modified docs/_build/html/objects.inv
Binary file not shown.
10 changes: 5 additions & 5 deletions docs/_build/html/py-modindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ <h1>Python Module Index</h1>
<tr class="cg-1">
<td></td>
<td>&#160;&#160;&#160;
<a href="pyaqsapi.bybox.html#module-pyaqsapi.bybox.bybox"><code class="xref">pyaqsapi.bybox.bybox</code></a></td><td>
<a href="pyaqsapi.html#module-pyaqsapi.bybox.bybox"><code class="xref">pyaqsapi.bybox.bybox</code></a></td><td>
<em></em></td></tr>
<tr class="cg-1">
<td></td>
Expand All @@ -101,7 +101,7 @@ <h1>Python Module Index</h1>
<tr class="cg-1">
<td></td>
<td>&#160;&#160;&#160;
<a href="pyaqsapi.bycbsa.html#module-pyaqsapi.bycbsa.bycbsa"><code class="xref">pyaqsapi.bycbsa.bycbsa</code></a></td><td>
<a href="pyaqsapi.html#module-pyaqsapi.bycbsa.bycbsa"><code class="xref">pyaqsapi.bycbsa.bycbsa</code></a></td><td>
<em></em></td></tr>
<tr class="cg-1">
<td></td>
Expand All @@ -111,7 +111,7 @@ <h1>Python Module Index</h1>
<tr class="cg-1">
<td></td>
<td>&#160;&#160;&#160;
<a href="pyaqsapi.bycounty.html#module-pyaqsapi.bycounty.bycounty"><code class="xref">pyaqsapi.bycounty.bycounty</code></a></td><td>
<a href="pyaqsapi.html#module-pyaqsapi.bycounty.bycounty"><code class="xref">pyaqsapi.bycounty.bycounty</code></a></td><td>
<em></em></td></tr>
<tr class="cg-1">
<td></td>
Expand All @@ -121,7 +121,7 @@ <h1>Python Module Index</h1>
<tr class="cg-1">
<td></td>
<td>&#160;&#160;&#160;
<a href="pyaqsapi.byma.html#module-pyaqsapi.byma.byma"><code class="xref">pyaqsapi.byma.byma</code></a></td><td>
<a href="pyaqsapi.html#module-pyaqsapi.byma.byma"><code class="xref">pyaqsapi.byma.byma</code></a></td><td>
<em></em></td></tr>
<tr class="cg-1">
<td></td>
Expand All @@ -131,7 +131,7 @@ <h1>Python Module Index</h1>
<tr class="cg-1">
<td></td>
<td>&#160;&#160;&#160;
<a href="pyaqsapi.bypqao.html#module-pyaqsapi.bypqao.bypqao"><code class="xref">pyaqsapi.bypqao.bypqao</code></a></td><td>
<a href="pyaqsapi.html#module-pyaqsapi.bypqao.bypqao"><code class="xref">pyaqsapi.bypqao.bypqao</code></a></td><td>
<em></em></td></tr>
<tr class="cg-1">
<td></td>
Expand Down
62 changes: 31 additions & 31 deletions docs/_build/html/pyaqsapi.bysite.html

Large diffs are not rendered by default.

60 changes: 30 additions & 30 deletions docs/_build/html/pyaqsapi.bystate.html

Large diffs are not rendered by default.

310 changes: 155 additions & 155 deletions docs/_build/html/pyaqsapi.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/_build/html/searchindex.js

Large diffs are not rendered by default.

Empty file added docs/_build/spelling/output.txt
Empty file.
3 changes: 3 additions & 0 deletions docs/ignored_wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,22 @@ metadatafunctions
minlat
minlon
parameterclass
parameterclasses
pqao
pqaos
pyaqsapi
qa
qc
quarterly
quarterlysummary
sampledata
sampleduration
sampledurations
setupfunctions
sitenum
stateFIPS
submodules
timeframe
th
transactionsample
Truro
Expand Down
2 changes: 1 addition & 1 deletion pyaqsapi/bybox/tests/test_bybox.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

@pytest.fixture
def setuppyaqsapi(autouse=True):
if exists(".\\dev\\local.py"):
if exists("./dev/local.py"):
# the following should only execute if the file ./dev/local.py exists
# under the project root folder. This file should not exist on the git
# repostiory or in the final package. local looads the AQS user
Expand Down
2 changes: 1 addition & 1 deletion pyaqsapi/bycbsa/tests/test_bycbsa.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

@pytest.fixture
def setuppyaqsapi(autouse=True):
if exists(".\\dev\\local.py"):
if exists("./dev/local.py"):
# the following should only execute if the file ./dev/local.py exists
# under the project root folder. This file should not exist on the git
# repostiory or in the final package. local looads the AQS user
Expand Down
2 changes: 1 addition & 1 deletion pyaqsapi/bycounty/tests/test_bycounty.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

@pytest.fixture
def setuppyaqsapi(autouse=True):
if exists(".\\dev\\local.py"):
if exists("./dev/local.py"):
# the following should only execute if the file ./dev/local.py exists
# under the project root folder. This file should not exist on the git
# repostiory or in the final package. local looads the AQS user
Expand Down
2 changes: 1 addition & 1 deletion pyaqsapi/byma/tests/test_byma.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

@pytest.fixture
def setuppyaqsapi(autouse=True):
if exists(".\\dev\\local.py"):
if exists("./dev/local.py"):
# the following should only execute if the file ./dev/local.py exists
# under the project root folder. This file should not exist on the git
# repostiory or in the final package. local looads the AQS user
Expand Down
2 changes: 1 addition & 1 deletion pyaqsapi/bypqao/tests/test_bypqao.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

@pytest.fixture
def setuppyaqsapi(autouse=True):
if exists(".\\dev\\local.py"):
if exists("./dev/local.py"):
# the following should only execute if the file ./dev/local.py exists
# under the project root folder. This file should not exist on the git
# repostiory or in the final package. local looads the AQS user
Expand Down
6 changes: 3 additions & 3 deletions pyaqsapi/bysite/bysite.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,8 @@ def sampledata(
Returns
-------
(pandas DataFrame or an AQSAPI_V2 object): sample data aggregagted at the
site level matching the input stateFIPS, countycode and sitenumb
(pandas DataFrame or an AQSAPI_V2 object): sample data aggregated at the
site level matching the input stateFIPS, countycode and sitenum
for the time frame between bdate and edate.
"""
service = "sampleData"
Expand Down Expand Up @@ -1587,7 +1587,7 @@ def qa_pep_audit(
Returns
-------
(pandas DataFrame or an AQSAPI_V2 object): quality assurance
PEP audit data within a stateFIPS, countycode and sitenumb
PEP audit data within a stateFIPS, countycode and sitenum
for the time frame between bdate and edate.
"""
service = "qaPepAudits"
Expand Down
2 changes: 1 addition & 1 deletion pyaqsapi/bysite/tests/test_bysite.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

@pytest.fixture
def setuppyaqsapi(autouse=True):
if exists(".\\dev\\local.py"):
if exists("./dev/local.py"):
# the following should only execute if the file ./dev/local.py exists
# under the project root folder. This file should not exist on the git
# repostiory or in the final package. local looads the AQS user
Expand Down
108 changes: 93 additions & 15 deletions pyaqsapi/bystate/bystate.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@


def monitors(
parameter, bdate, edate, stateFIPS, cbdate=None, cedate=None, return_header=False
parameter,
bdate,
edate,
stateFIPS,
cbdate=None,
cedate=None,
return_header=False,
):
"""
Return a table of monitors.
Expand Down Expand Up @@ -82,7 +88,13 @@ def monitors(


def qa_flowrateaudit(
parameter, bdate, edate, stateFIPS, cbdate=None, cedate=None, return_header=False
parameter,
bdate,
edate,
stateFIPS,
cbdate=None,
cedate=None,
return_header=False,
):
"""
Return Quality assurance flowrate audit data.
Expand Down Expand Up @@ -162,7 +174,13 @@ def qa_flowrateaudit(


def qa_one_point_qc(
parameter, bdate, edate, stateFIPS, cbdate=None, cedate=None, return_header=False
parameter,
bdate,
edate,
stateFIPS,
cbdate=None,
cedate=None,
return_header=False,
):
"""
Return a DataFrame or an AQS_Data Mart_APIv2 S3 object containing Quality
Expand Down Expand Up @@ -237,7 +255,13 @@ def qa_one_point_qc(


def qa_pep_audit(
parameter, bdate, edate, stateFIPS, cbdate=None, cedate=None, return_header=False
parameter,
bdate,
edate,
stateFIPS,
cbdate=None,
cedate=None,
return_header=False,
):
"""
Return a table of Performance Evaluation Program (PEP) audit data
Expand Down Expand Up @@ -401,7 +425,13 @@ def sampledata(


def annualsummary(
parameter, bdate, edate, stateFIPS, cbdate=None, cedate=None, return_header=False
parameter,
bdate,
edate,
stateFIPS,
cbdate=None,
cedate=None,
return_header=False,
):
"""
Return a DataFrame of annual data aggregated at the state level.
Expand Down Expand Up @@ -478,7 +508,13 @@ def annualsummary(


def qa_blanks(
parameter, bdate, edate, stateFIPS, cbdate=None, cedate=None, return_header=False
parameter,
bdate,
edate,
stateFIPS,
cbdate=None,
cedate=None,
return_header=False,
):
"""
Return a table of blank quality assurance data. Blanks are unexposed
Expand Down Expand Up @@ -556,7 +592,13 @@ def qa_blanks(


def dailysummary(
parameter, bdate, edate, stateFIPS, cbdate=None, cedate=None, return_header=False
parameter,
bdate,
edate,
stateFIPS,
cbdate=None,
cedate=None,
return_header=False,
):
"""
Return a DataFrame of data aggregated at the state level.
Expand Down Expand Up @@ -633,7 +675,13 @@ def dailysummary(


def qa_collocated_assessments(
parameter, bdate, edate, stateFIPS, cbdate=None, cedate=None, return_header=False
parameter,
bdate,
edate,
stateFIPS,
cbdate=None,
cedate=None,
return_header=False,
):
"""
Return a table of collocated assessment data aggregated by matching input
Expand Down Expand Up @@ -711,7 +759,13 @@ def qa_collocated_assessments(


def qa_flowrateverification(
parameter, bdate, edate, stateFIPS, cbdate=None, cedate=None, return_header=False
parameter,
bdate,
edate,
stateFIPS,
cbdate=None,
cedate=None,
return_header=False,
):
"""
Return a table containing flow rate Verification data for a parameter code
Expand Down Expand Up @@ -790,7 +844,13 @@ def qa_flowrateverification(


def transactionsample(
parameter, bdate, edate, stateFIPS, cbdate=None, cedate=None, return_header=False
parameter,
bdate,
edate,
stateFIPS,
cbdate=None,
cedate=None,
return_header=False,
):
"""
Return transactionsample data - aggregated by state in the AQS Submission
Expand Down Expand Up @@ -871,7 +931,13 @@ def transactionsample(


def qa_annualperformanceeval(
parameter, bdate, edate, stateFIPS, cbdate=None, cedate=None, return_header=False
parameter,
bdate,
edate,
stateFIPS,
cbdate=None,
cedate=None,
return_header=False,
):
"""
Return quality assurance performance evaluation data - aggregated by
Expand Down Expand Up @@ -926,7 +992,7 @@ def qa_annualperformanceeval(
-------
(pandas DataFrame or an AQSAPI_V2 object): quality assurance
performance evaluation data for all monitoring sites for the
matching parametercode and stateFIPS requested for the time frame
matching parameter and stateFIPS requested for the time frame
between bdate and edate.
"""
service = "qaAnnualPerformanceEvaluations"
Expand All @@ -952,7 +1018,13 @@ def qa_annualperformanceeval(


def qa_annualperformanceevaltransaction(
parameter, bdate, edate, stateFIPS, cbdate=None, cedate=None, return_header=False
parameter,
bdate,
edate,
stateFIPS,
cbdate=None,
cedate=None,
return_header=False,
):
"""
Return AQS submissions transaction format (RD) of the annual
Expand Down Expand Up @@ -1009,7 +1081,7 @@ def qa_annualperformanceevaltransaction(
-------
(pandas DataFrame or an AQSAPI_V2 object): quality assurance
performance evaluation data. for all monitoring sites with matching
parametercode and stateFIPS requested for the time frame
parameter and stateFIPS requested for the time frame
between bdate and edate.
"""
service = "transactionsQaAnnualPerformanceEvaluations"
Expand All @@ -1035,7 +1107,13 @@ def qa_annualperformanceevaltransaction(


def quarterlysummary(
parameter, bdate, edate, stateFIPS, cbdate=None, cedate=None, return_header=False
parameter,
bdate,
edate,
stateFIPS,
cbdate=None,
cedate=None,
return_header=False,
):
"""
Return a DataFrame of quarterly data aggregated at the state level.
Expand Down
2 changes: 1 addition & 1 deletion pyaqsapi/bystate/tests/test_bystate.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

@pytest.fixture
def setuppyaqsapi(autouse=True):
if exists(".\\dev\\local.py"):
if exists("./dev/local.py"):
# the following should only execute if the file ./dev/local.py exists
# under the project root folder. This file should not exist on the git
# repostiory or in the final package. local looads the AQS user
Expand Down
Loading

0 comments on commit 349fb04

Please sign in to comment.