mws-lab 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mws_lab-1.0.0/AUTHORS.md +134 -0
- mws_lab-1.0.0/CHANGELOG.md +148 -0
- mws_lab-1.0.0/CITATION.cff +58 -0
- mws_lab-1.0.0/CONTRIBUTING.md +105 -0
- mws_lab-1.0.0/LICENSE +110 -0
- mws_lab-1.0.0/MANIFEST.in +26 -0
- mws_lab-1.0.0/PKG-INFO +529 -0
- mws_lab-1.0.0/README.md +481 -0
- mws_lab-1.0.0/VERSION +1 -0
- mws_lab-1.0.0/mws_lab/__init__.py +17 -0
- mws_lab-1.0.0/mws_lab/data/input.json +8 -0
- mws_lab-1.0.0/mws_lab/data/worldbank_data.csv +131 -0
- mws_lab-1.0.0/mws_lab/fetch.py +92 -0
- mws_lab-1.0.0/mws_lab.egg-info/PKG-INFO +529 -0
- mws_lab-1.0.0/mws_lab.egg-info/SOURCES.txt +22 -0
- mws_lab-1.0.0/mws_lab.egg-info/dependency_links.txt +1 -0
- mws_lab-1.0.0/mws_lab.egg-info/entry_points.txt +2 -0
- mws_lab-1.0.0/mws_lab.egg-info/requires.txt +16 -0
- mws_lab-1.0.0/mws_lab.egg-info/top_level.txt +1 -0
- mws_lab-1.0.0/pyproject.toml +88 -0
- mws_lab-1.0.0/requirements.txt +27 -0
- mws_lab-1.0.0/setup.cfg +90 -0
- mws_lab-1.0.0/setup.py +90 -0
mws_lab-1.0.0/AUTHORS.md
ADDED
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
# Morocco_Water_Scarcity — Authors and Contributors
|
|
2
|
+
|
|
3
|
+
## Principal Investigator
|
|
4
|
+
|
|
5
|
+
**Samir Baladi**
|
|
6
|
+
|
|
7
|
+
*Role:* Interdisciplinary AI Researcher — Conceptual architecture, study
|
|
8
|
+
design, data curation, formal analysis, methodology, software, validation,
|
|
9
|
+
and manuscript preparation.
|
|
10
|
+
|
|
11
|
+
*Contact:* gitdeeper@gmail.com
|
|
12
|
+
|
|
13
|
+
*ORCID:* [0009-0003-8903-0029](https://orcid.org/0009-0003-8903-0029)
|
|
14
|
+
|
|
15
|
+
*Affiliation:* Ronin Institute / Rite of Renaissance
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## Manuscript Status
|
|
20
|
+
|
|
21
|
+
This project is a **completed research release** (`1.0.0`).
|
|
22
|
+
|
|
23
|
+
The manuscript, seven figures, the World Bank data extract, the analysis
|
|
24
|
+
pipeline, the Python build artifacts, and the project website are all
|
|
25
|
+
included in this release. An external review was completed on 2026-11-02.
|
|
26
|
+
|
|
27
|
+
The analysis is **exploratory and associational**; no causal claims are made.
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## Conceptual and Methodological Foundations
|
|
32
|
+
|
|
33
|
+
The research draws on five intersecting domains:
|
|
34
|
+
|
|
35
|
+
### 1. Environmental and Earth Sciences
|
|
36
|
+
- Freshwater resource assessment.
|
|
37
|
+
- Water scarcity indicators (Falkenmark, water-stress index).
|
|
38
|
+
- Climate and rainfall variability.
|
|
39
|
+
- Groundwater depletion and dam storage dynamics.
|
|
40
|
+
|
|
41
|
+
### 2. Agricultural and Water Policy
|
|
42
|
+
- Agricultural water demand.
|
|
43
|
+
- Irrigation efficiency.
|
|
44
|
+
- Water reuse and desalination capacity.
|
|
45
|
+
- National water strategy (Morocco's 2025 State of the Environment Report).
|
|
46
|
+
|
|
47
|
+
### 3. Statistics and Econometrics
|
|
48
|
+
- Ordinary least squares regression.
|
|
49
|
+
- Multicollinearity diagnostics (VIF, condition number).
|
|
50
|
+
- Confidence intervals and hypothesis testing.
|
|
51
|
+
- Correlation analysis (Pearson matrix).
|
|
52
|
+
|
|
53
|
+
### 4. Data Science and Reproducibility
|
|
54
|
+
- World Bank WDI data extraction.
|
|
55
|
+
- Reproducible analysis pipeline (Python 3.9+).
|
|
56
|
+
- Versioned datasets and fixed seeds.
|
|
57
|
+
|
|
58
|
+
### 5. Science Communication and Open Research
|
|
59
|
+
- Open data licensing (CC-BY-4.0 for World Bank data).
|
|
60
|
+
- Open manuscript (CC-BY-4.0).
|
|
61
|
+
- Open code (MIT).
|
|
62
|
+
- Zenodo DOI deposit for permanent citation.
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## CRediT Contributor Roles
|
|
67
|
+
|
|
68
|
+
Per the [Contributor Roles Taxonomy (CRediT)](https://credit.niso.org/):
|
|
69
|
+
|
|
70
|
+
| Role | Contributor |
|
|
71
|
+
|------|-------------|
|
|
72
|
+
| Conceptualization | Samir Baladi |
|
|
73
|
+
| Data curation | Samir Baladi |
|
|
74
|
+
| Formal Analysis | Samir Baladi |
|
|
75
|
+
| Funding acquisition | — (none) |
|
|
76
|
+
| Investigation | Samir Baladi |
|
|
77
|
+
| Methodology | Samir Baladi |
|
|
78
|
+
| Project administration | Samir Baladi |
|
|
79
|
+
| Resources | — (none) |
|
|
80
|
+
| Software | Samir Baladi |
|
|
81
|
+
| Supervision | Samir Baladi |
|
|
82
|
+
| Validation | Samir Baladi |
|
|
83
|
+
| Visualization | Samir Baladi |
|
|
84
|
+
| Writing — original draft | Samir Baladi |
|
|
85
|
+
| Writing — review & editing | Samir Baladi |
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
## Institutional Support
|
|
90
|
+
|
|
91
|
+
- **Status:** None confirmed.
|
|
92
|
+
- **Pending:** Institutional review board (not required — public data only).
|
|
93
|
+
- **Pending:** Compute resources (analysis runs on commodity hardware).
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## Funding
|
|
98
|
+
|
|
99
|
+
**Status:** No external funding confirmed.
|
|
100
|
+
|
|
101
|
+
**Future funding targets:**
|
|
102
|
+
- Extended analysis across additional MENA countries.
|
|
103
|
+
- Confirmatory study with causal identification.
|
|
104
|
+
- Replication dataset.
|
|
105
|
+
|
|
106
|
+
---
|
|
107
|
+
|
|
108
|
+
## How to Contribute
|
|
109
|
+
|
|
110
|
+
This is a completed research release. Contributions at this stage are limited to:
|
|
111
|
+
|
|
112
|
+
- Corrections (typos, metadata, references).
|
|
113
|
+
- Reproducibility fixes (dependency issues, script bugs).
|
|
114
|
+
- Packaging improvements.
|
|
115
|
+
- Documentation clarity.
|
|
116
|
+
|
|
117
|
+
See [`CONTRIBUTING.md`](CONTRIBUTING.md) for guidelines.
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
121
|
+
## Contact
|
|
122
|
+
|
|
123
|
+
- Scientific inquiries: gitdeeper@gmail.com
|
|
124
|
+
- ORCID: https://orcid.org/0009-0003-8903-0029
|
|
125
|
+
- Zenodo DOI: https://doi.org/10.5281/zenodo.23884236
|
|
126
|
+
- PyPI: https://pypi.org/project/mws-lab/
|
|
127
|
+
- Figshare: https://doi.org/10.6084/m9.figshare.34884417
|
|
128
|
+
- Figshare: https://doi.org/10.6084/m9.figshare.34884417
|
|
129
|
+
- Repository issues: TBD (GitHub repository pending)
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
**Last Updated:** 2026-11-02
|
|
134
|
+
**Current Version:** 1.0.0
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
# Morocco_Water_Scarcity — Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this research project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## [1.0.0] — 2026-11-02
|
|
11
|
+
|
|
12
|
+
### Initial Research Release
|
|
13
|
+
|
|
14
|
+
First public research release of **Water Scarcity in Morocco: A Multivariate
|
|
15
|
+
Analysis of Climatic, Agricultural, and Socioeconomic Drivers**.
|
|
16
|
+
|
|
17
|
+
This release includes the full manuscript, seven figures, the World Bank data
|
|
18
|
+
extract, the analysis pipeline, the Python build artifacts, and the project
|
|
19
|
+
website. The analysis is **exploratory and associational**; no causal claims
|
|
20
|
+
are made.
|
|
21
|
+
|
|
22
|
+
### Added — Research Manuscript
|
|
23
|
+
|
|
24
|
+
- `PUBLICATION/water_scarcity_morocco.pdf` — full manuscript (1.3 MB).
|
|
25
|
+
- `PUBLICATION/credit_table.md` — CRediT contributor roles.
|
|
26
|
+
- Abstract, methodology, results, limitations, and policy implications
|
|
27
|
+
covering Morocco's freshwater trajectory from 2000 to 2025.
|
|
28
|
+
|
|
29
|
+
### Added — Figures (7)
|
|
30
|
+
|
|
31
|
+
- `PUBLICATION/figures/Figure_1_Conceptual_Framework.png`
|
|
32
|
+
- `PUBLICATION/figures/Figure_2_Methodology_Flowchart.png`
|
|
33
|
+
- `PUBLICATION/figures/Figure_3_Selected_Water_Indicators.png`
|
|
34
|
+
- `PUBLICATION/figures/Figure_4_Water_Allocation.png`
|
|
35
|
+
- `PUBLICATION/figures/Figure_5_Rainfall_and_Reservoir_Indicators.png`
|
|
36
|
+
- `PUBLICATION/figures/Figure_6_Correlation_Matrix.png`
|
|
37
|
+
- `PUBLICATION/figures/Figure_7_OLS_Regression_Results.png`
|
|
38
|
+
|
|
39
|
+
### Added — Data
|
|
40
|
+
|
|
41
|
+
- `DATA/raw/worldbank_data.csv` — World Bank WDI extract (16 KB).
|
|
42
|
+
- `DATA/raw/fetch_worldbank_data.py` — reproducible data-fetch script.
|
|
43
|
+
- `DATA/raw/input.json` — indicator configuration.
|
|
44
|
+
|
|
45
|
+
### Added — Analysis
|
|
46
|
+
|
|
47
|
+
- `ANALYSIS/ANALYSIS_REPORT.md` — analysis summary.
|
|
48
|
+
- `ANALYSIS/analysis_insights.json` — structured insights.
|
|
49
|
+
- OLS regression with full diagnostics (VIF, condition number, CIs).
|
|
50
|
+
- Pairwise Pearson correlation matrix.
|
|
51
|
+
- Descriptive statistics and trend summaries.
|
|
52
|
+
|
|
53
|
+
### Added — Publication Artifacts
|
|
54
|
+
|
|
55
|
+
- `PUBLICATION/Netlify/` — project website
|
|
56
|
+
(`index.html`, `dashboard.html`, `documentation.html`, `reports.html`,
|
|
57
|
+
`assets/style.css`, `project.json`).
|
|
58
|
+
- `PUBLICATION/dist/` — Python package artifacts
|
|
59
|
+
(`morocco-water-scarcity-1.0.0-py3-none-any.whl`,
|
|
60
|
+
`morocco-water-scarcity-1.0.0.tar.gz`).
|
|
61
|
+
- `PUBLICATION/manifest.json`, `PUBLICATION/output_summary.txt`.
|
|
62
|
+
- `PUBLICATION/ste_website_steering.json`, `PUBLICATION/netlify.toml`.
|
|
63
|
+
|
|
64
|
+
### Added — Governance and Audit
|
|
65
|
+
|
|
66
|
+
- `EXTERNAL_REVIEW/` — external review record (2026-11-02).
|
|
67
|
+
- `REPORTS/dpia_report.md`, `REPORTS/dpia_report.json` — data protection
|
|
68
|
+
impact assessment.
|
|
69
|
+
- `REPORTS/compliance_audit_report.json`.
|
|
70
|
+
- `REPORTS/citation_report.md`, `REPORTS/reference_alignment_report.json`,
|
|
71
|
+
`REPORTS/reference_audit_report.json`, `REPORTS/reference_resolver_report.json`.
|
|
72
|
+
- `REPORTS/evaluation_report.json`, `REPORTS/feedback_report.json`.
|
|
73
|
+
- `REPORTS/results_consistency_report.json`, `REPORTS/review_sync_report.json`.
|
|
74
|
+
- `VALIDATION/.lock/language_lock_report.json`.
|
|
75
|
+
|
|
76
|
+
### Added — Documentation
|
|
77
|
+
|
|
78
|
+
- `README.md` — full project overview (460 lines, 8 badges).
|
|
79
|
+
- `AUTHORS.md` — author and contributor record.
|
|
80
|
+
- `CITATION.cff` — citation metadata with Zenodo DOI and ORCID.
|
|
81
|
+
- `CHANGELOG.md` — this file.
|
|
82
|
+
- `CONTRIBUTING.md` — contribution guidelines.
|
|
83
|
+
- `LICENSE` — MIT (code) and CC-BY-4.0 (manuscript, figures, documentation).
|
|
84
|
+
- `docs/ITERATION_LOG.md` — iteration history.
|
|
85
|
+
- `docs/comprehensive_audit_report.json` — consolidated audit.
|
|
86
|
+
|
|
87
|
+
### Added — Project Infrastructure
|
|
88
|
+
|
|
89
|
+
- `VERSION` — `1.0.0`.
|
|
90
|
+
- `requirements.txt` — Python dependencies.
|
|
91
|
+
- `pyproject.toml` — project metadata.
|
|
92
|
+
- `MANIFEST.in` — distribution manifest.
|
|
93
|
+
- `.gitignore` — standard Python/OS/IDE ignores.
|
|
94
|
+
- `FINAL_REPORT.json` — pipeline execution record (70 agents).
|
|
95
|
+
- `scientific_state.json` — internal scientific state record.
|
|
96
|
+
|
|
97
|
+
### Status
|
|
98
|
+
|
|
99
|
+
| Dimension | Status |
|
|
100
|
+
|-----------|--------|
|
|
101
|
+
| Manuscript | Complete (PDF) |
|
|
102
|
+
| Figures | 7 included |
|
|
103
|
+
| Data | World Bank WDI (5 indicators) |
|
|
104
|
+
| Analysis | OLS with diagnostics |
|
|
105
|
+
| Sample | n = 16 (model sample) |
|
|
106
|
+
| Model R² | 0.812 |
|
|
107
|
+
| Package | Built (`dist/`) |
|
|
108
|
+
| Website | Built (Netlify) |
|
|
109
|
+
| Quality gate | PASSED |
|
|
110
|
+
| Causal claims | None (associational) |
|
|
111
|
+
| External review | Completed (2026-11-02) |
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
## Roadmap
|
|
116
|
+
|
|
117
|
+
### 1.0.1 — Maintenance
|
|
118
|
+
|
|
119
|
+
- Fix any packaging issues discovered post-release.
|
|
120
|
+
- Correct typos or metadata inconsistencies.
|
|
121
|
+
- Update DOI if re-published on Zenodo.
|
|
122
|
+
|
|
123
|
+
### 1.1.0 — Extended Analysis (planned)
|
|
124
|
+
|
|
125
|
+
- Extend the sample beyond 2000–2025 if new data becomes available.
|
|
126
|
+
- Sensitivity analysis across alternative indicator definitions.
|
|
127
|
+
- Supplementary figures for policy scenarios.
|
|
128
|
+
|
|
129
|
+
### 2.0.0 — Confirmatory Study (planned)
|
|
130
|
+
|
|
131
|
+
- Pre-registered design.
|
|
132
|
+
- Causal identification strategy (e.g., panel methods or natural experiments).
|
|
133
|
+
- External replication dataset.
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
## Notes on the Changelog
|
|
138
|
+
|
|
139
|
+
- Substantive changes only.
|
|
140
|
+
- Any change to the analysis protocol after release is recorded as an
|
|
141
|
+
amendment with explicit rationale.
|
|
142
|
+
- Numeric thresholds and diagnostic cutoffs follow standard practice
|
|
143
|
+
(e.g., VIF, condition number) and are not tuned to results.
|
|
144
|
+
|
|
145
|
+
---
|
|
146
|
+
|
|
147
|
+
**Last Updated:** 2026-11-02
|
|
148
|
+
**Current Version:** 1.0.0
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
cff-version: 1.2.0
|
|
2
|
+
title: "Water Scarcity in Morocco: A Multivariate Analysis of Climatic, Agricultural, and Socioeconomic Drivers"
|
|
3
|
+
message: "If you use this research, data, or code, please cite as below."
|
|
4
|
+
type: software
|
|
5
|
+
version: "1.0.0"
|
|
6
|
+
date-released: "2026-11-02"
|
|
7
|
+
license: MIT
|
|
8
|
+
abstract: |
|
|
9
|
+
An exploratory associational analysis of the climatic, agricultural,
|
|
10
|
+
and socioeconomic drivers of national freshwater withdrawals in Morocco
|
|
11
|
+
(2000-2025). The study uses five publicly available World Bank
|
|
12
|
+
indicators, supplemented by national indicators from Morocco's 2025
|
|
13
|
+
State of the Environment Report, and applies ordinary least squares
|
|
14
|
+
regression with full diagnostics (VIF, condition number, confidence
|
|
15
|
+
intervals).
|
|
16
|
+
|
|
17
|
+
Key findings include a model R-squared of 0.812 on a sample of n = 16,
|
|
18
|
+
with agricultural water demand emerging as the dominant driver of
|
|
19
|
+
withdrawal trajectories. Morocco's renewable freshwater per capita
|
|
20
|
+
fell from approximately 2,560 cubic meters per year in 1960 to about
|
|
21
|
+
620 cubic meters in 2020, well inside the United Nations absolute
|
|
22
|
+
water-scarcity threshold.
|
|
23
|
+
|
|
24
|
+
The analysis is explicitly exploratory and associational. It is not
|
|
25
|
+
designed to establish causal attribution, and its conclusions should
|
|
26
|
+
be read as hypothesis-generating rather than confirmatory.
|
|
27
|
+
keywords:
|
|
28
|
+
- water scarcity
|
|
29
|
+
- morocco
|
|
30
|
+
- world bank indicators
|
|
31
|
+
- OLS regression
|
|
32
|
+
- environmental science
|
|
33
|
+
- water policy
|
|
34
|
+
- agricultural water demand
|
|
35
|
+
- climate change
|
|
36
|
+
- freshwater withdrawals
|
|
37
|
+
authors:
|
|
38
|
+
- family-names: "Baladi"
|
|
39
|
+
given-names: "Samir"
|
|
40
|
+
email: "gitdeeper@gmail.com"
|
|
41
|
+
orcid: "https://orcid.org/0009-0003-8903-0029"
|
|
42
|
+
affiliation: "Ronin Institute / Rite of Renaissance"
|
|
43
|
+
repository-code: "TBD"
|
|
44
|
+
url: "https://mws-lab.netlify.app"
|
|
45
|
+
url: "https://doi.org/10.5281/zenodo.23884236"
|
|
46
|
+
identifiers:
|
|
47
|
+
- type: doi
|
|
48
|
+
value: "10.5281/zenodo.23884236"
|
|
49
|
+
- type: doi
|
|
50
|
+
value: "10.6084/m9.figshare.34884417"
|
|
51
|
+
- type: url
|
|
52
|
+
value: "https://doi.org/10.5281/zenodo.23884236"
|
|
53
|
+
- type: url
|
|
54
|
+
value: "https://doi.org/10.6084/m9.figshare.34884417"
|
|
55
|
+
- type: url
|
|
56
|
+
value: "https://mws-lab.netlify.app"
|
|
57
|
+
- type: url
|
|
58
|
+
value: "https://pypi.org/project/mws-lab/"
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# Contributing to Morocco_Water_Scarcity
|
|
2
|
+
|
|
3
|
+
**Water Scarcity in Morocco: A Multivariate Analysis of Climatic, Agricultural, and Socioeconomic Drivers**
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Status
|
|
8
|
+
|
|
9
|
+
This project is a **completed research release** (`1.0.0`). The manuscript,
|
|
10
|
+
figures, data, and analysis pipeline are published.
|
|
11
|
+
|
|
12
|
+
Contributions at this stage are limited to:
|
|
13
|
+
|
|
14
|
+
- **Corrections**: typos, incorrect references, metadata errors.
|
|
15
|
+
- **Reproducibility fixes**: dependency issues, broken scripts.
|
|
16
|
+
- **Packaging fixes**: build artifacts, file structure.
|
|
17
|
+
- **Documentation clarity**: ambiguities in README or methodology.
|
|
18
|
+
|
|
19
|
+
**Not accepted at this stage:**
|
|
20
|
+
|
|
21
|
+
- New analyses that change the reported findings.
|
|
22
|
+
- Changes to the OLS specification or indicator definitions.
|
|
23
|
+
- Rewriting the manuscript's conclusions.
|
|
24
|
+
- New dependencies unless justified as a reproducibility fix.
|
|
25
|
+
|
|
26
|
+
For extensions (new analyses, sensitivity checks, confirmatory studies),
|
|
27
|
+
open an issue first to discuss scope.
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## Reporting Issues
|
|
32
|
+
|
|
33
|
+
Open an issue with:
|
|
34
|
+
|
|
35
|
+
- A one-sentence description.
|
|
36
|
+
- The affected file (e.g., `README.md`, `DATA/raw/fetch_worldbank_data.py`).
|
|
37
|
+
- A minimal reproduction or screenshot.
|
|
38
|
+
- Expected vs. actual behavior.
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
## Submitting Corrections
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
git checkout -b fix/short-description
|
|
46
|
+
# make changes
|
|
47
|
+
git commit -m "fix: short description"
|
|
48
|
+
git push origin fix/short-description
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Then open a pull request. Each PR should address one concern.
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
Code Standards
|
|
56
|
+
|
|
57
|
+
Language Standard
|
|
58
|
+
Python PEP 8, black (88 chars), isort, flake8
|
|
59
|
+
Markdown markdownlint (MD013 disabled)
|
|
60
|
+
YAML yamllint
|
|
61
|
+
|
|
62
|
+
Reproducibility: every code change must reproduce the results reported in
|
|
63
|
+
PUBLICATION/water_scarcity_morocco.pdf on a clean environment. If a change
|
|
64
|
+
alters any reported number (R², coefficients, p-values), it is not a
|
|
65
|
+
correction — open an issue to discuss.
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
Data Provenance
|
|
70
|
+
|
|
71
|
+
Data under DATA/raw/ originates from:
|
|
72
|
+
|
|
73
|
+
· World Bank WDI — public domain (CC-BY-4.0), see
|
|
74
|
+
.
|
|
75
|
+
· Morocco 2025 State of the Environment Report — cited per source terms.
|
|
76
|
+
|
|
77
|
+
Do not commit derived data that is not reproducible from the scripts in
|
|
78
|
+
DATA/raw/. Do not commit personal or sensitive data (none exists in the
|
|
79
|
+
current dataset).
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
Review Process
|
|
84
|
+
|
|
85
|
+
· All changes are reviewed by the maintainer (Samir Baladi).
|
|
86
|
+
· Changes to the manuscript, figures, or reported numbers require explicit
|
|
87
|
+
documentation in CHANGELOG.md with rationale.
|
|
88
|
+
· After the 1.0.0 release, any change to reported findings would require a
|
|
89
|
+
new version (e.g., 1.1.0) with a new DOI deposit on Zenodo.
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
Contact
|
|
94
|
+
|
|
95
|
+
· Email: gitdeeper@gmail.com
|
|
96
|
+
· ORCID: https://orcid.org/0009-0003-8903-0029
|
|
97
|
+
· Zenodo DOI: https://doi.org/10.5281/zenodo.23884236
|
|
98
|
+
· PyPI: https://pypi.org/project/mws-lab/
|
|
99
|
+
· Figshare: https://doi.org/10.6084/m9.figshare.34884417
|
|
100
|
+
· Figshare: https://doi.org/10.6084/m9.figshare.34884417
|
|
101
|
+
· Website: https://mws-lab.netlify.app
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
Thank you for helping improve the reproducibility of this research.
|
mws_lab-1.0.0/LICENSE
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Samir Baladi
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## Scope of This License
|
|
26
|
+
|
|
27
|
+
The MIT License above applies to:
|
|
28
|
+
|
|
29
|
+
- All source code in this repository, including
|
|
30
|
+
`DATA/raw/fetch_worldbank_data.py` and any auxiliary scripts.
|
|
31
|
+
- The Python package artifacts under `PUBLICATION/dist/`
|
|
32
|
+
(`morocco-water-scarcity-1.0.0-py3-none-any.whl` and `.tar.gz`).
|
|
33
|
+
- Configuration files such as `PUBLICATION/netlify.toml`,
|
|
34
|
+
`PUBLICATION/ste_website_steering.json`, and `requirements.txt`.
|
|
35
|
+
- Build and infrastructure files (`VERSION`, `.gitignore`).
|
|
36
|
+
|
|
37
|
+
## Separate Licensing for Manuscript, Figures, and Documentation
|
|
38
|
+
|
|
39
|
+
The following are licensed under **Creative Commons Attribution 4.0
|
|
40
|
+
International (CC-BY-4.0)**, not MIT:
|
|
41
|
+
|
|
42
|
+
- `PUBLICATION/water_scarcity_morocco.pdf` — the research manuscript.
|
|
43
|
+
- `PUBLICATION/figures/` — all seven figures (Figure 1 through Figure 7).
|
|
44
|
+
- `README.md` — repository documentation.
|
|
45
|
+
- `AUTHORS.md`, `CHANGELOG.md`, `CITATION.cff` — project documentation.
|
|
46
|
+
- `ANALYSIS/ANALYSIS_REPORT.md`, `ANALYSIS/analysis_insights.json` — analysis narrative.
|
|
47
|
+
- `docs/` — iteration log and consolidated audit report.
|
|
48
|
+
|
|
49
|
+
This distinction reflects standard practice:
|
|
50
|
+
|
|
51
|
+
- **Code** is licensed permissively (MIT) to allow reuse, modification,
|
|
52
|
+
and redistribution.
|
|
53
|
+
- **Written research artifacts** (manuscript, figures, documentation) are
|
|
54
|
+
licensed under CC-BY-4.0 to allow sharing and adaptation with attribution.
|
|
55
|
+
|
|
56
|
+
## Data Licensing
|
|
57
|
+
|
|
58
|
+
The data files under `DATA/raw/` originate from the World Bank's
|
|
59
|
+
World Development Indicators (WDI) and Morocco's 2025 State of the
|
|
60
|
+
Environment Report. Their original licensing terms are governed by the
|
|
61
|
+
respective data providers:
|
|
62
|
+
|
|
63
|
+
- World Bank Open Data is available under the
|
|
64
|
+
[Creative Commons Attribution 4.0 International License (CC-BY-4.0)](https://datacatalog.worldbank.org/public-licenses).
|
|
65
|
+
- Indicators from Morocco's 2025 State of the Environment Report are used
|
|
66
|
+
for scholarly analysis; users should consult the original source for
|
|
67
|
+
redistribution terms.
|
|
68
|
+
|
|
69
|
+
The curated extract `DATA/raw/worldbank_data.csv` is distributed here under
|
|
70
|
+
CC-BY-4.0 with attribution to the World Bank.
|
|
71
|
+
|
|
72
|
+
## Attribution
|
|
73
|
+
|
|
74
|
+
For code use:
|
|
75
|
+
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
Baladi, S. (2026). Water Scarcity in Morocco: Analysis Pipeline
|
|
79
|
+
(Version 1.0.0) [Computer software].
|
|
80
|
+
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
For manuscript or figure citation:
|
|
84
|
+
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
Baladi, S. (2026). Water Scarcity in Morocco: A Multivariate Analysis of
|
|
88
|
+
Climatic, Agricultural, and Socioeconomic Drivers [Research manuscript,
|
|
89
|
+
v1.0.0]. https://doi.org/10.5281/zenodo.23884236
|
|
90
|
+
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## Scope of the Research Claims
|
|
94
|
+
|
|
95
|
+
This work is an **exploratory and associational** analysis of Morocco's
|
|
96
|
+
freshwater trajectory between 2000 and 2025. It is explicitly **not**
|
|
97
|
+
designed to establish causal attribution. Conclusions should be read as
|
|
98
|
+
hypothesis-generating rather than confirmatory.
|
|
99
|
+
|
|
100
|
+
The manuscript reports an OLS model with an R-squared of 0.812 on a model
|
|
101
|
+
sample of n = 16. These results are conditional on the specific indicator
|
|
102
|
+
definitions, time window, and model specification documented in the
|
|
103
|
+
manuscript. Reuse of the code does not imply endorsement of the empirical
|
|
104
|
+
findings by the author.
|
|
105
|
+
|
|
106
|
+
---
|
|
107
|
+
|
|
108
|
+
**Version:** 1.0.0
|
|
109
|
+
**Date:** 2026-11-02
|
|
110
|
+
**Copyright:** 2026 Samir Baladi
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
include README.md
|
|
2
|
+
include LICENSE
|
|
3
|
+
include CHANGELOG.md
|
|
4
|
+
include CITATION.cff
|
|
5
|
+
include AUTHORS.md
|
|
6
|
+
include CONTRIBUTING.md
|
|
7
|
+
include requirements.txt
|
|
8
|
+
include VERSION
|
|
9
|
+
|
|
10
|
+
recursive-include mws_lab/data *.csv *.json
|
|
11
|
+
|
|
12
|
+
prune .venv
|
|
13
|
+
prune .git
|
|
14
|
+
prune __pycache__
|
|
15
|
+
prune PUBLICATION
|
|
16
|
+
prune DATA
|
|
17
|
+
prune ANALYSIS
|
|
18
|
+
prune REPORTS
|
|
19
|
+
prune EXTERNAL_REVIEW
|
|
20
|
+
prune VALIDATION
|
|
21
|
+
prune docs
|
|
22
|
+
prune dist
|
|
23
|
+
prune build
|
|
24
|
+
|
|
25
|
+
global-exclude *.pyc
|
|
26
|
+
global-exclude *.pyo
|