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

Only use openeo_classification.resources package for input resources #2

Open
soxofaan opened this issue Mar 31, 2022 · 1 comment
Open

Comments

@soxofaan
Copy link
Contributor

While working on #1 I noticed that openeo_classification/resources is mainly used for generated/output files.

I think this should be avoided and openeo_classification.resources should be solely for input resources

@soxofaan
Copy link
Contributor Author

examples:

referenced resource doesn't even exist in git repo:

df = pd.read_csv("resources/training_data/final_features.csv",index_col=0)

referenced resource doesn't even exist in git repo:

def create_or_load_job_statistics(path = "resources/training_data/job_statistics.csv"):

corrupt_jsons = [
r"c:\users\driesseb\dev\openeo-classification\src\openeo_classification\resources\training_data\crops_of_interest\sentinelhub\sampleable_polygons_year2018_zone39_id5100_p0.json",
r"c:\users\driesseb\dev\openeo-classification\src\openeo_classification\resources\training_data\other_crops\sentinelhub\sampleable_polygons_year2017_zone31_id4351_p0.json",
r"c:\users\driesseb\dev\openeo-classification\src\openeo_classification\resources\training_data\other_crops\sentinelhub\sampleable_polygons_year2017_zone31_id4351_p1.json",
r"c:\users\driesseb\dev\openeo-classification\src\openeo_classification\resources\training_data\other_crops\sentinelhub\sampleable_polygons_year2017_zone32_id2900_p0.json",

base_path = Path(openeo_classification.__file__).parent / "resources"/"training_data"

df.to_csv("resources/training_data/final_features.csv")

def __init__(self, crop_list, zones, years, input_dfs, aez_stratification, output_folder = Path("resources")/ "training_data",

def write_to_json(self, df, ds_nr, crop_id, year, zonenumber, folder="resources/training_data/"):

soxofaan added a commit that referenced this issue Mar 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant