Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Factor: Regulatory Frameworks #37

Open
Tracked by #15
timlinux opened this issue Jun 21, 2024 · 5 comments
Open
Tracked by #15

Factor: Regulatory Frameworks #37

timlinux opened this issue Jun 21, 2024 · 5 comments
Labels
🗾 Contextual Dimension 🔍️ Factor Analysis factors

Comments

@timlinux
Copy link

Check and ensure that we have unit tests, implementation and verified results for this indicator

image

@timlinux timlinux changed the title Indicator: Regulatory Frameworks Factor: Regulatory Frameworks Jun 21, 2024
@amyburness amyburness added the 🗾 Contextual Dimension label Jun 21, 2024
@timlinux timlinux added the 🔍️ Factor Analysis factors label Jun 21, 2024
@carolinamayh
Copy link
Collaborator

All the factors in the Contextual Dimension are sourced from the Women, Business, and the Law database, which provides scores ranging from 0 to 100, with 100 being the highest possible score. The Regulatory Frameworks score is obtained from the average of the Pay and Parenthood indexes. The user should be able to input both scores, and the tool would calculate the average, standardize it to a scale from 0 to 5, and apply it to the entire country.

@mvmaltitz mvmaltitz added the Size 8 This is a full day job label Jul 5, 2024
@carolinamayh
Copy link
Collaborator

carolinamayh commented Jul 11, 2024

I do not understand why a whole day of work is needed if the Contextual Dimension factors have no spatial variability within a country and only represent a single score for the entire nation. The user should be able to add this score, which is on a scale from 0 to 100, and it should be standardized to a scale from 0 to 5 and assigned to the entire territory.

@carolinamayh carolinamayh added Size 2 Give me 2 hours and I will have it for you and removed Size 8 This is a full day job labels Jul 11, 2024
@dragosgontariu
Copy link
Collaborator

error encountered:

Could not create layer D:/Munca/WB/Geest/St_Lucia/Testing/07082024/temp/countryBuff.shp: Creation of layer failed (OGR error: Failed to create file D:/Munca/WB/Geest/St_Lucia/Testing/07082024/temp\countryBuff.shp: No such file or directory)

@osundwajeff @mvmaltitz @javaftw

@mvmaltitz mvmaltitz added this to the Indicator Enhancements milestone Aug 13, 2024
@mvmaltitz mvmaltitz removed the Size 2 Give me 2 hours and I will have it for you label Aug 15, 2024
@mvmaltitz
Copy link

Input and result:

Image

@mvmaltitz mvmaltitz mentioned this issue Sep 4, 2024
25 tasks
@mvmaltitz
Copy link

Test Results

Data

Link: https://drive.google.com/file/d/1-3UpliiCotIfNoTtB6_CmQoBjrj6z6bX/view?usp=sharing
All data has been converted into EPSG:8859

Contextual

Each Factors in Contextual Dimension completed.

Screenshot 2024-09-12 190112
Screenshot 2024-09-12 190406
Screenshot 2024-09-12 190544

Contextual_score also succeed with some Python error. Although the Contextual_score.tif exist but the value is incorrect, then it means the script failed to generate the correct value and save as a file.

2024-09-12T19:06:09     WARNING    Traceback (most recent call last):
              File "C:\Users/benny/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\gender_indicator_tool\gender_indicator_tool.py", line 6009, in contextual_aggregation
              with rasterio.open(aggregation, "w", **meta1) as dst:
              File "C:\Users\benny\AppData\Roaming\Python\Python39\site-packages\rasterio\env.py", line 451, in wrapper
              return f(*args, **kwds)
              File "C:\Users\benny\AppData\Roaming\Python\Python39\site-packages\rasterio\__init__.py", line 341, in open
              dataset = writer(
              File "rasterio\\_io.pyx", line 1464, in rasterio._io.DatasetWriterBase.__init__
              File "rasterio\\_io.pyx", line 330, in rasterio._io._delete_dataset_if_exists
              File "rasterio\\_err.pyx", line 195, in rasterio._err.exc_wrap_int
             rasterio._err.CPLE_AppDefinedError: Deleting Contextual_score.tif failed: Permission denied

See ticket #134 and #135 for more full testing results

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🗾 Contextual Dimension 🔍️ Factor Analysis factors
Projects
None yet
Development

No branches or pull requests

5 participants