Electronic file merging method and device, equipment and medium

By converting and splicing data frame objects within and across electronic folders, the method addresses the challenge of decentralized data collection, enabling unified and flexible data analysis across multiple folders.

CN119166594APending Publication Date: 2024-12-20FTXT ENERGY TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310729303.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-19
Publication Date
2024-12-20

AI Technical Summary

Technical Problem

Existing systems face difficulties in viewing and comprehensively analyzing data across different electronic folders, leading to decentralized and inflexible data collection.

Method used

The method involves converting original measurement data from each electronic file into data frame objects, vertically splicing these objects within their respective folders, and then horizontally splicing them to create a unified data frame object, allowing for the generation of a target electronic file that merges data across folders.

Benefits of technology

This approach enables simultaneous viewing and comprehensive analysis of data across different electronic folders, facilitating flexible and unified data collection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119166594A_ABST
    Figure CN119166594A_ABST
Patent Text Reader

Abstract

The invention discloses an electronic file merging method and device, equipment and a medium, which are applied to the technical field of computers and are used for solving the problem of difficulty in overall planning and analysis caused by difficulty in checking data in different electronic folders at the same time in the prior art. The method specifically comprises the steps that all first electronic files contained in a first electronic folder are converted into first data box objects and then longitudinally spliced into first longitudinal data box objects, and all second electronic files contained in a second electronic folder are converted into second data box objects and then longitudinally spliced into second longitudinal data box objects; the first longitudinal data box object and the second longitudinal data box object are transversely spliced into the transverse data box object, and the target electronic file is generated based on the transverse data box object, so that different electronic files in different electronic folders can be merged into one electronic file; therefore, simultaneous viewing and overall analysis of all data in different electronic files in different electronic folders can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to an electronic file merging method, device, equipment and medium. Background Art

[0002] Data processing is a basic link in system engineering and automatic control, including data collection, storage, retrieval, processing, transformation and transmission. The basic purpose of data processing is to extract and derive valuable and meaningful data from a large amount of chaotic and difficult to understand data. In the prior art, when collecting data, sometimes different collected data may be recorded in different electronic folders or different electronic folders on different physical devices, which makes it difficult to view all collected data on the same software, and it is often difficult or even impossible to view different collected data in different electronic folders at the same time, which makes it difficult to conduct a comprehensive analysis of all collected data. Summary of the invention

[0003] The present application provides an electronic file merging method, device, equipment and medium, which is used to solve the problem that it is difficult to view data in different electronic folders at the same time in the prior art, resulting in difficulty in conducting a comprehensive analysis of all collected data. The technical solution provided by the present application is as follows:

[0004] In one aspect, the present application provides a method for merging electronic files, comprising:

[0005] Converting the first original measurement data in each first electronic file contained in the first electronic folder into a first data frame object, and converting the second original measurement data in each second electronic file contained in the second electronic folder into a second data frame object;

[0006] Vertically splicing the first data frame objects in the first electronic files contained in the first electronic folder into a first vertical data frame object, and vertically splicing the second data frame objects in the second electronic files contained in the second electronic folder into a second vertical data frame object;

[0007] The first vertical data frame object of the first electronic folder and the second vertical data frame object of the second electronic folder are horizontally spliced ​​into a horizontal data frame object, and a target electronic file is generated based on the horizontal data frame object.

[0008] On the other hand, the present application provides an electronic file merging device, comprising:

[0009] An object conversion unit, used to convert the first original measurement data in each first electronic file contained in the first electronic folder into a first data frame object, and to convert the second original measurement data in each second electronic file contained in the second electronic folder into a second data frame object;

[0010] A vertical splicing unit, used to vertically splice the first data frame objects in the first electronic files contained in the first electronic folder into a first vertical data frame object, and vertically splice the second data frame objects in the second electronic files contained in the second electronic folder into a second vertical data frame object;

[0011] A horizontal splicing unit, used for horizontally splicing the first vertical data frame object of the first electronic folder and the second vertical data frame object of the second electronic folder into a horizontal data frame object;

[0012] The file generating unit is used to generate a target electronic file based on the horizontal data frame object.

[0013] On the other hand, the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the above-mentioned electronic file merging method is implemented when the processor executes the computer program.

[0014] On the other hand, the present application also provides a computer-readable storage medium, which stores computer instructions. When the computer instructions are executed by a processor, the above-mentioned electronic file merging method is implemented.

[0015] The beneficial effects of this application are as follows:

[0016] The present application can merge different electronic files in different electronic folders into one electronic file by vertically splicing the electronic files in the same electronic folder and horizontally splicing the electronic files in different electronic folders, thereby realizing simultaneous viewing of all data in different electronic files in different electronic folders, and then realizing comprehensive analysis of all data in different electronic files in different electronic folders. Moreover, data collection is no longer restricted and decentralized collection can be realized, making data collection more flexible.

[0017] Other features and advantages of the present application will be described in the subsequent description, and in part, will become apparent from the description, or will be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0019] Figure 1 It is a schematic diagram of the general flow of the electronic file merging method in the embodiment of the present application;

[0020] Figure 2 This is a schematic diagram of a specific process of the electronic file merging method in an embodiment of the present application;

[0021] Figure 3 This is a functional structure diagram of an electronic file merging device in an embodiment of the present application;

[0022] Figure 4 Schematic diagram of the hardware structure of the electronic device in the embodiment of the present application. DETAILED DESCRIPTION

[0023] In order to make the purpose, technical solution and beneficial effects of this application clearer, the technical solution in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0024] In order to facilitate those skilled in the art to better understand the present application, the technical terms involved in the present application are briefly introduced below.

[0025] Data Frame is a data structure in the Pandas library in Python. It consists of indexes and content and can store values, strings, etc. The memory object of the data file in Pandas is the DataFrame object.

[0026] MDF (Measurement Data Format) is a standard file format of ASAM (Association for Standardisation of Automation and Measuring Systems). It is used in the automotive industry to store raw measurement data such as bus data and sensor data from ECU (Electronic Control Unit) in binary format. MDF files (with the extension .mf4) organize raw measurement data in binary blocks. Different types of binary blocks define raw measurement data with different uses and / or different contents. The memory object of an MDF file is an MDF object.

[0027] It should be noted that the "first", "second", etc. mentioned in this application are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that such terms can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the "and / or" mentioned in this application describes the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.

[0028] After introducing the technical terms involved in this application, the application scenarios and design concepts of this application are briefly introduced.

[0029] In order to solve the problem that it is difficult or even impossible to view different collected original measurement data in different electronic folders at the same time, the present application first converts each first electronic file contained in the first electronic folder into a first data frame object and then vertically splices them into a first vertical data frame object, and converts each second electronic file contained in the second electronic folder into a second data frame object and then vertically splices them into a second vertical data frame object, and then horizontally splices the first vertical data frame object and the second vertical data frame object into a horizontal data frame object, and finally generates a target electronic file based on the horizontal data frame object, so that different electronic files in different electronic folders can be merged into one electronic file, and then all the original measurement data in different electronic files in different electronic folders can be simultaneously viewed and comprehensively analyzed. Moreover, the collection of original measurement data is no longer restricted, and decentralized collection can be achieved, so that the collection of original measurement data can be more flexible.

[0030] After introducing the application scenarios and design ideas of the present application, the technical solutions provided by the present application are described in detail below.

[0031] The present application embodiment provides a method for merging electronic files, which can be applied to electronic devices such as mobile phones and computers. Figure 1 As shown, the general process of the electronic file merging method provided in the embodiment of the present application is as follows:

[0032] S101: Convert the first original measurement data in each first electronic file contained in the first electronic folder into a first data frame object respectively, and convert the second original measurement data in each second electronic file contained in the second electronic folder into a second data frame object respectively.

[0033] In a specific implementation, the first original measurement data in each first electronic file contained in the first electronic folder can be parsed respectively to obtain the first measurement data format object in each first electronic file contained in the first electronic folder, and the second original measurement data in each second electronic file contained in the second electronic folder can be parsed respectively to obtain the second measurement data format object in each second electronic file contained in the second electronic folder, and then the first measurement data format object in each first electronic file contained in the first electronic folder can be resampled based on the resampling strategy, and the second measurement data format object in each second electronic file contained in the second electronic folder can be resampled based on the resampling strategy, and finally, the first measurement data format object in each first electronic file contained in the first electronic folder can be converted into a first data frame object, and the second measurement data format object in each second electronic file contained in the second electronic folder can be converted into a second data frame object. In this way, by resampling the first measurement data format objects in each first electronic file contained in the first electronic folder and the second measurement data format objects in each second electronic file contained in the second electronic folder, the first measurement data format objects of different signals in each first electronic file contained in the first electronic folder and the second measurement data format objects of different signals in each second electronic file contained in the second electronic folder can be kept aligned, and the resampling strategy adopted during resampling can be to resample both floating-point data and integer data using a repeated pre-position method, thereby effectively avoiding the problem that the data rules of the resampled floating-point measurement data and the original floating-point measurement data are different when resampling using a linear interpolation method, which has a significant impact on the floating-point measurement data, and thus the first measurement data format objects in each first electronic file contained in the resampled first electronic folder and the second measurement data format objects in each second electronic file contained in the second electronic folder can be kept faithful.

[0034] Specifically, the asammdf module can be called first to parse the first original measurement data in each first electronic file contained in the first electronic folder to obtain the first measurement data format object in each first electronic file contained in the first electronic folder, and the second original measurement data in each second electronic file contained in the second electronic folder can be parsed to obtain the second measurement data format object in each second electronic file contained in the second electronic folder, and then the mdf.configure(float_integpolation=0,integer_interpolation=0) method can be called to configure the resampling strategy to "for floating point data and integer data Resampling is performed by repeated pre-positioning", and then the mdf.resample(raster=1) method is called. Based on the resampling strategy, the first measurement data format objects in the first electronic files contained in the first electronic folder are resampled, and the second measurement data format objects in the second electronic files contained in the second electronic folder are resampled. Finally, the to_dataframe() method is called to convert the first measurement data format objects in the first electronic files contained in the first electronic folder into first data frame objects, and convert the second measurement data format objects in the second electronic files contained in the second electronic folder into second data frame objects.

[0035] S102: vertically splicing the first data frame objects in the first electronic files contained in the first electronic folder into a first vertical data frame object, and vertically splicing the second data frame objects in the second electronic files contained in the second electronic folder into a second vertical data frame object.

[0036] In a specific implementation, the first timestamps of the first measurement data format objects in each of the resampled first electronic files can be obtained respectively, and the first timestamps can be inserted into the first data frame objects in each of the first electronic files respectively. Based on the first timestamps of the first data frame objects in each of the first electronic files, the first data frame objects in each of the first electronic files can be vertically spliced ​​into a first vertical data frame object; and the second timestamps of the second measurement data format objects in each of the resampled second electronic files can be obtained respectively, and the second timestamps can be inserted into the second data frame objects in each of the second electronic files respectively. Based on the second timestamps of the second data frame objects in each of the second electronic files, the second data frame objects in each of the second electronic files can be vertically spliced ​​into a second vertical data frame object.

[0037] Specifically, the MDF.get(None,0,0).timestamps method can be called to obtain the first timestamp of the first measurement data format object in each resampled first electronic file, and insert the first timestamp into the first data frame object in each first electronic file, and then call the pandas.concat method to vertically splice the first data frame objects in each first electronic file into a first vertical data frame object based on the first timestamp of the first data frame object in each first electronic file, and call the MDF.get(None,0,0).timestamps method to obtain the second timestamp of the second measurement data format object in each resampled second electronic file, and insert the second timestamp into the second data frame object in each second electronic file, and then call the pandas.concat method to vertically splice the second data frame objects in each second electronic file into a second vertical data frame object based on the second timestamp of the second data frame object in each second electronic file.

[0038] S103: horizontally splicing the first vertical data frame object of the first electronic folder and the second vertical data frame object of the second electronic folder into a horizontal data frame object, and generating a target electronic file based on the horizontal data frame object.

[0039] In specific implementation, the pandas.merge() method can be called to horizontally splice the first longitudinal data frame object and the second longitudinal data frame object into a horizontal data frame object, and then generate a target electronic file based on the horizontal data frame object. Specifically, the timestamp of the horizontal data frame object can be first set to the index of the horizontal data frame object, and then a new measurement data format object can be created. Finally, based on the index, the horizontal data frame object is filled into the new measurement data format object to obtain the target electronic file. Specifically, the append(DataFrame) method can be called to fill the horizontal data frame object into the new measurement data format object based on the index to obtain the target electronic file.

