Skip to content

Commit 3b2e342

Browse files
externaDataArrayPArt detection for external rels
1 parent bdd6351 commit 3b2e342

4 files changed

Lines changed: 595 additions & 430 deletions

File tree

energyml-utils/example/attic/compare_inmem_n_stream.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def reexport_in_memory(filepath: str, output_folder: Optional[str] = None):
3939
if output_folder:
4040
os.makedirs(output_folder, exist_ok=True)
4141
path_in_memory = f"{output_folder}/{path_in_memory.split('/')[-1]}"
42-
epc = Epc.read_file(filepath)
42+
epc = Epc.read_file(epc_file_path=filepath, read_rels_from_files=False)
4343

4444
if os.path.exists(path_in_memory):
4545
os.remove(path_in_memory)
@@ -120,9 +120,14 @@ def time_comparison(filepath: str, output_folder: Optional[str] = None, skip_seq
120120
update_prop_kind_dict_cache()
121121

122122
time_comparison(
123-
filepath=sys.argv[1] if len(sys.argv) > 1 else "rc/epc/80wells_surf.epc", output_folder="rc/performance_results"
123+
filepath=sys.argv[1] if len(sys.argv) > 1 else "rc/epc/testingPackageCpp22.epc",
124+
output_folder="rc/performance_results",
124125
)
125126

127+
# time_comparison(
128+
# filepath=sys.argv[1] if len(sys.argv) > 1 else "rc/epc/80wells_surf.epc", output_folder="rc/performance_results"
129+
# )
130+
126131
# time_comparison(
127132
# filepath=sys.argv[1] if len(sys.argv) > 1 else "wip/failingData/fix/sample_mini_firp_201_norels_with_media.epc",
128133
# output_folder="rc/performance_results",

0 commit comments

Comments
 (0)