Skip to content

Commit

Permalink
move files and athena folders
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinL committed May 20, 2024
1 parent 6a5c981 commit 11a1c7b
Show file tree
Hide file tree
Showing 51 changed files with 10 additions and 13 deletions.
Empty file.
Empty file.
File renamed without changes.
2 changes: 1 addition & 1 deletion splink/internals/charts.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def save_offline_chart(
if type(chart_dict).__name__ == "VegaliteNoValidate":
chart_dict = chart_dict.spec

template = read_resource("../files/templates/single_chart_template.html")
template = read_resource("files/templates/single_chart_template.html")

fmt_dict = _load_external_libs()

Expand Down
2 changes: 1 addition & 1 deletion splink/internals/cluster_studio.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ def render_splink_cluster_studio_html(
edges_recs = df_edges_as_records(linker, df_predicted_edges, df_nodes)

# Render template with cluster, nodes and edges
template_path = "../files/splink_cluster_studio/cluster_template.j2"
template_path = "files/splink_cluster_studio/cluster_template.j2"
template = Template(read_resource(template_path))

template_data: dict[str, Any] = {
Expand Down
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions splink/internals/labelling_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,13 @@ def render_labelling_tool_html(

comparisons_recs = comparisons_recs.to_dict(orient="records")
# Render template with cluster, nodes and edges
template_path = "../files/labelling_tool/template.j2"
template_path = "files/labelling_tool/template.j2"
template = Template(read_resource(template_path))

template_data = {
"slt": read_resource("../files/labelling_tool/slt.js"),
"d3": read_resource("../files/external_js/[email protected]"),
"stdlib": read_resource("../files/external_js/[email protected]"),
"slt": read_resource("files/labelling_tool/slt.js"),
"d3": read_resource("files/external_js/[email protected]"),
"stdlib": read_resource("files/external_js/[email protected]"),
"pairwise_comparison_data": json.dumps(comparisons_recs, cls=EverythingEncoder),
"splink_settings_data": json.dumps(settings, cls=EverythingEncoder),
"view_in_jupyter": view_in_jupyter,
Expand Down
2 changes: 1 addition & 1 deletion splink/internals/spark/database_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from pyspark.sql.dataframe import DataFrame as spark_df
from pyspark.sql.utils import AnalysisException

from splink.databricks.enable_splink import enable_splink
from splink.internals.databricks.enable_splink import enable_splink
from splink.internals.database_api import AcceptableInputTableType, DatabaseAPI
from splink.internals.dialects import (
SparkDialect,
Expand Down
2 changes: 1 addition & 1 deletion splink/internals/splink_comparison_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def render_splink_comparison_viewer_html(
# rather than bundling the whole thing into the html
bundle_observable_notebook = True

template_path = "../files/splink_comparison_viewer/template.j2"
template_path = "files/splink_comparison_viewer/template.j2"
template = Template(read_resource(template_path))

template_data: dict[str, Any] = {
Expand Down
2 changes: 1 addition & 1 deletion splink/internals/validate_jsonschema.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

@lru_cache()
def get_schema():
path = "../files/settings_jsonschema.json"
path = "files/settings_jsonschema.json"
return json.loads(read_resource(path))


Expand Down
5 changes: 1 addition & 4 deletions tests/test_sql_transform.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import sqlglot

from splink.athena.athena_helpers.athena_transforms import cast_concat_as_varchar
from splink.internals.athena.athena_helpers.athena_transforms import cast_concat_as_varchar
from splink.internals.input_column import InputColumn
from splink.internals.spark.spark_helpers.custom_spark_dialect import (
Dialect, # noqa 401
)
from splink.internals.sql_transform import (
move_l_r_table_prefix_to_column_suffix,
sqlglot_transform_sql,
Expand Down

0 comments on commit 11a1c7b

Please sign in to comment.