mirror of
https://gitea.psi.ch/APOG/acsm-fairifier.git
synced 2025-07-08 17:08:03 +02:00
WIP: Completed flag generation for species, command line interface is now clear but still does not consider potentially existing flags. Review TODO.md, for efficiency we need to simplify flag assignment and reconciliation for the species flag type.
This commit is contained in:
@ -49,8 +49,8 @@ def visualize_table_variables(data_file_path, dataset_name, flags_dataset_name,
|
||||
var_flag_name = f"flag_{var}"
|
||||
if var_flag_name in flags_df.columns:
|
||||
# Identify valid and invalid indices
|
||||
ind_valid = flags_df[var_flag_name].to_numpy()
|
||||
ind_invalid = np.logical_not(ind_valid)
|
||||
ind_invalid = flags_df[var_flag_name].to_numpy()
|
||||
# ind_valid = np.logical_not(ind_valid)
|
||||
# Detect start and end indices of invalid regions
|
||||
# Find transition points in invalid regions
|
||||
invalid_starts = np.diff(np.concatenate(([False], ind_invalid, [False]))).nonzero()[0][::2]
|
||||
|
Reference in New Issue
Block a user