Skip to content

get_sim is stopping if all subdirectories (one per usm) are not in the usms.xml file #281

Description

@plecharpent

When using the usms.xml file, without specifying the desired usms, the function stops
even if all usms names given in the usms.xml file exist as subdirectories.

If we use the same zip file as in issue #257

 sim <- SticsRFiles::get_sim(workspace = workspace, usms_file = file.path(workspace, "usms.xml"))
✖ The usms "ICS_Aviron_SC_2021-2022", "ICS_Aviron_SC_2022-2023", "ICS_Bergamo_SC_2021-2022", "ICS_Bergamo_SC_2022-2023", "ICS_Flambo_SC_2021-2022", "ICS_Flambo_SC_2022-2023", "ICS_Titlis_SC_2021-2022", and "ICS_Titlis_SC_2022-2023" do not exist in the workspace!
ℹ Usms found in the workspace: "ICS_Bergamo-Aviron_IC_2021-2022", "ICS_Bergamo-Aviron_IC_2022-2023", "ICS_Bergamo-Flambo_IC_2021-2022", "ICS_Bergamo-Flambo_IC_2022-2023", "ICS_Titlis-Aviron_IC_2021-2022", "ICS_Titlis-Aviron_IC_2022-2023", "ICS_Titlis-Flambo_IC_2021-2022", and "ICS_Titlis-Flambo_IC_2022-2023"
Erreur dans get_file_from_usms(workspace = workspace, usms_path = usms_filepath,  : 
  ICS_Aviron_SC_2021-2022ICS_Aviron_SC_2022-2023ICS_Bergamo_SC_2021-2022ICS_Bergamo_SC_2022-2023ICS_Bergamo-Aviron_IC_2021-2022ICS_Bergamo-Aviron_IC_2022-2023ICS_Bergamo-Flambo_IC_2021-2022ICS_Bergamo-Flambo_IC_2022-2023ICS_Flambo_SC_2021-2022ICS_Flambo_SC_2022-2023ICS_Titlis_SC_2021-2022ICS_Titlis_SC_2022-2023ICS_Titlis-Aviron_IC_2021-2022ICS_Titlis-Aviron_IC_2022-2023ICS_Titlis-Flambo_IC_2021-2022ICS_Titlis-Flambo_IC_2022-2023: do(es) not match usms

The behavior should be: only display a message if they are missing directories against the usms names present in the usms file and no message if not. But the process must go on in all cases.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions