Skip to content

Commit dab603a

Browse files
LadyChristinadimkarakostas
authored andcommitted
Rename input dir to raw_block_data
1 parent 0f000a1 commit dab603a

15 files changed

+45
-45
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ data.json
55
multi_pool_addresses*
66
multi_pool_blocks
77
output
8-
input/*_raw_data.json
8+
raw_block_data/*_raw_data.json
99
.coverage
1010
site

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ project:
3030

3131
## Run the tool
3232

33-
Place all raw data (which could be collected from BigQuery for example) in the `input` directory, each file named as
33+
Place all raw data (which could be collected from BigQuery for example) in the `raw_block_data` directory, each file named as
3434
`<project_name>_raw_data.json` (e.g. `bitcoin_raw_data.json`). By default, there
3535
is a (very small) sample input file for some supported projects. To use the
3636
samples, remove the prefix `sample_`. For more extended raw data and instructions on how to retrieve it, see

docs/contribute.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ specifically:
6464

6565
### Data
6666

67-
You can optionally commit small sample data for the new ledger in the input folder.
68-
Alternatively, make sure to add your raw data file in the input folder before
67+
You can optionally commit small sample data for the new ledger in the raw_block_data folder.
68+
Alternatively, make sure to add your raw data file in the raw_block_data folder before
6969
running the tool on the new ledger.
7070

7171
## Update existing mapping information

docs/parsers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
The parser obtains raw data from a full node (see [Data Collection](data.md) page on how to obtain the required data).
44
It parses the data and outputs a `json` file with a list of entries, each entry corresponding to a block.
55

6-
The input file should be placed in the `input` directory and named as `<project_name>_raw_data.json`.
6+
The input file should be placed in the `raw_block_data` directory and named as `<project_name>_raw_data.json`.
77

88
The output file is stored under `output/<project_name>/parsed_data.json` and is structured as follows:
99

docs/setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The `run.py` script in the root directory of the project invokes the required pa
2424
also possible to execute each module individually. The following process describes the most typical workflow.
2525

2626
Place all raw data (which could be collected from BigQuery for example; see [Data Collection](data.md) for more details)
27-
in the `input` directory, each file named as `<project_name>_raw_data.json` (e.g., `bitcoin_raw_data.json`). By default,
27+
in the `raw_block_data` directory, each file named as `<project_name>_raw_data.json` (e.g., `bitcoin_raw_data.json`). By default,
2828
there is a (very small) sample input file for some supported projects; to use it, remove the prefix `sample_`.
2929

3030
Run `python run.py --ledgers <ledger_1> <ledger_n> --timeframe <timeframe>` to
File renamed without changes.
File renamed without changes.
File renamed without changes.

run.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from src.analyze import analyze
55
from src.parse import parse
66
from src.plot import plot
7-
from src.helper import valid_date, INPUT_DIR, OUTPUT_DIR, get_default_ledgers, get_start_end_years
7+
from src.helper import valid_date, RAW_DATA_DIR, OUTPUT_DIR, get_default_ledgers, get_start_end_years
88

99
logging.basicConfig(format='[%(asctime)s] %(message)s', datefmt='%Y/%m/%d %I:%M:%S %p', level=logging.INFO)
1010

@@ -25,7 +25,7 @@ def main(projects, timeframes, force_parse, force_map, make_plots, make_animated
2525
"""
2626
logging.info(f"The ledgers that will be analyzed are: {','.join(projects)}")
2727
for project in projects:
28-
parse(project, INPUT_DIR, output_dir, force_parse)
28+
parse(project, RAW_DATA_DIR, output_dir, force_parse)
2929
apply_mapping(project, timeframes, output_dir, force_map)
3030

3131
used_metrics = analyze(projects, timeframes, output_dir)

0 commit comments

Comments
 (0)