Page 1 of 1
Problems importing from old Mac DiveLog
Posted: Thu Nov 27, 2014 5:26 am
by resnick
I'm having a few problems importing from the old
Mac DiveLog. I used the "DiveLog (.xml)" format for the import, but there are some things that are not coming through correctly. I'm glad to help debug, including sending in the old data file, and I'm happy to do some hand-editing of the old .xml file if I need to before importing if that's needed. I'm still at the stage that blowing away my database and starting over is just fine, so no worries there. Here's the list of issues so far:
- Surface Interval is not coming through correctly. As far as I can tell, Mac DiveLog keeps the value in minutes, and MacDive is interpreting it as seconds. Do I need to go through and multiply everything by 60?
- Mac DiveLog has no concept of "Country"; there's "Location" and "Site", but I've been tacking the country onto the end of the location. When I went to import it, I get "Unknown Country" for everything. If I put a Country="XYZ" into each entry in the old log and then import, will MacDive pick that up correctly? Is there some way to fix this after import? Suggestions welcome.
- Temperature and pressure profile data does not seem to be imported. When I look at the Raw tab, all of the pressures are "0" and all of the temps are "32".
- Gear is not importing very well. I don't get any of the purchase info, it doesn't get the Manufacturer, etc., though it does seem to get serial numbers just fine.
- Some of the dives I'm reading in from the old .xml log are still on my computer (a D9). After I imported the Mac DiveLog data, I downloaded from the computer, but ended up with duplicate dives. I'd like to be able to merge those dives, but when I tried using "Join" I got some really funky data. That could be because of some of the above, but I'm wondering what is the correct order to do things.
Any help you can provide would be welcome.
Re: Problems importing from old Mac DiveLog
Posted: Thu Nov 27, 2014 5:35 am
by nick
resnick wrote:Surface Interval is not coming through correctly. As far as I can tell, Mac DiveLog keeps the value in minutes, and MacDive is interpreting it as seconds. Do I need to go through and multiply everything by 60?
I will need to confirm that.
[*]Mac DiveLog has no concept of "Country"; there's "Location" and "Site", but I've been tacking the country onto the end of the location. When I went to import it, I get "Unknown Country" for everything. If I put a Country="XYZ" into each entry in the old log and then import, will MacDive pick that up correctly? Is there some way to fix this after import? Suggestions welcome.
Could you not edit the sites after import?
Go to Sites, and you should be able to view them. The list view is probably the easiest, and you can multi-edit them so that you can bulk change the country for groups of sites.
If not, I can look at updating it to include a Country if this is required.
[*]Temperature and pressure profile data does not seem to be imported. When I look at the Raw tab, all of the pressures are "0" and all of the temps are "32".
I will need the data file to investigate this.
[*]Gear is not importing very well. I don't get any of the purchase info, it doesn't get the Manufacturer, etc., though it does seem to get serial numbers just fine.
I will need the data file to investigate this.
[*]Some of the dives I'm reading in from the old .xml log are still on my computer (a D9). After I imported the Mac DiveLog data, I downloaded from the computer, but ended up with duplicate dives. I'd like to be able to merge those dives, but when I tried using "Join" I got some really funky data. That could be because of some of the above, but I'm wondering what is the correct order to do things.[/list]
Join concatenates dives (ie to join two dives with a short surface interval), it does not merge existing dives. There is no way to do this right now sorry.
Please email me your data file and I will investigate your other issues. I am sorry for the inconvenience.
Thanks
MacDive Support
Re: Problems importing from old Mac DiveLog
Posted: Thu Nov 27, 2014 5:51 am
by resnick
I'll send you my the data file at the support email address. On a couple of specifics:
nick wrote:resnick wrote:Mac DiveLog has no concept of "Country"; there's "Location" and "Site", but I've been tacking the country onto the end of the location. When I went to import it, I get "Unknown Country" for everything. If I put a Country="XYZ" into each entry in the old log and then import, will MacDive pick that up correctly? Is there some way to fix this after import? Suggestions welcome.
Could you not edit the sites after import?
Go to Sites, and you should be able to view them. The list view is probably the easiest, and you can multi-edit them so that you can bulk change the country for groups of sites.
Ah! That will work.
nick wrote:resnick wrote:Some of the dives I'm reading in from the old .xml log are still on my computer (a D9). After I imported the Mac DiveLog data, I downloaded from the computer, but ended up with duplicate dives. I'd like to be able to merge those dives, but when I tried using "Join" I got some really funky data. That could be because of some of the above, but I'm wondering what is the correct order to do things.
Join concatenates dives (ie to join two dives with a short surface interval), it does not merge existing dives. There is no way to do this right now sorry.
So the only choice is to delete the duplicates?
Re: Problems importing from old Mac DiveLog
Posted: Thu Nov 27, 2014 5:56 am
by nick
Yes, sorry. Merging is on my todo list.
Re: Problems importing from old Mac DiveLog
Posted: Thu Nov 27, 2014 1:16 pm
by resnick
resnick wrote:Surface Interval is not coming through correctly. As far as I can tell, Mac DiveLog keeps the value in minutes, and MacDive is interpreting it as seconds. Do I need to go through and multiply everything by 60?
Looks like this one is a DiveLog bug. It is downloading the value as seconds instead of minutes. I'll hand fix that one.
Re: Problems importing from old Mac DiveLog
Posted: Thu Nov 27, 2014 1:53 pm
by nick
Apologies for the delay, I just walked in the door from work. I am fixing what I can right now, there are a few things missing (as you've noticed).
Give me a few minutes and I will send you a beta to try, that will hopefully resolve it.
I have already added an optional "Country", so if you like, you could include that in the XML as well as Location and Site, and it will read it. It's probably just easier to edit it in MacDive afterwards, but if you like hand editing XML as much as I do then it could be a nice option..
Re: Problems importing from old Mac DiveLog
Posted: Thu Nov 27, 2014 2:12 pm
by nick
I've emailed you some details and a link to the beta.
Re: Problems importing from old Mac DiveLog
Posted: Thu Nov 27, 2014 2:46 pm
by resnick
nick wrote:Apologies for the delay, I just walked in the door from work.
Apologies completely unnecessary; I can't thank you enough for your fast work on this.
nick wrote:I am fixing what I can right now, there are a few things missing (as you've noticed).
Give me a few minutes and I will send you a beta to try, that will hopefully resolve it.
I have already added an optional "Country", so if you like, you could include that in the XML as well as Location and Site, and it will read it. It's probably just easier to edit it in MacDive afterwards, but if you like hand editing XML as much as I do then it could be a nice option..
I could claim I did all of my edits in vi, but I used TextWrangler.

Everything imported fine, save a couple of little bits I'll send you by email.
Thanks again for the lightning fast work!
Re: Problems importing from old Mac DiveLog
Posted: Fri Nov 28, 2014 3:14 am
by nick
Oh yeah, vi would have been a good answer! Second only to Emacs.
(See, you can't hide from this particular debate anywhere..)