ResSimpy.Nexus.load_wells.load_wells
- ResSimpy.Nexus.load_wells.load_wells(nexus_file: NexusFile, start_date: str, default_units: UnitSystem, date_format: DateFormat) list[ResSimpy.Nexus.DataModels.NexusWell.NexusWell][source]
Loads a list of Nexus Well instances and populates it with the wells completions over time from a wells file.
- Parameters:
nexus_file (NexusFile) – NexusFile containing the wellspec files.
start_date (str) – starting date of the wellspec file as a string.
default_units (UnitSystem) – default units to use if no units are found.
date_format (DateFormat) – Date format specified in the FCS file.
- Raises:
ValueError – If no value is found after a TIME card.
ValueError – If no well name is found after a WELLSPEC keyword.
ValueError – If no valid wells are found in the wellspec file.
- Returns:
list[NexusWell] – list of Nexus well classes contained within a wellspec file.