Skip to content

Commit

Permalink
Deploying to gh-pages from @ 4304a9a 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
yh202109 committed Jul 7, 2024
1 parent 9769783 commit 20005fc
Show file tree
Hide file tree
Showing 18 changed files with 231 additions and 220 deletions.
6 changes: 3 additions & 3 deletions _downloads/214d05cd65dcc9387b037da1ce5a5c33/report.html

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions _downloads/9911a4d807ac9f1a695f0aa2cf687076/coverage.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" ?>
<coverage version="7.5.4" timestamp="1720381116829" lines-valid="1348" lines-covered="472" line-rate="0.3501" branches-covered="0" branches-valid="0" branch-rate="0" complexity="0">
<coverage version="7.5.4" timestamp="1720384549406" lines-valid="1350" lines-covered="472" line-rate="0.3496" branches-covered="0" branches-valid="0" branch-rate="0" complexity="0">
<!-- Generated by coverage.py: https://coverage.readthedocs.io/en/7.5.4 -->
<!-- Based on https://raw.githubusercontent.com/cobertura/web/master/htdocs/xml/coverage-04.dtd -->
<sources>
Expand Down Expand Up @@ -835,9 +835,11 @@
<line number="36" hits="0"/>
<line number="37" hits="0"/>
<line number="38" hits="0"/>
<line number="41" hits="0"/>
<line number="43" hits="0"/>
<line number="39" hits="0"/>
<line number="40" hits="0"/>
<line number="42" hits="0"/>
<line number="44" hits="0"/>
<line number="45" hits="0"/>
</lines>
</class>
</classes>
Expand Down
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 5 additions & 4 deletions _modules/mtbp3/stdiso/pdfsummary.html
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,15 @@ <h1>Source code for mtbp3.stdiso.pdfsummary</h1><div class="highlight"><pre>

<span class="bp">self</span><span class="o">.</span><span class="n">n_page</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">pp</span><span class="o">.</span><span class="n">get_num_pages</span><span class="p">()</span>
<span class="bp">self</span><span class="o">.</span><span class="n">file_size</span> <span class="o">=</span> <span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">getsize</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">pdf_path</span><span class="p">)</span>
<span class="bp">self</span><span class="o">.</span><span class="n">n_image_in_page</span> <span class="o">=</span> <span class="p">[</span><span class="nb">len</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">pp</span><span class="o">.</span><span class="n">pages</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="o">.</span><span class="n">images</span><span class="p">)</span> <span class="k">for</span> <span class="n">i</span> <span class="ow">in</span> <span class="nb">range</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">n_page</span><span class="p">)]</span></div>

<span class="bp">self</span><span class="o">.</span><span class="n">n_image_in_page</span> <span class="o">=</span> <span class="p">[</span><span class="nb">len</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">pp</span><span class="o">.</span><span class="n">pages</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="o">.</span><span class="n">images</span><span class="p">)</span> <span class="k">for</span> <span class="n">i</span> <span class="ow">in</span> <span class="nb">range</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">n_page</span><span class="p">)]</span>
<span class="bp">self</span><span class="o">.</span><span class="n">n_image</span> <span class="o">=</span> <span class="nb">sum</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">n_image_in_page</span><span class="p">)</span>
<span class="bp">self</span><span class="o">.</span><span class="n">meta</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">pp</span><span class="o">.</span><span class="n">metadata</span></div>


<span class="k">if</span> <span class="vm">__name__</span> <span class="o">==</span> <span class="s2">&quot;__main__&quot;</span><span class="p">:</span>

<span class="n">pdf_obj</span> <span class="o">=</span> <span class="n">pdfSummary</span><span class="p">()</span>
<span class="nb">print</span><span class="p">(</span><span class="s2">&quot;Pages:&quot;</span><span class="p">,</span> <span class="n">pdf_obj</span><span class="o">.</span><span class="n">pp</span><span class="o">.</span><span class="n">pages</span><span class="p">)</span>
<span class="n">pdf_obj</span> <span class="o">=</span> <span class="n">pdfSummary</span><span class="p">(</span><span class="s2">&quot;/Users/yh2020/dt2/proj/mtbp3/mtbp3/data/attention.pdf&quot;</span><span class="p">)</span>
<span class="nb">print</span><span class="p">(</span><span class="n">pdf_obj</span><span class="o">.</span><span class="n">meta</span><span class="o">.</span><span class="n">creation_date</span><span class="p">)</span>

