is there a way for a form to send multiple values to a function?
more than just filename; send metadata too?
must be.
Dinos Kousidis
@dinosk
yes just add a comma and define any other parameter like:
unit_str: units,
a: sth,
Adam Ginsburg
@keflavich
ok, that's in the ajax sending
in the flask receiving, it looks like: `@app.route('/uploads/<filename>/<extension>')
`
Dinos Kousidis
@dinosk
I didnt get the last line
Adam Ginsburg
@keflavich
it's ok, I'll experiment for a minute
Dinos Kousidis
@dinosk
Ah right I thought you meant the req. I pushed the new table, going to lunch!
Adam Ginsburg
@keflavich
ok cool
Adam Ginsburg
@keflavich
make sure to pull when you get back
Dinos Kousidis
@dinosk
ok im synced
Adam Ginsburg
@keflavich
do you have anytihng to push?
Dinos Kousidis
@dinosk
yes but it im testing it currently
Adam Ginsburg
@keflavich
ok
Dinos Kousidis
@dinosk
pushing
Adam Ginsburg
@keflavich
k
in the column form, it seems that there is missing data in request.form: the units aren't passed along with the rest
have you investigated?
this is where you have an IPython sessino
Dinos Kousidis
@dinosk
ah right i did notice that, ill look into it
_
Adam Ginsburg
@keflavich
I got it!
it has to have a name= attribute
Dinos Kousidis
@dinosk
what was it?
aah ok
Adam Ginsburg
@keflavich
justpush
just pushed
Dinos Kousidis
@dinosk
ok!
Adam Ginsburg
@keflavich
one more push now; I'm going to work on other things for a bit
it's really coming together!
Adam Ginsburg
@keflavich
I've added a new file to assist with ingesting the data tables
Dinos Kousidis
@dinosk
ok! ill pull again, i worked on the table but im not sure ill be keeping the changes
Adam Ginsburg
@keflavich
ok
why not?
Dinos Kousidis
@dinosk
hmmm didnt really like the result i think! it was just UI sugar
Adam Ginsburg
@keflavich
fair enough
Dinos Kousidis
@dinosk
hey adam I managed to pass the filename with the form for set_column
Dinos Kousidis
@dinosk
it wasnt overwritten! I had opened the old version
Dinos Kousidis
@dinosk
Hey Adam, I’m at the office, just pulled your latest changes
Adam Ginsburg
@keflavich
@dinossimpson are you trying the interface?
right now?
Dinos Kousidis
@dinosk
Hey Adam, no I wasn’t, sorry I just got the email for unread messages
Dinos Kousidis
@dinosk
I’m trying to get the correct parameters for the ammonia 22 specfit but I can’t get ammonia_model.n_modelfunc() a non all zero array for the data. I’m doing the same stuff as for the 11 specfit but [3.73,4.73,8.3e14,0.84,96.2,0.43] do not work, and I tried loading G032.751-00.071_nh3_22_Tastar.fits to a Spectrum and get the sp.specfit.moments(fittype=‘ammonia) (as in test_nh3_multi.py) which gives: [20, 10, 1000000000000000.0, 1.0, 0.0, 1.0] but still i get all 0s. (I’m using the xarr from the 22 Spectrum). Is there sth obviously wrong with these parameters? Kinda stuck with this
Adam Ginsburg
@keflavich
hey dinos
oh, you sent me those messages yesterday
I didn't see them til now
Adam Ginsburg
@keflavich
@dinossimpson come over here when you have a moment