Questions tagged [saving-data]

353 questions
2
votes
2 answers

Restore listView in android

I am navigating from Activity_A to Activity_B and showing a list view in Activity_B , when I press back button in Activity_B control comes to Activity_A. Now, again I navigate to Activity_B, now I dont want to create the list View once again…
Prabhu M
  • 3,534
  • 8
  • 48
  • 87
2
votes
1 answer

Saving the dictionary with str keys and a list of pytorch tensors as values

I want to save a list of dictionary in which keys are indices of queries (so the keys of the dictionary are strings). The values of this dictionary are list of sparse tensors which I store as follows : {'1185869': [tensor(indices=tensor([[ 31, …
Ruchit
  • 336
  • 3
  • 16
2
votes
2 answers

Save a numpy array consisting of numpy arrays different shapes to a .txt file

I am a beginner in Python. Here's what I am trying to do : import numpy as np r10 = np.array([[i for i in range(0,10)],[i*10 for i in range(0,10)]]).T r6 = np.array([[i for i in range(0,6)],[i*10 for i in range(0,6)]]).T r_comb =…
2
votes
2 answers

Writing data to disc in seperate thread (in parallel)

I would like to start a function multiple times in a loop that each time acquire and image from a camera and writes the image to disc without the loop waiting for this process to finish. So every time this function is called it runs in parallel with…
blvb
  • 89
  • 1
  • 8
2
votes
1 answer

Saving data from Python program into a 'workspace' so I can plot without having to the run the program again

Using MATLAB, all data and variables tare saved into a workspace. This makes it really easy to access and manipulate the data for simple plotting from the command window without having to run the main program again. I know this can be done using…
2
votes
1 answer

When I try to save user record to db in node, only id is saved

I have a problem with saving user's data to MongoDB; save function saves only user's id and also when I log user before trying to save it, I get only id too. When I log req.body I get all the data. I guess the problem is somewhere in instancing…
Dragana
  • 101
  • 1
  • 3
  • 8
2
votes
0 answers

Converting a audio file into a spectrogram then saving the data of the spectrogram into a txt file

Im doing a CNN to reconize birds sounds, i know how to get the image of the spectrogram from a wav audio and save it, but ploting 46k images is taking too long, someone told me to save the data of the spectrogram into a txt file, and it can train…
2
votes
1 answer

Save system in command pattern

I have a problem with saving tasks for my employees in Unity, c#. I have their tasks implemented like a command pattern with a method(coroutine) as the task algorithm. Now I have to save their tasks to disk and load them later to resume…
2
votes
1 answer

updating a python dictionary saved in a python file

Good Afternoon, I have a python dictionary file I created using the following code : playerdict = {('john','denver'):12345,('keneith','Noisewater'):23456} The dictionary is very long so I saved it to a python file. with open('playerdict.py','w') as…
kdbaseball8
  • 111
  • 8
2
votes
1 answer

Saving Data persistently into KeychainAccess in Swift 5.0

I want to save sensitive user data into Keychain persistently but problem is, every time I re-launch the app in both of simulator and a device I am loosing all the data. As per my understanding keychained data should keep living in the system unless…
Matthew So
  • 75
  • 1
  • 2
  • 8
2
votes
1 answer

Pandas changing number when I save a DataFrame as CSV (python3)

I'm running this piece of code: df = pd.read_csv("./teste/teste_1.csv", sep=";") df.fillna(0, inplace=True) a = df['Total'] = df['A'] + df['B'] + df['C'] + df['D'] + df['E'] print(df) df.to_csv("./teste/9table.csv",…
rafasalo
  • 243
  • 2
  • 16
2
votes
2 answers

How to save and load array of objects - Swift 4

Here is my code from my app called Reminders: Folder Class: class Folder { var name: String var labelName: String var imageName : String var colour : ColourTheme var colourArray : Array var maxNumOfPages : Int …
2
votes
1 answer

Updating the txt file to check while python is saving the data into it

In some codes like MCMC it lasts for hours and maybe days to finish. Now I am wondering how can see the outputs which are saving in a text file while Python is running. Because in my code checking the whole outputs in txt file is possible only after…
Ma Y
  • 696
  • 8
  • 19
2
votes
1 answer

Is it good to save database connections in xml file

I am on a general scenario of deploying my vb.net database application on my client's computer. Thinking of future problem of changing the database connection setting, i am planning to store it in a normal xml file in the app directory so that where…
KoolKabin
  • 17,157
  • 35
  • 107
  • 145
2
votes
1 answer

Saving just model & weights in Keras (in single file)

I have Python code that generates a deep convolutional neural network using Keras. I'm trying to save the model, but the result is gigantic (100s of MBs). I'd like to pare that down a bit to make something more manageable. The problem is that…
Adam Smith
  • 449
  • 9
  • 23
1 2
3
23 24