adfe2d1769c708028d0ebec61e0644efadee9de9,hyperspy/io.py,,dict2signal,#Any#,349
Before Change
signal_type = mp["Signal"]["signal_type"]
if "Signal" in mp and "signal_origin" in mp["Signal"]:
signal_origin = mp["Signal"]["signal_origin"]
if (not record_by and "data" in signal_dict and
len(signal_dict["data"].shape) < 2):
record_by = "spectrum"
signal = assign_signal_subclass(record_by=record_by,
signal_type=signal_type,
signal_origin=signal_origin)(**signal_dict)
if "post_process" in signal_dict:
After Change
signal_dimension = 1
elif record_by == "image":
signal_dimension = 2
del mp["Signal"]["record_by"]
if "Signal" in mp and "signal_type" in mp["Signal"]:
signal_type = mp["Signal"]["signal_type"]
if "Signal" in mp and "signal_origin" in mp["Signal"]:
signal_origin = mp["Signal"]["signal_origin"]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: hyperspy/hyperspy
Commit Name: adfe2d1769c708028d0ebec61e0644efadee9de9
Time: 2016-07-11
Author: frandelapena@gmail.com
File Name: hyperspy/io.py
Class Name:
Method Name: dict2signal
Project Name: dickreuter/Poker
Commit Name: 326330df0cadc4adcecfa9b8c3a83f465f977fb4
Time: 2016-09-09
Author: dickreuter@yahoo.com
File Name: mongo_manager.py
Class Name: Logging
Method Name: write_log_file
Project Name: hyperspy/hyperspy
Commit Name: eea5b10faa94c06bef0fca943ae26e9908dbe495
Time: 2017-01-07
Author: eric.prestat@gmail.com
File Name: hyperspy/misc/date_time_tools.py
Class Name:
Method Name: update_date_time_in_metadata