garrettj403 / QMix

Simulate the behavior of SIS junctions
https://garrettj403.github.io/QMix/
GNU General Public License v3.0
7 stars 2 forks source link

The problem about module "qmix.exp" #4

Open Chesire-W opened 1 year ago

Chesire-W commented 1 year ago

Dear @garrettj403,

I am exploring this package recently, I have successfully installed it on my computer, but now I meet a problem while I am running the example program.

In examples 2 & 3, there is a function "qmix.exp.RawData0( )" used to input the csv file from example-data folder.

However, while I execute this command, an error jump out and said that there is no attribute 'RawData0' in 'qmix.exp'

image

Is it means there are some missing parts in the module? Or maybe I just got the setting wrong.

Btw, I downloaded this package three days ago, so it should be the latest version. And my Python version is 3.10, using Spyder and Jupyter to compile.

C.W.

garrettj403 commented 1 year ago

Hi C.W.,

Sorry -- I renamed that class and forgot to update the documentation. RawData0 is now DCData and RawData is now PumpedData.

Leave this issue open, and I'll fix up the documentation when I get the chance. Let me know if you run into any other issues.

garrettj403 commented 1 year ago

I just took a look. All of the Jupyter notebooks in notebooks/ are up to date, but the website isn't up to date yet.

Please use the Jupyter notebooks for now.

Chesire-W commented 1 year ago

Dear @garrettj403,

Thanks for your help!

I have changed the function's name from RawDara0 to DCData, but it still exists some problems. image

It seems this function can't transform the .csv data to NumPy array.

I want to know what format the input DC I-V data should be in and how to solve this problem.

Btw, I have tried to transfer the dciv.csv to dciv.npy and put the dciv.npy into this function, but it still shows the same error message.

C.W.

Chesire-W commented 1 year ago

Oh, I see the example file in notebooks/. image

The problem above is solved.

Chesire-W commented 1 year ago

Dear @garrettj403

I met another problem when I wanted to load the I-V curve measured in our lab into this program with the function qmix.exp.DCData. (The "I-V_test.csv" is our measured data)

As the figure below shows the x vector(V column?) would become zero in the calculation in qmix.exp.DCData and cause error image

I have checked the array type of our data is as same as the example file except for the data point and the measure sequence of V. image

The following two figures are the relation between the V value and its index in the array of your example data and the data in our lab.

image

Is the arrangement of V critical in the function's calculation?

And I want to know what requirement of the I-V data is necessary for this function.

I will appreciate your help with this situation.

C.W.