[0040] It is worth mentioning that in the embodiment of the present application, after the target electronic file is generated based on the horizontal data frame object, a file name can also be generated for the target electronic file, and the target electronic file can be saved based on the file name. Specifically, the file name of the target electronic file can be generated based on the file date of the target electronic file, and the save method can be called to save the target electronic file based on the file name.

[0041] The electronic file merging method provided in the embodiment of the present application is further described in detail below. Figure 2 As shown, the specific process of the electronic file merging method provided in the embodiment of the present application is as follows:

[0042] S201a: Read a first electronic file in a first electronic folder, call the asammdf module, and parse the first original measurement data in the first electronic file to obtain a first MDF object in the first electronic file.

[0043] S202a: calling the mdf.configure(float_integpolation=0,integer_interpolation=0) method to configure the resampling strategy; wherein the resampling strategy is to resample both floating point data and integer data by using a repeated pre-position method.

[0044] S203a: calling the mdf.resample(raster=1) method to resample the first MDF object in the first electronic file based on the resampling strategy, so that the first MDF object in the first electronic file after resampling is aligned.

[0045] S204a: Call the to_dataframe() method to convert the first MDF object in the first electronic file into a first Data Frame object.

[0046] S205a: Call the MDF.get(None,0,0).timestamps method to obtain the first timestamp of the first MDF object in the resampled first electronic file, and insert the first timestamp into the first Data Frame object in the first electronic file.

[0047] S206a: Call the pandas.concat method to vertically concatenate the first Data Frame object in the first electronic file into a first vertical Data Frame object based on the first timestamp of the first Data Frame object in the first electronic file.

[0048] S207a: Determine whether there is any first electronic file in the first electronic folder, if so, return to S201a, if not, execute S208.

[0049] S201b: Read the second electronic file in the second electronic folder, call the asammdf module, and parse the second original measurement data in the second electronic file to obtain a second MDF object in the second electronic file.

[0050] S202b: calling the mdf.configure(float_integpolation=0,integer_interpolation=0) method to configure the resampling strategy; wherein the resampling strategy is to resample both floating point data and integer data by using a repeated pre-position method.

[0051] S203b: calling the mdf.resample(raster=1) method to resample the second MDF object in the second electronic file based on the resampling strategy, so that the second MDF object in the resampled second electronic file remains aligned.

[0052] S204b: Call the to_dataframe() method to convert the second MDF object in the second electronic file into a second Data Frame object.

[0053] S205b: Call the MDF.get(None,0,0).timestamps method to obtain the second timestamp of the second MDF object in the resampled second electronic file, and insert the second timestamp into the second Data Frame object in the second electronic file.

[0054] S206b: Call the pandas.concat method to vertically concatenate the second Data Frame objects in the second electronic file into a second vertical Data Frame object based on the second timestamp of the second Data Frame objects in the second electronic file.

[0055] S207b: Determine whether there is a second electronic file in the second electronic folder, if so, return to S201b, if not, execute S208.

[0056] The above S201a-S207a and the above S201b-S207b can be executed sequentially or in parallel. Figure 2 Only parallel execution is taken as an example, and this application does not limit the specific execution method.

[0057] S208: Call the pandas.merge() method to horizontally concatenate the first vertical Data Frame object and the second vertical Data Frame object into a horizontal Data Frame object.

[0058] S209: Setting the timestamp of the horizontal Data Frame object as the index of the horizontal Data Frame object.

[0059] S210: Create a new MDF object and call the append(DataFrame) method to fill the horizontal Data Frame object into the new MDF object based on the index of the horizontal Data Frame object to obtain the target electronic file.

[0060] S211: Generate a file name of the target electronic file based on the file date of the target electronic file.

[0061] S212: Call the save method to save the target electronic file based on the file name.

[0062] Based on the above embodiments, the present application provides an electronic file merging device. Figure 3 As shown, the electronic file merging device 300 provided in the embodiment of the present application at least includes:

[0063] The object conversion unit 301 is used to convert the first original measurement data in each first electronic file contained in the first electronic folder into a first data frame object, and convert the second original measurement data in each second electronic file contained in the second electronic folder into a second data frame object;

[0064] A vertical splicing unit 302 is used to vertically splice the first data frame objects in the first electronic files contained in the first electronic folder into a first vertical data frame object, and vertically splice the second data frame objects in the second electronic files contained in the second electronic folder into a second vertical data frame object;

[0065] A horizontal splicing unit 303, used for horizontally splicing the first vertical data frame object of the first electronic folder and the second vertical data frame object of the second electronic folder into a horizontal data frame object;

[0066] The file generating unit 304 is used to generate a target electronic file based on the horizontal data frame object.

[0067] In a possible implementation manner, when the first original measurement data in each first electronic file included in the first electronic folder is converted into a first data frame object, and the second original measurement data in each second electronic file included in the second electronic folder is converted into a second data frame object, the object conversion unit 301 is specifically used to:

[0068] The first original measurement data in each first electronic file contained in the first electronic folder is parsed respectively to obtain a first measurement data format object in each first electronic file contained in the first electronic folder, and the second original measurement data in each second electronic file contained in the second electronic folder is parsed respectively to obtain a second measurement data format object in each second electronic file contained in the second electronic folder;

[0069] The first measurement data format objects in each first electronic file contained in the first electronic folder are converted into first data frame objects respectively, and the second measurement data format objects in each second electronic file contained in the second electronic folder are converted into second data frame objects respectively.

[0070] In a possible implementation manner, before converting the first measurement data format objects in the first electronic files contained in the first electronic folder into the first data frame objects, and converting the second measurement data format objects in the second electronic files contained in the second electronic folder into the second data frame objects, the object conversion unit 301 is further used to:

[0071] Resample the first measurement data format objects in the first electronic files contained in the first electronic folder respectively based on the resampling strategy, so that the first measurement data format objects of different signals in the first electronic files contained in the first electronic folder are aligned;

[0072] The second measurement data format objects in each second electronic file contained in the second electronic folder are resampled based on the resampling strategy, so that the second measurement data format objects of different signals in each second electronic file contained in the second electronic folder are aligned.

[0073] In a possible implementation, the resampling strategy is to resample both floating point data and integer data by using a repeated pre-addition method.

[0074] In a possible implementation, when the first data frame objects in the first electronic files included in the first electronic folder are vertically spliced ​​into a first vertical data frame object, and the second data frame objects in the second electronic files included in the second electronic folder are vertically spliced ​​into a second vertical data frame object, the vertical splicing unit 302 is specifically used to:

[0075] Respectively obtain first timestamps of first measurement data format objects in each resampled first electronic file, respectively insert first timestamps into first data frame objects in each first electronic file, and vertically splice first data frame objects in each first electronic file into a first vertical data frame object based on the first timestamps of first data frame objects in each first electronic file;

[0076] The second timestamps of the second measurement data format objects in the resampled second electronic files are respectively obtained, the second timestamps are respectively inserted into the second data frame objects in the second electronic files, and based on the second timestamps of the second data frame objects in the second electronic files, the second data frame objects in the second electronic files are vertically spliced ​​into a second vertical data frame object.

[0077] In a possible implementation, when generating a target electronic file based on the horizontal data frame object, the file generating unit 304 is specifically used to:

[0078] Set the timestamp of the horizontal data frame object to the index of the horizontal data frame object;

[0079] A new measurement data format object is created, and the horizontal data frame object is filled into the new measurement data format object based on the index to obtain a target electronic file.

[0080] In a possible implementation, the electronic file merging device 300 provided in the embodiment of the present application further includes:

[0081] The naming and saving unit 305 is used to generate a file name for the target electronic file and save the target electronic file based on the file name.

[0082] It should be noted that the principle of solving the technical problem by the electronic file merging device 300 provided in the embodiment of the present application is similar to the electronic file merging method provided in the embodiment of the present application. Therefore, the implementation of the electronic file merging device 300 provided in the embodiment of the present application can refer to the implementation of the electronic file merging method provided in the embodiment of the present application, and the repeated parts will not be repeated.

