Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

In wing, if run the script with print(dir(PwCalculation)) before the last line, it will give the same result as the ones obtained in ipython. But if debug to the last line, will give very few completion info which doesn't including get_builder.

See the result in ipython which should also be obtained by the wing's debug mode:

(aiida-quantum-mobile) werner@ubuntu-01:~$ verdi shell 
Python 3.6.9 (default, Apr 11 2020, 22:07:08) 
Type 'copyright', 'credits' or 'license' for more information
IPython 7.13.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: from aiida.plugins import CalculationFactory                            

In [2]: PwCalculation = CalculationFactory('quantumespresso.pw')                

In [3]: dir(PwCalculation)                                                      
Out[3]: 
['CLASS_NAME',
 'SINGLE_OUTPUT_LINKNAME',
 'STATES',
 'SaveKeys',
 '_DATAFILE_XML_POST_6_2',
 '_DATAFILE_XML_PRE_6_2',
 '_DEFAULT_INPUT_FILE',
 '_DEFAULT_OUTPUT_FILE',
 '_ENVIRON_INPUT_FILE_NAME',
 '_OUTPUT_SUBFOLDER',
 '_PREFIX',
 '_PSEUDO_SUBFOLDER',
 '_STATES_MAP',
 '_StateMachine__ensure_built',
 '__abstractmethods__',
 '__class__',
 '__delattr__',
 '__dict__',
 '__dir__',
 '__doc__',
 '__eq__',
 '__format__',
 '__ge__',
 '__getattribute__',
 '__gt__',
 '__hash__',
 '__init__',
 '__init_subclass__',
 '__le__',
 '__lt__',
 '__module__',
 '__ne__',
 '__new__',
 '__reduce__',
 '__reduce_ex__',
 '__repr__',
 '__setattr__',
 '__sizeof__',
 '__str__',
 '__subclasshook__',
 '__weakref__',
 '_abc_cache',
 '_abc_negative_cache',
 '_abc_negative_cache_version',
 '_abc_registry',
 '_auto_persist',
 '_automatic_namelists',
 '_blocked_keywords',
 '_cleanups',
 '_closed',
 '_create_and_setup_db_record',
 '_create_interrupt_action',
 '_create_state_instance',
 '_default_symlink_usage',
 '_default_verbosity',
 '_do_pause',
 '_ensure_persist_configured',
 '_ensure_state_class',
 '_enter_next_state',
 '_exit_current_state',
 '_fire_event',
 '_fire_state_event',
 '_flat_inputs',
 '_flat_outputs',
 '_flatten_inputs',
 '_flatten_outputs',
 '_generate_PWCPinputdata',
 '_get_class_name',
 '_get_create_meta',
 '_get_meta_type',
 '_get_namespace_list',
 '_get_value',
 '_if_pos',
 '_internal_retrieve_list',
 '_interrupt_action',
 '_killing',
 '_node_class',
 '_paused',
 '_pausing',
 '_persist_configured',
 '_process_scope',
 '_restart_copy_from',
 '_restart_copy_to',
 '_run_task',
 '_save_checkpoint',
 '_schedule_rpc',
 '_set_class_name',
 '_set_interrupt_action',
 '_set_interrupt_action_from_exception',
 '_set_meta_type',
 '_setup_db_record',
 '_setup_event_hooks',
 '_setup_inputs',
 '_setup_metadata',
 '_spec_class',
 '_stepping',
 '_transition_failing',
 '_transitioning',
 '_use_kpoints',
 'add_cleanup',
 'add_process_listener',
 'add_state_event_callback',
 'auto_persist',
 'broadcast_receive',
 'build_process_type',
 'call_soon',
 'callback_excepted',
 'close',
 'create_initial_state',
 'create_state',
 'creation_time',
 'current',
 'decode_input_args',
 'define',
 'done',
 'encode_input_args',
 'exception',
 'execute',
 'exit_codes',
 'exposed_inputs',
 'exposed_outputs',
 'fail',
 'future',
 'get_builder',
 'get_custom_meta',
 'get_debug',
 'get_description',
 'get_exit_statuses',
 'get_name',
 'get_or_create_db_record',
 'get_parent_calc',
 'get_provenance_inputs_iterator',
 'get_state_class',
 'get_state_classes',
 'get_states',
 'get_states_map',
 'get_status_info',
 'has_terminated',
 'init',
 'initial_state_label',
 'input_file_name_hubbard_file',
 'input_helper',
 'inputs',
 'is_successful',
 'is_valid_cache',
 'kill',
 'killed',
 'killed_msg',
 'launch',
 'link_label_retrieved',
 'load',
 'load_instance_state',
 'load_members',
 'log_with_pid',
 'logger',
 'loop',
 'message_receive',
 'metadata',
 'node',
 'on_close',
 'on_create',
 'on_entered',
 'on_entering',
 'on_except',
 'on_excepted',
 'on_exit_running',
 'on_exit_waiting',
 'on_exiting',
 'on_finish',
 'on_finished',
 'on_kill',
 'on_killed',
 'on_output_emitted',
 'on_output_emitting',
 'on_paused',
 'on_pausing',
 'on_playing',
 'on_run',
 'on_running',
 'on_terminated',
 'on_wait',
 'on_waiting',
 'options',
 'out',
 'out_many',
 'outputs',
 'parse',
 'pause',
 'paused',
 'persist',
 'pid',
 'play',
 'prepare_for_submission',
 'presubmit',
 'raw_inputs',
 'recreate_from',
 'recreate_state',
 'remove_process_listener',
 'remove_state_event_callback',
 'report',
 'result',
 'resume',
 'run',
 'runner',
 'save',
 'save_instance_state',
 'save_members',
 'set_custom_meta',
 'set_debug',
 'set_logger',
 'set_status',
 'spec',
 'spec_metadata',
 'spec_options',
 'state',
 'status',
 'step',
 'step_until_terminated',
 'submit',
 'successful',
 'transition_excepted',
 'transition_failed',
 'transition_to',
 'update_node_state',
 'update_outputs',
 'uuid',
 'xml_filenames',
 'xml_filepaths']

In [4]: