From 06389560288bcd60cda3403db872c74de55f0a0f Mon Sep 17 00:00:00 2001 From: MartijnPentenga Date: Tue, 13 Feb 2024 21:47:55 +0100 Subject: [PATCH] changed app and backend version location in side plane --- imxInsightsCli/imxDiffCli/imx_diff.py | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/imxInsightsCli/imxDiffCli/imx_diff.py b/imxInsightsCli/imxDiffCli/imx_diff.py index f3afed5..153d150 100644 --- a/imxInsightsCli/imxDiffCli/imx_diff.py +++ b/imxInsightsCli/imxDiffCli/imx_diff.py @@ -47,21 +47,29 @@ class ImxDiffApp(App): latest_release_on_github = get_latest_release_github("Hazedd", "imxInsightsCli") if latest_release_on_github is not None and latest_release_on_github.tag_name != imxDiffCliVersion: - warning_text = (f"\nāš ļø NOT THE LATEST STABLE VERSION: {latest_release_on_github.tag_name}!!\n") + warning_text = (f"\nāš ļø THIS IS NOT THE LATEST STABLE VERSION: {latest_release_on_github.tag_name}!!\n" + f"if the higher this is a preview version, if version is lower you should grab it šŸ˜‰\n") EXAMPLE_MARKDOWN = """ -# Welcome to IMX Diff Version <> using ImxInsights: <>! +# Welcome to IMX Diff using the awesome python library ImxInsights! +### version <> <> IMX Diff CLI solution for comparing IMX files and generating comprehensive insights in Excel format. Additionally, this tool provides the ability to create GeoJSON files to document the differences between IMX datasets. +We use imxInsights <> in the background. + ## when interested in a population, just diff same file, same situation šŸ˜‰. ### IMX A and B: - set the file path to the imx file. - select the situation to diff. - to copy a file path use "control + shift + v" šŸ˜Š,.. remove the '"' on start and end position šŸ˜‰. - + - To enable this right-click on the title bar of the Command Prompt window. + - Select "Properties" from the context menu. + - In the Properties window, go to the "Options" tab. + - Look for "Enable Ctrl key shortcuts" option and make sure it's checked. + ### Output folder: - set the output folder path where a folder called output will be created. - overwriting is not implemented and disabled, make sure it's empty. @@ -154,7 +162,6 @@ def on_button_pressed(self, event: Button.Pressed) -> None: imx_situation_1 = imx.get_situation_repository(ImxSituationsEnum[imx_situation_1]) imx_situation_2 = imx_old.get_situation_repository(ImxSituationsEnum[imx_situation_2]) - # todo: check if situations exist if not imx_situation_1: errors.append(f"Situation selected at file A not present in the file.") if not imx_situation_2: @@ -167,6 +174,10 @@ def on_button_pressed(self, event: Button.Pressed) -> None: diff = ImxDiff(imx_situation_1, imx_situation_2) if event.button.id == "create_geojson": + + # todo: create area geojsons + + geojson_dict = diff.generate_geojson_dict() for key, value in geojson_dict.items():