</pre></div>

Expand Down
16 changes: 9 additions & 7 deletions _sources/std_iso_pdf.ipynb.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
" - ISO 19005-2:2011/PDF/A-2 (based on PDF v1.7)\n",
" - ISO 19005-3:2012/PDF/A-3 (add file)\n",
" - Not allow: audio, video, 3d objects, JS, certain actions, encryption, non-standard metadata\n",
" - Require: embed font with proper license \n",
" - Require: embedding font with proper license \n",
"- ISO 24517/PDF/E for representing engineering documents.\n",
"\n",
"For regulatory submission, FDA currently support \"PDF versions 1.4 through 1.7, PDF/A-1 and PDF/A-2\"[^5].\n",
"Steps for **creating and validating** PDF/A files can be found in reference [^4].\n",
"For regulatory submission, FDA currently support \"PDF versions 1.4 through 1.7, PDF/A-1 and PDF/A-2\"[^4].\n",
"Steps for **creating and validating** PDF/A files can be found in reference [^5][^6].\n",
"\n",
"The module `stdiso.pdfsummary` depends on package `pypdf` [^6].\n",
"The module `stdiso.pdfsummary` depends on package `pypdf` [^7].\n",
"The module `stdiso.pdfsummary` include functions for creating summaries about a specified PDF file.\n"
]
},
Expand Down Expand Up @@ -58,6 +58,7 @@
"\n",
"pfr = pdfSummary(path=\"\")\n",
"print(\"File size:\", pfr.file_size, \" bytes\")\n",
"print(\"Creation date:\", pfr.meta.creation_date)\n",
"print(\"Number of pages:\", pfr.n_page)\n",
"print(\"Number of figures within individual pages:\", pfr.n_image_in_page)"
]
Expand All @@ -78,9 +79,10 @@
"[^1]: Adobe. (2024). Everything you need to know about the PDF. ([web page](https://www.adobe.com/acrobat/about-adobe-pdf.html))\n",
"[^2]: ISO. (2021). The standard for PDF is revised. ([web page](https://www.iso.org/news/ref2608.html))\n",
"[^3]: pdfa.org. (2013). PDF/A in a Nutshell 2.0. ([web page](https://pdfa.org/resource/pdfa-in-a-nutshell-2-0/))\n",
"[^4]: Adobe. (2023). PDF/X-, PDF/A-, and PDF/E-compliant files (Acrobat Pro). ([web page](https://helpx.adobe.com/acrobat/using/pdf-x-pdf-a-pdf.htm))\n",
"[^5]: FDA. (2016). Portable Document Format (PDF) Specifications. ([pdf](https://www.fda.gov/files/drugs/published/Portable-Document-Format-Specifications.pdf))\n",
"[^6]: pypdf Contributors. (2024). pypdf. ([web page](https://pypdf.readthedocs.io/en/stable/index.html))\n",
"[^4]: FDA. (2016). Portable Document Format (PDF) Specifications. ([pdf](https://www.fda.gov/files/drugs/published/Portable-Document-Format-Specifications.pdf))\n",
"[^5]: Adobe. (2023). PDF/X-, PDF/A-, and PDF/E-compliant files (Acrobat Pro). ([web page](https://helpx.adobe.com/acrobat/using/pdf-x-pdf-a-pdf.html))\n",
"[^6]: pypdf Contributors. (2024). PDF/A Compliance. ([web page](https://pypdf.readthedocs.io/en/stable/user/pdfa-compliance.html))\n",
"[^7]: pypdf Contributors. (2024). pypdf. ([web page](https://pypdf.readthedocs.io/en/stable/index.html))\n",
"\n",
"\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion _static/reports/coverage/coverage-badge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 5 additions & 3 deletions _static/reports/coverage/coverage.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" ?>
<coverage version="7.5.4" timestamp="1720381116829" lines-valid="1348" lines-covered="472" line-rate="0.3501" branches-covered="0" branches-valid="0" branch-rate="0" complexity="0">
<coverage version="7.5.4" timestamp="1720384549406" lines-valid="1350" lines-covered="472" line-rate="0.3496" branches-covered="0" branches-valid="0" branch-rate="0" complexity="0">
<!-- Generated by coverage.py: https://coverage.readthedocs.io/en/7.5.4 -->
<!-- Based on https://raw.githubusercontent.com/cobertura/web/master/htdocs/xml/coverage-04.dtd -->
<sources>
Expand Down Expand Up @@ -835,9 +835,11 @@
<line number="36" hits="0"/>
<line number="37" hits="0"/>
<line number="38" hits="0"/>
<line number="41" hits="0"/>
<line number="43" hits="0"/>
<line number="39" hits="0"/>
<line number="40" hits="0"/>
<line number="42" hits="0"/>
<line number="44" hits="0"/>
<line number="45" hits="0"/>
</lines>
</class>
</classes>
Expand Down
2 changes: 1 addition & 1 deletion _static/reports/junit/junit.xml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?xml version="1.0" encoding="utf-8"?><testsuites><testsuite name="pytest" errors="0" failures="0" skipped="0" tests="30" time="6.800" timestamp="2024-07-07T19:38:25.315311" hostname="fv-az1980-515"><testcase classname="tests.test_cdt.TestCdt" name="test_diff_2cols_in_1df_invalid_input" time="0.002" /><testcase classname="tests.test_cdt.TestCdt" name="test_diff_2cols_in_1df_missing_column" time="0.001" /><testcase classname="tests.test_cdt.TestCdt" name="test_diff_2cols_in_1df_with_difference" time="0.005" /><testcase classname="tests.test_cdt.TestCdt" name="test_diff_2cols_in_1df_without_difference" time="0.002" /><testcase classname="tests.test_cdt.TestCdt" name="test_diff_2cols_in_2df_with_existing_column" time="0.010" /><testcase classname="tests.test_cdt.TestCdt" name="test_diff_2cols_in_2df_with_non_existing_column" time="0.001" /><testcase classname="tests.test_cdt.TestCdt" name="test_diff_2cols_in_2df_with_non_existing_group" time="0.001" /><testcase classname="tests.test_cdt.TestCdt" name="test_diff_2cols_in_2df_with_same_group_and_column" time="0.001" /><testcase classname="tests.test_emt.TestEmt" name="test_expected_file_lists" time="0.004" /><testcase classname="tests.test_emt.TestEmt" name="test_find_files" time="0.005" /><testcase classname="tests.test_emt.TestEmt" name="test_find_hlgt" time="0.004" /><testcase classname="tests.test_emt.TestEmt" name="test_find_hlt" time="0.004" /><testcase classname="tests.test_emt.TestEmt" name="test_find_llt" time="0.007" /><testcase classname="tests.test_emt.TestEmt" name="test_find_pt" time="0.004" /><testcase classname="tests.test_emt.TestEmt" name="test_find_pt_given_soc" time="0.006" /><testcase classname="tests.test_emt.TestEmt" name="test_find_pt_given_soc_primary_only" time="0.006" /><testcase classname="tests.test_emt.TestEmt" name="test_find_soc" time="0.004" /><testcase classname="tests.test_emt.TestEmt" name="test_list_files" time="0.026" /><testcase classname="tests.test_lsr.TestLsrTree" name="test_list_files_dataframe" time="0.001" /><testcase classname="tests.test_lsr.TestLsrTree" name="test_list_files_json" time="0.001" /><testcase classname="tests.test_lsr.TestLsrTree" name="test_list_files_list" time="0.001" /><testcase classname="tests.test_lsr.TestLsrTree" name="test_list_files_string" time="0.000" /><testcase classname="tests.test_lsr.TestLsrTree" name="test_list_files_tree" time="0.013" /><testcase classname="tests.test_lsr.TestLsrTree" name="test_list_files_tree2" time="0.008" /><testcase classname="tests.test_statlab_corr.TestCorrCalculator" name="test_calculate_kendall_tau_with_dataframe" time="0.002" /><testcase classname="tests.test_statlab_corr.TestCorrCalculator" name="test_calculate_kendall_tau_with_list" time="0.002" /><testcase classname="tests.test_statlab_corr.TestCorrCalculator" name="test_plot_y_list" time="0.018" /><testcase classname="tests.test_statlab_kappa.TestKappaCalculator" name="test_bootstrap_cohen_ci" time="0.229" /><testcase classname="tests.test_statlab_kappa.TestKappaCalculator" name="test_cohen" time="0.067" /><testcase classname="tests.test_statlab_kappa.TestKappaCalculator" name="test_fleiss_kappa" time="0.066" /></testsuite></testsuites>
<?xml version="1.0" encoding="utf-8"?><testsuites><testsuite name="pytest" errors="0" failures="0" skipped="0" tests="30" time="6.498" timestamp="2024-07-07T20:35:37.728409" hostname="fv-az973-881"><testcase classname="tests.test_cdt.TestCdt" name="test_diff_2cols_in_1df_invalid_input" time="0.002" /><testcase classname="tests.test_cdt.TestCdt" name="test_diff_2cols_in_1df_missing_column" time="0.001" /><testcase classname="tests.test_cdt.TestCdt" name="test_diff_2cols_in_1df_with_difference" time="0.005" /><testcase classname="tests.test_cdt.TestCdt" name="test_diff_2cols_in_1df_without_difference" time="0.002" /><testcase classname="tests.test_cdt.TestCdt" name="test_diff_2cols_in_2df_with_existing_column" time="0.009" /><testcase classname="tests.test_cdt.TestCdt" name="test_diff_2cols_in_2df_with_non_existing_column" time="0.001" /><testcase classname="tests.test_cdt.TestCdt" name="test_diff_2cols_in_2df_with_non_existing_group" time="0.001" /><testcase classname="tests.test_cdt.TestCdt" name="test_diff_2cols_in_2df_with_same_group_and_column" time="0.001" /><testcase classname="tests.test_emt.TestEmt" name="test_expected_file_lists" time="0.004" /><testcase classname="tests.test_emt.TestEmt" name="test_find_files" time="0.005" /><testcase classname="tests.test_emt.TestEmt" name="test_find_hlgt" time="0.004" /><testcase classname="tests.test_emt.TestEmt" name="test_find_hlt" time="0.004" /><testcase classname="tests.test_emt.TestEmt" name="test_find_llt" time="0.008" /><testcase classname="tests.test_emt.TestEmt" name="test_find_pt" time="0.004" /><testcase classname="tests.test_emt.TestEmt" name="test_find_pt_given_soc" time="0.007" /><testcase classname="tests.test_emt.TestEmt" name="test_find_pt_given_soc_primary_only" time="0.006" /><testcase classname="tests.test_emt.TestEmt" name="test_find_soc" time="0.004" /><testcase classname="tests.test_emt.TestEmt" name="test_list_files" time="0.027" /><testcase classname="tests.test_lsr.TestLsrTree" name="test_list_files_dataframe" time="0.002" /><testcase classname="tests.test_lsr.TestLsrTree" name="test_list_files_json" time="0.001" /><testcase classname="tests.test_lsr.TestLsrTree" name="test_list_files_list" time="0.001" /><testcase classname="tests.test_lsr.TestLsrTree" name="test_list_files_string" time="0.000" /><testcase classname="tests.test_lsr.TestLsrTree" name="test_list_files_tree" time="0.014" /><testcase classname="tests.test_lsr.TestLsrTree" name="test_list_files_tree2" time="0.009" /><testcase classname="tests.test_statlab_corr.TestCorrCalculator" name="test_calculate_kendall_tau_with_dataframe" time="0.002" /><testcase classname="tests.test_statlab_corr.TestCorrCalculator" name="test_calculate_kendall_tau_with_list" time="0.002" /><testcase classname="tests.test_statlab_corr.TestCorrCalculator" name="test_plot_y_list" time="0.019" /><testcase classname="tests.test_statlab_kappa.TestKappaCalculator" name="test_bootstrap_cohen_ci" time="0.233" /><testcase classname="tests.test_statlab_kappa.TestKappaCalculator" name="test_cohen" time="0.070" /><testcase classname="tests.test_statlab_kappa.TestKappaCalculator" name="test_fleiss_kappa" time="0.071" /></testsuite></testsuites>
6 changes: 3 additions & 3 deletions _static/reports/junit/report.html

Large diffs are not rendered by default.

Loading

0 comments on commit 20005fc

Please sign in to comment.