Skip to content

Commit

Permalink
refactor: use correct update of data
Browse files Browse the repository at this point in the history
  • Loading branch information
rabii-chaarani committed Jul 8, 2024
1 parent 0b5356d commit fb2b6d7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions LoopDataConverter/converters/conversion_manager.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from .ntgs_converter import NTGSConverter
from ..datatypes import SurveyName
from ..file_readers import LoopGisReader

from ..input import InputData

class LoopConverter:
"""
Expand All @@ -13,10 +13,10 @@ class LoopConverter:
def __init__(
self,
survey_name: SurveyName,
file,
data: InputData,
layer: str = None,
):
self._file = file
self._fileData = data
self._layer = layer
self._survey_name = survey_name
self._converters = {
Expand All @@ -34,8 +34,8 @@ def read_file(self):
"""
read the file using the correct file reader
"""
file_reader = LoopGisReader(self._file)
file_reader.read(self._file, self._layer)
file_reader = LoopGisReader(self._fileData)
file_reader.read(self._fileData, self._layer)
return file_reader.data

def get_converter(self):
Expand Down

0 comments on commit fb2b6d7

Please sign in to comment.