Skip to content

Bug with Bottles matchup #97

@gbolzon

Description

@gbolzon

La profilazione genera profili per il 2019, ma NON per la data 2019-03-18

Poi il NutrientsReader.Selector(None, 2019,Med) trova profili in quella data ==> crash

Il profilatore originale è
/g100_scratch/userexternal/camadio0/RUN_FIUMI_ATM/SIMU_8_v1/wrkdir/POSTPROC/ogstm_postproc/Rivers/profiler_RA_N_bottle.py
che fa riferimento a
/g100_work/OGS_devC/camadio/RUN_FIUMI_ATM/VALIDATION_DATASETS_VDB/BOTTLE_ONLY/MedBGCins_nut_v2.nc

BITSEA=
/g100_work/OGS_test2528/camadio/RUN_FIUMI_ATM/archieve/CLIM/wrkdir/POSTPROC/bit.sea_BOTTLE

Fino a 15-20 giorni fa funzionava, non dava errori.
L'errore si genera a riga 62 di
/g100_scratch/userexternal/camadio0/RUN_FIUMI_ATM/SIMU_8_v1/wrkdir/POSTPROC/ogstm_postproc/Rivers/river_valid_BOTTLE.sh

L'errore è generato da

def modeltime(self,profile):
'''
Argument:
* profile * a profile object.
E.g. an element of list provided by FloatSelector(), or MooringSelector()
Returns:
* datetime object * , the time of model corresponding to the selected profile
'''
assert isinstance(profile, Profile)
for Model_time,INTERESTED_Indices in self.Coupled_List:
if profile in [self.PROFILE_LIST[k] for k in INTERESTED_Indices]:
break
else:
raise ValueError("No model profile corresponds to %s. Please check time interval in your profiler." % ( profile.ID(), ) )
return Model_time

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions