1
AI use in Regional Simulation (BRAILS) / Re: ValueError: attempt to get argmin of an empty sequence
« on: October 04, 2023, 02:54:30 AM »
geometry dash bloodbath
You can add a check to ensure 'xp' is not empty before calling np.argmin(). Here's how you could do it in Python:Still failing to follow instructions. It seems like some step is not correctCode: [Select]if len(xp) > 0:
minLineIdx = int(np.argmin(xp)/2)
else:
# Handle the case when 'xp' is empty
# For example, set minLineIdx to a default value or raise a specific exception