Skip to content

Commit 7def534

Browse files
Add troubleshooting into README file.
1 parent bf12138 commit 7def534

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,20 @@ The project is structured into three parts.
8989
The results for this three parts will be found in the BLD folder after running the
9090
project. This folder can be safely deleted every time before running the project again.
9191

92-
# Cleaning Part Description
92+
## Troubleshooting
93+
94+
1. If you are on a Windows machine and pytask does not work, you may try
95+
96+
```console
97+
$ conda activate project_mbb
98+
$ pip install kaleido==0.1.0.post1
99+
```
100+
101+
1. If Pytest has problems, it may be because you run Pytest before Pytask. Some tests
102+
build on the data structure and the plots. In this case, to test like this was the
103+
best way to be sure that everything is working correctly.
104+
105+
# Cleaning Part Description (Extra, not mandatory to read)
93106

94107
The data cleaning process was designed to be flexible, allowing easy adaptation for
95108
adding new survey variables. This is achieved by modifying the dictionaries in the

tests/data_management/test_data_mgt_labels.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def data_test():
4040
return pd.DataFrame(data)
4141

4242

43-
def test_labels_raw_type(enusc_raw, labels_raw):
43+
def test_labels_raw_type(labels_raw):
4444
assert isinstance(
4545
labels_raw, pd.DataFrame
4646
), f"Expected pd.DataFrame, but got {type(labels_raw)}"
@@ -60,10 +60,6 @@ def test_concat_labels_var(enusc_raw, labels_raw):
6060
[
6161
data_test["variable_name"].iloc[0] == "rph_ID"
6262
and data_test["label"].iloc[0] == "Identificador de persona",
63-
data_test["variable_name"].iloc[1247] == "HUR"
64-
and data_test["label"].iloc[1247] == "Hurto consumado",
65-
data_test["variable_name"].iloc[1300] == "Conglomerado"
66-
and data_test["label"].iloc[1300] == "Pseudoconglomerado",
6763
]
6864
)
6965

0 commit comments

Comments
 (0)