[0083] After introducing the electronic file merging method and device provided in the embodiment of the present application, next, a brief introduction is given to the electronic device provided in the embodiment of the present application.

[0084] See also Figure 4 As shown, the electronic device 400 provided in the embodiment of the present application includes at least a processor 401, a memory 402, and a computer program stored in the memory 402 and executable on the processor 401. When the processor 401 executes the computer program, the electronic file merging method provided in the embodiment of the present application is implemented.

[0085] The electronic device 400 provided in the embodiment of the present application may further include a bus 403 connecting different components (including the processor 401 and the memory 402). The bus 403 represents one or more of several types of bus structures, including a memory bus, a peripheral bus, a local bus, and the like.

[0086] The memory 402 may include a readable medium in the form of a volatile memory, such as a RAM (Random Access Memory) 4021 and / or a cache memory 4022 , and may further include a ROM (Read Only Memory) 4023 .

[0087] The memory 402 may also include a program tool 4025 having a set (at least one) of program modules 4024, including but not limited to: an operating subsystem, one or more applications, other program modules, and program data, each of which or some combination may include the implementation of a network environment.

[0088] The electronic device 400 may also communicate with one or more external devices 404 (e.g., keyboards, remote controls, etc.), and may also communicate with one or more devices that enable a user to interact with the electronic device 400 (e.g., mobile phones, computers, etc.), and / or communicate with any device that enables the electronic device 400 to communicate with one or more other electronic devices 400 (e.g., routers, modems, etc.). Such communication may be performed through an I / O (Input / Output) interface 405. Furthermore, the electronic device 400 may also communicate with one or more networks (e.g., LAN (Local Area Network), WAN (Wide Area Network) and / or public networks, such as the Internet) through a network adapter 406. Figure 4 As shown, the network adapter 406 communicates with other modules of the electronic device 400 via the bus 403. It should be understood that although Figure 4 Not shown, other hardware and / or software modules may be used in conjunction with the electronic device 400, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (Redundant Arrays of Independent Disks) subsystems, tape drives, and data backup storage subsystems.

[0089] It should be noted that Figure 4 The electronic device 400 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0090] The computer-readable storage medium provided in the embodiment of the present application is introduced below. The computer-readable storage medium provided in the embodiment of the present application stores computer instructions, and when the computer instructions are executed by the processor, the electronic file merging method provided in the embodiment of the present application is implemented. Specifically, the computer instructions can be built-in or installed in the processor, so that the processor can implement the electronic file merging method provided in the embodiment of the present application by executing the built-in or installed computer instructions.

[0091] In addition, the electronic file merging method provided in the embodiment of the present application can also be implemented as a program product, which includes a program code. When the program code is executed by a processor, the electronic file merging method provided in the embodiment of the present application is implemented.

[0092] The program product provided in the embodiments of the present application may adopt any combination of one or more readable media, wherein the readable medium may be a readable signal medium or a readable storage medium, and the readable storage medium may be but is not limited to an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or any combination of the above. Specifically, more specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, RAM, ROM, EPROM (Erasable Programmable Read Only Memory), optical fiber, CD-ROM (Compact Disc Read-Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0093] The program product provided in the embodiment of the present application may adopt a CD-ROM and include program code, and may also be run on an electronic device. However, the program product provided in the embodiment of the present application is not limited thereto. In the embodiment of the present application, the readable storage medium may be any tangible medium containing or storing a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device.

[0094] It should be noted that, although several units or subunits of the device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more units described above can be embodied in one unit. Conversely, the features and functions of one unit described above can be further divided into multiple units to be embodied.

[0095] In addition, although the operations of the method of the present application are described in a specific order in the drawings, this does not require or imply that the operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.

[0096] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they are aware of the basic creative concepts. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0097] Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the spirit and scope of the embodiments of the present application. Thus, if these modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A method for merging electronic files, It is characterized in that include: Converting the first original measurement data in each first electronic file contained in the first electronic folder into a first data frame object, and converting the second original measurement data in each second electronic file contained in the second electronic folder into a second data frame object; Vertically splicing the first data frame objects in the first electronic files contained in the first electronic folder into a first vertical data frame object, and vertically splicing the second data frame objects in the second electronic files contained in the second electronic folder into a second vertical data frame object; The first vertical data frame object of the first electronic folder and the second vertical data frame object of the second electronic folder are horizontally spliced ​​into a horizontal data frame object, and a target electronic file is generated based on the horizontal data frame object.

