mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-04-24 17:02:33 +02:00
[//]: # (dependabot-start) ⚠️ **Dependabot is rebasing this PR** ⚠️ Rebasing might not happen immediately, so don't worry if this takes some time. Note: if you make any changes to this PR yourself, they will take precedence over the rebase. --- [//]: # (dependabot-end) Bumps [seaborn](https://github.com/mwaskom/seaborn) from 0.12.2 to 0.13.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/mwaskom/seaborn/releases">seaborn's releases</a>.</em></p> <blockquote> <h2>v0.13.0 (September 2023)</h2> <p><strong>See the <a href="https://seaborn.pydata.org/whatsnew/v0.13.0.html">online docs</a> for an annotated version of these notes with working links.</strong></p> <p>This is a major release with a number of important new features and changes. The highlight is a major overhaul to seaborn's categorical plotting functions, providing them with many new capabilities and better aligning their API with the rest of the library. There is also provisional support for alternate dataframe libraries like <a href="https://www.pola.rs">polars</a>, a new theme and display configuration system for <code>objects.Plot</code>, and many smaller bugfixes and enhancements.</p> <p>Updating is recommended, but users are encouraged to carefully check the outputs of existing code that uses the categorical functions, and they should be aware of some deprecations and intentional changes to the default appearance of the resulting plots (see notes below with and tags).</p> <h2>Major enhancements to categorical plots</h2> <p>Seaborn's <code>categorical functions <categorical_api></code> have been completely rewritten for this release. This provided the opportunity to address some longstanding quirks as well as to add a number of smaller but much-desired features and enhancements.</p> <h3>Support for numeric and datetime data</h3> <p>The categorical functions have historically treated <em>all</em> data as categorical, even when it has a numeric or datetime type. This can now be controlled with the new <!-- raw HTML omitted -->native_scale<!-- raw HTML omitted --> parameter. The default remains <!-- raw HTML omitted -->False<!-- raw HTML omitted --> to preserve existing behavior. But with <!-- raw HTML omitted -->native_scale=True<!-- raw HTML omitted -->, values will be treated as they would by other seaborn or matplotlib functions. Element widths will be derived from the minimum distance between two unique values on the categorical axis.</p> <p>Additionally, while seaborn previously determined the mapping from categorical values to ordinal positions internally, this is now delegated to matplotlib. The change should mostly be transparent to the user, but categorical plots (even with <!-- raw HTML omitted -->native_scale=False<!-- raw HTML omitted -->) will better align with artists added by other seaborn or matplotlib functions in most cases, and matplotlib's interactive machinery will work better.</p> <h3>Changes to color defaults and specification</h3> <p>The categorical functions now act more like the rest of seaborn in that they will produce a plot with a single main color unless the <!-- raw HTML omitted -->hue<!-- raw HTML omitted --> variable is assigned. Previously, there would be an implicit redundant color mapping (e.g., each box in a boxplot would get a separate color from the default palette). To retain the previous behavior, explicitly assign a redundant <!-- raw HTML omitted -->hue<!-- raw HTML omitted --> variable (e.g., <!-- raw HTML omitted -->boxplot(data, x="x", y="y", hue="x")<!-- raw HTML omitted -->).</p> <p>Two related idiosyncratic color specifications are deprecated, but they will continue to work (with a warning) for one release cycle:</p> <ul> <li>Passing a <!-- raw HTML omitted -->palette<!-- raw HTML omitted --> without explicitly assigning <!-- raw HTML omitted -->hue<!-- raw HTML omitted --> is no longer supported (add an explicitly redundant <!-- raw HTML omitted -->hue<!-- raw HTML omitted --> assignment instead).</li> <li>Passing a <!-- raw HTML omitted -->color<!-- raw HTML omitted --> while assigning <!-- raw HTML omitted -->hue<!-- raw HTML omitted --> to produce a gradient is no longer supported (use <!-- raw HTML omitted -->palette="dark:{color}"<!-- raw HTML omitted --> or <!-- raw HTML omitted -->palette="light:{color}"<!-- raw HTML omitted --> instead).</li> </ul> <p>Finally, like other seaborn functions, the default palette now depends on the variable type, and a sequential palette will be used with numeric data. To retain the previous behavior, pass the name of a qualitative palette (e.g., <!-- raw HTML omitted -->palette="deep"<!-- raw HTML omitted --> for seaborn's default). Accordingly, the functions have gained a parameter to control numeric color mappings (<!-- raw HTML omitted -->hue_norm<!-- raw HTML omitted -->).</p> <h3>Other features, enhancements, and changes</h3> <p>The following updates apply to multiple categorical functions.</p> <ul> <li>All functions now accept a <!-- raw HTML omitted -->legend<!-- raw HTML omitted --> parameter, which can be a boolean (to suppress the legend) or one of <!-- raw HTML omitted -->{"auto", "brief", "full"}<!-- raw HTML omitted --> to control the amount of information shown in the legend for a numerical color mapping.</li> <li>All functions now accept a callable <!-- raw HTML omitted -->formatter<!-- raw HTML omitted --> parameter to control the string representation of the data.</li> <li>All functions that draw a solid patch now accept a boolean <!-- raw HTML omitted -->fill<!-- raw HTML omitted --> parameter, which when set to <!-- raw HTML omitted -->False<!-- raw HTML omitted --> will draw line-art elements.</li> <li>All functions that support dodging now have an additional <!-- raw HTML omitted -->gap<!-- raw HTML omitted --> parameter that can be set to a non-zero value to leave space between dodged elements.</li> <li>The <code>boxplot</code>, <code>boxenplot</code>, and <code>violinplot</code> functions now support a single <!-- raw HTML omitted -->linecolor<!-- raw HTML omitted --> parameter.</li> <li>The default value for <!-- raw HTML omitted -->dodge<!-- raw HTML omitted --> has changed from <!-- raw HTML omitted -->True<!-- raw HTML omitted --> to <!-- raw HTML omitted -->"auto"<!-- raw HTML omitted -->. With <!-- raw HTML omitted -->"auto"<!-- raw HTML omitted -->, elements will dodge only when at least one set of elements would otherwise overlap.</li> <li>When the value axis of the plot has a non-linear scale, the statistical operations (e.g. an aggregation in <code>pointplot</code> or the kernel density fit in <code>violinplot</code>) are now applied in that scale space.</li> <li>All functions now accept a <!-- raw HTML omitted -->log_scale<!-- raw HTML omitted --> parameter. With a single argument, this will set the scale on the "value" axis (<em>opposite</em> the categorical axis). A tuple will set each axis directly (although setting a log scale categorical axis also requires <!-- raw HTML omitted -->native_scale=True<!-- raw HTML omitted -->).</li> <li>The <!-- raw HTML omitted -->orient<!-- raw HTML omitted --> parameter now accepts <!-- raw HTML omitted -->"x"/"y"<!-- raw HTML omitted --> to specify the categorical axis, matching the objects interface.</li> <li>The categorical functions are generally more deferential to the user's additional matplotlib keyword arguments.</li> <li>Using <!-- raw HTML omitted -->"gray"<!-- raw HTML omitted --> to select an automatic gray value that complements the main palette is now deprecated in favor of <!-- raw HTML omitted -->"auto"<!-- raw HTML omitted -->.</li> </ul> <p>The following updates are function-specific.</p> <ul> <li>In <code>pointplot</code>, a single <code>matplotlib.lines.Line2D</code> artist is now used rather than adding separate <code>matplotlib.collections.PathCollection</code> artist for the points. As a result, it is now possible to pass additional keyword arguments for complete customization the appearance of both the lines and markers; additionally, the legend representation is improved. Accordingly, parameters that previously allowed only partial customization (<!-- raw HTML omitted -->scale<!-- raw HTML omitted -->, <!-- raw HTML omitted -->join<!-- raw HTML omitted -->, and <!-- raw HTML omitted -->errwidth<!-- raw HTML omitted -->) are now deprecated. The old parameters will now trigger detailed warning messages with instructions for adapting existing code.</li> <li>The bandwidth specification in <code>violinplot</code> better aligns with <code>kdeplot</code>, as the <!-- raw HTML omitted -->bw<!-- raw HTML omitted --> parameter is now deprecated in favor of <!-- raw HTML omitted -->bw_method<!-- raw HTML omitted --> and <!-- raw HTML omitted -->bw_adjust<!-- raw HTML omitted -->.</li> <li>In <code>boxenplot</code>, the boxen are now drawn with separate patch artists in each tail. This may have consequences for code that works with the underlying artists, but it produces a better result for low-alpha / unfilled plots and enables proper area/density scaling.</li> <li>In <code>barplot</code>, the <!-- raw HTML omitted -->errcolor<!-- raw HTML omitted --> and <!-- raw HTML omitted -->errwidth<!-- raw HTML omitted --> parameters are now deprecated in favor of a more general <!-- raw HTML omitted -->err_kws<!-- raw HTML omitted -->` dictionary. The existing parameters will continue to work for two releases.</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="f2abeb0113
"><code>f2abeb0</code></a> Update version metadata to 0.13.0</li> <li><a href="d657c54add
"><code>d657c54</code></a> Merge branch 'master' into v0.13</li> <li><a href="a8b6cac4c8
"><code>a8b6cac</code></a> Assorted small doc updates (<a href="https://redirect.github.com/mwaskom/seaborn/issues/3502">#3502</a>)</li> <li><a href="4888797c7a
"><code>4888797</code></a> Avoid a matplotlib warning for strip/swarmplot with unfilled marker (<a href="https://redirect.github.com/mwaskom/seaborn/issues/3501">#3501</a>)</li> <li><a href="782b71ee81
"><code>782b71e</code></a> Address a couple of warnings that turned up only in the docs (<a href="https://redirect.github.com/mwaskom/seaborn/issues/3500">#3500</a>)</li> <li><a href="6b9e2fb93b
"><code>6b9e2fb</code></a> Fix catplot with kind='point' to avoid color warning (<a href="https://redirect.github.com/mwaskom/seaborn/issues/3499">#3499</a>)</li> <li><a href="43d762ef50
"><code>43d762e</code></a> Set version string for v0.13.0rc0</li> <li><a href="0d46709b4a
"><code>0d46709</code></a> Postpone some removals of deprecated features (<a href="https://redirect.github.com/mwaskom/seaborn/issues/3497">#3497</a>)</li> <li><a href="b2f0de03b1
"><code>b2f0de0</code></a> Update release notes</li> <li><a href="92c22bc699
"><code>92c22bc</code></a> Restore implicit hue for wide categorical data (<a href="https://redirect.github.com/mwaskom/seaborn/issues/3496">#3496</a>)</li> <li>Additional commits viewable in <a href="https://github.com/mwaskom/seaborn/compare/v0.12.2...v0.13.0">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
aki_prj23_transparenzregister
Contributions
See the CONTRIBUTING.md about how code should be formatted and what kind of rules we set ourselves.
Available entrypoints
The project has currently the following entrypoint available:
- data-transformation > Transfers all the data from the mongodb into the sql db to make it available as production data.
- reset-sql > Resets all sql tables in the connected db.
- copy-sql > Copys the content of a db to another db.
- webserver > Starts the webserver showing the analysis results.
DB Connection settings
To connect to the SQL db see sql/connector.py To connect to the Mongo db see [connect]
Create a secrets.json
in the root of this repo with the following structure (values to be replaces by desired config):
The sqlite db is alternative to the postgres section.
{
"sqlite": "path-to-sqlite.db",
"postgres": {
"username": "username",
"password": "password",
"host": "localhost",
"database": "db-name",
"port": 5432
},
"mongo": {
"username": "username",
"password": "password",
"host": "localhost",
"database": "transparenzregister",
"port": 27017
}
}
Alternatively, the secrets can be provided as environment variables. One option to do so is to add a .env
file with
the following layout:
PYTHON_POSTGRES_USERNAME=postgres
PYTHON_POSTGRES_PASSWORD=postgres
PYTHON_POSTGRES_HOST=localhost
PYTHON_POSTGRES_DATABASE=postgres
PYTHON_POSTGRES_PORT=5432
PYTHON_MONGO_USERNAME=username
PYTHON_MONGO_HOST=localhost
PYTHON_MONGO_PASSWORD=password
PYTHON_MONGO_PORT=27017
PYTHON_MONGO_DATABASE=transparenzregister
PYTHON_SQLITE_PATH=PathToSQLite3.db # An overwrite path to an sqllite db
PYTHON_DASH_LOGIN_USERNAME=some-login-to-webgui
PYTHON_DASH_LOGIN_PW=some-pw-to-login-to-webgui
CR=ghcr.io/fhswf/aki_prj23_transparenzregister
TAG=latest
HTTP_PORT=80
The prefix PYTHON_
can be customized by setting a different prefix
when constructing the ConfigProvider.
Description
Languages
Jupyter Notebook
84.5%
HTML
12.1%
Python
3.3%