2. The electronic file merging method according to claim 1, It is characterized in that Converting the first original measurement data in each first electronic file contained in the first electronic folder into a first data frame object, and converting the second original measurement data in each second electronic file contained in the second electronic folder into a second data frame object, respectively, includes: The first original measurement data in each of the first electronic files contained in the first electronic folder is parsed respectively to obtain a first measurement data format object in each of the first electronic files contained in the first electronic folder, and the second original measurement data in each of the second electronic files contained in the second electronic folder is parsed respectively to obtain a second measurement data format object in each of the second electronic files contained in the second electronic folder; The first measurement data format objects in each of the first electronic files contained in the first electronic folder are converted into the first data frame objects respectively, and the second measurement data format objects in each of the second electronic files contained in the second electronic folder are converted into the second data frame objects respectively.

3. The electronic file merging method according to claim 2, It is characterized in that Before respectively converting the first measurement data format object in each of the first electronic files contained in the first electronic folder into the first data frame object, and respectively converting the second measurement data format object in each of the second electronic files contained in the second electronic folder into the second data frame object, the method further includes: resampling the first measurement data format objects in each of the first electronic files contained in the first electronic folder based on a resampling strategy, so that the first measurement data format objects of different signals in each of the first electronic files contained in the first electronic folder are aligned; The second measurement data format objects in each of the second electronic files contained in the second electronic folder are resampled based on a resampling strategy, so that the second measurement data format objects of different signals in each of the second electronic files contained in the second electronic folder are aligned.

4. The electronic file merging method according to claim 3, It is characterized in that The resampling strategy is to resample both floating point data and integer data by repeated pre-positioning.

5. The electronic file merging method according to claim 3, It is characterized in that Vertically splicing the first data frame objects in the first electronic files contained in the first electronic folder into a first vertical data frame object, and vertically splicing the second data frame objects in the second electronic files contained in the second electronic folder into a second vertical data frame object, including: respectively obtaining first timestamps of the first measurement data format objects in the resampled first electronic files, respectively inserting the first timestamps into the first data frame objects in the first electronic files, and vertically splicing the first data frame objects in the first electronic files into the first vertical data frame object based on the first timestamps of the first data frame objects in the first electronic files; The second timestamps of the second measurement data format objects in the resampled second electronic files are respectively obtained, the second timestamps are respectively inserted into the second data frame objects in the second electronic files, and based on the second timestamps of the second data frame objects in the second electronic files, the second data frame objects in the second electronic files are vertically spliced ​​into the second vertical data frame object.

6. The electronic file merging method according to claim 1, It is characterized in that Generating a target electronic file based on the horizontal data frame object includes: Setting the timestamp of the horizontal data frame object to the index of the horizontal data frame object; A new measurement data format object is created, and the horizontal data frame object is filled into the new measurement data format object based on the index to obtain the target electronic file.

7. The electronic file merging method according to any one of claims 1 to 6, It is characterized in that After generating the target electronic file based on the horizontal data frame object, the method further includes: A file name is generated for the target electronic file, and the target electronic file is saved based on the file name.

8. An electronic file merging device, It is characterized in that include: An object conversion unit, used to convert the first original measurement data in each first electronic file contained in the first electronic folder into a first data frame object, and to convert the second original measurement data in each second electronic file contained in the second electronic folder into a second data frame object; A vertical splicing unit, used for vertically splicing the first data frame objects in the first electronic files contained in the first electronic folder into a first vertical data frame object, and vertically splicing the second data frame objects in the second electronic files contained in the second electronic folder into a second vertical data frame object; A horizontal splicing unit, used for horizontally splicing the first vertical data frame object of the first electronic folder and the second vertical data frame object of the second electronic folder into a horizontal data frame object; The file generating unit is used to generate a target electronic file based on the horizontal data frame object.

9. An electronic device, It is characterized in that The electronic file merging method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the electronic file merging method as claimed in any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the electronic file merging method according to any one of claims 1 to 7 is implemented.